123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class AnttechDataServiceBlockchainAccountQueryModel(object):
- def __init__(self):
- self._account_hash = None
- self._account_status = None
- self._at_tenant_name = None
- self._block_chain_id = None
- self._block_hash = None
- self._end_timestamp = None
- self._page_no = None
- self._page_size = None
- self._start_timestamp = None
- @property
- def account_hash(self):
- return self._account_hash
- @account_hash.setter
- def account_hash(self, value):
- self._account_hash = value
- @property
- def account_status(self):
- return self._account_status
- @account_status.setter
- def account_status(self, value):
- self._account_status = value
- @property
- def at_tenant_name(self):
- return self._at_tenant_name
- @at_tenant_name.setter
- def at_tenant_name(self, value):
- self._at_tenant_name = value
- @property
- def block_chain_id(self):
- return self._block_chain_id
- @block_chain_id.setter
- def block_chain_id(self, value):
- self._block_chain_id = value
- @property
- def block_hash(self):
- return self._block_hash
- @block_hash.setter
- def block_hash(self, value):
- self._block_hash = value
- @property
- def end_timestamp(self):
- return self._end_timestamp
- @end_timestamp.setter
- def end_timestamp(self, value):
- self._end_timestamp = value
- @property
- def page_no(self):
- return self._page_no
- @page_no.setter
- def page_no(self, value):
- self._page_no = value
- @property
- def page_size(self):
- return self._page_size
- @page_size.setter
- def page_size(self, value):
- self._page_size = value
- @property
- def start_timestamp(self):
- return self._start_timestamp
- @start_timestamp.setter
- def start_timestamp(self, value):
- self._start_timestamp = value
- def to_alipay_dict(self):
- params = dict()
- if self.account_hash:
- if hasattr(self.account_hash, 'to_alipay_dict'):
- params['account_hash'] = self.account_hash.to_alipay_dict()
- else:
- params['account_hash'] = self.account_hash
- if self.account_status:
- if hasattr(self.account_status, 'to_alipay_dict'):
- params['account_status'] = self.account_status.to_alipay_dict()
- else:
- params['account_status'] = self.account_status
- if self.at_tenant_name:
- if hasattr(self.at_tenant_name, 'to_alipay_dict'):
- params['at_tenant_name'] = self.at_tenant_name.to_alipay_dict()
- else:
- params['at_tenant_name'] = self.at_tenant_name
- if self.block_chain_id:
- if hasattr(self.block_chain_id, 'to_alipay_dict'):
- params['block_chain_id'] = self.block_chain_id.to_alipay_dict()
- else:
- params['block_chain_id'] = self.block_chain_id
- if self.block_hash:
- if hasattr(self.block_hash, 'to_alipay_dict'):
- params['block_hash'] = self.block_hash.to_alipay_dict()
- else:
- params['block_hash'] = self.block_hash
- if self.end_timestamp:
- if hasattr(self.end_timestamp, 'to_alipay_dict'):
- params['end_timestamp'] = self.end_timestamp.to_alipay_dict()
- else:
- params['end_timestamp'] = self.end_timestamp
- if self.page_no:
- if hasattr(self.page_no, 'to_alipay_dict'):
- params['page_no'] = self.page_no.to_alipay_dict()
- else:
- params['page_no'] = self.page_no
- if self.page_size:
- if hasattr(self.page_size, 'to_alipay_dict'):
- params['page_size'] = self.page_size.to_alipay_dict()
- else:
- params['page_size'] = self.page_size
- if self.start_timestamp:
- if hasattr(self.start_timestamp, 'to_alipay_dict'):
- params['start_timestamp'] = self.start_timestamp.to_alipay_dict()
- else:
- params['start_timestamp'] = self.start_timestamp
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = AnttechDataServiceBlockchainAccountQueryModel()
- if 'account_hash' in d:
- o.account_hash = d['account_hash']
- if 'account_status' in d:
- o.account_status = d['account_status']
- if 'at_tenant_name' in d:
- o.at_tenant_name = d['at_tenant_name']
- if 'block_chain_id' in d:
- o.block_chain_id = d['block_chain_id']
- if 'block_hash' in d:
- o.block_hash = d['block_hash']
- if 'end_timestamp' in d:
- o.end_timestamp = d['end_timestamp']
- if 'page_no' in d:
- o.page_no = d['page_no']
- if 'page_size' in d:
- o.page_size = d['page_size']
- if 'start_timestamp' in d:
- o.start_timestamp = d['start_timestamp']
- return o
|