|
| 1 | +/* |
| 2 | + * GoPlus Security API Document |
| 3 | + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) |
| 4 | + * |
| 5 | + * OpenAPI spec version: 1.0 |
| 6 | + * |
| 7 | + * |
| 8 | + * NOTE: This class is auto generated by the swagger code generator program. |
| 9 | + * https://github.com/swagger-api/swagger-codegen.git |
| 10 | + * Do not edit the class manually. |
| 11 | + */ |
| 12 | + |
| 13 | +package io.gopluslabs.client.model; |
| 14 | + |
| 15 | +import java.util.Objects; |
| 16 | +import java.util.Arrays; |
| 17 | +import com.google.gson.TypeAdapter; |
| 18 | +import com.google.gson.annotations.JsonAdapter; |
| 19 | +import com.google.gson.annotations.SerializedName; |
| 20 | +import com.google.gson.stream.JsonReader; |
| 21 | +import com.google.gson.stream.JsonWriter; |
| 22 | +import io.gopluslabs.client.model.ResponseWrapperSolanaTokenSecurityLockedDetail; |
| 23 | +import io.swagger.v3.oas.annotations.media.Schema; |
| 24 | +import java.io.IOException; |
| 25 | +import java.util.ArrayList; |
| 26 | +import java.util.List; |
| 27 | +/** |
| 28 | + * ResponseWrapperSolanaTokenSecurityHolders |
| 29 | + */ |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +public class ResponseWrapperSolanaTokenSecurityHolders { |
| 34 | + @SerializedName("is_locked") |
| 35 | + private Integer isLocked = null; |
| 36 | + |
| 37 | + @SerializedName("balance") |
| 38 | + private String balance = null; |
| 39 | + |
| 40 | + @SerializedName("locked_detail") |
| 41 | + private List<ResponseWrapperSolanaTokenSecurityLockedDetail> lockedDetail = null; |
| 42 | + |
| 43 | + @SerializedName("token_account") |
| 44 | + private String tokenAccount = null; |
| 45 | + |
| 46 | + @SerializedName("tag") |
| 47 | + private String tag = null; |
| 48 | + |
| 49 | + @SerializedName("percent") |
| 50 | + private String percent = null; |
| 51 | + |
| 52 | + public ResponseWrapperSolanaTokenSecurityHolders isLocked(Integer isLocked) { |
| 53 | + this.isLocked = isLocked; |
| 54 | + return this; |
| 55 | + } |
| 56 | + |
| 57 | + /** |
| 58 | + * It describes whether the tokens owned by the holder are locked \"1\" means true; \"0\" means false; (3) 'tag' describes the address's public tag. Example:Burn (Notice:About \"locked\":We only support the token lock addresses or black hole addresses that we have included. ) |
| 59 | + * @return isLocked |
| 60 | + **/ |
| 61 | + @Schema(description = "It describes whether the tokens owned by the holder are locked \"1\" means true; \"0\" means false; (3) 'tag' describes the address's public tag. Example:Burn (Notice:About \"locked\":We only support the token lock addresses or black hole addresses that we have included. )") |
| 62 | + public Integer getIsLocked() { |
| 63 | + return isLocked; |
| 64 | + } |
| 65 | + |
| 66 | + public void setIsLocked(Integer isLocked) { |
| 67 | + this.isLocked = isLocked; |
| 68 | + } |
| 69 | + |
| 70 | + public ResponseWrapperSolanaTokenSecurityHolders balance(String balance) { |
| 71 | + this.balance = balance; |
| 72 | + return this; |
| 73 | + } |
| 74 | + |
| 75 | + /** |
| 76 | + * Amount of tokens held. |
| 77 | + * @return balance |
| 78 | + **/ |
| 79 | + @Schema(description = "Amount of tokens held.") |
| 80 | + public String getBalance() { |
| 81 | + return balance; |
| 82 | + } |
| 83 | + |
| 84 | + public void setBalance(String balance) { |
| 85 | + this.balance = balance; |
| 86 | + } |
| 87 | + |
| 88 | + public ResponseWrapperSolanaTokenSecurityHolders lockedDetail(List<ResponseWrapperSolanaTokenSecurityLockedDetail> lockedDetail) { |
| 89 | + this.lockedDetail = lockedDetail; |
| 90 | + return this; |
| 91 | + } |
| 92 | + |
| 93 | + public ResponseWrapperSolanaTokenSecurityHolders addLockedDetailItem(ResponseWrapperSolanaTokenSecurityLockedDetail lockedDetailItem) { |
| 94 | + if (this.lockedDetail == null) { |
| 95 | + this.lockedDetail = new ArrayList<ResponseWrapperSolanaTokenSecurityLockedDetail>(); |
| 96 | + } |
| 97 | + this.lockedDetail.add(lockedDetailItem); |
| 98 | + return this; |
| 99 | + } |
| 100 | + |
| 101 | + /** |
| 102 | + * It is an array, decribes lock position info of this holder, only shows when \"locked\":1. This Array may contain multiple objects for multiple locking info. (Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.) |
| 103 | + * @return lockedDetail |
| 104 | + **/ |
| 105 | + @Schema(description = "It is an array, decribes lock position info of this holder, only shows when \"locked\":1. This Array may contain multiple objects for multiple locking info. (Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.)") |
| 106 | + public List<ResponseWrapperSolanaTokenSecurityLockedDetail> getLockedDetail() { |
| 107 | + return lockedDetail; |
| 108 | + } |
| 109 | + |
| 110 | + public void setLockedDetail(List<ResponseWrapperSolanaTokenSecurityLockedDetail> lockedDetail) { |
| 111 | + this.lockedDetail = lockedDetail; |
| 112 | + } |
| 113 | + |
| 114 | + public ResponseWrapperSolanaTokenSecurityHolders tokenAccount(String tokenAccount) { |
| 115 | + this.tokenAccount = tokenAccount; |
| 116 | + return this; |
| 117 | + } |
| 118 | + |
| 119 | + /** |
| 120 | + * Address of the holder. |
| 121 | + * @return tokenAccount |
| 122 | + **/ |
| 123 | + @Schema(description = "Address of the holder.") |
| 124 | + public String getTokenAccount() { |
| 125 | + return tokenAccount; |
| 126 | + } |
| 127 | + |
| 128 | + public void setTokenAccount(String tokenAccount) { |
| 129 | + this.tokenAccount = tokenAccount; |
| 130 | + } |
| 131 | + |
| 132 | + public ResponseWrapperSolanaTokenSecurityHolders tag(String tag) { |
| 133 | + this.tag = tag; |
| 134 | + return this; |
| 135 | + } |
| 136 | + |
| 137 | + /** |
| 138 | + * Tag information of the holder. |
| 139 | + * @return tag |
| 140 | + **/ |
| 141 | + @Schema(description = "Tag information of the holder.") |
| 142 | + public String getTag() { |
| 143 | + return tag; |
| 144 | + } |
| 145 | + |
| 146 | + public void setTag(String tag) { |
| 147 | + this.tag = tag; |
| 148 | + } |
| 149 | + |
| 150 | + public ResponseWrapperSolanaTokenSecurityHolders percent(String percent) { |
| 151 | + this.percent = percent; |
| 152 | + return this; |
| 153 | + } |
| 154 | + |
| 155 | + /** |
| 156 | + * Percentage of total supply held. |
| 157 | + * @return percent |
| 158 | + **/ |
| 159 | + @Schema(description = "Percentage of total supply held.") |
| 160 | + public String getPercent() { |
| 161 | + return percent; |
| 162 | + } |
| 163 | + |
| 164 | + public void setPercent(String percent) { |
| 165 | + this.percent = percent; |
| 166 | + } |
| 167 | + |
| 168 | + |
| 169 | + @Override |
| 170 | + public boolean equals(java.lang.Object o) { |
| 171 | + if (this == o) { |
| 172 | + return true; |
| 173 | + } |
| 174 | + if (o == null || getClass() != o.getClass()) { |
| 175 | + return false; |
| 176 | + } |
| 177 | + ResponseWrapperSolanaTokenSecurityHolders responseWrapperSolanaTokenSecurityHolders = (ResponseWrapperSolanaTokenSecurityHolders) o; |
| 178 | + return Objects.equals(this.isLocked, responseWrapperSolanaTokenSecurityHolders.isLocked) && |
| 179 | + Objects.equals(this.balance, responseWrapperSolanaTokenSecurityHolders.balance) && |
| 180 | + Objects.equals(this.lockedDetail, responseWrapperSolanaTokenSecurityHolders.lockedDetail) && |
| 181 | + Objects.equals(this.tokenAccount, responseWrapperSolanaTokenSecurityHolders.tokenAccount) && |
| 182 | + Objects.equals(this.tag, responseWrapperSolanaTokenSecurityHolders.tag) && |
| 183 | + Objects.equals(this.percent, responseWrapperSolanaTokenSecurityHolders.percent); |
| 184 | + } |
| 185 | + |
| 186 | + @Override |
| 187 | + public int hashCode() { |
| 188 | + return Objects.hash(isLocked, balance, lockedDetail, tokenAccount, tag, percent); |
| 189 | + } |
| 190 | + |
| 191 | + |
| 192 | + @Override |
| 193 | + public String toString() { |
| 194 | + StringBuilder sb = new StringBuilder(); |
| 195 | + sb.append("class ResponseWrapperSolanaTokenSecurityHolders {\n"); |
| 196 | + |
| 197 | + sb.append(" isLocked: ").append(toIndentedString(isLocked)).append("\n"); |
| 198 | + sb.append(" balance: ").append(toIndentedString(balance)).append("\n"); |
| 199 | + sb.append(" lockedDetail: ").append(toIndentedString(lockedDetail)).append("\n"); |
| 200 | + sb.append(" tokenAccount: ").append(toIndentedString(tokenAccount)).append("\n"); |
| 201 | + sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); |
| 202 | + sb.append(" percent: ").append(toIndentedString(percent)).append("\n"); |
| 203 | + sb.append("}"); |
| 204 | + return sb.toString(); |
| 205 | + } |
| 206 | + |
| 207 | + /** |
| 208 | + * Convert the given object to string with each line indented by 4 spaces |
| 209 | + * (except the first line). |
| 210 | + */ |
| 211 | + private String toIndentedString(java.lang.Object o) { |
| 212 | + if (o == null) { |
| 213 | + return "null"; |
| 214 | + } |
| 215 | + return o.toString().replace("\n", "\n "); |
| 216 | + } |
| 217 | + |
| 218 | +} |
0 commit comments