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

io.nem.symbol.sdk.openapi.okhttp_gson.model.ActivityBucketDTO Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
/*
 * Catapult REST Endpoints
 * OpenAPI Specification of catapult-rest 1.1.2
 *
 * The version of the OpenAPI document: 0.9.4
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package io.nem.symbol.sdk.openapi.okhttp_gson.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * Supplementary data stored for importance recalculation. At each importance recalculation, existing buckets are shifted, the working bucket is finalized and a new working bucketis created. Each bucket influences at most five importance recalculations. 
 */
@ApiModel(description = "Supplementary data stored for importance recalculation. At each importance recalculation, existing buckets are shifted, the working bucket is finalized and a new working bucketis created. Each bucket influences at most five importance recalculations. ")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-06-30T14:27:18.729Z[UTC]")
public class ActivityBucketDTO {
  public static final String SERIALIZED_NAME_START_HEIGHT = "startHeight";
  @SerializedName(SERIALIZED_NAME_START_HEIGHT)
  private java.math.BigInteger startHeight = null;

  public static final String SERIALIZED_NAME_TOTAL_FEES_PAID = "totalFeesPaid";
  @SerializedName(SERIALIZED_NAME_TOTAL_FEES_PAID)
  private java.math.BigInteger totalFeesPaid = null;

  public static final String SERIALIZED_NAME_BENEFICIARY_COUNT = "beneficiaryCount";
  @SerializedName(SERIALIZED_NAME_BENEFICIARY_COUNT)
  private Long beneficiaryCount;

  public static final String SERIALIZED_NAME_RAW_SCORE = "rawScore";
  @SerializedName(SERIALIZED_NAME_RAW_SCORE)
  private java.math.BigInteger rawScore = null;


  public ActivityBucketDTO startHeight(java.math.BigInteger startHeight) {
    
    this.startHeight = startHeight;
    return this;
  }

   /**
   * Height of the blockchain.
   * @return startHeight
  **/
  @ApiModelProperty(example = "1", required = true, value = "Height of the blockchain.")

  public java.math.BigInteger getStartHeight() {
    return startHeight;
  }


  public void setStartHeight(java.math.BigInteger startHeight) {
    this.startHeight = startHeight;
  }


  public ActivityBucketDTO totalFeesPaid(java.math.BigInteger totalFeesPaid) {
    
    this.totalFeesPaid = totalFeesPaid;
    return this;
  }

   /**
   * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative).
   * @return totalFeesPaid
  **/
  @ApiModelProperty(example = "123456", required = true, value = "Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative).")

  public java.math.BigInteger getTotalFeesPaid() {
    return totalFeesPaid;
  }


  public void setTotalFeesPaid(java.math.BigInteger totalFeesPaid) {
    this.totalFeesPaid = totalFeesPaid;
  }


  public ActivityBucketDTO beneficiaryCount(Long beneficiaryCount) {
    
    this.beneficiaryCount = beneficiaryCount;
    return this;
  }

   /**
   * A number that allows uint 32 values.
   * @return beneficiaryCount
  **/
  @ApiModelProperty(example = "2222212828", required = true, value = "A number that allows uint 32 values.")

  public Long getBeneficiaryCount() {
    return beneficiaryCount;
  }


  public void setBeneficiaryCount(Long beneficiaryCount) {
    this.beneficiaryCount = beneficiaryCount;
  }


  public ActivityBucketDTO rawScore(java.math.BigInteger rawScore) {
    
    this.rawScore = rawScore;
    return this;
  }

   /**
   * Probability of an account to harvest the next block.
   * @return rawScore
  **/
  @ApiModelProperty(example = "0", required = true, value = "Probability of an account to harvest the next block.")

  public java.math.BigInteger getRawScore() {
    return rawScore;
  }


  public void setRawScore(java.math.BigInteger rawScore) {
    this.rawScore = rawScore;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ActivityBucketDTO activityBucketDTO = (ActivityBucketDTO) o;
    return Objects.equals(this.startHeight, activityBucketDTO.startHeight) &&
        Objects.equals(this.totalFeesPaid, activityBucketDTO.totalFeesPaid) &&
        Objects.equals(this.beneficiaryCount, activityBucketDTO.beneficiaryCount) &&
        Objects.equals(this.rawScore, activityBucketDTO.rawScore);
  }

  @Override
  public int hashCode() {
    return Objects.hash(startHeight, totalFeesPaid, beneficiaryCount, rawScore);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ActivityBucketDTO {\n");
    sb.append("    startHeight: ").append(toIndentedString(startHeight)).append("\n");
    sb.append("    totalFeesPaid: ").append(toIndentedString(totalFeesPaid)).append("\n");
    sb.append("    beneficiaryCount: ").append(toIndentedString(beneficiaryCount)).append("\n");
    sb.append("    rawScore: ").append(toIndentedString(rawScore)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy