示例#1
0
 public static ShimDataResponse result(String shimKey, Object object) {
   ShimDataResponse response = new ShimDataResponse();
   response.setShim(shimKey);
   response.setBody(object);
   response.setTimeStamp(Calendar.getInstance().getTimeInMillis() / 1000);
   return response;
 }
示例#2
0
 public static ShimDataResponse empty(String shimKey) {
   ShimDataResponse response = new ShimDataResponse();
   response.setShim(shimKey);
   response.setBody(null);
   response.setTimeStamp(Calendar.getInstance().getTimeInMillis() / 1000);
   return response;
 }