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

info.bitrich.xchangestream.bitfinex.dto.BitfinexWebSocketSubscriptionMessage Maven / Gradle / Ivy

package info.bitrich.xchangestream.bitfinex.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

/** Created by Lukas Zaoralek on 7.11.17. */
public class BitfinexWebSocketSubscriptionMessage {

  private static final String EVENT = "event";
  private static final String CHANNEL = "channel";
  private static final String PAIR = "pair";
  private static final String PREC = "prec";
  private static final String LEN = "len";

  @JsonProperty(EVENT)
  private String event;

  @JsonProperty(CHANNEL)
  private String channel;

  @JsonProperty(PAIR)
  private String pair;

  @JsonProperty(PREC)
  private String prec;

  @JsonProperty(LEN)
  private String len;

  public BitfinexWebSocketSubscriptionMessage(String channel, String pair) {
    this.event = "subscribe";
    this.channel = channel;
    this.pair = pair;
  }

  public BitfinexWebSocketSubscriptionMessage(
      String channel, String pair, String prec, String len) {
    this.event = "subscribe";
    this.channel = channel;
    this.pair = pair;
    this.prec = prec;
    this.len = len;
  }

  public String getEvent() {
    return event;
  }

  public String getChannel() {
    return channel;
  }

  public String getPair() {
    return pair;
  }

  public String getPrec() {
    return prec;
  }

  public String getLen() {
    return len;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy