AlipayBossCsChannelQueryModel.py 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayBossCsChannelQueryModel(object):
  6. def __init__(self):
  7. self._att = None
  8. self._connectionrate = None
  9. self._curragentsloggedin = None
  10. self._curragenttalking = None
  11. self._currentnotreadyagents = None
  12. self._currentreadyagents = None
  13. self._currnumberwaitingcalls = None
  14. self._endkey = None
  15. self._startkey = None
  16. self._visitorinflow = None
  17. self._visitorresponse = None
  18. self._visitorresponsetransfer = None
  19. @property
  20. def att(self):
  21. return self._att
  22. @att.setter
  23. def att(self, value):
  24. self._att = value
  25. @property
  26. def connectionrate(self):
  27. return self._connectionrate
  28. @connectionrate.setter
  29. def connectionrate(self, value):
  30. self._connectionrate = value
  31. @property
  32. def curragentsloggedin(self):
  33. return self._curragentsloggedin
  34. @curragentsloggedin.setter
  35. def curragentsloggedin(self, value):
  36. self._curragentsloggedin = value
  37. @property
  38. def curragenttalking(self):
  39. return self._curragenttalking
  40. @curragenttalking.setter
  41. def curragenttalking(self, value):
  42. self._curragenttalking = value
  43. @property
  44. def currentnotreadyagents(self):
  45. return self._currentnotreadyagents
  46. @currentnotreadyagents.setter
  47. def currentnotreadyagents(self, value):
  48. self._currentnotreadyagents = value
  49. @property
  50. def currentreadyagents(self):
  51. return self._currentreadyagents
  52. @currentreadyagents.setter
  53. def currentreadyagents(self, value):
  54. self._currentreadyagents = value
  55. @property
  56. def currnumberwaitingcalls(self):
  57. return self._currnumberwaitingcalls
  58. @currnumberwaitingcalls.setter
  59. def currnumberwaitingcalls(self, value):
  60. self._currnumberwaitingcalls = value
  61. @property
  62. def endkey(self):
  63. return self._endkey
  64. @endkey.setter
  65. def endkey(self, value):
  66. self._endkey = value
  67. @property
  68. def startkey(self):
  69. return self._startkey
  70. @startkey.setter
  71. def startkey(self, value):
  72. self._startkey = value
  73. @property
  74. def visitorinflow(self):
  75. return self._visitorinflow
  76. @visitorinflow.setter
  77. def visitorinflow(self, value):
  78. self._visitorinflow = value
  79. @property
  80. def visitorresponse(self):
  81. return self._visitorresponse
  82. @visitorresponse.setter
  83. def visitorresponse(self, value):
  84. self._visitorresponse = value
  85. @property
  86. def visitorresponsetransfer(self):
  87. return self._visitorresponsetransfer
  88. @visitorresponsetransfer.setter
  89. def visitorresponsetransfer(self, value):
  90. self._visitorresponsetransfer = value
  91. def to_alipay_dict(self):
  92. params = dict()
  93. if self.att:
  94. if hasattr(self.att, 'to_alipay_dict'):
  95. params['att'] = self.att.to_alipay_dict()
  96. else:
  97. params['att'] = self.att
  98. if self.connectionrate:
  99. if hasattr(self.connectionrate, 'to_alipay_dict'):
  100. params['connectionrate'] = self.connectionrate.to_alipay_dict()
  101. else:
  102. params['connectionrate'] = self.connectionrate
  103. if self.curragentsloggedin:
  104. if hasattr(self.curragentsloggedin, 'to_alipay_dict'):
  105. params['curragentsloggedin'] = self.curragentsloggedin.to_alipay_dict()
  106. else:
  107. params['curragentsloggedin'] = self.curragentsloggedin
  108. if self.curragenttalking:
  109. if hasattr(self.curragenttalking, 'to_alipay_dict'):
  110. params['curragenttalking'] = self.curragenttalking.to_alipay_dict()
  111. else:
  112. params['curragenttalking'] = self.curragenttalking
  113. if self.currentnotreadyagents:
  114. if hasattr(self.currentnotreadyagents, 'to_alipay_dict'):
  115. params['currentnotreadyagents'] = self.currentnotreadyagents.to_alipay_dict()
  116. else:
  117. params['currentnotreadyagents'] = self.currentnotreadyagents
  118. if self.currentreadyagents:
  119. if hasattr(self.currentreadyagents, 'to_alipay_dict'):
  120. params['currentreadyagents'] = self.currentreadyagents.to_alipay_dict()
  121. else:
  122. params['currentreadyagents'] = self.currentreadyagents
  123. if self.currnumberwaitingcalls:
  124. if hasattr(self.currnumberwaitingcalls, 'to_alipay_dict'):
  125. params['currnumberwaitingcalls'] = self.currnumberwaitingcalls.to_alipay_dict()
  126. else:
  127. params['currnumberwaitingcalls'] = self.currnumberwaitingcalls
  128. if self.endkey:
  129. if hasattr(self.endkey, 'to_alipay_dict'):
  130. params['endkey'] = self.endkey.to_alipay_dict()
  131. else:
  132. params['endkey'] = self.endkey
  133. if self.startkey:
  134. if hasattr(self.startkey, 'to_alipay_dict'):
  135. params['startkey'] = self.startkey.to_alipay_dict()
  136. else:
  137. params['startkey'] = self.startkey
  138. if self.visitorinflow:
  139. if hasattr(self.visitorinflow, 'to_alipay_dict'):
  140. params['visitorinflow'] = self.visitorinflow.to_alipay_dict()
  141. else:
  142. params['visitorinflow'] = self.visitorinflow
  143. if self.visitorresponse:
  144. if hasattr(self.visitorresponse, 'to_alipay_dict'):
  145. params['visitorresponse'] = self.visitorresponse.to_alipay_dict()
  146. else:
  147. params['visitorresponse'] = self.visitorresponse
  148. if self.visitorresponsetransfer:
  149. if hasattr(self.visitorresponsetransfer, 'to_alipay_dict'):
  150. params['visitorresponsetransfer'] = self.visitorresponsetransfer.to_alipay_dict()
  151. else:
  152. params['visitorresponsetransfer'] = self.visitorresponsetransfer
  153. return params
  154. @staticmethod
  155. def from_alipay_dict(d):
  156. if not d:
  157. return None
  158. o = AlipayBossCsChannelQueryModel()
  159. if 'att' in d:
  160. o.att = d['att']
  161. if 'connectionrate' in d:
  162. o.connectionrate = d['connectionrate']
  163. if 'curragentsloggedin' in d:
  164. o.curragentsloggedin = d['curragentsloggedin']
  165. if 'curragenttalking' in d:
  166. o.curragenttalking = d['curragenttalking']
  167. if 'currentnotreadyagents' in d:
  168. o.currentnotreadyagents = d['currentnotreadyagents']
  169. if 'currentreadyagents' in d:
  170. o.currentreadyagents = d['currentreadyagents']
  171. if 'currnumberwaitingcalls' in d:
  172. o.currnumberwaitingcalls = d['currnumberwaitingcalls']
  173. if 'endkey' in d:
  174. o.endkey = d['endkey']
  175. if 'startkey' in d:
  176. o.startkey = d['startkey']
  177. if 'visitorinflow' in d:
  178. o.visitorinflow = d['visitorinflow']
  179. if 'visitorresponse' in d:
  180. o.visitorresponse = d['visitorresponse']
  181. if 'visitorresponsetransfer' in d:
  182. o.visitorresponsetransfer = d['visitorresponsetransfer']
  183. return o