class HitbtcWebSocketOrderBookTransaction extends HitbtcWebSocketBaseTransaction {

  private static final String ORDERBOOK_METHOD_UPDATE = "updateOrderbook";
  private HitbtcWebSocketOrderBookParams params;

  public HitbtcWebSocketOrderBookTransaction(
      @JsonProperty("method") String method,
      @JsonProperty("params") HitbtcWebSocketOrderBookParams params) {
    super(method);
    this.params = params;
  }

  public HitbtcWebSocketOrderBookParams getParams() {
    return params;
  }

  public HitbtcWebSocketOrderBook toHitbtcOrderBook(HitbtcWebSocketOrderBook orderbook) {<FILL_FUNCTION_BODY>}
}

    if (method.equals(ORDERBOOK_METHOD_UPDATE)) {
      orderbook.updateOrderBook(this);
      return orderbook;
    }
    return new HitbtcWebSocketOrderBook(this);
  
<methods>public void <init>(java.lang.String) ,public java.lang.String getMethod() <variables>protected final non-sealed java.lang.String method