org.knowm.xchange.exx.utils.RestRequestParam Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-exx Show documentation
Show all versions of xchange-exx Show documentation
Development fork. Not for general use.
package org.knowm.xchange.exx.utils;
/**
* Rest API请求参数
*
* @author Lynn Li
* @param Data 类型
*/
public class RestRequestParam {
/** 公有参数 */
private Common common;
/** 私有业务参数 */
private T data;
public Common getCommon() {
return common;
}
public T getData() {
return data;
}
public void setData(T data) {
this.data = data;
}
public Common newCommon(String accesskey, long timestamp) {
this.common = new Common(accesskey, timestamp);
return this.common;
}
public static class Common {
/** 通行证 */
private String accesskey;
/** 当前原子时毫秒 */
private long timestamp;
/** 参数签名 */
private String sign;
private Common(String accesskey, long timestamp) {
this.accesskey = accesskey;
this.timestamp = timestamp;
this.sign = sign;
}
public String getAccesskey() {
return accesskey;
}
public String getSign() {
return sign;
}
public void setSign(String sign) {
this.sign = sign;
}
public long getTimestamp() {
return timestamp;
}
}
}