KoubeiCateringPosDishbatchDeleteResponse.py 837 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class KoubeiCateringPosDishbatchDeleteResponse(AlipayResponse):
  6. def __init__(self):
  7. super(KoubeiCateringPosDishbatchDeleteResponse, self).__init__()
  8. self._dish_ids = None
  9. @property
  10. def dish_ids(self):
  11. return self._dish_ids
  12. @dish_ids.setter
  13. def dish_ids(self, value):
  14. if isinstance(value, list):
  15. self._dish_ids = list()
  16. for i in value:
  17. self._dish_ids.append(i)
  18. def parse_response_content(self, response_content):
  19. response = super(KoubeiCateringPosDishbatchDeleteResponse, self).parse_response_content(response_content)
  20. if 'dish_ids' in response:
  21. self.dish_ids = response['dish_ids']