150 lines
3.3 KiB
Python
150 lines
3.3 KiB
Python
# coding: utf-8
|
|
|
|
from __future__ import absolute_import
|
|
from datetime import date, datetime # noqa: F401
|
|
|
|
from typing import List, Dict # noqa: F401
|
|
|
|
from cic_eth.server.models.base_model_ import Model
|
|
from cic_eth.server import util
|
|
|
|
|
|
class Token(Model):
|
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
|
|
Do not edit the class manually.
|
|
"""
|
|
|
|
def __init__(self, symbol: str = None, address: str = None, name: str = None, decimals: str = None):
|
|
"""Token - a model defined in Swagger
|
|
|
|
:param symbol: The symbol of this Token.
|
|
:type symbol: str
|
|
:param address: The address of this Token.
|
|
:type address: str
|
|
:param name: The name of this Token.
|
|
:type name: str
|
|
:param decimals: The decimals of this Token.
|
|
:type decimals: str
|
|
"""
|
|
self.swagger_types = {
|
|
'symbol': str,
|
|
'address': str,
|
|
'name': str,
|
|
'decimals': str
|
|
}
|
|
|
|
self.attribute_map = {
|
|
'symbol': 'symbol',
|
|
'address': 'address',
|
|
'name': 'name',
|
|
'decimals': 'decimals'
|
|
}
|
|
self._symbol = symbol
|
|
self._address = address
|
|
self._name = name
|
|
self._decimals = decimals
|
|
|
|
@classmethod
|
|
def from_dict(cls, dikt) -> 'Token':
|
|
"""Returns the dict as a model
|
|
|
|
:param dikt: A dict.
|
|
:type: dict
|
|
:return: The Token of this Token.
|
|
:rtype: Token
|
|
"""
|
|
return util.deserialize_model(dikt, cls)
|
|
|
|
@property
|
|
def symbol(self) -> str:
|
|
"""Gets the symbol of this Token.
|
|
|
|
Token Symbol
|
|
|
|
:return: The symbol of this Token.
|
|
:rtype: str
|
|
"""
|
|
return self._symbol
|
|
|
|
@symbol.setter
|
|
def symbol(self, symbol: str):
|
|
"""Sets the symbol of this Token.
|
|
|
|
Token Symbol
|
|
|
|
:param symbol: The symbol of this Token.
|
|
:type symbol: str
|
|
"""
|
|
|
|
self._symbol = symbol
|
|
|
|
@property
|
|
def address(self) -> str:
|
|
"""Gets the address of this Token.
|
|
|
|
Token Address
|
|
|
|
:return: The address of this Token.
|
|
:rtype: str
|
|
"""
|
|
return self._address
|
|
|
|
@address.setter
|
|
def address(self, address: str):
|
|
"""Sets the address of this Token.
|
|
|
|
Token Address
|
|
|
|
:param address: The address of this Token.
|
|
:type address: str
|
|
"""
|
|
|
|
self._address = address
|
|
|
|
@property
|
|
def name(self) -> str:
|
|
"""Gets the name of this Token.
|
|
|
|
Token Name
|
|
|
|
:return: The name of this Token.
|
|
:rtype: str
|
|
"""
|
|
return self._name
|
|
|
|
@name.setter
|
|
def name(self, name: str):
|
|
"""Sets the name of this Token.
|
|
|
|
Token Name
|
|
|
|
:param name: The name of this Token.
|
|
:type name: str
|
|
"""
|
|
|
|
self._name = name
|
|
|
|
@property
|
|
def decimals(self) -> str:
|
|
"""Gets the decimals of this Token.
|
|
|
|
Decimals
|
|
|
|
:return: The decimals of this Token.
|
|
:rtype: str
|
|
"""
|
|
return self._decimals
|
|
|
|
@decimals.setter
|
|
def decimals(self, decimals: str):
|
|
"""Sets the decimals of this Token.
|
|
|
|
Decimals
|
|
|
|
:param decimals: The decimals of this Token.
|
|
:type decimals: str
|
|
"""
|
|
|
|
self._decimals = decimals
|