示例#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();
 }