1 package org.oxerr.okcoin.rest.dto;
2
3 import java.time.Instant;
4
5 import org.oxerr.okcoin.rest.dto.deserializer.EpochSecondStringDeserializer;
6
7 import com.fasterxml.jackson.annotation.JsonProperty;
8 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
10 public class TickerResponse extends BaseObject {
11
12 private static final long serialVersionUID = 2015020201L;
13
14 private final Instant date;
15 private final Ticker ticker;
16
17 public TickerResponse(
18 @JsonProperty("date")
19 @JsonDeserialize(using = EpochSecondStringDeserializer.class)
20 Instant date,
21 @JsonProperty("ticker") Ticker ticker) {
22 this.date = date;
23 this.ticker = ticker;
24 }
25
26
27
28
29
30
31 public Instant getDate() {
32 return date;
33 }
34
35 public Ticker getTicker() {
36 return ticker;
37 }
38
39 }