Guest User

Untitled

a guest
Jul 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. package models;
  2.  
  3. import com.fasterxml.jackson.annotation.*;
  4.  
  5. //@JsonInclude(JsonInclude.Include.NON_NULL)
  6. //@JsonPropertyOrder({
  7. // "buy_price",
  8. // "sell_price",
  9. // "last_trade",
  10. // "high",
  11. // "low",
  12. // "avg",
  13. // "vol",
  14. // "vol_curr",
  15. // "updated"
  16. //})
  17.  
  18. public class PairValue {
  19.  
  20. @JsonProperty("buy_price")
  21. private String buyPrice;
  22. @JsonProperty("sell_price")
  23. private String sellPrice;
  24. @JsonProperty("last_trade")
  25. private String lastTrade;
  26. @JsonProperty("high")
  27. private String high;
  28. @JsonProperty("low")
  29. private String low;
  30. @JsonProperty("avg")
  31. @JsonAlias("mid")
  32. private String avg;
  33. @JsonProperty("vol")
  34. private String vol;
  35. @JsonProperty("vol_curr")
  36. private String volCurr;
  37. @JsonProperty("updated")
  38. private Integer updated;
  39.  
  40. @JsonProperty("buy_price")
  41. public String getBuyPrice() {
  42. return buyPrice;
  43. }
  44.  
  45. @JsonProperty("buy_price")
  46. public void setBuyPrice(String buyPrice) {
  47. this.buyPrice = buyPrice;
  48. }
  49.  
  50. @JsonProperty("sell_price")
  51. public String getSellPrice() {
  52. return sellPrice;
  53. }
  54.  
  55. @JsonProperty("sell_price")
  56. public void setSellPrice(String sellPrice) {
  57. this.sellPrice = sellPrice;
  58. }
  59.  
  60. @JsonProperty("last_trade")
  61. public String getLastTrade() {
  62. return lastTrade;
  63. }
  64.  
  65. @JsonProperty("last_trade")
  66. public void setLastTrade(String lastTrade) {
  67. this.lastTrade = lastTrade;
  68. }
  69.  
  70. @JsonProperty("high")
  71. public String getHigh() {
  72. return high;
  73. }
  74.  
  75. @JsonProperty("high")
  76. public void setHigh(String high) {
  77. this.high = high;
  78. }
  79.  
  80. @JsonProperty("low")
  81. public String getLow() {
  82. return low;
  83. }
  84.  
  85. @JsonProperty("low")
  86. public void setLow(String low) {
  87. this.low = low;
  88. }
  89.  
  90. @JsonProperty("avg")
  91. public String getAvg() {
  92. return avg;
  93. }
  94.  
  95. @JsonProperty("avg")
  96. public void setAvg(String avg) {
  97. this.avg = avg;
  98. }
  99.  
  100. @JsonProperty("vol")
  101. public String getVol() {
  102. return vol;
  103. }
  104.  
  105. @JsonProperty("vol")
  106. public void setVol(String vol) {
  107. this.vol = vol;
  108. }
  109.  
  110. @JsonProperty("vol_curr")
  111. public String getVolCurr() {
  112. return volCurr;
  113. }
  114.  
  115. @JsonProperty("vol_curr")
  116. public void setVolCurr(String volCurr) {
  117. this.volCurr = volCurr;
  118. }
  119.  
  120. @JsonProperty("updated")
  121. public Integer getUpdated() {
  122. return updated;
  123. }
  124.  
  125. @JsonProperty("updated")
  126. public void setUpdated(Integer updated) {
  127. this.updated = updated;
  128. }
  129.  
  130. }
Add Comment
Please, Sign In to add comment