Clients - dialogos-project/dialogos GitHub Wiki
This page explains how to implement a client for DialogOS.
Javadoc that explains the methods of the Client class.
You will need to make the classes of the DialogOS client interface available to your client at compile time. A current version of the client interface is automatically published to Jitpack for each new release of DialogOS. You can obtain the client interface library in one of the two following ways.
If you use a build tool for Java (e.g. Gradle), you can simply add a dependency to the client interface in your buildfile. In Gradle, this looks as follows (replace <VERSION>
by the version of the client interface you want, e.g. 2.0.4
or -SNAPSHOT
):
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation(group:'com.github.dialogos-project.dialogos', name:'ClientInterface', version:'<VERSION>')
}
If you do not use a build tool, you can manually download the Jar file for the client interface from https://jitpack.io/com/github/dialogos-project/dialogos/ClientInterface/2.0.4/ClientInterface-2.0.4.jar. Replace the version number 2.0.4
by the current version of DialogOS, which you can find on the Releases page.
- Echo client: Extremely simple client that simply sends each message that it receives back to DialogOS.
- Demo client: Client that turns a lightbulb on and off in a GUI simulation.
- Jython client: Illustrates how to implement a client in Jython.