|
| 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 |
0 commit comments