From fc9bf53620bec5c7801e7baefe7b0a13317d69e3 Mon Sep 17 00:00:00 2001 From: Hammy Date: Sun, 6 Jun 2021 04:26:56 +0100 Subject: [PATCH] Add POJO for Result A Result object is what the sendRequest() method will return to the helper methods within MyWaifuWrapper.java --- src/main/java/org/goudham/me/Result.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/main/java/org/goudham/me/Result.java diff --git a/src/main/java/org/goudham/me/Result.java b/src/main/java/org/goudham/me/Result.java new file mode 100644 index 0000000..483e752 --- /dev/null +++ b/src/main/java/org/goudham/me/Result.java @@ -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; + } +}