Skip to content

Commit 20347e0

Browse files
authored
Update client code for ee41599ea21797be07c8a827396f6ec00efddd1e (#21)
1 parent b082249 commit 20347e0

File tree

4 files changed

+175
-5
lines changed

4 files changed

+175
-5
lines changed

swagger_client/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
from swagger_client.models.response_wrapper_ta_token_security_response import ResponseWrapperTaTokenSecurityResponse
7878
from swagger_client.models.response_wrapper_token_security import ResponseWrapperTokenSecurity
7979
from swagger_client.models.response_wrapper_token_security_dex import ResponseWrapperTokenSecurityDex
80+
from swagger_client.models.response_wrapper_token_security_locked_detail import ResponseWrapperTokenSecurityLockedDetail
8081
from swagger_client.models.response_wrapper_token_security_lp_holders import ResponseWrapperTokenSecurityLpHolders
8182
from swagger_client.models.response_wrapper_token_security_result import ResponseWrapperTokenSecurityResult
8283
from swagger_client.models.response_wrapperobject import ResponseWrapperobject

swagger_client/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
from swagger_client.models.response_wrapper_ta_token_security_response import ResponseWrapperTaTokenSecurityResponse
6464
from swagger_client.models.response_wrapper_token_security import ResponseWrapperTokenSecurity
6565
from swagger_client.models.response_wrapper_token_security_dex import ResponseWrapperTokenSecurityDex
66+
from swagger_client.models.response_wrapper_token_security_locked_detail import ResponseWrapperTokenSecurityLockedDetail
6667
from swagger_client.models.response_wrapper_token_security_lp_holders import ResponseWrapperTokenSecurityLpHolders
6768
from swagger_client.models.response_wrapper_token_security_result import ResponseWrapperTokenSecurityResult
6869
from swagger_client.models.response_wrapperobject import ResponseWrapperobject
Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
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 ResponseWrapperTokenSecurityLockedDetail(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+
'amount': 'str',
32+
'opt_time': 'str',
33+
'end_time': 'str'
34+
}
35+
36+
attribute_map = {
37+
'amount': 'amount',
38+
'opt_time': 'opt_time',
39+
'end_time': 'end_time'
40+
}
41+
42+
def __init__(self, amount=None, opt_time=None, end_time=None): # noqa: E501
43+
"""ResponseWrapperTokenSecurityLockedDetail - a model defined in Swagger""" # noqa: E501
44+
self._amount = None
45+
self._opt_time = None
46+
self._end_time = None
47+
self.discriminator = None
48+
if amount is not None:
49+
self.amount = amount
50+
if opt_time is not None:
51+
self.opt_time = opt_time
52+
if end_time is not None:
53+
self.end_time = end_time
54+
55+
@property
56+
def amount(self):
57+
"""Gets the amount of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501
58+
59+
\"amount\" describes the number of token locked # noqa: E501
60+
61+
:return: The amount of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501
62+
:rtype: str
63+
"""
64+
return self._amount
65+
66+
@amount.setter
67+
def amount(self, amount):
68+
"""Sets the amount of this ResponseWrapperTokenSecurityLockedDetail.
69+
70+
\"amount\" describes the number of token locked # noqa: E501
71+
72+
:param amount: The amount of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501
73+
:type: str
74+
"""
75+
76+
self._amount = amount
77+
78+
@property
79+
def opt_time(self):
80+
"""Gets the opt_time of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501
81+
82+
\"opt_time\" describes when the token was locked # noqa: E501
83+
84+
:return: The opt_time of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501
85+
:rtype: str
86+
"""
87+
return self._opt_time
88+
89+
@opt_time.setter
90+
def opt_time(self, opt_time):
91+
"""Sets the opt_time of this ResponseWrapperTokenSecurityLockedDetail.
92+
93+
\"opt_time\" describes when the token was locked # noqa: E501
94+
95+
:param opt_time: The opt_time of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501
96+
:type: str
97+
"""
98+
99+
self._opt_time = opt_time
100+
101+
@property
102+
def end_time(self):
103+
"""Gets the end_time of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501
104+
105+
\"end_time\" describes when the token will be unlocked # noqa: E501
106+
107+
:return: The end_time of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501
108+
:rtype: str
109+
"""
110+
return self._end_time
111+
112+
@end_time.setter
113+
def end_time(self, end_time):
114+
"""Sets the end_time of this ResponseWrapperTokenSecurityLockedDetail.
115+
116+
\"end_time\" describes when the token will be unlocked # noqa: E501
117+
118+
:param end_time: The end_time of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501
119+
:type: str
120+
"""
121+
122+
self._end_time = end_time
123+
124+
def to_dict(self):
125+
"""Returns the model properties as a dict"""
126+
result = {}
127+
128+
for attr, _ in six.iteritems(self.swagger_types):
129+
value = getattr(self, attr)
130+
if isinstance(value, list):
131+
result[attr] = list(map(
132+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133+
value
134+
))
135+
elif hasattr(value, "to_dict"):
136+
result[attr] = value.to_dict()
137+
elif isinstance(value, dict):
138+
result[attr] = dict(map(
139+
lambda item: (item[0], item[1].to_dict())
140+
if hasattr(item[1], "to_dict") else item,
141+
value.items()
142+
))
143+
else:
144+
result[attr] = value
145+
if issubclass(ResponseWrapperTokenSecurityLockedDetail, dict):
146+
for key, value in self.items():
147+
result[key] = value
148+
149+
return result
150+
151+
def to_str(self):
152+
"""Returns the string representation of the model"""
153+
return pprint.pformat(self.to_dict())
154+
155+
def __repr__(self):
156+
"""For `print` and `pprint`"""
157+
return self.to_str()
158+
159+
def __eq__(self, other):
160+
"""Returns true if both objects are equal"""
161+
if not isinstance(other, ResponseWrapperTokenSecurityLockedDetail):
162+
return False
163+
164+
return self.__dict__ == other.__dict__
165+
166+
def __ne__(self, other):
167+
"""Returns true if both objects are not equal"""
168+
return not self == other

swagger_client/models/response_wrapper_token_security_lp_holders.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ResponseWrapperTokenSecurityLpHolders(object):
3232
'is_contract': 'int',
3333
'address': 'str',
3434
'balance': 'str',
35-
'locked_detail': 'list[str]',
35+
'locked_detail': 'list[ResponseWrapperTokenSecurityLockedDetail]',
3636
'tag': 'str',
3737
'percent': 'str'
3838
}
@@ -168,21 +168,21 @@ def balance(self, balance):
168168
def locked_detail(self):
169169
"""Gets the locked_detail of this ResponseWrapperTokenSecurityLpHolders. # noqa: E501
170170
171-
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. In every objetc, \"amount\" describes the number of token locked, \"end_time\" describes when the token will be unlocked, \"opt_time\" describes when the token was locked.(Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.) # noqa: E501
171+
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
172172
173173
:return: The locked_detail of this ResponseWrapperTokenSecurityLpHolders. # noqa: E501
174-
:rtype: list[str]
174+
:rtype: list[ResponseWrapperTokenSecurityLockedDetail]
175175
"""
176176
return self._locked_detail
177177

178178
@locked_detail.setter
179179
def locked_detail(self, locked_detail):
180180
"""Sets the locked_detail of this ResponseWrapperTokenSecurityLpHolders.
181181
182-
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. In every objetc, \"amount\" describes the number of token locked, \"end_time\" describes when the token will be unlocked, \"opt_time\" describes when the token was locked.(Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.) # noqa: E501
182+
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
183183
184184
:param locked_detail: The locked_detail of this ResponseWrapperTokenSecurityLpHolders. # noqa: E501
185-
:type: list[str]
185+
:type: list[ResponseWrapperTokenSecurityLockedDetail]
186186
"""
187187

188188
self._locked_detail = locked_detail

0 commit comments

Comments
 (0)