AlipayMsaasMediarecogVoiceMediaaudioUploadModel.py 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayMsaasMediarecogVoiceMediaaudioUploadModel(object):
  6. def __init__(self):
  7. self._data = None
  8. self._extinfo_a = None
  9. self._extinfo_b = None
  10. self._extinfo_c = None
  11. self._extinfo_d = None
  12. self._labeltime = None
  13. self._vname = None
  14. self._vtype = None
  15. @property
  16. def data(self):
  17. return self._data
  18. @data.setter
  19. def data(self, value):
  20. self._data = value
  21. @property
  22. def extinfo_a(self):
  23. return self._extinfo_a
  24. @extinfo_a.setter
  25. def extinfo_a(self, value):
  26. self._extinfo_a = value
  27. @property
  28. def extinfo_b(self):
  29. return self._extinfo_b
  30. @extinfo_b.setter
  31. def extinfo_b(self, value):
  32. self._extinfo_b = value
  33. @property
  34. def extinfo_c(self):
  35. return self._extinfo_c
  36. @extinfo_c.setter
  37. def extinfo_c(self, value):
  38. self._extinfo_c = value
  39. @property
  40. def extinfo_d(self):
  41. return self._extinfo_d
  42. @extinfo_d.setter
  43. def extinfo_d(self, value):
  44. self._extinfo_d = value
  45. @property
  46. def labeltime(self):
  47. return self._labeltime
  48. @labeltime.setter
  49. def labeltime(self, value):
  50. self._labeltime = value
  51. @property
  52. def vname(self):
  53. return self._vname
  54. @vname.setter
  55. def vname(self, value):
  56. self._vname = value
  57. @property
  58. def vtype(self):
  59. return self._vtype
  60. @vtype.setter
  61. def vtype(self, value):
  62. self._vtype = value
  63. def to_alipay_dict(self):
  64. params = dict()
  65. if self.data:
  66. if hasattr(self.data, 'to_alipay_dict'):
  67. params['data'] = self.data.to_alipay_dict()
  68. else:
  69. params['data'] = self.data
  70. if self.extinfo_a:
  71. if hasattr(self.extinfo_a, 'to_alipay_dict'):
  72. params['extinfo_a'] = self.extinfo_a.to_alipay_dict()
  73. else:
  74. params['extinfo_a'] = self.extinfo_a
  75. if self.extinfo_b:
  76. if hasattr(self.extinfo_b, 'to_alipay_dict'):
  77. params['extinfo_b'] = self.extinfo_b.to_alipay_dict()
  78. else:
  79. params['extinfo_b'] = self.extinfo_b
  80. if self.extinfo_c:
  81. if hasattr(self.extinfo_c, 'to_alipay_dict'):
  82. params['extinfo_c'] = self.extinfo_c.to_alipay_dict()
  83. else:
  84. params['extinfo_c'] = self.extinfo_c
  85. if self.extinfo_d:
  86. if hasattr(self.extinfo_d, 'to_alipay_dict'):
  87. params['extinfo_d'] = self.extinfo_d.to_alipay_dict()
  88. else:
  89. params['extinfo_d'] = self.extinfo_d
  90. if self.labeltime:
  91. if hasattr(self.labeltime, 'to_alipay_dict'):
  92. params['labeltime'] = self.labeltime.to_alipay_dict()
  93. else:
  94. params['labeltime'] = self.labeltime
  95. if self.vname:
  96. if hasattr(self.vname, 'to_alipay_dict'):
  97. params['vname'] = self.vname.to_alipay_dict()
  98. else:
  99. params['vname'] = self.vname
  100. if self.vtype:
  101. if hasattr(self.vtype, 'to_alipay_dict'):
  102. params['vtype'] = self.vtype.to_alipay_dict()
  103. else:
  104. params['vtype'] = self.vtype
  105. return params
  106. @staticmethod
  107. def from_alipay_dict(d):
  108. if not d:
  109. return None
  110. o = AlipayMsaasMediarecogVoiceMediaaudioUploadModel()
  111. if 'data' in d:
  112. o.data = d['data']
  113. if 'extinfo_a' in d:
  114. o.extinfo_a = d['extinfo_a']
  115. if 'extinfo_b' in d:
  116. o.extinfo_b = d['extinfo_b']
  117. if 'extinfo_c' in d:
  118. o.extinfo_c = d['extinfo_c']
  119. if 'extinfo_d' in d:
  120. o.extinfo_d = d['extinfo_d']
  121. if 'labeltime' in d:
  122. o.labeltime = d['labeltime']
  123. if 'vname' in d:
  124. o.vname = d['vname']
  125. if 'vtype' in d:
  126. o.vtype = d['vtype']
  127. return o