teragrep / cfe_31

0 stars 0 forks source link

Remove marshaling done by Gson in JsonResponse class by creating an ApiResponse class #22

Closed MoonBow-1 closed 9 months ago

MoonBow-1 commented 10 months ago

Description

Currently the JsonResponse class is constructed twice in the Client.java file, once by marshaling it with Gson, and the creating a new JsonResponse with the message, id and the response.statusCode() method.

This will be refactored to use another class, ApiResponse, and using a toJsonResponse() method to convert the HttpResponse inside it to the JsonResponse class

MoonBow-1 commented 9 months ago

Duplicate of #23