예제 #1
0
 public static Response noContent(final @Nullable String message) {
   return new Response.Builder().status(Status.success(NO_CONTENT, message)).build();
 }
예제 #2
0
 public static Response created(final Payload payload) {
   return new Response.Builder().status(Status.success(CREATED)).payload(payload).build();
 }
예제 #3
0
 public static Response ok(final Payload payload) {
   return new Response.Builder().status(Status.success(OK)).payload(payload).build();
 }
예제 #4
0
 public static Response created(final @Nullable String message) {
   return new Response.Builder().status(Status.success(CREATED, message)).build();
 }
예제 #5
0
 public static Response ok(final @Nullable String message) {
   return new Response.Builder().status(Status.success(OK, message)).build();
 }