|
|
@ -17,7 +17,7 @@ import me.goudham.api.entity.waifu.Waifu;
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public class Response<T> {
|
|
|
|
public class Response<T> {
|
|
|
|
private T entity;
|
|
|
|
private final T entity;
|
|
|
|
private final Integer responseCode;
|
|
|
|
private final Integer responseCode;
|
|
|
|
private final String responseBody;
|
|
|
|
private final String responseBody;
|
|
|
|
|
|
|
|
|
|
|
@ -27,11 +27,6 @@ public class Response<T> {
|
|
|
|
this.entity = entity;
|
|
|
|
this.entity = entity;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Response(Integer responseCode, String responseBody) {
|
|
|
|
|
|
|
|
this.responseCode = responseCode;
|
|
|
|
|
|
|
|
this.responseBody = responseBody;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public T getEntity() {
|
|
|
|
public T getEntity() {
|
|
|
|
return entity;
|
|
|
|
return entity;
|
|
|
|
}
|
|
|
|
}
|
|
|
|