diff options
Diffstat (limited to 'mobileapp/src/smoots/udesign/packet/PhoneToServerPacket.java')
-rwxr-xr-x | mobileapp/src/smoots/udesign/packet/PhoneToServerPacket.java | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/mobileapp/src/smoots/udesign/packet/PhoneToServerPacket.java b/mobileapp/src/smoots/udesign/packet/PhoneToServerPacket.java deleted file mode 100755 index f677034..0000000 --- a/mobileapp/src/smoots/udesign/packet/PhoneToServerPacket.java +++ /dev/null @@ -1,25 +0,0 @@ -package smoots.udesign.packet;
-
-import java.util.HashMap;
-
-import org.json.JSONObject;
-
-/**
- * Packet object from phone to the server.
- */
-public class PhoneToServerPacket implements Packet {
- private HashMap<String, Float> packetMap;
-
- public PhoneToServerPacket(int type, float x, float y, float color) {
- this.packetMap = new HashMap<String, Float>();
- this.packetMap.put("type", (float) type);
- this.packetMap.put("x", x);
- this.packetMap.put("y", y);
- this.packetMap.put("color", color);
- }
-
- public String packetToText() {
- return new JSONObject(this.packetMap).toString();
- }
-
-}
|