-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
242 additions
and
34 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/main/java/org/myrobotlab/framework/interfaces/JsonInvoker.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.myrobotlab.framework.interfaces; | ||
|
||
import org.myrobotlab.framework.Message; | ||
|
||
public interface JsonInvoker { | ||
|
||
/** | ||
* No parameter method | ||
* @param method | ||
* @return | ||
*/ | ||
public Object invoke(String method); | ||
|
||
/** | ||
* Encoded parameters as a JSON String (encoded once!) | ||
* @param method | ||
* @param encodedParameters | ||
* @return | ||
*/ | ||
public Object invoke(String method, String encodedParameters); | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/org/myrobotlab/framework/interfaces/JsonSender.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.myrobotlab.framework.interfaces; | ||
|
||
public interface JsonSender { | ||
|
||
/** | ||
* Send interface which takes a json encoded Message. | ||
* For schema look at org.myrobotlab.framework.Message | ||
* @param jsonEncodedMessage | ||
*/ | ||
public void send(String jsonEncodedMessage); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/java/org/myrobotlab/framework/interfaces/SimpleMessageSender.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.myrobotlab.framework.interfaces; | ||
|
||
import org.myrobotlab.framework.Message; | ||
|
||
public interface SimpleMessageSender { | ||
|
||
public void send(Message msg); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.