Added timestamp support to Update Tiles and Chat.

New web config to handle for jsonfile method
Modified webclient to handle timestamps to prevent duplication.
Removed duplicate code in JsonTimerTask.java
This commit is contained in:
Jason Booth 2011-02-19 18:55:01 -06:00
parent 7e858e39d5
commit 8469b323d3
6 changed files with 18 additions and 9 deletions

View file

@ -27,19 +27,23 @@ public class Client {
public String type = "chat";
public String playerName;
public String message;
public long timestamp;
public ChatMessage(String playerName, String message) {
public ChatMessage(String playerName, String message, long timestamp) {
this.playerName = playerName;
this.message = message;
this.timestamp = timestamp;
}
}
public static class Tile {
public String type = "tile";
public String name;
public long timestamp;
public Tile(String name) {
public Tile(String name, long timestamp) {
this.name = name;
this.timestamp = timestamp;
}
}
}