KoubeiContentContentstatusModifyModel.py 2.2 KB

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