Skip to content

Commit

Permalink
Update Book.java (#90)
Browse files Browse the repository at this point in the history
* Update Book.java

* Update pom.xml

* Update Book.java
  • Loading branch information
Svisstack authored Feb 16, 2021
1 parent 291ff88 commit 3d540f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data-api/java-websocket/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>io.coinapi.websocket</groupId>
<artifactId>v1</artifactId>
<version>1.6</version>
<version>1.7</version>

<organization>
<name>COINAPI LTD</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class Book extends MessageBase {
private Integer sequence;
private OffsetDateTime timeExchange;
private OffsetDateTime timeCoinApi;
private Boolean isSnapshot = true;
private String isSnapshot = "true";
private List<Asks> asks;
private List<Bids> bids;

Expand Down Expand Up @@ -53,11 +53,11 @@ public void setTimeCoinApi(OffsetDateTime timeCoinApi) {
}

public Boolean getSnapshot() {
return isSnapshot;
return isSnapshot.equalsIgnoreCase("true");
}

@JsonAttribute(name = "is_snapshot")
public void setSnapshot(Boolean snapshot) {
public void setSnapshot(String snapshot) {
isSnapshot = snapshot;
}

Expand Down

0 comments on commit 3d540f8

Please sign in to comment.