/**
 * 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 io.swagger.annotations.*;
import com.google.gson.annotations.SerializedName;

@ApiModel(description = "")
public class AccountRatioInfo {
  
  @SerializedName("buy_ratio")
  private Integer buyRatio = null;
  @SerializedName("sell_ratio")
  private Integer sellRatio = null;
  @SerializedName("timestamp")
  private Integer timestamp = null;
  @SerializedName("symbol")
  private String symbol = null;

  /**
   **/
  @ApiModelProperty(value = "")
  public Integer getBuyRatio() {
    return buyRatio;
  }
  public void setBuyRatio(Integer buyRatio) {
    this.buyRatio = buyRatio;
  }

  /**
   **/
  @ApiModelProperty(value = "")
  public Integer getSellRatio() {
    return sellRatio;
  }
  public void setSellRatio(Integer sellRatio) {
    this.sellRatio = sellRatio;
  }

  /**
   **/
  @ApiModelProperty(value = "")
  public Integer getTimestamp() {
    return timestamp;
  }
  public void setTimestamp(Integer timestamp) {
    this.timestamp = timestamp;
  }

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


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AccountRatioInfo accountRatioInfo = (AccountRatioInfo) o;
    return (this.buyRatio == null ? accountRatioInfo.buyRatio == null : this.buyRatio.equals(accountRatioInfo.buyRatio)) &&
        (this.sellRatio == null ? accountRatioInfo.sellRatio == null : this.sellRatio.equals(accountRatioInfo.sellRatio)) &&
        (this.timestamp == null ? accountRatioInfo.timestamp == null : this.timestamp.equals(accountRatioInfo.timestamp)) &&
        (this.symbol == null ? accountRatioInfo.symbol == null : this.symbol.equals(accountRatioInfo.symbol));
  }

  @Override
  public int hashCode() {
    int result = 17;
    result = 31 * result + (this.buyRatio == null ? 0: this.buyRatio.hashCode());
    result = 31 * result + (this.sellRatio == null ? 0: this.sellRatio.hashCode());
    result = 31 * result + (this.timestamp == null ? 0: this.timestamp.hashCode());
    result = 31 * result + (this.symbol == null ? 0: this.symbol.hashCode());
    return result;
  }

  @Override
  public String toString()  {
    StringBuilder sb = new StringBuilder();
    sb.append("class AccountRatioInfo {\n");
    
    sb.append("  buyRatio: ").append(buyRatio).append("\n");
    sb.append("  sellRatio: ").append(sellRatio).append("\n");
    sb.append("  timestamp: ").append(timestamp).append("\n");
    sb.append("  symbol: ").append(symbol).append("\n");
    sb.append("}\n");
    return sb.toString();
  }
}
