Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Fixed Zaif order format.
Browse files Browse the repository at this point in the history
  • Loading branch information
Takanori Takase committed Apr 29, 2018
1 parent f87888a commit 42fa37d
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,14 @@ public static class Container {
private Integer status;

@SerializedName("return")
private Map<String, Map<String, Data>> orders;
private Map<String, Data> orders;

public Boolean isSuccess() {
return SUCCESS.equals(status) && orders != null;
}

public Map<String, Data> getOrders() {
return orders == null ? null : orders.get("active_orders");
}

public Map<String, Data> getTokens() {
return orders == null ? null : orders.get("token_active_orders");
return orders;
}

}
Expand Down

0 comments on commit 42fa37d

Please sign in to comment.