Subversion Repositories SmartDukaan

Rev

Rev 28114 | Rev 28116 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28114 Rev 28115
Line 137... Line 137...
137
			Request request2 = new Request.Builder()
137
			Request request2 = new Request.Builder()
138
					.url("https://v3.api.hypertrack.com/devices/" + hyperTrackKey.getHypertrackKeyId() + "/start")
138
					.url("https://v3.api.hypertrack.com/devices/" + hyperTrackKey.getHypertrackKeyId() + "/start")
139
					.post(reqbody).addHeader("Authorization", authString).build();
139
					.post(reqbody).addHeader("Authorization", authString).build();
140
 
140
 
141
			Response resp = client.newCall(request2).execute();
141
			Response resp = client.newCall(request2).execute();
142
			em.setPunchIn(false);
-
 
143
			LOGGER.info("resp" + resp);
142
			LOGGER.info("resp" + resp);
144
 
143
 
145
		} else if (status.equals("active")) {
144
		} else if (status.equals("active")) {
146
			JSONObject c = jsonObj.getJSONObject("location");
145
			JSONObject c = jsonObj.getJSONObject("location");
147
			JSONObject d = c.getJSONObject("geometry");
146
			JSONObject d = c.getJSONObject("geometry");