Skip to content

Commit

Permalink
feat: exposing time and raw response (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
vilkg authored Jan 3, 2020
1 parent a03eb7e commit d940964
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/org/hisp/dhis/response/dto/ApiResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
*/
public class ApiResponse
{
public Response getRaw()
{
return raw;
}

private Response raw;

public ApiResponse( Response response )
Expand Down Expand Up @@ -93,6 +98,10 @@ public int statusCode()
return raw.statusCode();
}

public long getTime() {
return raw.time();
}

public ValidatableResponse validate()
{
return raw.then();
Expand Down

0 comments on commit d940964

Please sign in to comment.