AlipayMsaasMediarecogMmtcaftscvPicvideoQueryModel.py 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayMsaasMediarecogMmtcaftscvPicvideoQueryModel(object):
  6. def __init__(self):
  7. self._request_id = None
  8. self._transaction_id = None
  9. self._type = None
  10. self._video_detail = None
  11. @property
  12. def request_id(self):
  13. return self._request_id
  14. @request_id.setter
  15. def request_id(self, value):
  16. self._request_id = value
  17. @property
  18. def transaction_id(self):
  19. return self._transaction_id
  20. @transaction_id.setter
  21. def transaction_id(self, value):
  22. self._transaction_id = value
  23. @property
  24. def type(self):
  25. return self._type
  26. @type.setter
  27. def type(self, value):
  28. self._type = value
  29. @property
  30. def video_detail(self):
  31. return self._video_detail
  32. @video_detail.setter
  33. def video_detail(self, value):
  34. self._video_detail = value
  35. def to_alipay_dict(self):
  36. params = dict()
  37. if self.request_id:
  38. if hasattr(self.request_id, 'to_alipay_dict'):
  39. params['request_id'] = self.request_id.to_alipay_dict()
  40. else:
  41. params['request_id'] = self.request_id
  42. if self.transaction_id:
  43. if hasattr(self.transaction_id, 'to_alipay_dict'):
  44. params['transaction_id'] = self.transaction_id.to_alipay_dict()
  45. else:
  46. params['transaction_id'] = self.transaction_id
  47. if self.type:
  48. if hasattr(self.type, 'to_alipay_dict'):
  49. params['type'] = self.type.to_alipay_dict()
  50. else:
  51. params['type'] = self.type
  52. if self.video_detail:
  53. if hasattr(self.video_detail, 'to_alipay_dict'):
  54. params['video_detail'] = self.video_detail.to_alipay_dict()
  55. else:
  56. params['video_detail'] = self.video_detail
  57. return params
  58. @staticmethod
  59. def from_alipay_dict(d):
  60. if not d:
  61. return None
  62. o = AlipayMsaasMediarecogMmtcaftscvPicvideoQueryModel()
  63. if 'request_id' in d:
  64. o.request_id = d['request_id']
  65. if 'transaction_id' in d:
  66. o.transaction_id = d['transaction_id']
  67. if 'type' in d:
  68. o.type = d['type']
  69. if 'video_detail' in d:
  70. o.video_detail = d['video_detail']
  71. return o