AlipayBossCsChannelQueryResponse.py 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayBossCsChannelQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayBossCsChannelQueryResponse, self).__init__()
  8. self._att = None
  9. self._comment = None
  10. self._connection_rate = None
  11. self._curr_agent_talking = None
  12. self._curr_agents_logged_in = None
  13. self._curr_number_waiting_calls = None
  14. self._current_not_ready_agents = None
  15. self._current_ready_agents = None
  16. self._row_key = None
  17. self._visitor_inflow = None
  18. self._visitor_response = None
  19. self._visitor_response_transfer = None
  20. @property
  21. def att(self):
  22. return self._att
  23. @att.setter
  24. def att(self, value):
  25. self._att = value
  26. @property
  27. def comment(self):
  28. return self._comment
  29. @comment.setter
  30. def comment(self, value):
  31. self._comment = value
  32. @property
  33. def connection_rate(self):
  34. return self._connection_rate
  35. @connection_rate.setter
  36. def connection_rate(self, value):
  37. self._connection_rate = value
  38. @property
  39. def curr_agent_talking(self):
  40. return self._curr_agent_talking
  41. @curr_agent_talking.setter
  42. def curr_agent_talking(self, value):
  43. self._curr_agent_talking = value
  44. @property
  45. def curr_agents_logged_in(self):
  46. return self._curr_agents_logged_in
  47. @curr_agents_logged_in.setter
  48. def curr_agents_logged_in(self, value):
  49. self._curr_agents_logged_in = value
  50. @property
  51. def curr_number_waiting_calls(self):
  52. return self._curr_number_waiting_calls
  53. @curr_number_waiting_calls.setter
  54. def curr_number_waiting_calls(self, value):
  55. self._curr_number_waiting_calls = value
  56. @property
  57. def current_not_ready_agents(self):
  58. return self._current_not_ready_agents
  59. @current_not_ready_agents.setter
  60. def current_not_ready_agents(self, value):
  61. self._current_not_ready_agents = value
  62. @property
  63. def current_ready_agents(self):
  64. return self._current_ready_agents
  65. @current_ready_agents.setter
  66. def current_ready_agents(self, value):
  67. self._current_ready_agents = value
  68. @property
  69. def row_key(self):
  70. return self._row_key
  71. @row_key.setter
  72. def row_key(self, value):
  73. self._row_key = value
  74. @property
  75. def visitor_inflow(self):
  76. return self._visitor_inflow
  77. @visitor_inflow.setter
  78. def visitor_inflow(self, value):
  79. self._visitor_inflow = value
  80. @property
  81. def visitor_response(self):
  82. return self._visitor_response
  83. @visitor_response.setter
  84. def visitor_response(self, value):
  85. self._visitor_response = value
  86. @property
  87. def visitor_response_transfer(self):
  88. return self._visitor_response_transfer
  89. @visitor_response_transfer.setter
  90. def visitor_response_transfer(self, value):
  91. self._visitor_response_transfer = value
  92. def parse_response_content(self, response_content):
  93. response = super(AlipayBossCsChannelQueryResponse, self).parse_response_content(response_content)
  94. if 'att' in response:
  95. self.att = response['att']
  96. if 'comment' in response:
  97. self.comment = response['comment']
  98. if 'connection_rate' in response:
  99. self.connection_rate = response['connection_rate']
  100. if 'curr_agent_talking' in response:
  101. self.curr_agent_talking = response['curr_agent_talking']
  102. if 'curr_agents_logged_in' in response:
  103. self.curr_agents_logged_in = response['curr_agents_logged_in']
  104. if 'curr_number_waiting_calls' in response:
  105. self.curr_number_waiting_calls = response['curr_number_waiting_calls']
  106. if 'current_not_ready_agents' in response:
  107. self.current_not_ready_agents = response['current_not_ready_agents']
  108. if 'current_ready_agents' in response:
  109. self.current_ready_agents = response['current_ready_agents']
  110. if 'row_key' in response:
  111. self.row_key = response['row_key']
  112. if 'visitor_inflow' in response:
  113. self.visitor_inflow = response['visitor_inflow']
  114. if 'visitor_response' in response:
  115. self.visitor_response = response['visitor_response']
  116. if 'visitor_response_transfer' in response:
  117. self.visitor_response_transfer = response['visitor_response_transfer']