|
| 1 | +# coding: utf-8 |
| 2 | + |
| 3 | +""" |
| 4 | + GoPlus Security API Document |
| 5 | +
|
| 6 | + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 |
| 7 | +
|
| 8 | + OpenAPI spec version: 1.0 |
| 9 | + |
| 10 | + Generated by: https://github.com/swagger-api/swagger-codegen.git |
| 11 | +""" |
| 12 | + |
| 13 | +import pprint |
| 14 | +import re # noqa: F401 |
| 15 | + |
| 16 | +import six |
| 17 | + |
| 18 | +class ResponseWrapperSolanaTokenSecurityHolders(object): |
| 19 | + """NOTE: This class is auto generated by the swagger code generator program. |
| 20 | +
|
| 21 | + Do not edit the class manually. |
| 22 | + """ |
| 23 | + """ |
| 24 | + Attributes: |
| 25 | + swagger_types (dict): The key is attribute name |
| 26 | + and the value is attribute type. |
| 27 | + attribute_map (dict): The key is attribute name |
| 28 | + and the value is json key in definition. |
| 29 | + """ |
| 30 | + swagger_types = { |
| 31 | + 'is_locked': 'int', |
| 32 | + 'balance': 'str', |
| 33 | + 'locked_detail': 'list[ResponseWrapperSolanaTokenSecurityLockedDetail]', |
| 34 | + 'token_account': 'str', |
| 35 | + 'tag': 'str', |
| 36 | + 'percent': 'str' |
| 37 | + } |
| 38 | + |
| 39 | + attribute_map = { |
| 40 | + 'is_locked': 'is_locked', |
| 41 | + 'balance': 'balance', |
| 42 | + 'locked_detail': 'locked_detail', |
| 43 | + 'token_account': 'token_account', |
| 44 | + 'tag': 'tag', |
| 45 | + 'percent': 'percent' |
| 46 | + } |
| 47 | + |
| 48 | + def __init__(self, is_locked=None, balance=None, locked_detail=None, token_account=None, tag=None, percent=None): # noqa: E501 |
| 49 | + """ResponseWrapperSolanaTokenSecurityHolders - a model defined in Swagger""" # noqa: E501 |
| 50 | + self._is_locked = None |
| 51 | + self._balance = None |
| 52 | + self._locked_detail = None |
| 53 | + self._token_account = None |
| 54 | + self._tag = None |
| 55 | + self._percent = None |
| 56 | + self.discriminator = None |
| 57 | + if is_locked is not None: |
| 58 | + self.is_locked = is_locked |
| 59 | + if balance is not None: |
| 60 | + self.balance = balance |
| 61 | + if locked_detail is not None: |
| 62 | + self.locked_detail = locked_detail |
| 63 | + if token_account is not None: |
| 64 | + self.token_account = token_account |
| 65 | + if tag is not None: |
| 66 | + self.tag = tag |
| 67 | + if percent is not None: |
| 68 | + self.percent = percent |
| 69 | + |
| 70 | + @property |
| 71 | + def is_locked(self): |
| 72 | + """Gets the is_locked of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 73 | +
|
| 74 | + 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. ) # noqa: E501 |
| 75 | +
|
| 76 | + :return: The is_locked of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 77 | + :rtype: int |
| 78 | + """ |
| 79 | + return self._is_locked |
| 80 | + |
| 81 | + @is_locked.setter |
| 82 | + def is_locked(self, is_locked): |
| 83 | + """Sets the is_locked of this ResponseWrapperSolanaTokenSecurityHolders. |
| 84 | +
|
| 85 | + 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. ) # noqa: E501 |
| 86 | +
|
| 87 | + :param is_locked: The is_locked of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 88 | + :type: int |
| 89 | + """ |
| 90 | + |
| 91 | + self._is_locked = is_locked |
| 92 | + |
| 93 | + @property |
| 94 | + def balance(self): |
| 95 | + """Gets the balance of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 96 | +
|
| 97 | + Amount of tokens held. # noqa: E501 |
| 98 | +
|
| 99 | + :return: The balance of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 100 | + :rtype: str |
| 101 | + """ |
| 102 | + return self._balance |
| 103 | + |
| 104 | + @balance.setter |
| 105 | + def balance(self, balance): |
| 106 | + """Sets the balance of this ResponseWrapperSolanaTokenSecurityHolders. |
| 107 | +
|
| 108 | + Amount of tokens held. # noqa: E501 |
| 109 | +
|
| 110 | + :param balance: The balance of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 111 | + :type: str |
| 112 | + """ |
| 113 | + |
| 114 | + self._balance = balance |
| 115 | + |
| 116 | + @property |
| 117 | + def locked_detail(self): |
| 118 | + """Gets the locked_detail of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 119 | +
|
| 120 | + 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.) # noqa: E501 |
| 121 | +
|
| 122 | + :return: The locked_detail of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 123 | + :rtype: list[ResponseWrapperSolanaTokenSecurityLockedDetail] |
| 124 | + """ |
| 125 | + return self._locked_detail |
| 126 | + |
| 127 | + @locked_detail.setter |
| 128 | + def locked_detail(self, locked_detail): |
| 129 | + """Sets the locked_detail of this ResponseWrapperSolanaTokenSecurityHolders. |
| 130 | +
|
| 131 | + 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.) # noqa: E501 |
| 132 | +
|
| 133 | + :param locked_detail: The locked_detail of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 134 | + :type: list[ResponseWrapperSolanaTokenSecurityLockedDetail] |
| 135 | + """ |
| 136 | + |
| 137 | + self._locked_detail = locked_detail |
| 138 | + |
| 139 | + @property |
| 140 | + def token_account(self): |
| 141 | + """Gets the token_account of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 142 | +
|
| 143 | + Address of the holder. # noqa: E501 |
| 144 | +
|
| 145 | + :return: The token_account of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 146 | + :rtype: str |
| 147 | + """ |
| 148 | + return self._token_account |
| 149 | + |
| 150 | + @token_account.setter |
| 151 | + def token_account(self, token_account): |
| 152 | + """Sets the token_account of this ResponseWrapperSolanaTokenSecurityHolders. |
| 153 | +
|
| 154 | + Address of the holder. # noqa: E501 |
| 155 | +
|
| 156 | + :param token_account: The token_account of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 157 | + :type: str |
| 158 | + """ |
| 159 | + |
| 160 | + self._token_account = token_account |
| 161 | + |
| 162 | + @property |
| 163 | + def tag(self): |
| 164 | + """Gets the tag of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 165 | +
|
| 166 | + Tag information of the holder. # noqa: E501 |
| 167 | +
|
| 168 | + :return: The tag of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 169 | + :rtype: str |
| 170 | + """ |
| 171 | + return self._tag |
| 172 | + |
| 173 | + @tag.setter |
| 174 | + def tag(self, tag): |
| 175 | + """Sets the tag of this ResponseWrapperSolanaTokenSecurityHolders. |
| 176 | +
|
| 177 | + Tag information of the holder. # noqa: E501 |
| 178 | +
|
| 179 | + :param tag: The tag of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 180 | + :type: str |
| 181 | + """ |
| 182 | + |
| 183 | + self._tag = tag |
| 184 | + |
| 185 | + @property |
| 186 | + def percent(self): |
| 187 | + """Gets the percent of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 188 | +
|
| 189 | + Percentage of total supply held. # noqa: E501 |
| 190 | +
|
| 191 | + :return: The percent of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 192 | + :rtype: str |
| 193 | + """ |
| 194 | + return self._percent |
| 195 | + |
| 196 | + @percent.setter |
| 197 | + def percent(self, percent): |
| 198 | + """Sets the percent of this ResponseWrapperSolanaTokenSecurityHolders. |
| 199 | +
|
| 200 | + Percentage of total supply held. # noqa: E501 |
| 201 | +
|
| 202 | + :param percent: The percent of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501 |
| 203 | + :type: str |
| 204 | + """ |
| 205 | + |
| 206 | + self._percent = percent |
| 207 | + |
| 208 | + def to_dict(self): |
| 209 | + """Returns the model properties as a dict""" |
| 210 | + result = {} |
| 211 | + |
| 212 | + for attr, _ in six.iteritems(self.swagger_types): |
| 213 | + value = getattr(self, attr) |
| 214 | + if isinstance(value, list): |
| 215 | + result[attr] = list(map( |
| 216 | + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, |
| 217 | + value |
| 218 | + )) |
| 219 | + elif hasattr(value, "to_dict"): |
| 220 | + result[attr] = value.to_dict() |
| 221 | + elif isinstance(value, dict): |
| 222 | + result[attr] = dict(map( |
| 223 | + lambda item: (item[0], item[1].to_dict()) |
| 224 | + if hasattr(item[1], "to_dict") else item, |
| 225 | + value.items() |
| 226 | + )) |
| 227 | + else: |
| 228 | + result[attr] = value |
| 229 | + if issubclass(ResponseWrapperSolanaTokenSecurityHolders, dict): |
| 230 | + for key, value in self.items(): |
| 231 | + result[key] = value |
| 232 | + |
| 233 | + return result |
| 234 | + |
| 235 | + def to_str(self): |
| 236 | + """Returns the string representation of the model""" |
| 237 | + return pprint.pformat(self.to_dict()) |
| 238 | + |
| 239 | + def __repr__(self): |
| 240 | + """For `print` and `pprint`""" |
| 241 | + return self.to_str() |
| 242 | + |
| 243 | + def __eq__(self, other): |
| 244 | + """Returns true if both objects are equal""" |
| 245 | + if not isinstance(other, ResponseWrapperSolanaTokenSecurityHolders): |
| 246 | + return False |
| 247 | + |
| 248 | + return self.__dict__ == other.__dict__ |
| 249 | + |
| 250 | + def __ne__(self, other): |
| 251 | + """Returns true if both objects are not equal""" |
| 252 | + return not self == other |
0 commit comments