Add POJO for Result
A Result object is what the sendRequest() method will return to the helper methods within MyWaifuWrapper.javapull/5/head
parent
8471d7a5e3
commit
fc9bf53620
@ -0,0 +1,19 @@
|
||||
package org.goudham.me;
|
||||
|
||||
class Result {
|
||||
private final Integer statusCode;
|
||||
private final String body;
|
||||
|
||||
Result(Integer statusCode, String body) {
|
||||
this.statusCode = statusCode;
|
||||
this.body = body;
|
||||
}
|
||||
|
||||
Integer getStatusCode() {
|
||||
return statusCode;
|
||||
}
|
||||
|
||||
String getBody() {
|
||||
return body;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue