123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class AlipayEcoMycarDialogonlineAnswerPushModel(object):
- def __init__(self):
- self._answer_content = None
- self._answer_id = None
- self._answer_logo = None
- self._answer_name = None
- self._answer_pic = None
- self._answer_time = None
- self._answer_type = None
- self._content_type = None
- self._question_id = None
- @property
- def answer_content(self):
- return self._answer_content
- @answer_content.setter
- def answer_content(self, value):
- self._answer_content = value
- @property
- def answer_id(self):
- return self._answer_id
- @answer_id.setter
- def answer_id(self, value):
- self._answer_id = value
- @property
- def answer_logo(self):
- return self._answer_logo
- @answer_logo.setter
- def answer_logo(self, value):
- self._answer_logo = value
- @property
- def answer_name(self):
- return self._answer_name
- @answer_name.setter
- def answer_name(self, value):
- self._answer_name = value
- @property
- def answer_pic(self):
- return self._answer_pic
- @answer_pic.setter
- def answer_pic(self, value):
- self._answer_pic = value
- @property
- def answer_time(self):
- return self._answer_time
- @answer_time.setter
- def answer_time(self, value):
- self._answer_time = value
- @property
- def answer_type(self):
- return self._answer_type
- @answer_type.setter
- def answer_type(self, value):
- self._answer_type = value
- @property
- def content_type(self):
- return self._content_type
- @content_type.setter
- def content_type(self, value):
- self._content_type = value
- @property
- def question_id(self):
- return self._question_id
- @question_id.setter
- def question_id(self, value):
- self._question_id = value
- def to_alipay_dict(self):
- params = dict()
- if self.answer_content:
- if hasattr(self.answer_content, 'to_alipay_dict'):
- params['answer_content'] = self.answer_content.to_alipay_dict()
- else:
- params['answer_content'] = self.answer_content
- if self.answer_id:
- if hasattr(self.answer_id, 'to_alipay_dict'):
- params['answer_id'] = self.answer_id.to_alipay_dict()
- else:
- params['answer_id'] = self.answer_id
- if self.answer_logo:
- if hasattr(self.answer_logo, 'to_alipay_dict'):
- params['answer_logo'] = self.answer_logo.to_alipay_dict()
- else:
- params['answer_logo'] = self.answer_logo
- if self.answer_name:
- if hasattr(self.answer_name, 'to_alipay_dict'):
- params['answer_name'] = self.answer_name.to_alipay_dict()
- else:
- params['answer_name'] = self.answer_name
- if self.answer_pic:
- if hasattr(self.answer_pic, 'to_alipay_dict'):
- params['answer_pic'] = self.answer_pic.to_alipay_dict()
- else:
- params['answer_pic'] = self.answer_pic
- if self.answer_time:
- if hasattr(self.answer_time, 'to_alipay_dict'):
- params['answer_time'] = self.answer_time.to_alipay_dict()
- else:
- params['answer_time'] = self.answer_time
- if self.answer_type:
- if hasattr(self.answer_type, 'to_alipay_dict'):
- params['answer_type'] = self.answer_type.to_alipay_dict()
- else:
- params['answer_type'] = self.answer_type
- if self.content_type:
- if hasattr(self.content_type, 'to_alipay_dict'):
- params['content_type'] = self.content_type.to_alipay_dict()
- else:
- params['content_type'] = self.content_type
- if self.question_id:
- if hasattr(self.question_id, 'to_alipay_dict'):
- params['question_id'] = self.question_id.to_alipay_dict()
- else:
- params['question_id'] = self.question_id
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = AlipayEcoMycarDialogonlineAnswerPushModel()
- if 'answer_content' in d:
- o.answer_content = d['answer_content']
- if 'answer_id' in d:
- o.answer_id = d['answer_id']
- if 'answer_logo' in d:
- o.answer_logo = d['answer_logo']
- if 'answer_name' in d:
- o.answer_name = d['answer_name']
- if 'answer_pic' in d:
- o.answer_pic = d['answer_pic']
- if 'answer_time' in d:
- o.answer_time = d['answer_time']
- if 'answer_type' in d:
- o.answer_type = d['answer_type']
- if 'content_type' in d:
- o.content_type = d['content_type']
- if 'question_id' in d:
- o.question_id = d['question_id']
- return o
|