Beispiel #1
0
 public static <T> Response<T> fault(T data, String message) {
   return new Response<T>(data, "FAULT", ErrorCode.NONE.toString(), message);
 }
Beispiel #2
0
 public static <T> Response<T> success(T data, String message) {
   return new Response<T>(data, "OK", ErrorCode.NONE.toString(), message);
 }