|
|
Prompt Courier is designed with extensibility in mind. Specifically, there are libraries that make it easy to create a new Prompt
Courier client. One may want to make a new client so it will run on other platforms such as a handheld pc. Or you may want to build a client
to automatically respond to user's questions, or to automatically send messages to users based on events in your network.
Unfortunately, I haven't yet had time to document the method for building clients. So for now, you'll just have to look at the source code.
You can build a simple client by making a class that descends PromptCourierClient. Or you can make a class that contains a PromptCourierCientComponent
object and implements PromptCourierListener to receive events. For a simple way to build a client that responds to messages from users, look at
ReplyClient.
I will give one word of warning: do not call PromptCourierClient methods (such as sendMessage or getUsernames) from a method that originates from
PromptCourierClient (such as clientConnect or receiveMessage). If you must do this, create a new thread to make the call. Otherwise the system
will deadlock.
|