public void SendManualUpdate(Vector<GroupItem> GroupItems) { JSONArray arrayObj = new JSONArray(); for (int gii = 0; gii < GroupItems.size(); gii++) { arrayObj.put(BouildGroupStatusMsg(GroupItems.get(gii))); } m_serviceConnector.sendMessage(arrayObj, ServiceConnector.UpdateSubject_ZoneUpdate); }
public void SendGPSLocation(long la, long lo) { JSONArray arrayObj = new JSONArray(); JSONObject JSONObj = new JSONObject(); try { JSONObj.put("latitude", la); JSONObj.put("longitude", lo); arrayObj.put(JSONObj); m_serviceConnector.sendMessage(arrayObj, ServiceConnector.UpdateSubject_LocationUpdate); } catch (JSONException e) { e.printStackTrace(); } }
public Vector<GroupItem> GetGroupsContent() { return ParseContent(m_serviceConnector.GetGroupsContent()); }