cc.youchain.protocol.websocket.events.NotificationParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
YOUChain Common library in JAVA.
package cc.youchain.protocol.websocket.events;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* Generic class for a notification param. Contains a subscription id and a data item.
*
* @param type of data return by a particular subscription
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class NotificationParams {
private T result;
private String subsciption;
public T getResult() {
return result;
}
public String getSubsciption() {
return subsciption;
}
}