/** * Create a new Empty ServiceResponse based on the given JSON object. * Any missing values will be set to their defaults. * * @param jsonObject * The JSON object to parse. * @return A Empty ServiceResponse based on the given JSON object. */ public static Response fromJsonObject(JsonObject jsonObject) { return new Empty.Response(); } }
/** * Create a new Empty ServiceResponse based on the given * ServiceResponse. Any missing values will be set to their defaults. * * @param m * The ServiceResponse to parse. * @return A Empty ServiceResponse based on the given Message. */ public static Response fromServiceResponse(ServiceResponse resp) { // get it from the JSON object return Empty.Response.fromJsonObject(resp.toJsonObject()); }
/** * Create a new Empty ServiceResponse based on the given JSON string. * Any missing values will be set to their defaults. * * @param jsonString * The JSON string to parse. * @return A Empty ServiceResponse based on the given JSON string. */ public static Response fromJsonString(String jsonString) { // convert to a ServiceResponse return Empty.Response.fromServiceResponse(new ServiceResponse( jsonString, true)); }
/** * Create a new Empty ServiceResponse based on the given JSON string. * Any missing values will be set to their defaults. * * @param jsonString * The JSON string to parse. * @return A Empty ServiceResponse based on the given JSON string. */ public static Response fromJsonString(String jsonString) { // convert to a ServiceResponse return Empty.Response.fromServiceResponse(new ServiceResponse( jsonString, true)); }
/** * Create a new Empty ServiceResponse based on the given JSON object. * Any missing values will be set to their defaults. * * @param jsonObject * The JSON object to parse. * @return A Empty ServiceResponse based on the given JSON object. */ public static Response fromJsonObject(JsonObject jsonObject) { return new Empty.Response(); } }
/** * Create a new Empty ServiceResponse based on the given * ServiceResponse. Any missing values will be set to their defaults. * * @param resp the resp * @return A Empty ServiceResponse based on the given Message. */ public static Response fromServiceResponse(ServiceResponse resp) { // get it from the JSON object return Empty.Response.fromJsonObject(resp.toJsonObject()); }
/** * Create a clone of this Empty ServiceResponse. * * @return the response */ @Override public Response clone() { return new Empty.Response(); }
/** * Create a clone of this Empty ServiceResponse. */ @Override public Response clone() { return new Empty.Response(); }