KoubeiCateringTablecodeQueryResponse.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class KoubeiCateringTablecodeQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(KoubeiCateringTablecodeQueryResponse, self).__init__()
  8. self._code_flag = None
  9. self._shop_id = None
  10. self._table_num = None
  11. @property
  12. def code_flag(self):
  13. return self._code_flag
  14. @code_flag.setter
  15. def code_flag(self, value):
  16. self._code_flag = value
  17. @property
  18. def shop_id(self):
  19. return self._shop_id
  20. @shop_id.setter
  21. def shop_id(self, value):
  22. self._shop_id = value
  23. @property
  24. def table_num(self):
  25. return self._table_num
  26. @table_num.setter
  27. def table_num(self, value):
  28. self._table_num = value
  29. def parse_response_content(self, response_content):
  30. response = super(KoubeiCateringTablecodeQueryResponse, self).parse_response_content(response_content)
  31. if 'code_flag' in response:
  32. self.code_flag = response['code_flag']
  33. if 'shop_id' in response:
  34. self.shop_id = response['shop_id']
  35. if 'table_num' in response:
  36. self.table_num = response['table_num']