Subversion Repositories SmartDukaan

Rev

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

Rev 3376 Rev 3431
Line 1... Line 1...
1
#
1
#
2
# Autogenerated by Thrift
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
5
#
6
 
6
 
7
from thrift.Thrift import *
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
9
from ttypes import *
10
from thrift.Thrift import TProcessor
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
13
try:
14
  from thrift.protocol import fastbinary
14
  from thrift.protocol import fastbinary
15
except:
15
except:
16
  fastbinary = None
16
  fastbinary = None
17
 
17
 
18
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType):
20
  def saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType):
21
    """
21
    """
22
    Save email details, to be sent later; Also returns its identifier.
22
    Save email details, to be sent later; Also returns its identifier.
23
    
23
 
24
    Parameters:
24
    Parameters:
25
     - emailTo
25
     - emailTo
26
     - emailFrom
26
     - emailFrom
27
     - subject
27
     - subject
28
     - body
28
     - body
Line 38... Line 38...
38
    pass
38
    pass
39
 
39
 
40
  def markEmailAsSent(self, emailId):
40
  def markEmailAsSent(self, emailId):
41
    """
41
    """
42
    Marks email as sent after successful dispatch
42
    Marks email as sent after successful dispatch
43
    
43
 
44
    Parameters:
44
    Parameters:
45
     - emailId
45
     - emailId
46
    """
46
    """
47
    pass
47
    pass
48
 
48
 
Line 108... Line 108...
108
 
108
 
109
  def authenticateDashboardUser(self, username, password):
109
  def authenticateDashboardUser(self, username, password):
110
    """
110
    """
111
    Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
111
    Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
112
    The loggedOn timestamp for the dashboard user is updated .
112
    The loggedOn timestamp for the dashboard user is updated .
113
    
113
 
114
    Parameters:
114
    Parameters:
115
     - username
115
     - username
116
     - password
116
     - password
117
    """
117
    """
118
    pass
118
    pass
119
 
119
 
120
  def updatePassword(self, username, oldPassword, newPassword):
120
  def updatePassword(self, username, oldPassword, newPassword):
121
    """
121
    """
122
    Update the password of the dashboard user. Currently, there is no place where this method is called.
122
    Update the password of the dashboard user. Currently, there is no place where this method is called.
123
    
123
 
124
    Parameters:
124
    Parameters:
125
     - username
125
     - username
126
     - oldPassword
126
     - oldPassword
127
     - newPassword
127
     - newPassword
128
    """
128
    """
Line 130... Line 130...
130
 
130
 
131
  def authenticateLogisticsUser(self, username, password):
131
  def authenticateLogisticsUser(self, username, password):
132
    """
132
    """
133
    Returns the LogisticsUser struct associated with the given username and password if they match.
133
    Returns the LogisticsUser struct associated with the given username and password if they match.
134
    Throws an exception otherwise.
134
    Throws an exception otherwise.
135
    
135
 
136
    Parameters:
136
    Parameters:
137
     - username
137
     - username
138
     - password
138
     - password
139
    """
139
    """
140
    pass
140
    pass
141
 
141
 
142
  def authenticateStatisticsUser(self, username, password):
142
  def authenticateStatisticsUser(self, username, password):
143
    """
143
    """
144
    Returns the StatisticsUser struct associated with the given username and password if they match.
144
    Returns the StatisticsUser struct associated with the given username and password if they match.
145
    Throws an exception otherwise.
145
    Throws an exception otherwise.
146
    
146
 
147
    Parameters:
147
    Parameters:
148
     - username
148
     - username
149
     - password
149
     - password
150
    """
150
    """
151
    pass
151
    pass
152
 
152
 
153
  def authenticateReportUser(self, username, password):
153
  def authenticateReportUser(self, username, password):
154
    """
154
    """
155
    Returns the ReportUser struct associated with the given username and password if they match.
155
    Returns the ReportUser struct associated with the given username and password if they match.
156
    Throws an exception otherwise.
156
    Throws an exception otherwise.
157
    
157
 
158
    Parameters:
158
    Parameters:
159
     - username
159
     - username
160
     - password
160
     - password
161
    """
161
    """
162
    pass
162
    pass
163
 
163
 
164
  def getReports(self, role):
164
  def getReports(self, role):
165
    """
165
    """
166
    Returns list of reports which are configured for the given role.
166
    Returns list of reports which are configured for the given role.
167
    
167
 
168
    Parameters:
168
    Parameters:
169
     - role
169
     - role
170
    """
170
    """
171
    pass
171
    pass
172
 
172
 
173
  def authenticateCatalogUser(self, username, password, role):
173
  def authenticateCatalogUser(self, username, password, role):
174
    """
174
    """
175
    Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
175
    Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
176
    Throws an exception otherwise.
176
    Throws an exception otherwise.
177
    
177
 
178
    Parameters:
178
    Parameters:
179
     - username
179
     - username
180
     - password
180
     - password
181
     - role
181
     - role
182
    """
182
    """
Line 188... Line 188...
188
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
188
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
189
 
189
 
190
  def saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType):
190
  def saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType):
191
    """
191
    """
192
    Save email details, to be sent later; Also returns its identifier.
192
    Save email details, to be sent later; Also returns its identifier.
193
    
193
 
194
    Parameters:
194
    Parameters:
195
     - emailTo
195
     - emailTo
196
     - emailFrom
196
     - emailFrom
197
     - subject
197
     - subject
198
     - body
198
     - body
Line 223... Line 223...
223
      self._iprot.readMessageEnd()
223
      self._iprot.readMessageEnd()
224
      raise x
224
      raise x
225
    result = saveUserEmailForSending_result()
225
    result = saveUserEmailForSending_result()
226
    result.read(self._iprot)
226
    result.read(self._iprot)
227
    self._iprot.readMessageEnd()
227
    self._iprot.readMessageEnd()
228
    if result.success != None:
228
    if result.success is not None:
229
      return result.success
229
      return result.success
230
    if result.se != None:
230
    if result.se is not None:
231
      raise result.se
231
      raise result.se
232
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
232
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
233
 
233
 
234
  def getEmailsToBeSent(self, ):
234
  def getEmailsToBeSent(self, ):
235
    """
235
    """
Line 253... Line 253...
253
      self._iprot.readMessageEnd()
253
      self._iprot.readMessageEnd()
254
      raise x
254
      raise x
255
    result = getEmailsToBeSent_result()
255
    result = getEmailsToBeSent_result()
256
    result.read(self._iprot)
256
    result.read(self._iprot)
257
    self._iprot.readMessageEnd()
257
    self._iprot.readMessageEnd()
258
    if result.success != None:
258
    if result.success is not None:
259
      return result.success
259
      return result.success
260
    if result.se != None:
260
    if result.se is not None:
261
      raise result.se
261
      raise result.se
262
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
262
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
263
 
263
 
264
  def markEmailAsSent(self, emailId):
264
  def markEmailAsSent(self, emailId):
265
    """
265
    """
266
    Marks email as sent after successful dispatch
266
    Marks email as sent after successful dispatch
267
    
267
 
268
    Parameters:
268
    Parameters:
269
     - emailId
269
     - emailId
270
    """
270
    """
271
    self.send_markEmailAsSent(emailId)
271
    self.send_markEmailAsSent(emailId)
272
    self.recv_markEmailAsSent()
272
    self.recv_markEmailAsSent()
Line 287... Line 287...
287
      self._iprot.readMessageEnd()
287
      self._iprot.readMessageEnd()
288
      raise x
288
      raise x
289
    result = markEmailAsSent_result()
289
    result = markEmailAsSent_result()
290
    result.read(self._iprot)
290
    result.read(self._iprot)
291
    self._iprot.readMessageEnd()
291
    self._iprot.readMessageEnd()
292
    if result.se != None:
292
    if result.se is not None:
293
      raise result.se
293
      raise result.se
294
    return
294
    return
295
 
295
 
296
  def sendMail(self, mail):
296
  def sendMail(self, mail):
297
    """
297
    """
Line 317... Line 317...
317
      self._iprot.readMessageEnd()
317
      self._iprot.readMessageEnd()
318
      raise x
318
      raise x
319
    result = sendMail_result()
319
    result = sendMail_result()
320
    result.read(self._iprot)
320
    result.read(self._iprot)
321
    self._iprot.readMessageEnd()
321
    self._iprot.readMessageEnd()
322
    if result.se != None:
322
    if result.se is not None:
323
      raise result.se
323
      raise result.se
324
    return
324
    return
325
 
325
 
326
  def sendText(self, message):
326
  def sendText(self, message):
327
    """
327
    """
Line 347... Line 347...
347
      self._iprot.readMessageEnd()
347
      self._iprot.readMessageEnd()
348
      raise x
348
      raise x
349
    result = sendText_result()
349
    result = sendText_result()
350
    result.read(self._iprot)
350
    result.read(self._iprot)
351
    self._iprot.readMessageEnd()
351
    self._iprot.readMessageEnd()
352
    if result.se != None:
352
    if result.se is not None:
353
      raise result.se
353
      raise result.se
354
    return
354
    return
355
 
355
 
356
  def addMessage(self, message):
356
  def addMessage(self, message):
357
    """
357
    """
Line 377... Line 377...
377
      self._iprot.readMessageEnd()
377
      self._iprot.readMessageEnd()
378
      raise x
378
      raise x
379
    result = addMessage_result()
379
    result = addMessage_result()
380
    result.read(self._iprot)
380
    result.read(self._iprot)
381
    self._iprot.readMessageEnd()
381
    self._iprot.readMessageEnd()
382
    if result.se != None:
382
    if result.se is not None:
383
      raise result.se
383
      raise result.se
384
    return
384
    return
385
 
385
 
386
  def updateMessage(self, id, message):
386
  def updateMessage(self, id, message):
387
    """
387
    """
Line 409... Line 409...
409
      self._iprot.readMessageEnd()
409
      self._iprot.readMessageEnd()
410
      raise x
410
      raise x
411
    result = updateMessage_result()
411
    result = updateMessage_result()
412
    result.read(self._iprot)
412
    result.read(self._iprot)
413
    self._iprot.readMessageEnd()
413
    self._iprot.readMessageEnd()
414
    if result.se != None:
414
    if result.se is not None:
415
      raise result.se
415
      raise result.se
416
    return
416
    return
417
 
417
 
418
  def getMessage(self, id):
418
  def getMessage(self, id):
419
    """
419
    """
Line 439... Line 439...
439
      self._iprot.readMessageEnd()
439
      self._iprot.readMessageEnd()
440
      raise x
440
      raise x
441
    result = getMessage_result()
441
    result = getMessage_result()
442
    result.read(self._iprot)
442
    result.read(self._iprot)
443
    self._iprot.readMessageEnd()
443
    self._iprot.readMessageEnd()
444
    if result.success != None:
444
    if result.success is not None:
445
      return result.success
445
      return result.success
446
    if result.se != None:
446
    if result.se is not None:
447
      raise result.se
447
      raise result.se
448
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
448
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
449
 
449
 
450
  def getSubstitutedMessage(self, id, params):
450
  def getSubstitutedMessage(self, id, params):
451
    """
451
    """
Line 473... Line 473...
473
      self._iprot.readMessageEnd()
473
      self._iprot.readMessageEnd()
474
      raise x
474
      raise x
475
    result = getSubstitutedMessage_result()
475
    result = getSubstitutedMessage_result()
476
    result.read(self._iprot)
476
    result.read(self._iprot)
477
    self._iprot.readMessageEnd()
477
    self._iprot.readMessageEnd()
478
    if result.success != None:
478
    if result.success is not None:
479
      return result.success
479
      return result.success
480
    if result.se != None:
480
    if result.se is not None:
481
      raise result.se
481
      raise result.se
482
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
482
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
483
 
483
 
484
  def addUser(self, username, password, warehouseId):
484
  def addUser(self, username, password, warehouseId):
485
    """
485
    """
Line 509... Line 509...
509
      self._iprot.readMessageEnd()
509
      self._iprot.readMessageEnd()
510
      raise x
510
      raise x
511
    result = addUser_result()
511
    result = addUser_result()
512
    result.read(self._iprot)
512
    result.read(self._iprot)
513
    self._iprot.readMessageEnd()
513
    self._iprot.readMessageEnd()
514
    if result.success != None:
514
    if result.success is not None:
515
      return result.success
515
      return result.success
516
    if result.se != None:
516
    if result.se is not None:
517
      raise result.se
517
      raise result.se
518
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
518
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
519
 
519
 
520
  def deleteUser(self, username):
520
  def deleteUser(self, username):
521
    """
521
    """
Line 541... Line 541...
541
      self._iprot.readMessageEnd()
541
      self._iprot.readMessageEnd()
542
      raise x
542
      raise x
543
    result = deleteUser_result()
543
    result = deleteUser_result()
544
    result.read(self._iprot)
544
    result.read(self._iprot)
545
    self._iprot.readMessageEnd()
545
    self._iprot.readMessageEnd()
546
    if result.success != None:
546
    if result.success is not None:
547
      return result.success
547
      return result.success
548
    if result.se != None:
548
    if result.se is not None:
549
      raise result.se
549
      raise result.se
550
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
550
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
551
 
551
 
552
  def authenticateDashboardUser(self, username, password):
552
  def authenticateDashboardUser(self, username, password):
553
    """
553
    """
554
    Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
554
    Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
555
    The loggedOn timestamp for the dashboard user is updated .
555
    The loggedOn timestamp for the dashboard user is updated .
556
    
556
 
557
    Parameters:
557
    Parameters:
558
     - username
558
     - username
559
     - password
559
     - password
560
    """
560
    """
561
    self.send_authenticateDashboardUser(username, password)
561
    self.send_authenticateDashboardUser(username, password)
Line 578... Line 578...
578
      self._iprot.readMessageEnd()
578
      self._iprot.readMessageEnd()
579
      raise x
579
      raise x
580
    result = authenticateDashboardUser_result()
580
    result = authenticateDashboardUser_result()
581
    result.read(self._iprot)
581
    result.read(self._iprot)
582
    self._iprot.readMessageEnd()
582
    self._iprot.readMessageEnd()
583
    if result.success != None:
583
    if result.success is not None:
584
      return result.success
584
      return result.success
585
    if result.se != None:
585
    if result.se is not None:
586
      raise result.se
586
      raise result.se
587
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
587
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
588
 
588
 
589
  def updatePassword(self, username, oldPassword, newPassword):
589
  def updatePassword(self, username, oldPassword, newPassword):
590
    """
590
    """
591
    Update the password of the dashboard user. Currently, there is no place where this method is called.
591
    Update the password of the dashboard user. Currently, there is no place where this method is called.
592
    
592
 
593
    Parameters:
593
    Parameters:
594
     - username
594
     - username
595
     - oldPassword
595
     - oldPassword
596
     - newPassword
596
     - newPassword
597
    """
597
    """
Line 616... Line 616...
616
      self._iprot.readMessageEnd()
616
      self._iprot.readMessageEnd()
617
      raise x
617
      raise x
618
    result = updatePassword_result()
618
    result = updatePassword_result()
619
    result.read(self._iprot)
619
    result.read(self._iprot)
620
    self._iprot.readMessageEnd()
620
    self._iprot.readMessageEnd()
621
    if result.success != None:
621
    if result.success is not None:
622
      return result.success
622
      return result.success
623
    if result.se != None:
623
    if result.se is not None:
624
      raise result.se
624
      raise result.se
625
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
625
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
626
 
626
 
627
  def authenticateLogisticsUser(self, username, password):
627
  def authenticateLogisticsUser(self, username, password):
628
    """
628
    """
629
    Returns the LogisticsUser struct associated with the given username and password if they match.
629
    Returns the LogisticsUser struct associated with the given username and password if they match.
630
    Throws an exception otherwise.
630
    Throws an exception otherwise.
631
    
631
 
632
    Parameters:
632
    Parameters:
633
     - username
633
     - username
634
     - password
634
     - password
635
    """
635
    """
636
    self.send_authenticateLogisticsUser(username, password)
636
    self.send_authenticateLogisticsUser(username, password)
Line 653... Line 653...
653
      self._iprot.readMessageEnd()
653
      self._iprot.readMessageEnd()
654
      raise x
654
      raise x
655
    result = authenticateLogisticsUser_result()
655
    result = authenticateLogisticsUser_result()
656
    result.read(self._iprot)
656
    result.read(self._iprot)
657
    self._iprot.readMessageEnd()
657
    self._iprot.readMessageEnd()
658
    if result.success != None:
658
    if result.success is not None:
659
      return result.success
659
      return result.success
660
    if result.hse != None:
660
    if result.hse is not None:
661
      raise result.hse
661
      raise result.hse
662
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
662
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
663
 
663
 
664
  def authenticateStatisticsUser(self, username, password):
664
  def authenticateStatisticsUser(self, username, password):
665
    """
665
    """
666
    Returns the StatisticsUser struct associated with the given username and password if they match.
666
    Returns the StatisticsUser struct associated with the given username and password if they match.
667
    Throws an exception otherwise.
667
    Throws an exception otherwise.
668
    
668
 
669
    Parameters:
669
    Parameters:
670
     - username
670
     - username
671
     - password
671
     - password
672
    """
672
    """
673
    self.send_authenticateStatisticsUser(username, password)
673
    self.send_authenticateStatisticsUser(username, password)
Line 690... Line 690...
690
      self._iprot.readMessageEnd()
690
      self._iprot.readMessageEnd()
691
      raise x
691
      raise x
692
    result = authenticateStatisticsUser_result()
692
    result = authenticateStatisticsUser_result()
693
    result.read(self._iprot)
693
    result.read(self._iprot)
694
    self._iprot.readMessageEnd()
694
    self._iprot.readMessageEnd()
695
    if result.success != None:
695
    if result.success is not None:
696
      return result.success
696
      return result.success
697
    if result.hse != None:
697
    if result.hse is not None:
698
      raise result.hse
698
      raise result.hse
699
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
699
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
700
 
700
 
701
  def authenticateReportUser(self, username, password):
701
  def authenticateReportUser(self, username, password):
702
    """
702
    """
703
    Returns the ReportUser struct associated with the given username and password if they match.
703
    Returns the ReportUser struct associated with the given username and password if they match.
704
    Throws an exception otherwise.
704
    Throws an exception otherwise.
705
    
705
 
706
    Parameters:
706
    Parameters:
707
     - username
707
     - username
708
     - password
708
     - password
709
    """
709
    """
710
    self.send_authenticateReportUser(username, password)
710
    self.send_authenticateReportUser(username, password)
Line 727... Line 727...
727
      self._iprot.readMessageEnd()
727
      self._iprot.readMessageEnd()
728
      raise x
728
      raise x
729
    result = authenticateReportUser_result()
729
    result = authenticateReportUser_result()
730
    result.read(self._iprot)
730
    result.read(self._iprot)
731
    self._iprot.readMessageEnd()
731
    self._iprot.readMessageEnd()
732
    if result.success != None:
732
    if result.success is not None:
733
      return result.success
733
      return result.success
734
    if result.hse != None:
734
    if result.hse is not None:
735
      raise result.hse
735
      raise result.hse
736
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
736
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
737
 
737
 
738
  def getReports(self, role):
738
  def getReports(self, role):
739
    """
739
    """
740
    Returns list of reports which are configured for the given role.
740
    Returns list of reports which are configured for the given role.
741
    
741
 
742
    Parameters:
742
    Parameters:
743
     - role
743
     - role
744
    """
744
    """
745
    self.send_getReports(role)
745
    self.send_getReports(role)
746
    return self.recv_getReports()
746
    return self.recv_getReports()
Line 761... Line 761...
761
      self._iprot.readMessageEnd()
761
      self._iprot.readMessageEnd()
762
      raise x
762
      raise x
763
    result = getReports_result()
763
    result = getReports_result()
764
    result.read(self._iprot)
764
    result.read(self._iprot)
765
    self._iprot.readMessageEnd()
765
    self._iprot.readMessageEnd()
766
    if result.success != None:
766
    if result.success is not None:
767
      return result.success
767
      return result.success
768
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
768
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
769
 
769
 
770
  def authenticateCatalogUser(self, username, password, role):
770
  def authenticateCatalogUser(self, username, password, role):
771
    """
771
    """
772
    Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
772
    Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
773
    Throws an exception otherwise.
773
    Throws an exception otherwise.
774
    
774
 
775
    Parameters:
775
    Parameters:
776
     - username
776
     - username
777
     - password
777
     - password
778
     - role
778
     - role
779
    """
779
    """
Line 798... Line 798...
798
      self._iprot.readMessageEnd()
798
      self._iprot.readMessageEnd()
799
      raise x
799
      raise x
800
    result = authenticateCatalogUser_result()
800
    result = authenticateCatalogUser_result()
801
    result.read(self._iprot)
801
    result.read(self._iprot)
802
    self._iprot.readMessageEnd()
802
    self._iprot.readMessageEnd()
803
    if result.success != None:
803
    if result.success is not None:
804
      return result.success
804
      return result.success
805
    if result.hse != None:
805
    if result.hse is not None:
806
      raise result.hse
806
      raise result.hse
807
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
807
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
808
 
808
 
809
 
809
 
810
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
810
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
Line 1172... Line 1172...
1172
  def write(self, oprot):
1172
  def write(self, oprot):
1173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1175
      return
1175
      return
1176
    oprot.writeStructBegin('saveUserEmailForSending_args')
1176
    oprot.writeStructBegin('saveUserEmailForSending_args')
1177
    if self.emailTo != None:
1177
    if self.emailTo is not None:
1178
      oprot.writeFieldBegin('emailTo', TType.STRING, 1)
1178
      oprot.writeFieldBegin('emailTo', TType.STRING, 1)
1179
      oprot.writeString(self.emailTo)
1179
      oprot.writeString(self.emailTo)
1180
      oprot.writeFieldEnd()
1180
      oprot.writeFieldEnd()
1181
    if self.emailFrom != None:
1181
    if self.emailFrom is not None:
1182
      oprot.writeFieldBegin('emailFrom', TType.STRING, 2)
1182
      oprot.writeFieldBegin('emailFrom', TType.STRING, 2)
1183
      oprot.writeString(self.emailFrom)
1183
      oprot.writeString(self.emailFrom)
1184
      oprot.writeFieldEnd()
1184
      oprot.writeFieldEnd()
1185
    if self.subject != None:
1185
    if self.subject is not None:
1186
      oprot.writeFieldBegin('subject', TType.STRING, 3)
1186
      oprot.writeFieldBegin('subject', TType.STRING, 3)
1187
      oprot.writeString(self.subject)
1187
      oprot.writeString(self.subject)
1188
      oprot.writeFieldEnd()
1188
      oprot.writeFieldEnd()
1189
    if self.body != None:
1189
    if self.body is not None:
1190
      oprot.writeFieldBegin('body', TType.STRING, 4)
1190
      oprot.writeFieldBegin('body', TType.STRING, 4)
1191
      oprot.writeString(self.body)
1191
      oprot.writeString(self.body)
1192
      oprot.writeFieldEnd()
1192
      oprot.writeFieldEnd()
1193
    if self.source != None:
1193
    if self.source is not None:
1194
      oprot.writeFieldBegin('source', TType.STRING, 5)
1194
      oprot.writeFieldBegin('source', TType.STRING, 5)
1195
      oprot.writeString(self.source)
1195
      oprot.writeString(self.source)
1196
      oprot.writeFieldEnd()
1196
      oprot.writeFieldEnd()
1197
    if self.emailType != None:
1197
    if self.emailType is not None:
1198
      oprot.writeFieldBegin('emailType', TType.STRING, 6)
1198
      oprot.writeFieldBegin('emailType', TType.STRING, 6)
1199
      oprot.writeString(self.emailType)
1199
      oprot.writeString(self.emailType)
1200
      oprot.writeFieldEnd()
1200
      oprot.writeFieldEnd()
1201
    oprot.writeFieldStop()
1201
    oprot.writeFieldStop()
1202
    oprot.writeStructEnd()
1202
    oprot.writeStructEnd()
1203
 
1203
 
-
 
1204
  def validate(self):
-
 
1205
    return
-
 
1206
 
-
 
1207
 
1204
  def __repr__(self):
1208
  def __repr__(self):
1205
    L = ['%s=%r' % (key, value)
1209
    L = ['%s=%r' % (key, value)
1206
      for key, value in self.__dict__.iteritems()]
1210
      for key, value in self.__dict__.iteritems()]
1207
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1208
 
1212
 
Line 1256... Line 1260...
1256
  def write(self, oprot):
1260
  def write(self, oprot):
1257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1261
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1262
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1259
      return
1263
      return
1260
    oprot.writeStructBegin('saveUserEmailForSending_result')
1264
    oprot.writeStructBegin('saveUserEmailForSending_result')
1261
    if self.success != None:
1265
    if self.success is not None:
1262
      oprot.writeFieldBegin('success', TType.I64, 0)
1266
      oprot.writeFieldBegin('success', TType.I64, 0)
1263
      oprot.writeI64(self.success)
1267
      oprot.writeI64(self.success)
1264
      oprot.writeFieldEnd()
1268
      oprot.writeFieldEnd()
1265
    if self.se != None:
1269
    if self.se is not None:
1266
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1270
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1267
      self.se.write(oprot)
1271
      self.se.write(oprot)
1268
      oprot.writeFieldEnd()
1272
      oprot.writeFieldEnd()
1269
    oprot.writeFieldStop()
1273
    oprot.writeFieldStop()
1270
    oprot.writeStructEnd()
1274
    oprot.writeStructEnd()
1271
 
1275
 
-
 
1276
  def validate(self):
-
 
1277
    return
-
 
1278
 
-
 
1279
 
1272
  def __repr__(self):
1280
  def __repr__(self):
1273
    L = ['%s=%r' % (key, value)
1281
    L = ['%s=%r' % (key, value)
1274
      for key, value in self.__dict__.iteritems()]
1282
      for key, value in self.__dict__.iteritems()]
1275
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1283
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1276
 
1284
 
Line 1305... Line 1313...
1305
      return
1313
      return
1306
    oprot.writeStructBegin('getEmailsToBeSent_args')
1314
    oprot.writeStructBegin('getEmailsToBeSent_args')
1307
    oprot.writeFieldStop()
1315
    oprot.writeFieldStop()
1308
    oprot.writeStructEnd()
1316
    oprot.writeStructEnd()
1309
 
1317
 
-
 
1318
  def validate(self):
-
 
1319
    return
-
 
1320
 
-
 
1321
 
1310
  def __repr__(self):
1322
  def __repr__(self):
1311
    L = ['%s=%r' % (key, value)
1323
    L = ['%s=%r' % (key, value)
1312
      for key, value in self.__dict__.iteritems()]
1324
      for key, value in self.__dict__.iteritems()]
1313
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1325
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1314
 
1326
 
Line 1368... Line 1380...
1368
  def write(self, oprot):
1380
  def write(self, oprot):
1369
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1381
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1370
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1382
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1371
      return
1383
      return
1372
    oprot.writeStructBegin('getEmailsToBeSent_result')
1384
    oprot.writeStructBegin('getEmailsToBeSent_result')
1373
    if self.success != None:
1385
    if self.success is not None:
1374
      oprot.writeFieldBegin('success', TType.LIST, 0)
1386
      oprot.writeFieldBegin('success', TType.LIST, 0)
1375
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1387
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1376
      for iter20 in self.success:
1388
      for iter20 in self.success:
1377
        iter20.write(oprot)
1389
        iter20.write(oprot)
1378
      oprot.writeListEnd()
1390
      oprot.writeListEnd()
1379
      oprot.writeFieldEnd()
1391
      oprot.writeFieldEnd()
1380
    if self.se != None:
1392
    if self.se is not None:
1381
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1393
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1382
      self.se.write(oprot)
1394
      self.se.write(oprot)
1383
      oprot.writeFieldEnd()
1395
      oprot.writeFieldEnd()
1384
    oprot.writeFieldStop()
1396
    oprot.writeFieldStop()
1385
    oprot.writeStructEnd()
1397
    oprot.writeStructEnd()
1386
 
1398
 
-
 
1399
  def validate(self):
-
 
1400
    return
-
 
1401
 
-
 
1402
 
1387
  def __repr__(self):
1403
  def __repr__(self):
1388
    L = ['%s=%r' % (key, value)
1404
    L = ['%s=%r' % (key, value)
1389
      for key, value in self.__dict__.iteritems()]
1405
      for key, value in self.__dict__.iteritems()]
1390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1406
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1391
 
1407
 
Line 1431... Line 1447...
1431
  def write(self, oprot):
1447
  def write(self, oprot):
1432
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1448
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1433
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1449
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1434
      return
1450
      return
1435
    oprot.writeStructBegin('markEmailAsSent_args')
1451
    oprot.writeStructBegin('markEmailAsSent_args')
1436
    if self.emailId != None:
1452
    if self.emailId is not None:
1437
      oprot.writeFieldBegin('emailId', TType.I64, 1)
1453
      oprot.writeFieldBegin('emailId', TType.I64, 1)
1438
      oprot.writeI64(self.emailId)
1454
      oprot.writeI64(self.emailId)
1439
      oprot.writeFieldEnd()
1455
      oprot.writeFieldEnd()
1440
    oprot.writeFieldStop()
1456
    oprot.writeFieldStop()
1441
    oprot.writeStructEnd()
1457
    oprot.writeStructEnd()
1442
 
1458
 
-
 
1459
  def validate(self):
-
 
1460
    return
-
 
1461
 
-
 
1462
 
1443
  def __repr__(self):
1463
  def __repr__(self):
1444
    L = ['%s=%r' % (key, value)
1464
    L = ['%s=%r' % (key, value)
1445
      for key, value in self.__dict__.iteritems()]
1465
      for key, value in self.__dict__.iteritems()]
1446
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1466
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1447
 
1467
 
Line 1488... Line 1508...
1488
  def write(self, oprot):
1508
  def write(self, oprot):
1489
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1509
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1490
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1510
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1491
      return
1511
      return
1492
    oprot.writeStructBegin('markEmailAsSent_result')
1512
    oprot.writeStructBegin('markEmailAsSent_result')
1493
    if self.se != None:
1513
    if self.se is not None:
1494
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1514
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1495
      self.se.write(oprot)
1515
      self.se.write(oprot)
1496
      oprot.writeFieldEnd()
1516
      oprot.writeFieldEnd()
1497
    oprot.writeFieldStop()
1517
    oprot.writeFieldStop()
1498
    oprot.writeStructEnd()
1518
    oprot.writeStructEnd()
1499
 
1519
 
-
 
1520
  def validate(self):
-
 
1521
    return
-
 
1522
 
-
 
1523
 
1500
  def __repr__(self):
1524
  def __repr__(self):
1501
    L = ['%s=%r' % (key, value)
1525
    L = ['%s=%r' % (key, value)
1502
      for key, value in self.__dict__.iteritems()]
1526
      for key, value in self.__dict__.iteritems()]
1503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1527
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1504
 
1528
 
Line 1545... Line 1569...
1545
  def write(self, oprot):
1569
  def write(self, oprot):
1546
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1547
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1548
      return
1572
      return
1549
    oprot.writeStructBegin('sendMail_args')
1573
    oprot.writeStructBegin('sendMail_args')
1550
    if self.mail != None:
1574
    if self.mail is not None:
1551
      oprot.writeFieldBegin('mail', TType.STRUCT, 1)
1575
      oprot.writeFieldBegin('mail', TType.STRUCT, 1)
1552
      self.mail.write(oprot)
1576
      self.mail.write(oprot)
1553
      oprot.writeFieldEnd()
1577
      oprot.writeFieldEnd()
1554
    oprot.writeFieldStop()
1578
    oprot.writeFieldStop()
1555
    oprot.writeStructEnd()
1579
    oprot.writeStructEnd()
1556
 
1580
 
-
 
1581
  def validate(self):
-
 
1582
    return
-
 
1583
 
-
 
1584
 
1557
  def __repr__(self):
1585
  def __repr__(self):
1558
    L = ['%s=%r' % (key, value)
1586
    L = ['%s=%r' % (key, value)
1559
      for key, value in self.__dict__.iteritems()]
1587
      for key, value in self.__dict__.iteritems()]
1560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1588
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1561
 
1589
 
Line 1602... Line 1630...
1602
  def write(self, oprot):
1630
  def write(self, oprot):
1603
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1604
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1605
      return
1633
      return
1606
    oprot.writeStructBegin('sendMail_result')
1634
    oprot.writeStructBegin('sendMail_result')
1607
    if self.se != None:
1635
    if self.se is not None:
1608
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1636
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1609
      self.se.write(oprot)
1637
      self.se.write(oprot)
1610
      oprot.writeFieldEnd()
1638
      oprot.writeFieldEnd()
1611
    oprot.writeFieldStop()
1639
    oprot.writeFieldStop()
1612
    oprot.writeStructEnd()
1640
    oprot.writeStructEnd()
1613
 
1641
 
-
 
1642
  def validate(self):
-
 
1643
    return
-
 
1644
 
-
 
1645
 
1614
  def __repr__(self):
1646
  def __repr__(self):
1615
    L = ['%s=%r' % (key, value)
1647
    L = ['%s=%r' % (key, value)
1616
      for key, value in self.__dict__.iteritems()]
1648
      for key, value in self.__dict__.iteritems()]
1617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1649
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1618
 
1650
 
Line 1659... Line 1691...
1659
  def write(self, oprot):
1691
  def write(self, oprot):
1660
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1692
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1661
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1693
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1662
      return
1694
      return
1663
    oprot.writeStructBegin('sendText_args')
1695
    oprot.writeStructBegin('sendText_args')
1664
    if self.message != None:
1696
    if self.message is not None:
1665
      oprot.writeFieldBegin('message', TType.STRUCT, 1)
1697
      oprot.writeFieldBegin('message', TType.STRUCT, 1)
1666
      self.message.write(oprot)
1698
      self.message.write(oprot)
1667
      oprot.writeFieldEnd()
1699
      oprot.writeFieldEnd()
1668
    oprot.writeFieldStop()
1700
    oprot.writeFieldStop()
1669
    oprot.writeStructEnd()
1701
    oprot.writeStructEnd()
1670
 
1702
 
-
 
1703
  def validate(self):
-
 
1704
    return
-
 
1705
 
-
 
1706
 
1671
  def __repr__(self):
1707
  def __repr__(self):
1672
    L = ['%s=%r' % (key, value)
1708
    L = ['%s=%r' % (key, value)
1673
      for key, value in self.__dict__.iteritems()]
1709
      for key, value in self.__dict__.iteritems()]
1674
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1710
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1675
 
1711
 
Line 1716... Line 1752...
1716
  def write(self, oprot):
1752
  def write(self, oprot):
1717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1753
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1754
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1719
      return
1755
      return
1720
    oprot.writeStructBegin('sendText_result')
1756
    oprot.writeStructBegin('sendText_result')
1721
    if self.se != None:
1757
    if self.se is not None:
1722
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1758
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1723
      self.se.write(oprot)
1759
      self.se.write(oprot)
1724
      oprot.writeFieldEnd()
1760
      oprot.writeFieldEnd()
1725
    oprot.writeFieldStop()
1761
    oprot.writeFieldStop()
1726
    oprot.writeStructEnd()
1762
    oprot.writeStructEnd()
1727
 
1763
 
-
 
1764
  def validate(self):
-
 
1765
    return
-
 
1766
 
-
 
1767
 
1728
  def __repr__(self):
1768
  def __repr__(self):
1729
    L = ['%s=%r' % (key, value)
1769
    L = ['%s=%r' % (key, value)
1730
      for key, value in self.__dict__.iteritems()]
1770
      for key, value in self.__dict__.iteritems()]
1731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1771
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1732
 
1772
 
Line 1773... Line 1813...
1773
  def write(self, oprot):
1813
  def write(self, oprot):
1774
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1775
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1776
      return
1816
      return
1777
    oprot.writeStructBegin('addMessage_args')
1817
    oprot.writeStructBegin('addMessage_args')
1778
    if self.message != None:
1818
    if self.message is not None:
1779
      oprot.writeFieldBegin('message', TType.STRUCT, 1)
1819
      oprot.writeFieldBegin('message', TType.STRUCT, 1)
1780
      self.message.write(oprot)
1820
      self.message.write(oprot)
1781
      oprot.writeFieldEnd()
1821
      oprot.writeFieldEnd()
1782
    oprot.writeFieldStop()
1822
    oprot.writeFieldStop()
1783
    oprot.writeStructEnd()
1823
    oprot.writeStructEnd()
1784
 
1824
 
-
 
1825
  def validate(self):
-
 
1826
    return
-
 
1827
 
-
 
1828
 
1785
  def __repr__(self):
1829
  def __repr__(self):
1786
    L = ['%s=%r' % (key, value)
1830
    L = ['%s=%r' % (key, value)
1787
      for key, value in self.__dict__.iteritems()]
1831
      for key, value in self.__dict__.iteritems()]
1788
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1832
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1789
 
1833
 
Line 1830... Line 1874...
1830
  def write(self, oprot):
1874
  def write(self, oprot):
1831
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1832
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1833
      return
1877
      return
1834
    oprot.writeStructBegin('addMessage_result')
1878
    oprot.writeStructBegin('addMessage_result')
1835
    if self.se != None:
1879
    if self.se is not None:
1836
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1880
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1837
      self.se.write(oprot)
1881
      self.se.write(oprot)
1838
      oprot.writeFieldEnd()
1882
      oprot.writeFieldEnd()
1839
    oprot.writeFieldStop()
1883
    oprot.writeFieldStop()
1840
    oprot.writeStructEnd()
1884
    oprot.writeStructEnd()
1841
 
1885
 
-
 
1886
  def validate(self):
-
 
1887
    return
-
 
1888
 
-
 
1889
 
1842
  def __repr__(self):
1890
  def __repr__(self):
1843
    L = ['%s=%r' % (key, value)
1891
    L = ['%s=%r' % (key, value)
1844
      for key, value in self.__dict__.iteritems()]
1892
      for key, value in self.__dict__.iteritems()]
1845
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1846
 
1894
 
Line 1894... Line 1942...
1894
  def write(self, oprot):
1942
  def write(self, oprot):
1895
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1943
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1896
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1944
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1897
      return
1945
      return
1898
    oprot.writeStructBegin('updateMessage_args')
1946
    oprot.writeStructBegin('updateMessage_args')
1899
    if self.id != None:
1947
    if self.id is not None:
1900
      oprot.writeFieldBegin('id', TType.I64, 1)
1948
      oprot.writeFieldBegin('id', TType.I64, 1)
1901
      oprot.writeI64(self.id)
1949
      oprot.writeI64(self.id)
1902
      oprot.writeFieldEnd()
1950
      oprot.writeFieldEnd()
1903
    if self.message != None:
1951
    if self.message is not None:
1904
      oprot.writeFieldBegin('message', TType.STRING, 2)
1952
      oprot.writeFieldBegin('message', TType.STRING, 2)
1905
      oprot.writeString(self.message)
1953
      oprot.writeString(self.message)
1906
      oprot.writeFieldEnd()
1954
      oprot.writeFieldEnd()
1907
    oprot.writeFieldStop()
1955
    oprot.writeFieldStop()
1908
    oprot.writeStructEnd()
1956
    oprot.writeStructEnd()
1909
 
1957
 
-
 
1958
  def validate(self):
-
 
1959
    return
-
 
1960
 
-
 
1961
 
1910
  def __repr__(self):
1962
  def __repr__(self):
1911
    L = ['%s=%r' % (key, value)
1963
    L = ['%s=%r' % (key, value)
1912
      for key, value in self.__dict__.iteritems()]
1964
      for key, value in self.__dict__.iteritems()]
1913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1965
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1914
 
1966
 
Line 1955... Line 2007...
1955
  def write(self, oprot):
2007
  def write(self, oprot):
1956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2008
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2009
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1958
      return
2010
      return
1959
    oprot.writeStructBegin('updateMessage_result')
2011
    oprot.writeStructBegin('updateMessage_result')
1960
    if self.se != None:
2012
    if self.se is not None:
1961
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2013
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1962
      self.se.write(oprot)
2014
      self.se.write(oprot)
1963
      oprot.writeFieldEnd()
2015
      oprot.writeFieldEnd()
1964
    oprot.writeFieldStop()
2016
    oprot.writeFieldStop()
1965
    oprot.writeStructEnd()
2017
    oprot.writeStructEnd()
1966
 
2018
 
-
 
2019
  def validate(self):
-
 
2020
    return
-
 
2021
 
-
 
2022
 
1967
  def __repr__(self):
2023
  def __repr__(self):
1968
    L = ['%s=%r' % (key, value)
2024
    L = ['%s=%r' % (key, value)
1969
      for key, value in self.__dict__.iteritems()]
2025
      for key, value in self.__dict__.iteritems()]
1970
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1971
 
2027
 
Line 2011... Line 2067...
2011
  def write(self, oprot):
2067
  def write(self, oprot):
2012
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2068
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2013
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2069
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2014
      return
2070
      return
2015
    oprot.writeStructBegin('getMessage_args')
2071
    oprot.writeStructBegin('getMessage_args')
2016
    if self.id != None:
2072
    if self.id is not None:
2017
      oprot.writeFieldBegin('id', TType.I64, 1)
2073
      oprot.writeFieldBegin('id', TType.I64, 1)
2018
      oprot.writeI64(self.id)
2074
      oprot.writeI64(self.id)
2019
      oprot.writeFieldEnd()
2075
      oprot.writeFieldEnd()
2020
    oprot.writeFieldStop()
2076
    oprot.writeFieldStop()
2021
    oprot.writeStructEnd()
2077
    oprot.writeStructEnd()
2022
 
2078
 
-
 
2079
  def validate(self):
-
 
2080
    return
-
 
2081
 
-
 
2082
 
2023
  def __repr__(self):
2083
  def __repr__(self):
2024
    L = ['%s=%r' % (key, value)
2084
    L = ['%s=%r' % (key, value)
2025
      for key, value in self.__dict__.iteritems()]
2085
      for key, value in self.__dict__.iteritems()]
2026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2086
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2027
 
2087
 
Line 2076... Line 2136...
2076
  def write(self, oprot):
2136
  def write(self, oprot):
2077
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2137
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2078
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2138
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2079
      return
2139
      return
2080
    oprot.writeStructBegin('getMessage_result')
2140
    oprot.writeStructBegin('getMessage_result')
2081
    if self.success != None:
2141
    if self.success is not None:
2082
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2142
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2083
      self.success.write(oprot)
2143
      self.success.write(oprot)
2084
      oprot.writeFieldEnd()
2144
      oprot.writeFieldEnd()
2085
    if self.se != None:
2145
    if self.se is not None:
2086
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2146
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2087
      self.se.write(oprot)
2147
      self.se.write(oprot)
2088
      oprot.writeFieldEnd()
2148
      oprot.writeFieldEnd()
2089
    oprot.writeFieldStop()
2149
    oprot.writeFieldStop()
2090
    oprot.writeStructEnd()
2150
    oprot.writeStructEnd()
2091
 
2151
 
-
 
2152
  def validate(self):
-
 
2153
    return
-
 
2154
 
-
 
2155
 
2092
  def __repr__(self):
2156
  def __repr__(self):
2093
    L = ['%s=%r' % (key, value)
2157
    L = ['%s=%r' % (key, value)
2094
      for key, value in self.__dict__.iteritems()]
2158
      for key, value in self.__dict__.iteritems()]
2095
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2096
 
2160
 
Line 2150... Line 2214...
2150
  def write(self, oprot):
2214
  def write(self, oprot):
2151
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2215
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2152
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2216
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2153
      return
2217
      return
2154
    oprot.writeStructBegin('getSubstitutedMessage_args')
2218
    oprot.writeStructBegin('getSubstitutedMessage_args')
2155
    if self.id != None:
2219
    if self.id is not None:
2156
      oprot.writeFieldBegin('id', TType.I64, 1)
2220
      oprot.writeFieldBegin('id', TType.I64, 1)
2157
      oprot.writeI64(self.id)
2221
      oprot.writeI64(self.id)
2158
      oprot.writeFieldEnd()
2222
      oprot.writeFieldEnd()
2159
    if self.params != None:
2223
    if self.params is not None:
2160
      oprot.writeFieldBegin('params', TType.MAP, 2)
2224
      oprot.writeFieldBegin('params', TType.MAP, 2)
2161
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.params))
2225
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.params))
2162
      for kiter28,viter29 in self.params.items():
2226
      for kiter28,viter29 in self.params.items():
2163
        oprot.writeString(kiter28)
2227
        oprot.writeString(kiter28)
2164
        oprot.writeString(viter29)
2228
        oprot.writeString(viter29)
2165
      oprot.writeMapEnd()
2229
      oprot.writeMapEnd()
2166
      oprot.writeFieldEnd()
2230
      oprot.writeFieldEnd()
2167
    oprot.writeFieldStop()
2231
    oprot.writeFieldStop()
2168
    oprot.writeStructEnd()
2232
    oprot.writeStructEnd()
2169
 
2233
 
-
 
2234
  def validate(self):
-
 
2235
    return
-
 
2236
 
-
 
2237
 
2170
  def __repr__(self):
2238
  def __repr__(self):
2171
    L = ['%s=%r' % (key, value)
2239
    L = ['%s=%r' % (key, value)
2172
      for key, value in self.__dict__.iteritems()]
2240
      for key, value in self.__dict__.iteritems()]
2173
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2241
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2174
 
2242
 
Line 2223... Line 2291...
2223
  def write(self, oprot):
2291
  def write(self, oprot):
2224
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2292
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2225
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2293
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2226
      return
2294
      return
2227
    oprot.writeStructBegin('getSubstitutedMessage_result')
2295
    oprot.writeStructBegin('getSubstitutedMessage_result')
2228
    if self.success != None:
2296
    if self.success is not None:
2229
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2297
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2230
      self.success.write(oprot)
2298
      self.success.write(oprot)
2231
      oprot.writeFieldEnd()
2299
      oprot.writeFieldEnd()
2232
    if self.se != None:
2300
    if self.se is not None:
2233
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2301
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2234
      self.se.write(oprot)
2302
      self.se.write(oprot)
2235
      oprot.writeFieldEnd()
2303
      oprot.writeFieldEnd()
2236
    oprot.writeFieldStop()
2304
    oprot.writeFieldStop()
2237
    oprot.writeStructEnd()
2305
    oprot.writeStructEnd()
2238
 
2306
 
-
 
2307
  def validate(self):
-
 
2308
    return
-
 
2309
 
-
 
2310
 
2239
  def __repr__(self):
2311
  def __repr__(self):
2240
    L = ['%s=%r' % (key, value)
2312
    L = ['%s=%r' % (key, value)
2241
      for key, value in self.__dict__.iteritems()]
2313
      for key, value in self.__dict__.iteritems()]
2242
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2314
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2243
 
2315
 
Line 2299... Line 2371...
2299
  def write(self, oprot):
2371
  def write(self, oprot):
2300
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2372
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2301
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2373
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2302
      return
2374
      return
2303
    oprot.writeStructBegin('addUser_args')
2375
    oprot.writeStructBegin('addUser_args')
2304
    if self.username != None:
2376
    if self.username is not None:
2305
      oprot.writeFieldBegin('username', TType.STRING, 1)
2377
      oprot.writeFieldBegin('username', TType.STRING, 1)
2306
      oprot.writeString(self.username)
2378
      oprot.writeString(self.username)
2307
      oprot.writeFieldEnd()
2379
      oprot.writeFieldEnd()
2308
    if self.password != None:
2380
    if self.password is not None:
2309
      oprot.writeFieldBegin('password', TType.STRING, 2)
2381
      oprot.writeFieldBegin('password', TType.STRING, 2)
2310
      oprot.writeString(self.password)
2382
      oprot.writeString(self.password)
2311
      oprot.writeFieldEnd()
2383
      oprot.writeFieldEnd()
2312
    if self.warehouseId != None:
2384
    if self.warehouseId is not None:
2313
      oprot.writeFieldBegin('warehouseId', TType.I64, 3)
2385
      oprot.writeFieldBegin('warehouseId', TType.I64, 3)
2314
      oprot.writeI64(self.warehouseId)
2386
      oprot.writeI64(self.warehouseId)
2315
      oprot.writeFieldEnd()
2387
      oprot.writeFieldEnd()
2316
    oprot.writeFieldStop()
2388
    oprot.writeFieldStop()
2317
    oprot.writeStructEnd()
2389
    oprot.writeStructEnd()
2318
 
2390
 
-
 
2391
  def validate(self):
-
 
2392
    return
-
 
2393
 
-
 
2394
 
2319
  def __repr__(self):
2395
  def __repr__(self):
2320
    L = ['%s=%r' % (key, value)
2396
    L = ['%s=%r' % (key, value)
2321
      for key, value in self.__dict__.iteritems()]
2397
      for key, value in self.__dict__.iteritems()]
2322
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2398
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2323
 
2399
 
Line 2371... Line 2447...
2371
  def write(self, oprot):
2447
  def write(self, oprot):
2372
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2448
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2373
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2449
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2374
      return
2450
      return
2375
    oprot.writeStructBegin('addUser_result')
2451
    oprot.writeStructBegin('addUser_result')
2376
    if self.success != None:
2452
    if self.success is not None:
2377
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2453
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2378
      oprot.writeBool(self.success)
2454
      oprot.writeBool(self.success)
2379
      oprot.writeFieldEnd()
2455
      oprot.writeFieldEnd()
2380
    if self.se != None:
2456
    if self.se is not None:
2381
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2457
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2382
      self.se.write(oprot)
2458
      self.se.write(oprot)
2383
      oprot.writeFieldEnd()
2459
      oprot.writeFieldEnd()
2384
    oprot.writeFieldStop()
2460
    oprot.writeFieldStop()
2385
    oprot.writeStructEnd()
2461
    oprot.writeStructEnd()
2386
 
2462
 
-
 
2463
  def validate(self):
-
 
2464
    return
-
 
2465
 
-
 
2466
 
2387
  def __repr__(self):
2467
  def __repr__(self):
2388
    L = ['%s=%r' % (key, value)
2468
    L = ['%s=%r' % (key, value)
2389
      for key, value in self.__dict__.iteritems()]
2469
      for key, value in self.__dict__.iteritems()]
2390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2470
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2391
 
2471
 
Line 2431... Line 2511...
2431
  def write(self, oprot):
2511
  def write(self, oprot):
2432
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2512
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2433
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2513
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2434
      return
2514
      return
2435
    oprot.writeStructBegin('deleteUser_args')
2515
    oprot.writeStructBegin('deleteUser_args')
2436
    if self.username != None:
2516
    if self.username is not None:
2437
      oprot.writeFieldBegin('username', TType.STRING, 1)
2517
      oprot.writeFieldBegin('username', TType.STRING, 1)
2438
      oprot.writeString(self.username)
2518
      oprot.writeString(self.username)
2439
      oprot.writeFieldEnd()
2519
      oprot.writeFieldEnd()
2440
    oprot.writeFieldStop()
2520
    oprot.writeFieldStop()
2441
    oprot.writeStructEnd()
2521
    oprot.writeStructEnd()
2442
 
2522
 
-
 
2523
  def validate(self):
-
 
2524
    return
-
 
2525
 
-
 
2526
 
2443
  def __repr__(self):
2527
  def __repr__(self):
2444
    L = ['%s=%r' % (key, value)
2528
    L = ['%s=%r' % (key, value)
2445
      for key, value in self.__dict__.iteritems()]
2529
      for key, value in self.__dict__.iteritems()]
2446
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2447
 
2531
 
Line 2495... Line 2579...
2495
  def write(self, oprot):
2579
  def write(self, oprot):
2496
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2580
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2497
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2581
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2498
      return
2582
      return
2499
    oprot.writeStructBegin('deleteUser_result')
2583
    oprot.writeStructBegin('deleteUser_result')
2500
    if self.success != None:
2584
    if self.success is not None:
2501
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2585
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2502
      oprot.writeBool(self.success)
2586
      oprot.writeBool(self.success)
2503
      oprot.writeFieldEnd()
2587
      oprot.writeFieldEnd()
2504
    if self.se != None:
2588
    if self.se is not None:
2505
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2589
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2506
      self.se.write(oprot)
2590
      self.se.write(oprot)
2507
      oprot.writeFieldEnd()
2591
      oprot.writeFieldEnd()
2508
    oprot.writeFieldStop()
2592
    oprot.writeFieldStop()
2509
    oprot.writeStructEnd()
2593
    oprot.writeStructEnd()
2510
 
2594
 
-
 
2595
  def validate(self):
-
 
2596
    return
-
 
2597
 
-
 
2598
 
2511
  def __repr__(self):
2599
  def __repr__(self):
2512
    L = ['%s=%r' % (key, value)
2600
    L = ['%s=%r' % (key, value)
2513
      for key, value in self.__dict__.iteritems()]
2601
      for key, value in self.__dict__.iteritems()]
2514
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2515
 
2603
 
Line 2563... Line 2651...
2563
  def write(self, oprot):
2651
  def write(self, oprot):
2564
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2565
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2566
      return
2654
      return
2567
    oprot.writeStructBegin('authenticateDashboardUser_args')
2655
    oprot.writeStructBegin('authenticateDashboardUser_args')
2568
    if self.username != None:
2656
    if self.username is not None:
2569
      oprot.writeFieldBegin('username', TType.STRING, 1)
2657
      oprot.writeFieldBegin('username', TType.STRING, 1)
2570
      oprot.writeString(self.username)
2658
      oprot.writeString(self.username)
2571
      oprot.writeFieldEnd()
2659
      oprot.writeFieldEnd()
2572
    if self.password != None:
2660
    if self.password is not None:
2573
      oprot.writeFieldBegin('password', TType.STRING, 2)
2661
      oprot.writeFieldBegin('password', TType.STRING, 2)
2574
      oprot.writeString(self.password)
2662
      oprot.writeString(self.password)
2575
      oprot.writeFieldEnd()
2663
      oprot.writeFieldEnd()
2576
    oprot.writeFieldStop()
2664
    oprot.writeFieldStop()
2577
    oprot.writeStructEnd()
2665
    oprot.writeStructEnd()
2578
 
2666
 
-
 
2667
  def validate(self):
-
 
2668
    return
-
 
2669
 
-
 
2670
 
2579
  def __repr__(self):
2671
  def __repr__(self):
2580
    L = ['%s=%r' % (key, value)
2672
    L = ['%s=%r' % (key, value)
2581
      for key, value in self.__dict__.iteritems()]
2673
      for key, value in self.__dict__.iteritems()]
2582
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2674
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2583
 
2675
 
Line 2632... Line 2724...
2632
  def write(self, oprot):
2724
  def write(self, oprot):
2633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2725
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2726
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2635
      return
2727
      return
2636
    oprot.writeStructBegin('authenticateDashboardUser_result')
2728
    oprot.writeStructBegin('authenticateDashboardUser_result')
2637
    if self.success != None:
2729
    if self.success is not None:
2638
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2730
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2639
      self.success.write(oprot)
2731
      self.success.write(oprot)
2640
      oprot.writeFieldEnd()
2732
      oprot.writeFieldEnd()
2641
    if self.se != None:
2733
    if self.se is not None:
2642
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2734
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2643
      self.se.write(oprot)
2735
      self.se.write(oprot)
2644
      oprot.writeFieldEnd()
2736
      oprot.writeFieldEnd()
2645
    oprot.writeFieldStop()
2737
    oprot.writeFieldStop()
2646
    oprot.writeStructEnd()
2738
    oprot.writeStructEnd()
2647
 
2739
 
-
 
2740
  def validate(self):
-
 
2741
    return
-
 
2742
 
-
 
2743
 
2648
  def __repr__(self):
2744
  def __repr__(self):
2649
    L = ['%s=%r' % (key, value)
2745
    L = ['%s=%r' % (key, value)
2650
      for key, value in self.__dict__.iteritems()]
2746
      for key, value in self.__dict__.iteritems()]
2651
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2747
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2652
 
2748
 
Line 2708... Line 2804...
2708
  def write(self, oprot):
2804
  def write(self, oprot):
2709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2805
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2806
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2711
      return
2807
      return
2712
    oprot.writeStructBegin('updatePassword_args')
2808
    oprot.writeStructBegin('updatePassword_args')
2713
    if self.username != None:
2809
    if self.username is not None:
2714
      oprot.writeFieldBegin('username', TType.STRING, 1)
2810
      oprot.writeFieldBegin('username', TType.STRING, 1)
2715
      oprot.writeString(self.username)
2811
      oprot.writeString(self.username)
2716
      oprot.writeFieldEnd()
2812
      oprot.writeFieldEnd()
2717
    if self.oldPassword != None:
2813
    if self.oldPassword is not None:
2718
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
2814
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
2719
      oprot.writeString(self.oldPassword)
2815
      oprot.writeString(self.oldPassword)
2720
      oprot.writeFieldEnd()
2816
      oprot.writeFieldEnd()
2721
    if self.newPassword != None:
2817
    if self.newPassword is not None:
2722
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
2818
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
2723
      oprot.writeString(self.newPassword)
2819
      oprot.writeString(self.newPassword)
2724
      oprot.writeFieldEnd()
2820
      oprot.writeFieldEnd()
2725
    oprot.writeFieldStop()
2821
    oprot.writeFieldStop()
2726
    oprot.writeStructEnd()
2822
    oprot.writeStructEnd()
2727
 
2823
 
-
 
2824
  def validate(self):
-
 
2825
    return
-
 
2826
 
-
 
2827
 
2728
  def __repr__(self):
2828
  def __repr__(self):
2729
    L = ['%s=%r' % (key, value)
2829
    L = ['%s=%r' % (key, value)
2730
      for key, value in self.__dict__.iteritems()]
2830
      for key, value in self.__dict__.iteritems()]
2731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2831
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2732
 
2832
 
Line 2780... Line 2880...
2780
  def write(self, oprot):
2880
  def write(self, oprot):
2781
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2881
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2782
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2882
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2783
      return
2883
      return
2784
    oprot.writeStructBegin('updatePassword_result')
2884
    oprot.writeStructBegin('updatePassword_result')
2785
    if self.success != None:
2885
    if self.success is not None:
2786
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2886
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2787
      oprot.writeBool(self.success)
2887
      oprot.writeBool(self.success)
2788
      oprot.writeFieldEnd()
2888
      oprot.writeFieldEnd()
2789
    if self.se != None:
2889
    if self.se is not None:
2790
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2890
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2791
      self.se.write(oprot)
2891
      self.se.write(oprot)
2792
      oprot.writeFieldEnd()
2892
      oprot.writeFieldEnd()
2793
    oprot.writeFieldStop()
2893
    oprot.writeFieldStop()
2794
    oprot.writeStructEnd()
2894
    oprot.writeStructEnd()
2795
 
2895
 
-
 
2896
  def validate(self):
-
 
2897
    return
-
 
2898
 
-
 
2899
 
2796
  def __repr__(self):
2900
  def __repr__(self):
2797
    L = ['%s=%r' % (key, value)
2901
    L = ['%s=%r' % (key, value)
2798
      for key, value in self.__dict__.iteritems()]
2902
      for key, value in self.__dict__.iteritems()]
2799
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2903
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2800
 
2904
 
Line 2848... Line 2952...
2848
  def write(self, oprot):
2952
  def write(self, oprot):
2849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2953
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2954
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2851
      return
2955
      return
2852
    oprot.writeStructBegin('authenticateLogisticsUser_args')
2956
    oprot.writeStructBegin('authenticateLogisticsUser_args')
2853
    if self.username != None:
2957
    if self.username is not None:
2854
      oprot.writeFieldBegin('username', TType.STRING, 1)
2958
      oprot.writeFieldBegin('username', TType.STRING, 1)
2855
      oprot.writeString(self.username)
2959
      oprot.writeString(self.username)
2856
      oprot.writeFieldEnd()
2960
      oprot.writeFieldEnd()
2857
    if self.password != None:
2961
    if self.password is not None:
2858
      oprot.writeFieldBegin('password', TType.STRING, 2)
2962
      oprot.writeFieldBegin('password', TType.STRING, 2)
2859
      oprot.writeString(self.password)
2963
      oprot.writeString(self.password)
2860
      oprot.writeFieldEnd()
2964
      oprot.writeFieldEnd()
2861
    oprot.writeFieldStop()
2965
    oprot.writeFieldStop()
2862
    oprot.writeStructEnd()
2966
    oprot.writeStructEnd()
2863
 
2967
 
-
 
2968
  def validate(self):
-
 
2969
    return
-
 
2970
 
-
 
2971
 
2864
  def __repr__(self):
2972
  def __repr__(self):
2865
    L = ['%s=%r' % (key, value)
2973
    L = ['%s=%r' % (key, value)
2866
      for key, value in self.__dict__.iteritems()]
2974
      for key, value in self.__dict__.iteritems()]
2867
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2975
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2868
 
2976
 
Line 2917... Line 3025...
2917
  def write(self, oprot):
3025
  def write(self, oprot):
2918
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3026
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2919
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3027
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2920
      return
3028
      return
2921
    oprot.writeStructBegin('authenticateLogisticsUser_result')
3029
    oprot.writeStructBegin('authenticateLogisticsUser_result')
2922
    if self.success != None:
3030
    if self.success is not None:
2923
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3031
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2924
      self.success.write(oprot)
3032
      self.success.write(oprot)
2925
      oprot.writeFieldEnd()
3033
      oprot.writeFieldEnd()
2926
    if self.hse != None:
3034
    if self.hse is not None:
2927
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
3035
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
2928
      self.hse.write(oprot)
3036
      self.hse.write(oprot)
2929
      oprot.writeFieldEnd()
3037
      oprot.writeFieldEnd()
2930
    oprot.writeFieldStop()
3038
    oprot.writeFieldStop()
2931
    oprot.writeStructEnd()
3039
    oprot.writeStructEnd()
2932
 
3040
 
-
 
3041
  def validate(self):
-
 
3042
    return
-
 
3043
 
-
 
3044
 
2933
  def __repr__(self):
3045
  def __repr__(self):
2934
    L = ['%s=%r' % (key, value)
3046
    L = ['%s=%r' % (key, value)
2935
      for key, value in self.__dict__.iteritems()]
3047
      for key, value in self.__dict__.iteritems()]
2936
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3048
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2937
 
3049
 
Line 2985... Line 3097...
2985
  def write(self, oprot):
3097
  def write(self, oprot):
2986
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3098
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2987
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3099
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2988
      return
3100
      return
2989
    oprot.writeStructBegin('authenticateStatisticsUser_args')
3101
    oprot.writeStructBegin('authenticateStatisticsUser_args')
2990
    if self.username != None:
3102
    if self.username is not None:
2991
      oprot.writeFieldBegin('username', TType.STRING, 1)
3103
      oprot.writeFieldBegin('username', TType.STRING, 1)
2992
      oprot.writeString(self.username)
3104
      oprot.writeString(self.username)
2993
      oprot.writeFieldEnd()
3105
      oprot.writeFieldEnd()
2994
    if self.password != None:
3106
    if self.password is not None:
2995
      oprot.writeFieldBegin('password', TType.STRING, 2)
3107
      oprot.writeFieldBegin('password', TType.STRING, 2)
2996
      oprot.writeString(self.password)
3108
      oprot.writeString(self.password)
2997
      oprot.writeFieldEnd()
3109
      oprot.writeFieldEnd()
2998
    oprot.writeFieldStop()
3110
    oprot.writeFieldStop()
2999
    oprot.writeStructEnd()
3111
    oprot.writeStructEnd()
3000
 
3112
 
-
 
3113
  def validate(self):
-
 
3114
    return
-
 
3115
 
-
 
3116
 
3001
  def __repr__(self):
3117
  def __repr__(self):
3002
    L = ['%s=%r' % (key, value)
3118
    L = ['%s=%r' % (key, value)
3003
      for key, value in self.__dict__.iteritems()]
3119
      for key, value in self.__dict__.iteritems()]
3004
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3005
 
3121
 
Line 3054... Line 3170...
3054
  def write(self, oprot):
3170
  def write(self, oprot):
3055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3171
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3172
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3057
      return
3173
      return
3058
    oprot.writeStructBegin('authenticateStatisticsUser_result')
3174
    oprot.writeStructBegin('authenticateStatisticsUser_result')
3059
    if self.success != None:
3175
    if self.success is not None:
3060
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3176
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3061
      self.success.write(oprot)
3177
      self.success.write(oprot)
3062
      oprot.writeFieldEnd()
3178
      oprot.writeFieldEnd()
3063
    if self.hse != None:
3179
    if self.hse is not None:
3064
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
3180
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
3065
      self.hse.write(oprot)
3181
      self.hse.write(oprot)
3066
      oprot.writeFieldEnd()
3182
      oprot.writeFieldEnd()
3067
    oprot.writeFieldStop()
3183
    oprot.writeFieldStop()
3068
    oprot.writeStructEnd()
3184
    oprot.writeStructEnd()
3069
 
3185
 
-
 
3186
  def validate(self):
-
 
3187
    return
-
 
3188
 
-
 
3189
 
3070
  def __repr__(self):
3190
  def __repr__(self):
3071
    L = ['%s=%r' % (key, value)
3191
    L = ['%s=%r' % (key, value)
3072
      for key, value in self.__dict__.iteritems()]
3192
      for key, value in self.__dict__.iteritems()]
3073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3193
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3074
 
3194
 
Line 3122... Line 3242...
3122
  def write(self, oprot):
3242
  def write(self, oprot):
3123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3243
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3244
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3125
      return
3245
      return
3126
    oprot.writeStructBegin('authenticateReportUser_args')
3246
    oprot.writeStructBegin('authenticateReportUser_args')
3127
    if self.username != None:
3247
    if self.username is not None:
3128
      oprot.writeFieldBegin('username', TType.STRING, 1)
3248
      oprot.writeFieldBegin('username', TType.STRING, 1)
3129
      oprot.writeString(self.username)
3249
      oprot.writeString(self.username)
3130
      oprot.writeFieldEnd()
3250
      oprot.writeFieldEnd()
3131
    if self.password != None:
3251
    if self.password is not None:
3132
      oprot.writeFieldBegin('password', TType.STRING, 2)
3252
      oprot.writeFieldBegin('password', TType.STRING, 2)
3133
      oprot.writeString(self.password)
3253
      oprot.writeString(self.password)
3134
      oprot.writeFieldEnd()
3254
      oprot.writeFieldEnd()
3135
    oprot.writeFieldStop()
3255
    oprot.writeFieldStop()
3136
    oprot.writeStructEnd()
3256
    oprot.writeStructEnd()
3137
 
3257
 
-
 
3258
  def validate(self):
-
 
3259
    return
-
 
3260
 
-
 
3261
 
3138
  def __repr__(self):
3262
  def __repr__(self):
3139
    L = ['%s=%r' % (key, value)
3263
    L = ['%s=%r' % (key, value)
3140
      for key, value in self.__dict__.iteritems()]
3264
      for key, value in self.__dict__.iteritems()]
3141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3265
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3142
 
3266
 
Line 3191... Line 3315...
3191
  def write(self, oprot):
3315
  def write(self, oprot):
3192
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3316
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3193
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3317
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3194
      return
3318
      return
3195
    oprot.writeStructBegin('authenticateReportUser_result')
3319
    oprot.writeStructBegin('authenticateReportUser_result')
3196
    if self.success != None:
3320
    if self.success is not None:
3197
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3321
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3198
      self.success.write(oprot)
3322
      self.success.write(oprot)
3199
      oprot.writeFieldEnd()
3323
      oprot.writeFieldEnd()
3200
    if self.hse != None:
3324
    if self.hse is not None:
3201
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
3325
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
3202
      self.hse.write(oprot)
3326
      self.hse.write(oprot)
3203
      oprot.writeFieldEnd()
3327
      oprot.writeFieldEnd()
3204
    oprot.writeFieldStop()
3328
    oprot.writeFieldStop()
3205
    oprot.writeStructEnd()
3329
    oprot.writeStructEnd()
3206
 
3330
 
-
 
3331
  def validate(self):
-
 
3332
    return
-
 
3333
 
-
 
3334
 
3207
  def __repr__(self):
3335
  def __repr__(self):
3208
    L = ['%s=%r' % (key, value)
3336
    L = ['%s=%r' % (key, value)
3209
      for key, value in self.__dict__.iteritems()]
3337
      for key, value in self.__dict__.iteritems()]
3210
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3338
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3211
 
3339
 
Line 3251... Line 3379...
3251
  def write(self, oprot):
3379
  def write(self, oprot):
3252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3254
      return
3382
      return
3255
    oprot.writeStructBegin('getReports_args')
3383
    oprot.writeStructBegin('getReports_args')
3256
    if self.role != None:
3384
    if self.role is not None:
3257
      oprot.writeFieldBegin('role', TType.I64, 1)
3385
      oprot.writeFieldBegin('role', TType.I64, 1)
3258
      oprot.writeI64(self.role)
3386
      oprot.writeI64(self.role)
3259
      oprot.writeFieldEnd()
3387
      oprot.writeFieldEnd()
3260
    oprot.writeFieldStop()
3388
    oprot.writeFieldStop()
3261
    oprot.writeStructEnd()
3389
    oprot.writeStructEnd()
3262
 
3390
 
-
 
3391
  def validate(self):
-
 
3392
    return
-
 
3393
 
-
 
3394
 
3263
  def __repr__(self):
3395
  def __repr__(self):
3264
    L = ['%s=%r' % (key, value)
3396
    L = ['%s=%r' % (key, value)
3265
      for key, value in self.__dict__.iteritems()]
3397
      for key, value in self.__dict__.iteritems()]
3266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3398
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3267
 
3399
 
Line 3312... Line 3444...
3312
  def write(self, oprot):
3444
  def write(self, oprot):
3313
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3445
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3314
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3446
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3315
      return
3447
      return
3316
    oprot.writeStructBegin('getReports_result')
3448
    oprot.writeStructBegin('getReports_result')
3317
    if self.success != None:
3449
    if self.success is not None:
3318
      oprot.writeFieldBegin('success', TType.LIST, 0)
3450
      oprot.writeFieldBegin('success', TType.LIST, 0)
3319
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3451
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3320
      for iter36 in self.success:
3452
      for iter36 in self.success:
3321
        iter36.write(oprot)
3453
        iter36.write(oprot)
3322
      oprot.writeListEnd()
3454
      oprot.writeListEnd()
3323
      oprot.writeFieldEnd()
3455
      oprot.writeFieldEnd()
3324
    oprot.writeFieldStop()
3456
    oprot.writeFieldStop()
3325
    oprot.writeStructEnd()
3457
    oprot.writeStructEnd()
3326
 
3458
 
-
 
3459
  def validate(self):
-
 
3460
    return
-
 
3461
 
-
 
3462
 
3327
  def __repr__(self):
3463
  def __repr__(self):
3328
    L = ['%s=%r' % (key, value)
3464
    L = ['%s=%r' % (key, value)
3329
      for key, value in self.__dict__.iteritems()]
3465
      for key, value in self.__dict__.iteritems()]
3330
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3466
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3331
 
3467
 
Line 3387... Line 3523...
3387
  def write(self, oprot):
3523
  def write(self, oprot):
3388
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3389
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3390
      return
3526
      return
3391
    oprot.writeStructBegin('authenticateCatalogUser_args')
3527
    oprot.writeStructBegin('authenticateCatalogUser_args')
3392
    if self.username != None:
3528
    if self.username is not None:
3393
      oprot.writeFieldBegin('username', TType.STRING, 1)
3529
      oprot.writeFieldBegin('username', TType.STRING, 1)
3394
      oprot.writeString(self.username)
3530
      oprot.writeString(self.username)
3395
      oprot.writeFieldEnd()
3531
      oprot.writeFieldEnd()
3396
    if self.password != None:
3532
    if self.password is not None:
3397
      oprot.writeFieldBegin('password', TType.STRING, 2)
3533
      oprot.writeFieldBegin('password', TType.STRING, 2)
3398
      oprot.writeString(self.password)
3534
      oprot.writeString(self.password)
3399
      oprot.writeFieldEnd()
3535
      oprot.writeFieldEnd()
3400
    if self.role != None:
3536
    if self.role is not None:
3401
      oprot.writeFieldBegin('role', TType.I64, 3)
3537
      oprot.writeFieldBegin('role', TType.I64, 3)
3402
      oprot.writeI64(self.role)
3538
      oprot.writeI64(self.role)
3403
      oprot.writeFieldEnd()
3539
      oprot.writeFieldEnd()
3404
    oprot.writeFieldStop()
3540
    oprot.writeFieldStop()
3405
    oprot.writeStructEnd()
3541
    oprot.writeStructEnd()
3406
 
3542
 
-
 
3543
  def validate(self):
-
 
3544
    return
-
 
3545
 
-
 
3546
 
3407
  def __repr__(self):
3547
  def __repr__(self):
3408
    L = ['%s=%r' % (key, value)
3548
    L = ['%s=%r' % (key, value)
3409
      for key, value in self.__dict__.iteritems()]
3549
      for key, value in self.__dict__.iteritems()]
3410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3550
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3411
 
3551
 
Line 3460... Line 3600...
3460
  def write(self, oprot):
3600
  def write(self, oprot):
3461
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3601
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3462
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3602
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3463
      return
3603
      return
3464
    oprot.writeStructBegin('authenticateCatalogUser_result')
3604
    oprot.writeStructBegin('authenticateCatalogUser_result')
3465
    if self.success != None:
3605
    if self.success is not None:
3466
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3606
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3467
      self.success.write(oprot)
3607
      self.success.write(oprot)
3468
      oprot.writeFieldEnd()
3608
      oprot.writeFieldEnd()
3469
    if self.hse != None:
3609
    if self.hse is not None:
3470
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
3610
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
3471
      self.hse.write(oprot)
3611
      self.hse.write(oprot)
3472
      oprot.writeFieldEnd()
3612
      oprot.writeFieldEnd()
3473
    oprot.writeFieldStop()
3613
    oprot.writeFieldStop()
3474
    oprot.writeStructEnd()
3614
    oprot.writeStructEnd()
3475
 
3615
 
-
 
3616
  def validate(self):
-
 
3617
    return
-
 
3618
 
-
 
3619
 
3476
  def __repr__(self):
3620
  def __repr__(self):
3477
    L = ['%s=%r' % (key, value)
3621
    L = ['%s=%r' % (key, value)
3478
      for key, value in self.__dict__.iteritems()]
3622
      for key, value in self.__dict__.iteritems()]
3479
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3623
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3480
 
3624
 
3481
  def __eq__(self, other):
3625
  def __eq__(self, other):
3482
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3626
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3483
 
3627
 
3484
  def __ne__(self, other):
3628
  def __ne__(self, other):
3485
    return not (self == other)
3629
    return not (self == other)
3486
 
-
 
3487
 
-