/** * Create a clone of this ServiceResponse. */ @Override public ServiceResponse clone() { return new ServiceResponse(this.toJsonObject(), this.serviceResponseType, this.result); } }
/** * Create a clone of this ServiceResponse. */ @Override public ServiceResponse clone() { return new ServiceResponse(this.toJsonObject(), this.serviceResponseType, this.result); } }
/** * 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)); }
ServiceResponse response = new ServiceResponse(values, success); cb.handleServiceResponse(response);
ServiceResponse response = new ServiceResponse(values, success); cb.handleServiceResponse(response);