/**
 * Bybit API
 * ## REST API for the Bybit Exchange. Base URI: [https://api.bybit.com]  
 *
 * OpenAPI spec version: 0.2.10
 * Contact: support@bybit.com
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package io.swagger.client.model;

import java.math.BigDecimal;
import io.swagger.annotations.*;
import com.google.gson.annotations.SerializedName;

/**
 * Get the orderbook response
 **/
@ApiModel(description = "Get the orderbook response")
public class KlineRes {
  
  @SerializedName("symbol")
  private String symbol = null;
  @SerializedName("interval")
  private String interval = null;
  @SerializedName("open_time")
  private BigDecimal openTime = null;
  @SerializedName("open")
  private String open = null;
  @SerializedName("high")
  private String high = null;
  @SerializedName("low")
  private String low = null;
  @SerializedName("close")
  private String close = null;
  @SerializedName("volume")
  private String volume = null;

  /**
   **/
  @ApiModelProperty(value = "")
  public String getSymbol() {
    return symbol;
  }
  public void setSymbol(String symbol) {
    this.symbol = symbol;
  }

  /**
   **/
  @ApiModelProperty(value = "")
  public String getInterval() {
    return interval;
  }
  public void setInterval(String interval) {
    this.interval = interval;
  }

  /**
   **/
  @ApiModelProperty(value = "")
  public BigDecimal getOpenTime() {
    return openTime;
  }
  public void setOpenTime(BigDecimal openTime) {
    this.openTime = openTime;
  }

  /**
   **/
  @ApiModelProperty(value = "")
  public String getOpen() {
    return open;
  }
  public void setOpen(String open) {
    this.open = open;
  }

  /**
   **/
  @ApiModelProperty(value = "")
  public String getHigh() {
    return high;
  }
  public void setHigh(String high) {
    this.high = high;
  }

  /**
   **/
  @ApiModelProperty(value = "")
  public String getLow() {
    return low;
  }
  public void setLow(String low) {
    this.low = low;
  }

  /**
   **/
  @ApiModelProperty(value = "")
  public String getClose() {
    return close;
  }
  public void setClose(String close) {
    this.close = close;
  }

  /**
   **/
  @ApiModelProperty(value = "")
  public String getVolume() {
    return volume;
  }
  public void setVolume(String volume) {
    this.volume = volume;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    KlineRes klineRes = (KlineRes) o;
    return (this.symbol == null ? klineRes.symbol == null : this.symbol.equals(klineRes.symbol)) &&
        (this.interval == null ? klineRes.interval == null : this.interval.equals(klineRes.interval)) &&
        (this.openTime == null ? klineRes.openTime == null : this.openTime.equals(klineRes.openTime)) &&
        (this.open == null ? klineRes.open == null : this.open.equals(klineRes.open)) &&
        (this.high == null ? klineRes.high == null : this.high.equals(klineRes.high)) &&
        (this.low == null ? klineRes.low == null : this.low.equals(klineRes.low)) &&
        (this.close == null ? klineRes.close == null : this.close.equals(klineRes.close)) &&
        (this.volume == null ? klineRes.volume == null : this.volume.equals(klineRes.volume));
  }

  @Override
  public int hashCode() {
    int result = 17;
    result = 31 * result + (this.symbol == null ? 0: this.symbol.hashCode());
    result = 31 * result + (this.interval == null ? 0: this.interval.hashCode());
    result = 31 * result + (this.openTime == null ? 0: this.openTime.hashCode());
    result = 31 * result + (this.open == null ? 0: this.open.hashCode());
    result = 31 * result + (this.high == null ? 0: this.high.hashCode());
    result = 31 * result + (this.low == null ? 0: this.low.hashCode());
    result = 31 * result + (this.close == null ? 0: this.close.hashCode());
    result = 31 * result + (this.volume == null ? 0: this.volume.hashCode());
    return result;
  }

  @Override
  public String toString()  {
    StringBuilder sb = new StringBuilder();
    sb.append("class KlineRes {\n");
    
    sb.append("  symbol: ").append(symbol).append("\n");
    sb.append("  interval: ").append(interval).append("\n");
    sb.append("  openTime: ").append(openTime).append("\n");
    sb.append("  open: ").append(open).append("\n");
    sb.append("  high: ").append(high).append("\n");
    sb.append("  low: ").append(low).append("\n");
    sb.append("  close: ").append(close).append("\n");
    sb.append("  volume: ").append(volume).append("\n");
    sb.append("}\n");
    return sb.toString();
  }
}
