/**
 * 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 last funding fee
 **/
@ApiModel(description = "Get the last funding fee")
public class FundingFeeRes {
  
  @SerializedName("symbol")
  private String symbol = null;
  @SerializedName("side")
  private String side = null;
  @SerializedName("size")
  private BigDecimal size = null;
  @SerializedName("funding_rate")
  private String fundingRate = null;
  @SerializedName("exec_fee")
  private Double execFee = null;
  @SerializedName("exec_timestamp")
  private BigDecimal execTimestamp = null;

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

  /**
   **/
  @ApiModelProperty(value = "")
  public String getSide() {
    return side;
  }
  public void setSide(String side) {
    this.side = side;
  }

  /**
   **/
  @ApiModelProperty(value = "")
  public BigDecimal getSize() {
    return size;
  }
  public void setSize(BigDecimal size) {
    this.size = size;
  }

  /**
   **/
  @ApiModelProperty(value = "")
  public String getFundingRate() {
    return fundingRate;
  }
  public void setFundingRate(String fundingRate) {
    this.fundingRate = fundingRate;
  }

  /**
   **/
  @ApiModelProperty(value = "")
  public Double getExecFee() {
    return execFee;
  }
  public void setExecFee(Double execFee) {
    this.execFee = execFee;
  }

  /**
   **/
  @ApiModelProperty(value = "")
  public BigDecimal getExecTimestamp() {
    return execTimestamp;
  }
  public void setExecTimestamp(BigDecimal execTimestamp) {
    this.execTimestamp = execTimestamp;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FundingFeeRes fundingFeeRes = (FundingFeeRes) o;
    return (this.symbol == null ? fundingFeeRes.symbol == null : this.symbol.equals(fundingFeeRes.symbol)) &&
        (this.side == null ? fundingFeeRes.side == null : this.side.equals(fundingFeeRes.side)) &&
        (this.size == null ? fundingFeeRes.size == null : this.size.equals(fundingFeeRes.size)) &&
        (this.fundingRate == null ? fundingFeeRes.fundingRate == null : this.fundingRate.equals(fundingFeeRes.fundingRate)) &&
        (this.execFee == null ? fundingFeeRes.execFee == null : this.execFee.equals(fundingFeeRes.execFee)) &&
        (this.execTimestamp == null ? fundingFeeRes.execTimestamp == null : this.execTimestamp.equals(fundingFeeRes.execTimestamp));
  }

  @Override
  public int hashCode() {
    int result = 17;
    result = 31 * result + (this.symbol == null ? 0: this.symbol.hashCode());
    result = 31 * result + (this.side == null ? 0: this.side.hashCode());
    result = 31 * result + (this.size == null ? 0: this.size.hashCode());
    result = 31 * result + (this.fundingRate == null ? 0: this.fundingRate.hashCode());
    result = 31 * result + (this.execFee == null ? 0: this.execFee.hashCode());
    result = 31 * result + (this.execTimestamp == null ? 0: this.execTimestamp.hashCode());
    return result;
  }

  @Override
  public String toString()  {
    StringBuilder sb = new StringBuilder();
    sb.append("class FundingFeeRes {\n");
    
    sb.append("  symbol: ").append(symbol).append("\n");
    sb.append("  side: ").append(side).append("\n");
    sb.append("  size: ").append(size).append("\n");
    sb.append("  fundingRate: ").append(fundingRate).append("\n");
    sb.append("  execFee: ").append(execFee).append("\n");
    sb.append("  execTimestamp: ").append(execTimestamp).append("\n");
    sb.append("}\n");
    return sb.toString();
  }
}
