public void login(String password) {
   LinkedList<JSONField> f = new LinkedList<JSONField>();
   f.add(new JSONField("Request Type", "Login", JSONType.STRING));
   f.add(new JSONField("User Name", username, JSONType.STRING));
   f.add(new JSONField("Password", password, JSONType.STRING));
   sendLine(AndroidUser.createJSONString(f));
 }
 public void updateCoordinate(String lat, String lon) {
   LinkedList<JSONField> f = new LinkedList<JSONField>();
   f.add(new JSONField("Request Type", "Update Coordinate", JSONType.STRING));
   f.add(new JSONField("Lat", lat, JSONType.FLOAT));
   f.add(new JSONField("Lon", lon, JSONType.FLOAT));
   sendLine(AndroidUser.createJSONString(f));
 }
 public void createUser(
     String first_name, String last_name, String password, String account_type) {
   LinkedList<JSONField> f = new LinkedList<JSONField>();
   f.add(new JSONField("Request Type", "Create User", JSONType.STRING));
   f.add(new JSONField("First Name", first_name, JSONType.STRING));
   f.add(new JSONField("Last Name", last_name, JSONType.STRING));
   f.add(new JSONField("User Name", username, JSONType.STRING));
   f.add(new JSONField("Password", password, JSONType.STRING));
   f.add(new JSONField("Account Type", account_type, JSONType.STRING));
   sendLine(AndroidUser.createJSONString(f));
 }
 public void addZone(
     String zone_name, String lat, String lon, String radius, String action, String text) {
   LinkedList<JSONField> f = new LinkedList<JSONField>();
   f.add(new JSONField("Request Type", "Add Zone", JSONType.STRING));
   f.add(new JSONField("Zone Name", zone_name, JSONType.STRING));
   f.add(new JSONField("Lat", lat, JSONType.FLOAT));
   f.add(new JSONField("Lon", lon, JSONType.FLOAT));
   f.add(new JSONField("Radius", radius, JSONType.FLOAT));
   f.add(new JSONField("Action", action, JSONType.STRING));
   f.add(new JSONField("Text", text, JSONType.STRING));
   sendLine(AndroidUser.createJSONString(f));
 }
 public void acceptFriend(String friend_name) {
   LinkedList<JSONField> f = new LinkedList<JSONField>();
   f.add(new JSONField("Request Type", "Accept Friend", JSONType.STRING));
   f.add(new JSONField("Friend Name", friend_name, JSONType.STRING));
   sendLine(AndroidUser.createJSONString(f));
 }
 public void removeZone(String zone_name) {
   LinkedList<JSONField> f = new LinkedList<JSONField>();
   f.add(new JSONField("Request Type", "Remove Zone", JSONType.STRING));
   f.add(new JSONField("Zone Name", zone_name, JSONType.STRING));
   sendLine(AndroidUser.createJSONString(f));
 }
 public void removeUser() {
   LinkedList<JSONField> f = new LinkedList<JSONField>();
   f.add(new JSONField("Request Type", "Remove User", JSONType.STRING));
   sendLine(AndroidUser.createJSONString(f));
 }
 public void emptyZones() {
   LinkedList<JSONField> f = new LinkedList<JSONField>();
   f.add(new JSONField("Request Type", "Empty Zones", JSONType.STRING));
   sendLine(AndroidUser.createJSONString(f));
 }
 public void showFriends() {
   LinkedList<JSONField> f = new LinkedList<JSONField>();
   f.add(new JSONField("Request Type", "Show Friends", JSONType.STRING));
   sendLine(AndroidUser.createJSONString(f));
 }