AlipayMarketingSharetokenDecodeResponse.py 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayMarketingSharetokenDecodeResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayMarketingSharetokenDecodeResponse, self).__init__()
  8. self._btn_one_name = None
  9. self._btn_one_schema = None
  10. self._btn_two_name = None
  11. self._btn_two_schema = None
  12. self._desc = None
  13. self._icon = None
  14. self._title = None
  15. @property
  16. def btn_one_name(self):
  17. return self._btn_one_name
  18. @btn_one_name.setter
  19. def btn_one_name(self, value):
  20. self._btn_one_name = value
  21. @property
  22. def btn_one_schema(self):
  23. return self._btn_one_schema
  24. @btn_one_schema.setter
  25. def btn_one_schema(self, value):
  26. self._btn_one_schema = value
  27. @property
  28. def btn_two_name(self):
  29. return self._btn_two_name
  30. @btn_two_name.setter
  31. def btn_two_name(self, value):
  32. self._btn_two_name = value
  33. @property
  34. def btn_two_schema(self):
  35. return self._btn_two_schema
  36. @btn_two_schema.setter
  37. def btn_two_schema(self, value):
  38. self._btn_two_schema = value
  39. @property
  40. def desc(self):
  41. return self._desc
  42. @desc.setter
  43. def desc(self, value):
  44. self._desc = value
  45. @property
  46. def icon(self):
  47. return self._icon
  48. @icon.setter
  49. def icon(self, value):
  50. self._icon = value
  51. @property
  52. def title(self):
  53. return self._title
  54. @title.setter
  55. def title(self, value):
  56. self._title = value
  57. def parse_response_content(self, response_content):
  58. response = super(AlipayMarketingSharetokenDecodeResponse, self).parse_response_content(response_content)
  59. if 'btn_one_name' in response:
  60. self.btn_one_name = response['btn_one_name']
  61. if 'btn_one_schema' in response:
  62. self.btn_one_schema = response['btn_one_schema']
  63. if 'btn_two_name' in response:
  64. self.btn_two_name = response['btn_two_name']
  65. if 'btn_two_schema' in response:
  66. self.btn_two_schema = response['btn_two_schema']
  67. if 'desc' in response:
  68. self.desc = response['desc']
  69. if 'icon' in response:
  70. self.icon = response['icon']
  71. if 'title' in response:
  72. self.title = response['title']