jasmin-web
jasmin-web copied to clipboard
Design and implement API for managing Jasmin objects through jcli connector
I will copy-paste my previous comment on the jasmin discussion we had on the main project that initiated this subproject, just to have a starting point for our discussion:
I have already started implementing a TelnetConnector class (a TelnetEntity) that can connect/disconnect/execcommands. We can make a github repo tomorrow so we can work together on that project. Any other ideas how to collaborate on that? For the project I think we have the same structure in our heads. I will try to describe it below as good as I can.
====
TelnetConnectorClass : has the basic telnet connectivity
+ connect($host,$port,$user,$pass)
+ doCommand($cmd) [returns string with the result]
+ disconnect()
====
abstract JasminConnectorClass (maybe just to provide a future basic skeleton for all connectors)
# save()
====
JasminSMPPConnectorClass extends JasminConnectorClass
+ cid
+ username
+ password
+ etc..., all variables for a simple smppc.
+ save() (implement the save action for the smppcs)
====
JasminGroupConnectorClass extends JasminConnectorClass
+ gid
+ save() (implement the save action for the groups)
====
rest of the other connector classes
We should start making a class diagram to see what else can come up. By the way, is there any online collaboration platforms on diagram creation that we can use for?
I have added the dev1 branch with the basic implementation I made so far.
Is it implemented yet?