AlipaySocialBaseContentlibStandardvideoauditSendModel.py 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipaySocialBaseContentlibStandardvideoauditSendModel(object):
  6. def __init__(self):
  7. self._action_type = None
  8. self._ext_info = None
  9. self._reason = None
  10. self._source_publish_date = None
  11. self._video_id = None
  12. self._video_length = None
  13. self._video_publish_type = None
  14. self._video_size = None
  15. self._video_tags = None
  16. self._video_url = None
  17. @property
  18. def action_type(self):
  19. return self._action_type
  20. @action_type.setter
  21. def action_type(self, value):
  22. self._action_type = value
  23. @property
  24. def ext_info(self):
  25. return self._ext_info
  26. @ext_info.setter
  27. def ext_info(self, value):
  28. self._ext_info = value
  29. @property
  30. def reason(self):
  31. return self._reason
  32. @reason.setter
  33. def reason(self, value):
  34. self._reason = value
  35. @property
  36. def source_publish_date(self):
  37. return self._source_publish_date
  38. @source_publish_date.setter
  39. def source_publish_date(self, value):
  40. self._source_publish_date = value
  41. @property
  42. def video_id(self):
  43. return self._video_id
  44. @video_id.setter
  45. def video_id(self, value):
  46. self._video_id = value
  47. @property
  48. def video_length(self):
  49. return self._video_length
  50. @video_length.setter
  51. def video_length(self, value):
  52. self._video_length = value
  53. @property
  54. def video_publish_type(self):
  55. return self._video_publish_type
  56. @video_publish_type.setter
  57. def video_publish_type(self, value):
  58. self._video_publish_type = value
  59. @property
  60. def video_size(self):
  61. return self._video_size
  62. @video_size.setter
  63. def video_size(self, value):
  64. self._video_size = value
  65. @property
  66. def video_tags(self):
  67. return self._video_tags
  68. @video_tags.setter
  69. def video_tags(self, value):
  70. self._video_tags = value
  71. @property
  72. def video_url(self):
  73. return self._video_url
  74. @video_url.setter
  75. def video_url(self, value):
  76. self._video_url = value
  77. def to_alipay_dict(self):
  78. params = dict()
  79. if self.action_type:
  80. if hasattr(self.action_type, 'to_alipay_dict'):
  81. params['action_type'] = self.action_type.to_alipay_dict()
  82. else:
  83. params['action_type'] = self.action_type
  84. if self.ext_info:
  85. if hasattr(self.ext_info, 'to_alipay_dict'):
  86. params['ext_info'] = self.ext_info.to_alipay_dict()
  87. else:
  88. params['ext_info'] = self.ext_info
  89. if self.reason:
  90. if hasattr(self.reason, 'to_alipay_dict'):
  91. params['reason'] = self.reason.to_alipay_dict()
  92. else:
  93. params['reason'] = self.reason
  94. if self.source_publish_date:
  95. if hasattr(self.source_publish_date, 'to_alipay_dict'):
  96. params['source_publish_date'] = self.source_publish_date.to_alipay_dict()
  97. else:
  98. params['source_publish_date'] = self.source_publish_date
  99. if self.video_id:
  100. if hasattr(self.video_id, 'to_alipay_dict'):
  101. params['video_id'] = self.video_id.to_alipay_dict()
  102. else:
  103. params['video_id'] = self.video_id
  104. if self.video_length:
  105. if hasattr(self.video_length, 'to_alipay_dict'):
  106. params['video_length'] = self.video_length.to_alipay_dict()
  107. else:
  108. params['video_length'] = self.video_length
  109. if self.video_publish_type:
  110. if hasattr(self.video_publish_type, 'to_alipay_dict'):
  111. params['video_publish_type'] = self.video_publish_type.to_alipay_dict()
  112. else:
  113. params['video_publish_type'] = self.video_publish_type
  114. if self.video_size:
  115. if hasattr(self.video_size, 'to_alipay_dict'):
  116. params['video_size'] = self.video_size.to_alipay_dict()
  117. else:
  118. params['video_size'] = self.video_size
  119. if self.video_tags:
  120. if hasattr(self.video_tags, 'to_alipay_dict'):
  121. params['video_tags'] = self.video_tags.to_alipay_dict()
  122. else:
  123. params['video_tags'] = self.video_tags
  124. if self.video_url:
  125. if hasattr(self.video_url, 'to_alipay_dict'):
  126. params['video_url'] = self.video_url.to_alipay_dict()
  127. else:
  128. params['video_url'] = self.video_url
  129. return params
  130. @staticmethod
  131. def from_alipay_dict(d):
  132. if not d:
  133. return None
  134. o = AlipaySocialBaseContentlibStandardvideoauditSendModel()
  135. if 'action_type' in d:
  136. o.action_type = d['action_type']
  137. if 'ext_info' in d:
  138. o.ext_info = d['ext_info']
  139. if 'reason' in d:
  140. o.reason = d['reason']
  141. if 'source_publish_date' in d:
  142. o.source_publish_date = d['source_publish_date']
  143. if 'video_id' in d:
  144. o.video_id = d['video_id']
  145. if 'video_length' in d:
  146. o.video_length = d['video_length']
  147. if 'video_publish_type' in d:
  148. o.video_publish_type = d['video_publish_type']
  149. if 'video_size' in d:
  150. o.video_size = d['video_size']
  151. if 'video_tags' in d:
  152. o.video_tags = d['video_tags']
  153. if 'video_url' in d:
  154. o.video_url = d['video_url']
  155. return o