
com.xeiam.xchange.kraken.dto.marketdata.KrakenServerTime Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-kraken Show documentation
Show all versions of xchange-kraken Show documentation
XChange implementation for the Kraken Exchange
package com.xeiam.xchange.kraken.dto.marketdata;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.xeiam.xchange.utils.jackson.Rfc1123DateDeserializer;
public class KrakenServerTime {
private final long unixTime;
private final Date rfc1123Time;
/**
* Constructor
*
* @param unixTime
* @param rfc1123Time
*/
public KrakenServerTime(@JsonProperty("unixtime") long unixTime,
@JsonProperty("rfc1123") @JsonDeserialize(using = Rfc1123DateDeserializer.class) Date rfc1123Time) {
this.unixTime = unixTime;
this.rfc1123Time = rfc1123Time;
}
public long getUnixTime() {
return unixTime;
}
public Date getRfc1123Time() {
return rfc1123Time;
}
@Override
public String toString() {
return "KrakenServerTime [unixTime=" + unixTime + ", rfc1123Time=" + rfc1123Time + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy