All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.contek.invoker.deribit.api.websocket.WebSocketChannelId Maven / Gradle / Ivy

package io.contek.invoker.deribit.api.websocket;

import io.contek.invoker.commons.websocket.BaseWebSocketChannelId;
import io.contek.invoker.deribit.api.websocket.common.WebSocketSingleChannelMessage;

import javax.annotation.concurrent.Immutable;

@Immutable
public abstract class WebSocketChannelId>
    extends BaseWebSocketChannelId {

  protected WebSocketChannelId(String channel) {
    super(channel);
  }

  public final String getChannel() {
    return getValue();
  }

  @Override
  public final boolean accepts(Message message) {
    return getChannel().equals(message.params.channel);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy