Subversion Repositories SmartDukaan

Rev

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

Rev 27464 Rev 27466
Line 1127... Line 1127...
1127
						.addHeader("Authorization", authString).build();
1127
						.addHeader("Authorization", authString).build();
1128
 
1128
 
1129
				Response response = client.newCall(request1).execute();
1129
				Response response = client.newCall(request1).execute();
1130
				LOGGER.info("response" + response.body().string());
1130
				LOGGER.info("response" + response.body().string());
1131
 
1131
 
1132
				JSONArray ja = new JSONArray(response.body().string());
-
 
1133
				for (int i = 0; i < ja.length(); i++) {
-
 
1134
					JSONObject c = ja.getJSONObject(i);
-
 
1135
					String geofenceId = c.getString("geofence_id");
-
 
1136
					LOGGER.info("geofenceId" + geofenceId);
-
 
1137
					FofoStoreGeofence fsg = new FofoStoreGeofence();
-
 
1138
					fsg.setFofoId(customRetailer.getPartnerId());
-
 
1139
					fsg.setGeofenceId(geofenceId);
-
 
1140
					fofoStoreGeofenceRepository.persist(fsg);
-
 
1141
 
-
 
1142
				}
-
 
1143
 
-
 
1144
			}
1132
			}
1145
 
1133
 
1146
		}
1134
		}
1147
 
1135
 
1148
	}
1136
	}