AlipayDataPrinterStatusGetResponse.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayDataPrinterStatusGetResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayDataPrinterStatusGetResponse, self).__init__()
  8. self._code = None
  9. self._data = None
  10. self._message = None
  11. self._status = None
  12. @property
  13. def code(self):
  14. return self._code
  15. @code.setter
  16. def code(self, value):
  17. self._code = value
  18. @property
  19. def data(self):
  20. return self._data
  21. @data.setter
  22. def data(self, value):
  23. self._data = value
  24. @property
  25. def message(self):
  26. return self._message
  27. @message.setter
  28. def message(self, value):
  29. self._message = value
  30. @property
  31. def status(self):
  32. return self._status
  33. @status.setter
  34. def status(self, value):
  35. self._status = value
  36. def parse_response_content(self, response_content):
  37. response = super(AlipayDataPrinterStatusGetResponse, self).parse_response_content(response_content)
  38. if 'code' in response:
  39. self.code = response['code']
  40. if 'data' in response:
  41. self.data = response['data']
  42. if 'message' in response:
  43. self.message = response['message']
  44. if 'status' in response:
  45. self.status = response['status']