org.oxerr.peatio.websocket.PeatioData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of peatio-client-websocket Show documentation
Show all versions of peatio-client-websocket Show documentation
Client for <a href="http://peat.io">Peatio</a> WebSocket API.
The newest version!
package org.oxerr.peatio.websocket;
/**
* The data that Peatio WebSocket API provided.
*/
public class PeatioData {
/**
* Data type, could be 'challenge', 'success', 'error', 'orderbook', 'trade'.
*/
private final String type;
private final Object object;
public PeatioData(String type, Object object) {
this.type = type;
this.object = object;
}
public String getType() {
return type;
}
public Object getObject() {
return object;
}
}