io.contek.invoker.binanceinverse.api.websocket.user.UserWebSocketChannelId Maven / Gradle / Ivy
The newest version!
package io.contek.invoker.binanceinverse.api.websocket.user;
import io.contek.invoker.binanceinverse.api.websocket.common.WebSocketEventData;
import io.contek.invoker.commons.websocket.BaseWebSocketChannelId;
import javax.annotation.concurrent.Immutable;
@Immutable
public abstract class UserWebSocketChannelId
extends BaseWebSocketChannelId {
protected UserWebSocketChannelId(String eventType) {
super(eventType);
}
public final String getEventType() {
return getValue();
}
@Override
public final boolean accepts(Message message) {
return getEventType().equals(message.e);
}
}