Subversion Repositories SmartDukaan

Rev

Rev 4948 | Rev 6104 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4948 Rev 5407
Line 77... Line 77...
77
    Parameters:
77
    Parameters:
78
     - searchFilter
78
     - searchFilter
79
    """
79
    """
80
    pass
80
    pass
81
 
81
 
-
 
82
  def getInactiveAgents(self, searchFilter):
-
 
83
    """
-
 
84
    Parameters:
-
 
85
     - searchFilter
-
 
86
    """
-
 
87
    pass
-
 
88
 
82
  def updatePasswordForAgent(self, agentEmailId, password):
89
  def updatePasswordForAgent(self, agentEmailId, password):
83
    """
90
    """
84
    Parameters:
91
    Parameters:
85
     - agentEmailId
92
     - agentEmailId
86
     - password
93
     - password
Line 125... Line 132...
125
     - agent
132
     - agent
126
     - role
133
     - role
127
    """
134
    """
128
    pass
135
    pass
129
 
136
 
-
 
137
  def changeAgentRole(self, id, role):
-
 
138
    """
-
 
139
    Parameters:
-
 
140
     - id
-
 
141
     - role
-
 
142
    """
-
 
143
    pass
-
 
144
 
-
 
145
  def getOpenTicketCountForAgent(self, agentId):
-
 
146
    """
-
 
147
    Parameters:
-
 
148
     - agentId
-
 
149
    """
-
 
150
    pass
-
 
151
 
130
 
152
 
131
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
153
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
132
  def __init__(self, iprot, oprot=None):
154
  def __init__(self, iprot, oprot=None):
133
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
155
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
134
 
156
 
Line 395... Line 417...
395
    self._iprot.readMessageEnd()
417
    self._iprot.readMessageEnd()
396
    if result.success is not None:
418
    if result.success is not None:
397
      return result.success
419
      return result.success
398
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
420
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
399
 
421
 
-
 
422
  def getInactiveAgents(self, searchFilter):
-
 
423
    """
-
 
424
    Parameters:
-
 
425
     - searchFilter
-
 
426
    """
-
 
427
    self.send_getInactiveAgents(searchFilter)
-
 
428
    return self.recv_getInactiveAgents()
-
 
429
 
-
 
430
  def send_getInactiveAgents(self, searchFilter):
-
 
431
    self._oprot.writeMessageBegin('getInactiveAgents', TMessageType.CALL, self._seqid)
-
 
432
    args = getInactiveAgents_args()
-
 
433
    args.searchFilter = searchFilter
-
 
434
    args.write(self._oprot)
-
 
435
    self._oprot.writeMessageEnd()
-
 
436
    self._oprot.trans.flush()
-
 
437
 
-
 
438
  def recv_getInactiveAgents(self, ):
-
 
439
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
440
    if mtype == TMessageType.EXCEPTION:
-
 
441
      x = TApplicationException()
-
 
442
      x.read(self._iprot)
-
 
443
      self._iprot.readMessageEnd()
-
 
444
      raise x
-
 
445
    result = getInactiveAgents_result()
-
 
446
    result.read(self._iprot)
-
 
447
    self._iprot.readMessageEnd()
-
 
448
    if result.success is not None:
-
 
449
      return result.success
-
 
450
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInactiveAgents failed: unknown result");
-
 
451
 
400
  def updatePasswordForAgent(self, agentEmailId, password):
452
  def updatePasswordForAgent(self, agentEmailId, password):
401
    """
453
    """
402
    Parameters:
454
    Parameters:
403
     - agentEmailId
455
     - agentEmailId
404
     - password
456
     - password
Line 598... Line 650...
598
    result = insertAgent_result()
650
    result = insertAgent_result()
599
    result.read(self._iprot)
651
    result.read(self._iprot)
600
    self._iprot.readMessageEnd()
652
    self._iprot.readMessageEnd()
601
    return
653
    return
602
 
654
 
-
 
655
  def changeAgentRole(self, id, role):
-
 
656
    """
-
 
657
    Parameters:
-
 
658
     - id
-
 
659
     - role
-
 
660
    """
-
 
661
    self.send_changeAgentRole(id, role)
-
 
662
    self.recv_changeAgentRole()
-
 
663
 
-
 
664
  def send_changeAgentRole(self, id, role):
-
 
665
    self._oprot.writeMessageBegin('changeAgentRole', TMessageType.CALL, self._seqid)
-
 
666
    args = changeAgentRole_args()
-
 
667
    args.id = id
-
 
668
    args.role = role
-
 
669
    args.write(self._oprot)
-
 
670
    self._oprot.writeMessageEnd()
-
 
671
    self._oprot.trans.flush()
-
 
672
 
-
 
673
  def recv_changeAgentRole(self, ):
-
 
674
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
675
    if mtype == TMessageType.EXCEPTION:
-
 
676
      x = TApplicationException()
-
 
677
      x.read(self._iprot)
-
 
678
      self._iprot.readMessageEnd()
-
 
679
      raise x
-
 
680
    result = changeAgentRole_result()
-
 
681
    result.read(self._iprot)
-
 
682
    self._iprot.readMessageEnd()
-
 
683
    return
-
 
684
 
-
 
685
  def getOpenTicketCountForAgent(self, agentId):
-
 
686
    """
-
 
687
    Parameters:
-
 
688
     - agentId
-
 
689
    """
-
 
690
    self.send_getOpenTicketCountForAgent(agentId)
-
 
691
    return self.recv_getOpenTicketCountForAgent()
-
 
692
 
-
 
693
  def send_getOpenTicketCountForAgent(self, agentId):
-
 
694
    self._oprot.writeMessageBegin('getOpenTicketCountForAgent', TMessageType.CALL, self._seqid)
-
 
695
    args = getOpenTicketCountForAgent_args()
-
 
696
    args.agentId = agentId
-
 
697
    args.write(self._oprot)
-
 
698
    self._oprot.writeMessageEnd()
-
 
699
    self._oprot.trans.flush()
-
 
700
 
-
 
701
  def recv_getOpenTicketCountForAgent(self, ):
-
 
702
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
703
    if mtype == TMessageType.EXCEPTION:
-
 
704
      x = TApplicationException()
-
 
705
      x.read(self._iprot)
-
 
706
      self._iprot.readMessageEnd()
-
 
707
      raise x
-
 
708
    result = getOpenTicketCountForAgent_result()
-
 
709
    result.read(self._iprot)
-
 
710
    self._iprot.readMessageEnd()
-
 
711
    if result.success is not None:
-
 
712
      return result.success
-
 
713
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOpenTicketCountForAgent failed: unknown result");
-
 
714
 
603
 
715
 
604
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
716
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
605
  def __init__(self, handler):
717
  def __init__(self, handler):
606
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
718
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
607
    self._processMap["getTickets"] = Processor.process_getTickets
719
    self._processMap["getTickets"] = Processor.process_getTickets
Line 611... Line 723...
611
    self._processMap["unassignAgentTickets"] = Processor.process_unassignAgentTickets
723
    self._processMap["unassignAgentTickets"] = Processor.process_unassignAgentTickets
612
    self._processMap["getActivities"] = Processor.process_getActivities
724
    self._processMap["getActivities"] = Processor.process_getActivities
613
    self._processMap["insertActivity"] = Processor.process_insertActivity
725
    self._processMap["insertActivity"] = Processor.process_insertActivity
614
    self._processMap["markAsRead"] = Processor.process_markAsRead
726
    self._processMap["markAsRead"] = Processor.process_markAsRead
615
    self._processMap["getAgents"] = Processor.process_getAgents
727
    self._processMap["getAgents"] = Processor.process_getAgents
-
 
728
    self._processMap["getInactiveAgents"] = Processor.process_getInactiveAgents
616
    self._processMap["updatePasswordForAgent"] = Processor.process_updatePasswordForAgent
729
    self._processMap["updatePasswordForAgent"] = Processor.process_updatePasswordForAgent
617
    self._processMap["getRoleNamesForAgent"] = Processor.process_getRoleNamesForAgent
730
    self._processMap["getRoleNamesForAgent"] = Processor.process_getRoleNamesForAgent
618
    self._processMap["getPermissionsForRoleName"] = Processor.process_getPermissionsForRoleName
731
    self._processMap["getPermissionsForRoleName"] = Processor.process_getPermissionsForRoleName
619
    self._processMap["getLastEmailProcessedTimestamp"] = Processor.process_getLastEmailProcessedTimestamp
732
    self._processMap["getLastEmailProcessedTimestamp"] = Processor.process_getLastEmailProcessedTimestamp
620
    self._processMap["updateLastEmailProcessedTimestamp"] = Processor.process_updateLastEmailProcessedTimestamp
733
    self._processMap["updateLastEmailProcessedTimestamp"] = Processor.process_updateLastEmailProcessedTimestamp
621
    self._processMap["changeAgentStatus"] = Processor.process_changeAgentStatus
734
    self._processMap["changeAgentStatus"] = Processor.process_changeAgentStatus
622
    self._processMap["insertAgent"] = Processor.process_insertAgent
735
    self._processMap["insertAgent"] = Processor.process_insertAgent
-
 
736
    self._processMap["changeAgentRole"] = Processor.process_changeAgentRole
-
 
737
    self._processMap["getOpenTicketCountForAgent"] = Processor.process_getOpenTicketCountForAgent
623
 
738
 
624
  def process(self, iprot, oprot):
739
  def process(self, iprot, oprot):
625
    (name, type, seqid) = iprot.readMessageBegin()
740
    (name, type, seqid) = iprot.readMessageBegin()
626
    if name not in self._processMap:
741
    if name not in self._processMap:
627
      iprot.skip(TType.STRUCT)
742
      iprot.skip(TType.STRUCT)
Line 733... Line 848...
733
    oprot.writeMessageBegin("getAgents", TMessageType.REPLY, seqid)
848
    oprot.writeMessageBegin("getAgents", TMessageType.REPLY, seqid)
734
    result.write(oprot)
849
    result.write(oprot)
735
    oprot.writeMessageEnd()
850
    oprot.writeMessageEnd()
736
    oprot.trans.flush()
851
    oprot.trans.flush()
737
 
852
 
-
 
853
  def process_getInactiveAgents(self, seqid, iprot, oprot):
-
 
854
    args = getInactiveAgents_args()
-
 
855
    args.read(iprot)
-
 
856
    iprot.readMessageEnd()
-
 
857
    result = getInactiveAgents_result()
-
 
858
    result.success = self._handler.getInactiveAgents(args.searchFilter)
-
 
859
    oprot.writeMessageBegin("getInactiveAgents", TMessageType.REPLY, seqid)
-
 
860
    result.write(oprot)
-
 
861
    oprot.writeMessageEnd()
-
 
862
    oprot.trans.flush()
-
 
863
 
738
  def process_updatePasswordForAgent(self, seqid, iprot, oprot):
864
  def process_updatePasswordForAgent(self, seqid, iprot, oprot):
739
    args = updatePasswordForAgent_args()
865
    args = updatePasswordForAgent_args()
740
    args.read(iprot)
866
    args.read(iprot)
741
    iprot.readMessageEnd()
867
    iprot.readMessageEnd()
742
    result = updatePasswordForAgent_result()
868
    result = updatePasswordForAgent_result()
Line 810... Line 936...
810
    oprot.writeMessageBegin("insertAgent", TMessageType.REPLY, seqid)
936
    oprot.writeMessageBegin("insertAgent", TMessageType.REPLY, seqid)
811
    result.write(oprot)
937
    result.write(oprot)
812
    oprot.writeMessageEnd()
938
    oprot.writeMessageEnd()
813
    oprot.trans.flush()
939
    oprot.trans.flush()
814
 
940
 
-
 
941
  def process_changeAgentRole(self, seqid, iprot, oprot):
-
 
942
    args = changeAgentRole_args()
-
 
943
    args.read(iprot)
-
 
944
    iprot.readMessageEnd()
-
 
945
    result = changeAgentRole_result()
-
 
946
    self._handler.changeAgentRole(args.id, args.role)
-
 
947
    oprot.writeMessageBegin("changeAgentRole", TMessageType.REPLY, seqid)
-
 
948
    result.write(oprot)
-
 
949
    oprot.writeMessageEnd()
-
 
950
    oprot.trans.flush()
-
 
951
 
-
 
952
  def process_getOpenTicketCountForAgent(self, seqid, iprot, oprot):
-
 
953
    args = getOpenTicketCountForAgent_args()
-
 
954
    args.read(iprot)
-
 
955
    iprot.readMessageEnd()
-
 
956
    result = getOpenTicketCountForAgent_result()
-
 
957
    result.success = self._handler.getOpenTicketCountForAgent(args.agentId)
-
 
958
    oprot.writeMessageBegin("getOpenTicketCountForAgent", TMessageType.REPLY, seqid)
-
 
959
    result.write(oprot)
-
 
960
    oprot.writeMessageEnd()
-
 
961
    oprot.trans.flush()
-
 
962
 
815
 
963
 
816
# HELPER FUNCTIONS AND STRUCTURES
964
# HELPER FUNCTIONS AND STRUCTURES
817
 
965
 
818
class getTickets_args:
966
class getTickets_args:
819
  """
967
  """
Line 1895... Line 2043...
1895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2043
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1896
 
2044
 
1897
  def __ne__(self, other):
2045
  def __ne__(self, other):
1898
    return not (self == other)
2046
    return not (self == other)
1899
 
2047
 
-
 
2048
class getInactiveAgents_args:
-
 
2049
  """
-
 
2050
  Attributes:
-
 
2051
   - searchFilter
-
 
2052
  """
-
 
2053
 
-
 
2054
  thrift_spec = (
-
 
2055
    None, # 0
-
 
2056
    (1, TType.STRUCT, 'searchFilter', (SearchFilter, SearchFilter.thrift_spec), None, ), # 1
-
 
2057
  )
-
 
2058
 
-
 
2059
  def __init__(self, searchFilter=None,):
-
 
2060
    self.searchFilter = searchFilter
-
 
2061
 
-
 
2062
  def read(self, iprot):
-
 
2063
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2064
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2065
      return
-
 
2066
    iprot.readStructBegin()
-
 
2067
    while True:
-
 
2068
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2069
      if ftype == TType.STOP:
-
 
2070
        break
-
 
2071
      if fid == 1:
-
 
2072
        if ftype == TType.STRUCT:
-
 
2073
          self.searchFilter = SearchFilter()
-
 
2074
          self.searchFilter.read(iprot)
-
 
2075
        else:
-
 
2076
          iprot.skip(ftype)
-
 
2077
      else:
-
 
2078
        iprot.skip(ftype)
-
 
2079
      iprot.readFieldEnd()
-
 
2080
    iprot.readStructEnd()
-
 
2081
 
-
 
2082
  def write(self, oprot):
-
 
2083
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2084
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2085
      return
-
 
2086
    oprot.writeStructBegin('getInactiveAgents_args')
-
 
2087
    if self.searchFilter is not None:
-
 
2088
      oprot.writeFieldBegin('searchFilter', TType.STRUCT, 1)
-
 
2089
      self.searchFilter.write(oprot)
-
 
2090
      oprot.writeFieldEnd()
-
 
2091
    oprot.writeFieldStop()
-
 
2092
    oprot.writeStructEnd()
-
 
2093
 
-
 
2094
  def validate(self):
-
 
2095
    return
-
 
2096
 
-
 
2097
 
-
 
2098
  def __repr__(self):
-
 
2099
    L = ['%s=%r' % (key, value)
-
 
2100
      for key, value in self.__dict__.iteritems()]
-
 
2101
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2102
 
-
 
2103
  def __eq__(self, other):
-
 
2104
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2105
 
-
 
2106
  def __ne__(self, other):
-
 
2107
    return not (self == other)
-
 
2108
 
-
 
2109
class getInactiveAgents_result:
-
 
2110
  """
-
 
2111
  Attributes:
-
 
2112
   - success
-
 
2113
  """
-
 
2114
 
-
 
2115
  thrift_spec = (
-
 
2116
    (0, TType.LIST, 'success', (TType.STRUCT,(Agent, Agent.thrift_spec)), None, ), # 0
-
 
2117
  )
-
 
2118
 
-
 
2119
  def __init__(self, success=None,):
-
 
2120
    self.success = success
-
 
2121
 
-
 
2122
  def read(self, iprot):
-
 
2123
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2124
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2125
      return
-
 
2126
    iprot.readStructBegin()
-
 
2127
    while True:
-
 
2128
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2129
      if ftype == TType.STOP:
-
 
2130
        break
-
 
2131
      if fid == 0:
-
 
2132
        if ftype == TType.LIST:
-
 
2133
          self.success = []
-
 
2134
          (_etype52, _size49) = iprot.readListBegin()
-
 
2135
          for _i53 in xrange(_size49):
-
 
2136
            _elem54 = Agent()
-
 
2137
            _elem54.read(iprot)
-
 
2138
            self.success.append(_elem54)
-
 
2139
          iprot.readListEnd()
-
 
2140
        else:
-
 
2141
          iprot.skip(ftype)
-
 
2142
      else:
-
 
2143
        iprot.skip(ftype)
-
 
2144
      iprot.readFieldEnd()
-
 
2145
    iprot.readStructEnd()
-
 
2146
 
-
 
2147
  def write(self, oprot):
-
 
2148
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2149
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2150
      return
-
 
2151
    oprot.writeStructBegin('getInactiveAgents_result')
-
 
2152
    if self.success is not None:
-
 
2153
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
2154
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
2155
      for iter55 in self.success:
-
 
2156
        iter55.write(oprot)
-
 
2157
      oprot.writeListEnd()
-
 
2158
      oprot.writeFieldEnd()
-
 
2159
    oprot.writeFieldStop()
-
 
2160
    oprot.writeStructEnd()
-
 
2161
 
-
 
2162
  def validate(self):
-
 
2163
    return
-
 
2164
 
-
 
2165
 
-
 
2166
  def __repr__(self):
-
 
2167
    L = ['%s=%r' % (key, value)
-
 
2168
      for key, value in self.__dict__.iteritems()]
-
 
2169
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2170
 
-
 
2171
  def __eq__(self, other):
-
 
2172
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2173
 
-
 
2174
  def __ne__(self, other):
-
 
2175
    return not (self == other)
-
 
2176
 
1900
class updatePasswordForAgent_args:
2177
class updatePasswordForAgent_args:
1901
  """
2178
  """
1902
  Attributes:
2179
  Attributes:
1903
   - agentEmailId
2180
   - agentEmailId
1904
   - password
2181
   - password
Line 2094... Line 2371...
2094
      if ftype == TType.STOP:
2371
      if ftype == TType.STOP:
2095
        break
2372
        break
2096
      if fid == 0:
2373
      if fid == 0:
2097
        if ftype == TType.LIST:
2374
        if ftype == TType.LIST:
2098
          self.success = []
2375
          self.success = []
2099
          (_etype52, _size49) = iprot.readListBegin()
2376
          (_etype59, _size56) = iprot.readListBegin()
2100
          for _i53 in xrange(_size49):
2377
          for _i60 in xrange(_size56):
2101
            _elem54 = iprot.readString();
2378
            _elem61 = iprot.readString();
2102
            self.success.append(_elem54)
2379
            self.success.append(_elem61)
2103
          iprot.readListEnd()
2380
          iprot.readListEnd()
2104
        else:
2381
        else:
2105
          iprot.skip(ftype)
2382
          iprot.skip(ftype)
2106
      else:
2383
      else:
2107
        iprot.skip(ftype)
2384
        iprot.skip(ftype)
Line 2114... Line 2391...
2114
      return
2391
      return
2115
    oprot.writeStructBegin('getRoleNamesForAgent_result')
2392
    oprot.writeStructBegin('getRoleNamesForAgent_result')
2116
    if self.success is not None:
2393
    if self.success is not None:
2117
      oprot.writeFieldBegin('success', TType.LIST, 0)
2394
      oprot.writeFieldBegin('success', TType.LIST, 0)
2118
      oprot.writeListBegin(TType.STRING, len(self.success))
2395
      oprot.writeListBegin(TType.STRING, len(self.success))
2119
      for iter55 in self.success:
2396
      for iter62 in self.success:
2120
        oprot.writeString(iter55)
2397
        oprot.writeString(iter62)
2121
      oprot.writeListEnd()
2398
      oprot.writeListEnd()
2122
      oprot.writeFieldEnd()
2399
      oprot.writeFieldEnd()
2123
    oprot.writeFieldStop()
2400
    oprot.writeFieldStop()
2124
    oprot.writeStructEnd()
2401
    oprot.writeStructEnd()
2125
 
2402
 
Line 2221... Line 2498...
2221
      if ftype == TType.STOP:
2498
      if ftype == TType.STOP:
2222
        break
2499
        break
2223
      if fid == 0:
2500
      if fid == 0:
2224
        if ftype == TType.LIST:
2501
        if ftype == TType.LIST:
2225
          self.success = []
2502
          self.success = []
2226
          (_etype59, _size56) = iprot.readListBegin()
2503
          (_etype66, _size63) = iprot.readListBegin()
2227
          for _i60 in xrange(_size56):
2504
          for _i67 in xrange(_size63):
2228
            _elem61 = iprot.readString();
2505
            _elem68 = iprot.readString();
2229
            self.success.append(_elem61)
2506
            self.success.append(_elem68)
2230
          iprot.readListEnd()
2507
          iprot.readListEnd()
2231
        else:
2508
        else:
2232
          iprot.skip(ftype)
2509
          iprot.skip(ftype)
2233
      else:
2510
      else:
2234
        iprot.skip(ftype)
2511
        iprot.skip(ftype)
Line 2241... Line 2518...
2241
      return
2518
      return
2242
    oprot.writeStructBegin('getPermissionsForRoleName_result')
2519
    oprot.writeStructBegin('getPermissionsForRoleName_result')
2243
    if self.success is not None:
2520
    if self.success is not None:
2244
      oprot.writeFieldBegin('success', TType.LIST, 0)
2521
      oprot.writeFieldBegin('success', TType.LIST, 0)
2245
      oprot.writeListBegin(TType.STRING, len(self.success))
2522
      oprot.writeListBegin(TType.STRING, len(self.success))
2246
      for iter62 in self.success:
2523
      for iter69 in self.success:
2247
        oprot.writeString(iter62)
2524
        oprot.writeString(iter69)
2248
      oprot.writeListEnd()
2525
      oprot.writeListEnd()
2249
      oprot.writeFieldEnd()
2526
      oprot.writeFieldEnd()
2250
    oprot.writeFieldStop()
2527
    oprot.writeFieldStop()
2251
    oprot.writeStructEnd()
2528
    oprot.writeStructEnd()
2252
 
2529
 
Line 2615... Line 2892...
2615
        else:
2892
        else:
2616
          iprot.skip(ftype)
2893
          iprot.skip(ftype)
2617
      elif fid == 2:
2894
      elif fid == 2:
2618
        if ftype == TType.LIST:
2895
        if ftype == TType.LIST:
2619
          self.role = []
2896
          self.role = []
2620
          (_etype66, _size63) = iprot.readListBegin()
2897
          (_etype73, _size70) = iprot.readListBegin()
2621
          for _i67 in xrange(_size63):
2898
          for _i74 in xrange(_size70):
2622
            _elem68 = iprot.readString();
2899
            _elem75 = iprot.readString();
2623
            self.role.append(_elem68)
2900
            self.role.append(_elem75)
2624
          iprot.readListEnd()
2901
          iprot.readListEnd()
2625
        else:
2902
        else:
2626
          iprot.skip(ftype)
2903
          iprot.skip(ftype)
2627
      else:
2904
      else:
2628
        iprot.skip(ftype)
2905
        iprot.skip(ftype)
Line 2639... Line 2916...
2639
      self.agent.write(oprot)
2916
      self.agent.write(oprot)
2640
      oprot.writeFieldEnd()
2917
      oprot.writeFieldEnd()
2641
    if self.role is not None:
2918
    if self.role is not None:
2642
      oprot.writeFieldBegin('role', TType.LIST, 2)
2919
      oprot.writeFieldBegin('role', TType.LIST, 2)
2643
      oprot.writeListBegin(TType.STRING, len(self.role))
2920
      oprot.writeListBegin(TType.STRING, len(self.role))
2644
      for iter69 in self.role:
2921
      for iter76 in self.role:
2645
        oprot.writeString(iter69)
2922
        oprot.writeString(iter76)
2646
      oprot.writeListEnd()
2923
      oprot.writeListEnd()
2647
      oprot.writeFieldEnd()
2924
      oprot.writeFieldEnd()
2648
    oprot.writeFieldStop()
2925
    oprot.writeFieldStop()
2649
    oprot.writeStructEnd()
2926
    oprot.writeStructEnd()
2650
 
2927
 
Line 2690... Line 2967...
2690
    oprot.writeFieldStop()
2967
    oprot.writeFieldStop()
2691
    oprot.writeStructEnd()
2968
    oprot.writeStructEnd()
2692
 
2969
 
2693
  def validate(self):
2970
  def validate(self):
2694
    return
2971
    return
-
 
2972
 
-
 
2973
 
-
 
2974
  def __repr__(self):
-
 
2975
    L = ['%s=%r' % (key, value)
-
 
2976
      for key, value in self.__dict__.iteritems()]
-
 
2977
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2978
 
-
 
2979
  def __eq__(self, other):
-
 
2980
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2981
 
-
 
2982
  def __ne__(self, other):
-
 
2983
    return not (self == other)
-
 
2984
 
-
 
2985
class changeAgentRole_args:
-
 
2986
  """
-
 
2987
  Attributes:
-
 
2988
   - id
-
 
2989
   - role
-
 
2990
  """
-
 
2991
 
-
 
2992
  thrift_spec = (
-
 
2993
    None, # 0
-
 
2994
    (1, TType.I64, 'id', None, None, ), # 1
-
 
2995
    (2, TType.LIST, 'role', (TType.STRING,None), None, ), # 2
-
 
2996
  )
-
 
2997
 
-
 
2998
  def __init__(self, id=None, role=None,):
-
 
2999
    self.id = id
-
 
3000
    self.role = role
-
 
3001
 
-
 
3002
  def read(self, iprot):
-
 
3003
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3004
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3005
      return
-
 
3006
    iprot.readStructBegin()
-
 
3007
    while True:
-
 
3008
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3009
      if ftype == TType.STOP:
-
 
3010
        break
-
 
3011
      if fid == 1:
-
 
3012
        if ftype == TType.I64:
-
 
3013
          self.id = iprot.readI64();
-
 
3014
        else:
-
 
3015
          iprot.skip(ftype)
-
 
3016
      elif fid == 2:
-
 
3017
        if ftype == TType.LIST:
-
 
3018
          self.role = []
-
 
3019
          (_etype80, _size77) = iprot.readListBegin()
-
 
3020
          for _i81 in xrange(_size77):
-
 
3021
            _elem82 = iprot.readString();
-
 
3022
            self.role.append(_elem82)
-
 
3023
          iprot.readListEnd()
-
 
3024
        else:
-
 
3025
          iprot.skip(ftype)
-
 
3026
      else:
-
 
3027
        iprot.skip(ftype)
-
 
3028
      iprot.readFieldEnd()
-
 
3029
    iprot.readStructEnd()
-
 
3030
 
-
 
3031
  def write(self, oprot):
-
 
3032
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3033
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3034
      return
-
 
3035
    oprot.writeStructBegin('changeAgentRole_args')
-
 
3036
    if self.id is not None:
-
 
3037
      oprot.writeFieldBegin('id', TType.I64, 1)
-
 
3038
      oprot.writeI64(self.id)
-
 
3039
      oprot.writeFieldEnd()
-
 
3040
    if self.role is not None:
-
 
3041
      oprot.writeFieldBegin('role', TType.LIST, 2)
-
 
3042
      oprot.writeListBegin(TType.STRING, len(self.role))
-
 
3043
      for iter83 in self.role:
-
 
3044
        oprot.writeString(iter83)
-
 
3045
      oprot.writeListEnd()
-
 
3046
      oprot.writeFieldEnd()
-
 
3047
    oprot.writeFieldStop()
-
 
3048
    oprot.writeStructEnd()
-
 
3049
 
-
 
3050
  def validate(self):
-
 
3051
    return
-
 
3052
 
-
 
3053
 
-
 
3054
  def __repr__(self):
-
 
3055
    L = ['%s=%r' % (key, value)
-
 
3056
      for key, value in self.__dict__.iteritems()]
-
 
3057
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3058
 
-
 
3059
  def __eq__(self, other):
-
 
3060
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3061
 
-
 
3062
  def __ne__(self, other):
-
 
3063
    return not (self == other)
-
 
3064
 
-
 
3065
class changeAgentRole_result:
-
 
3066
 
-
 
3067
  thrift_spec = (
-
 
3068
  )
-
 
3069
 
-
 
3070
  def read(self, iprot):
-
 
3071
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3072
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3073
      return
-
 
3074
    iprot.readStructBegin()
-
 
3075
    while True:
-
 
3076
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3077
      if ftype == TType.STOP:
-
 
3078
        break
-
 
3079
      else:
-
 
3080
        iprot.skip(ftype)
-
 
3081
      iprot.readFieldEnd()
-
 
3082
    iprot.readStructEnd()
-
 
3083
 
-
 
3084
  def write(self, oprot):
-
 
3085
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3086
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3087
      return
-
 
3088
    oprot.writeStructBegin('changeAgentRole_result')
-
 
3089
    oprot.writeFieldStop()
-
 
3090
    oprot.writeStructEnd()
-
 
3091
 
-
 
3092
  def validate(self):
-
 
3093
    return
-
 
3094
 
-
 
3095
 
-
 
3096
  def __repr__(self):
-
 
3097
    L = ['%s=%r' % (key, value)
-
 
3098
      for key, value in self.__dict__.iteritems()]
-
 
3099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3100
 
-
 
3101
  def __eq__(self, other):
-
 
3102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3103
 
-
 
3104
  def __ne__(self, other):
-
 
3105
    return not (self == other)
-
 
3106
 
-
 
3107
class getOpenTicketCountForAgent_args:
-
 
3108
  """
-
 
3109
  Attributes:
-
 
3110
   - agentId
-
 
3111
  """
-
 
3112
 
-
 
3113
  thrift_spec = (
-
 
3114
    None, # 0
-
 
3115
    (1, TType.I64, 'agentId', None, None, ), # 1
-
 
3116
  )
-
 
3117
 
-
 
3118
  def __init__(self, agentId=None,):
-
 
3119
    self.agentId = agentId
-
 
3120
 
-
 
3121
  def read(self, iprot):
-
 
3122
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3123
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3124
      return
-
 
3125
    iprot.readStructBegin()
-
 
3126
    while True:
-
 
3127
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3128
      if ftype == TType.STOP:
-
 
3129
        break
-
 
3130
      if fid == 1:
-
 
3131
        if ftype == TType.I64:
-
 
3132
          self.agentId = iprot.readI64();
-
 
3133
        else:
-
 
3134
          iprot.skip(ftype)
-
 
3135
      else:
-
 
3136
        iprot.skip(ftype)
-
 
3137
      iprot.readFieldEnd()
-
 
3138
    iprot.readStructEnd()
-
 
3139
 
-
 
3140
  def write(self, oprot):
-
 
3141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3143
      return
-
 
3144
    oprot.writeStructBegin('getOpenTicketCountForAgent_args')
-
 
3145
    if self.agentId is not None:
-
 
3146
      oprot.writeFieldBegin('agentId', TType.I64, 1)
-
 
3147
      oprot.writeI64(self.agentId)
-
 
3148
      oprot.writeFieldEnd()
-
 
3149
    oprot.writeFieldStop()
-
 
3150
    oprot.writeStructEnd()
-
 
3151
 
-
 
3152
  def validate(self):
-
 
3153
    return
-
 
3154
 
-
 
3155
 
-
 
3156
  def __repr__(self):
-
 
3157
    L = ['%s=%r' % (key, value)
-
 
3158
      for key, value in self.__dict__.iteritems()]
-
 
3159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3160
 
-
 
3161
  def __eq__(self, other):
-
 
3162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3163
 
-
 
3164
  def __ne__(self, other):
-
 
3165
    return not (self == other)
-
 
3166
 
-
 
3167
class getOpenTicketCountForAgent_result:
-
 
3168
  """
-
 
3169
  Attributes:
-
 
3170
   - success
-
 
3171
  """
-
 
3172
 
-
 
3173
  thrift_spec = (
-
 
3174
    (0, TType.I32, 'success', None, None, ), # 0
-
 
3175
  )
-
 
3176
 
-
 
3177
  def __init__(self, success=None,):
-
 
3178
    self.success = success
-
 
3179
 
-
 
3180
  def read(self, iprot):
-
 
3181
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3182
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3183
      return
-
 
3184
    iprot.readStructBegin()
-
 
3185
    while True:
-
 
3186
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3187
      if ftype == TType.STOP:
-
 
3188
        break
-
 
3189
      if fid == 0:
-
 
3190
        if ftype == TType.I32:
-
 
3191
          self.success = iprot.readI32();
-
 
3192
        else:
-
 
3193
          iprot.skip(ftype)
-
 
3194
      else:
-
 
3195
        iprot.skip(ftype)
-
 
3196
      iprot.readFieldEnd()
-
 
3197
    iprot.readStructEnd()
-
 
3198
 
-
 
3199
  def write(self, oprot):
-
 
3200
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3201
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3202
      return
-
 
3203
    oprot.writeStructBegin('getOpenTicketCountForAgent_result')
-
 
3204
    if self.success is not None:
-
 
3205
      oprot.writeFieldBegin('success', TType.I32, 0)
-
 
3206
      oprot.writeI32(self.success)
-
 
3207
      oprot.writeFieldEnd()
-
 
3208
    oprot.writeFieldStop()
-
 
3209
    oprot.writeStructEnd()
-
 
3210
 
-
 
3211
  def validate(self):
-
 
3212
    return
2695
 
3213
 
2696
 
3214
 
2697
  def __repr__(self):
3215
  def __repr__(self):
2698
    L = ['%s=%r' % (key, value)
3216
    L = ['%s=%r' % (key, value)
2699
      for key, value in self.__dict__.iteritems()]
3217
      for key, value in self.__dict__.iteritems()]