| 349 |
ashish |
1 |
#
|
| 3431 |
rajveer |
2 |
# Autogenerated by Thrift Compiler (0.7.0)
|
| 349 |
ashish |
3 |
#
|
|
|
4 |
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
#
|
|
|
6 |
|
|
|
7 |
from thrift.Thrift import *
|
| 3376 |
rajveer |
8 |
import shop2020.thriftpy.generic.GenericService
|
| 349 |
ashish |
9 |
from ttypes import *
|
|
|
10 |
from thrift.Thrift import TProcessor
|
|
|
11 |
from thrift.transport import TTransport
|
| 3431 |
rajveer |
12 |
from thrift.protocol import TBinaryProtocol, TProtocol
|
| 349 |
ashish |
13 |
try:
|
|
|
14 |
from thrift.protocol import fastbinary
|
|
|
15 |
except:
|
|
|
16 |
fastbinary = None
|
|
|
17 |
|
|
|
18 |
|
| 3376 |
rajveer |
19 |
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
|
| 1395 |
varun.gupt |
20 |
def saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType):
|
|
|
21 |
"""
|
| 3206 |
mandeep.dh |
22 |
Save email details, to be sent later; Also returns its identifier.
|
| 3431 |
rajveer |
23 |
|
| 1395 |
varun.gupt |
24 |
Parameters:
|
|
|
25 |
- emailTo
|
|
|
26 |
- emailFrom
|
|
|
27 |
- subject
|
|
|
28 |
- body
|
|
|
29 |
- source
|
|
|
30 |
- emailType
|
|
|
31 |
"""
|
|
|
32 |
pass
|
|
|
33 |
|
| 3086 |
rajveer |
34 |
def getEmailsToBeSent(self, ):
|
| 1422 |
varun.gupt |
35 |
"""
|
| 2783 |
chandransh |
36 |
Retreives all the emails pending for dispatch
|
| 1422 |
varun.gupt |
37 |
"""
|
|
|
38 |
pass
|
|
|
39 |
|
|
|
40 |
def markEmailAsSent(self, emailId):
|
|
|
41 |
"""
|
| 2783 |
chandransh |
42 |
Marks email as sent after successful dispatch
|
| 3431 |
rajveer |
43 |
|
| 1422 |
varun.gupt |
44 |
Parameters:
|
|
|
45 |
- emailId
|
|
|
46 |
"""
|
|
|
47 |
pass
|
|
|
48 |
|
| 349 |
ashish |
49 |
def sendMail(self, mail):
|
|
|
50 |
"""
|
|
|
51 |
Parameters:
|
|
|
52 |
- mail
|
|
|
53 |
"""
|
|
|
54 |
pass
|
|
|
55 |
|
|
|
56 |
def sendText(self, message):
|
|
|
57 |
"""
|
|
|
58 |
Parameters:
|
|
|
59 |
- message
|
|
|
60 |
"""
|
|
|
61 |
pass
|
|
|
62 |
|
|
|
63 |
def addMessage(self, message):
|
|
|
64 |
"""
|
|
|
65 |
Parameters:
|
|
|
66 |
- message
|
|
|
67 |
"""
|
|
|
68 |
pass
|
|
|
69 |
|
|
|
70 |
def updateMessage(self, id, message):
|
|
|
71 |
"""
|
|
|
72 |
Parameters:
|
|
|
73 |
- id
|
|
|
74 |
- message
|
|
|
75 |
"""
|
|
|
76 |
pass
|
|
|
77 |
|
|
|
78 |
def getMessage(self, id):
|
|
|
79 |
"""
|
|
|
80 |
Parameters:
|
|
|
81 |
- id
|
|
|
82 |
"""
|
|
|
83 |
pass
|
|
|
84 |
|
|
|
85 |
def getSubstitutedMessage(self, id, params):
|
|
|
86 |
"""
|
|
|
87 |
Parameters:
|
|
|
88 |
- id
|
|
|
89 |
- params
|
|
|
90 |
"""
|
|
|
91 |
pass
|
|
|
92 |
|
| 494 |
rajveer |
93 |
def addUser(self, username, password, warehouseId):
|
|
|
94 |
"""
|
|
|
95 |
Parameters:
|
|
|
96 |
- username
|
|
|
97 |
- password
|
|
|
98 |
- warehouseId
|
|
|
99 |
"""
|
|
|
100 |
pass
|
| 349 |
ashish |
101 |
|
| 494 |
rajveer |
102 |
def deleteUser(self, username):
|
|
|
103 |
"""
|
|
|
104 |
Parameters:
|
|
|
105 |
- username
|
|
|
106 |
"""
|
|
|
107 |
pass
|
|
|
108 |
|
| 2447 |
chandransh |
109 |
def authenticateDashboardUser(self, username, password):
|
| 494 |
rajveer |
110 |
"""
|
| 2447 |
chandransh |
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 .
|
| 3431 |
rajveer |
113 |
|
| 494 |
rajveer |
114 |
Parameters:
|
|
|
115 |
- username
|
|
|
116 |
- password
|
|
|
117 |
"""
|
|
|
118 |
pass
|
|
|
119 |
|
|
|
120 |
def updatePassword(self, username, oldPassword, newPassword):
|
|
|
121 |
"""
|
| 2447 |
chandransh |
122 |
Update the password of the dashboard user. Currently, there is no place where this method is called.
|
| 3431 |
rajveer |
123 |
|
| 494 |
rajveer |
124 |
Parameters:
|
|
|
125 |
- username
|
|
|
126 |
- oldPassword
|
|
|
127 |
- newPassword
|
|
|
128 |
"""
|
|
|
129 |
pass
|
|
|
130 |
|
| 759 |
chandransh |
131 |
def authenticateLogisticsUser(self, username, password):
|
|
|
132 |
"""
|
|
|
133 |
Returns the LogisticsUser struct associated with the given username and password if they match.
|
|
|
134 |
Throws an exception otherwise.
|
| 3431 |
rajveer |
135 |
|
| 759 |
chandransh |
136 |
Parameters:
|
|
|
137 |
- username
|
|
|
138 |
- password
|
|
|
139 |
"""
|
|
|
140 |
pass
|
| 494 |
rajveer |
141 |
|
| 1610 |
ankur.sing |
142 |
def authenticateStatisticsUser(self, username, password):
|
|
|
143 |
"""
|
|
|
144 |
Returns the StatisticsUser struct associated with the given username and password if they match.
|
|
|
145 |
Throws an exception otherwise.
|
| 3431 |
rajveer |
146 |
|
| 1610 |
ankur.sing |
147 |
Parameters:
|
|
|
148 |
- username
|
|
|
149 |
- password
|
|
|
150 |
"""
|
|
|
151 |
pass
|
| 759 |
chandransh |
152 |
|
| 1891 |
ankur.sing |
153 |
def authenticateReportUser(self, username, password):
|
|
|
154 |
"""
|
|
|
155 |
Returns the ReportUser struct associated with the given username and password if they match.
|
|
|
156 |
Throws an exception otherwise.
|
| 3431 |
rajveer |
157 |
|
| 1891 |
ankur.sing |
158 |
Parameters:
|
|
|
159 |
- username
|
|
|
160 |
- password
|
|
|
161 |
"""
|
|
|
162 |
pass
|
| 1610 |
ankur.sing |
163 |
|
| 1891 |
ankur.sing |
164 |
def getReports(self, role):
|
|
|
165 |
"""
|
|
|
166 |
Returns list of reports which are configured for the given role.
|
| 3431 |
rajveer |
167 |
|
| 1891 |
ankur.sing |
168 |
Parameters:
|
|
|
169 |
- role
|
|
|
170 |
"""
|
|
|
171 |
pass
|
|
|
172 |
|
| 2358 |
ankur.sing |
173 |
def authenticateCatalogUser(self, username, password, role):
|
| 2025 |
ankur.sing |
174 |
"""
|
| 2358 |
ankur.sing |
175 |
Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
|
| 2025 |
ankur.sing |
176 |
Throws an exception otherwise.
|
| 3431 |
rajveer |
177 |
|
| 2025 |
ankur.sing |
178 |
Parameters:
|
|
|
179 |
- username
|
|
|
180 |
- password
|
| 2358 |
ankur.sing |
181 |
- role
|
| 2025 |
ankur.sing |
182 |
"""
|
|
|
183 |
pass
|
| 1891 |
ankur.sing |
184 |
|
| 2025 |
ankur.sing |
185 |
|
| 3376 |
rajveer |
186 |
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
|
| 349 |
ashish |
187 |
def __init__(self, iprot, oprot=None):
|
| 3376 |
rajveer |
188 |
shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
|
| 349 |
ashish |
189 |
|
| 1395 |
varun.gupt |
190 |
def saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType):
|
|
|
191 |
"""
|
| 3206 |
mandeep.dh |
192 |
Save email details, to be sent later; Also returns its identifier.
|
| 3431 |
rajveer |
193 |
|
| 1395 |
varun.gupt |
194 |
Parameters:
|
|
|
195 |
- emailTo
|
|
|
196 |
- emailFrom
|
|
|
197 |
- subject
|
|
|
198 |
- body
|
|
|
199 |
- source
|
|
|
200 |
- emailType
|
|
|
201 |
"""
|
|
|
202 |
self.send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType)
|
| 3206 |
mandeep.dh |
203 |
return self.recv_saveUserEmailForSending()
|
| 1395 |
varun.gupt |
204 |
|
|
|
205 |
def send_saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType):
|
|
|
206 |
self._oprot.writeMessageBegin('saveUserEmailForSending', TMessageType.CALL, self._seqid)
|
|
|
207 |
args = saveUserEmailForSending_args()
|
|
|
208 |
args.emailTo = emailTo
|
|
|
209 |
args.emailFrom = emailFrom
|
|
|
210 |
args.subject = subject
|
|
|
211 |
args.body = body
|
|
|
212 |
args.source = source
|
|
|
213 |
args.emailType = emailType
|
|
|
214 |
args.write(self._oprot)
|
|
|
215 |
self._oprot.writeMessageEnd()
|
|
|
216 |
self._oprot.trans.flush()
|
|
|
217 |
|
|
|
218 |
def recv_saveUserEmailForSending(self, ):
|
|
|
219 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
220 |
if mtype == TMessageType.EXCEPTION:
|
|
|
221 |
x = TApplicationException()
|
|
|
222 |
x.read(self._iprot)
|
|
|
223 |
self._iprot.readMessageEnd()
|
|
|
224 |
raise x
|
|
|
225 |
result = saveUserEmailForSending_result()
|
|
|
226 |
result.read(self._iprot)
|
|
|
227 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
228 |
if result.success is not None:
|
| 3206 |
mandeep.dh |
229 |
return result.success
|
| 3431 |
rajveer |
230 |
if result.se is not None:
|
| 1395 |
varun.gupt |
231 |
raise result.se
|
| 3206 |
mandeep.dh |
232 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
|
| 1395 |
varun.gupt |
233 |
|
| 3086 |
rajveer |
234 |
def getEmailsToBeSent(self, ):
|
| 1422 |
varun.gupt |
235 |
"""
|
| 2783 |
chandransh |
236 |
Retreives all the emails pending for dispatch
|
| 1422 |
varun.gupt |
237 |
"""
|
| 3086 |
rajveer |
238 |
self.send_getEmailsToBeSent()
|
| 1422 |
varun.gupt |
239 |
return self.recv_getEmailsToBeSent()
|
|
|
240 |
|
| 3086 |
rajveer |
241 |
def send_getEmailsToBeSent(self, ):
|
| 1422 |
varun.gupt |
242 |
self._oprot.writeMessageBegin('getEmailsToBeSent', TMessageType.CALL, self._seqid)
|
|
|
243 |
args = getEmailsToBeSent_args()
|
|
|
244 |
args.write(self._oprot)
|
|
|
245 |
self._oprot.writeMessageEnd()
|
|
|
246 |
self._oprot.trans.flush()
|
|
|
247 |
|
|
|
248 |
def recv_getEmailsToBeSent(self, ):
|
|
|
249 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
250 |
if mtype == TMessageType.EXCEPTION:
|
|
|
251 |
x = TApplicationException()
|
|
|
252 |
x.read(self._iprot)
|
|
|
253 |
self._iprot.readMessageEnd()
|
|
|
254 |
raise x
|
|
|
255 |
result = getEmailsToBeSent_result()
|
|
|
256 |
result.read(self._iprot)
|
|
|
257 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
258 |
if result.success is not None:
|
| 1422 |
varun.gupt |
259 |
return result.success
|
| 3431 |
rajveer |
260 |
if result.se is not None:
|
| 1422 |
varun.gupt |
261 |
raise result.se
|
|
|
262 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
|
|
|
263 |
|
|
|
264 |
def markEmailAsSent(self, emailId):
|
|
|
265 |
"""
|
| 2783 |
chandransh |
266 |
Marks email as sent after successful dispatch
|
| 3431 |
rajveer |
267 |
|
| 1422 |
varun.gupt |
268 |
Parameters:
|
|
|
269 |
- emailId
|
|
|
270 |
"""
|
|
|
271 |
self.send_markEmailAsSent(emailId)
|
|
|
272 |
self.recv_markEmailAsSent()
|
|
|
273 |
|
|
|
274 |
def send_markEmailAsSent(self, emailId):
|
|
|
275 |
self._oprot.writeMessageBegin('markEmailAsSent', TMessageType.CALL, self._seqid)
|
|
|
276 |
args = markEmailAsSent_args()
|
|
|
277 |
args.emailId = emailId
|
|
|
278 |
args.write(self._oprot)
|
|
|
279 |
self._oprot.writeMessageEnd()
|
|
|
280 |
self._oprot.trans.flush()
|
|
|
281 |
|
|
|
282 |
def recv_markEmailAsSent(self, ):
|
|
|
283 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
284 |
if mtype == TMessageType.EXCEPTION:
|
|
|
285 |
x = TApplicationException()
|
|
|
286 |
x.read(self._iprot)
|
|
|
287 |
self._iprot.readMessageEnd()
|
|
|
288 |
raise x
|
|
|
289 |
result = markEmailAsSent_result()
|
|
|
290 |
result.read(self._iprot)
|
|
|
291 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
292 |
if result.se is not None:
|
| 1422 |
varun.gupt |
293 |
raise result.se
|
|
|
294 |
return
|
|
|
295 |
|
| 349 |
ashish |
296 |
def sendMail(self, mail):
|
|
|
297 |
"""
|
|
|
298 |
Parameters:
|
|
|
299 |
- mail
|
|
|
300 |
"""
|
|
|
301 |
self.send_sendMail(mail)
|
|
|
302 |
self.recv_sendMail()
|
|
|
303 |
|
|
|
304 |
def send_sendMail(self, mail):
|
|
|
305 |
self._oprot.writeMessageBegin('sendMail', TMessageType.CALL, self._seqid)
|
|
|
306 |
args = sendMail_args()
|
|
|
307 |
args.mail = mail
|
|
|
308 |
args.write(self._oprot)
|
|
|
309 |
self._oprot.writeMessageEnd()
|
|
|
310 |
self._oprot.trans.flush()
|
|
|
311 |
|
|
|
312 |
def recv_sendMail(self, ):
|
|
|
313 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
314 |
if mtype == TMessageType.EXCEPTION:
|
|
|
315 |
x = TApplicationException()
|
|
|
316 |
x.read(self._iprot)
|
|
|
317 |
self._iprot.readMessageEnd()
|
|
|
318 |
raise x
|
|
|
319 |
result = sendMail_result()
|
|
|
320 |
result.read(self._iprot)
|
|
|
321 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
322 |
if result.se is not None:
|
| 349 |
ashish |
323 |
raise result.se
|
|
|
324 |
return
|
|
|
325 |
|
|
|
326 |
def sendText(self, message):
|
|
|
327 |
"""
|
|
|
328 |
Parameters:
|
|
|
329 |
- message
|
|
|
330 |
"""
|
|
|
331 |
self.send_sendText(message)
|
|
|
332 |
self.recv_sendText()
|
|
|
333 |
|
|
|
334 |
def send_sendText(self, message):
|
|
|
335 |
self._oprot.writeMessageBegin('sendText', TMessageType.CALL, self._seqid)
|
|
|
336 |
args = sendText_args()
|
|
|
337 |
args.message = message
|
|
|
338 |
args.write(self._oprot)
|
|
|
339 |
self._oprot.writeMessageEnd()
|
|
|
340 |
self._oprot.trans.flush()
|
|
|
341 |
|
|
|
342 |
def recv_sendText(self, ):
|
|
|
343 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
344 |
if mtype == TMessageType.EXCEPTION:
|
|
|
345 |
x = TApplicationException()
|
|
|
346 |
x.read(self._iprot)
|
|
|
347 |
self._iprot.readMessageEnd()
|
|
|
348 |
raise x
|
|
|
349 |
result = sendText_result()
|
|
|
350 |
result.read(self._iprot)
|
|
|
351 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
352 |
if result.se is not None:
|
| 349 |
ashish |
353 |
raise result.se
|
|
|
354 |
return
|
|
|
355 |
|
|
|
356 |
def addMessage(self, message):
|
|
|
357 |
"""
|
|
|
358 |
Parameters:
|
|
|
359 |
- message
|
|
|
360 |
"""
|
|
|
361 |
self.send_addMessage(message)
|
|
|
362 |
self.recv_addMessage()
|
|
|
363 |
|
|
|
364 |
def send_addMessage(self, message):
|
|
|
365 |
self._oprot.writeMessageBegin('addMessage', TMessageType.CALL, self._seqid)
|
|
|
366 |
args = addMessage_args()
|
|
|
367 |
args.message = message
|
|
|
368 |
args.write(self._oprot)
|
|
|
369 |
self._oprot.writeMessageEnd()
|
|
|
370 |
self._oprot.trans.flush()
|
|
|
371 |
|
|
|
372 |
def recv_addMessage(self, ):
|
|
|
373 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
374 |
if mtype == TMessageType.EXCEPTION:
|
|
|
375 |
x = TApplicationException()
|
|
|
376 |
x.read(self._iprot)
|
|
|
377 |
self._iprot.readMessageEnd()
|
|
|
378 |
raise x
|
|
|
379 |
result = addMessage_result()
|
|
|
380 |
result.read(self._iprot)
|
|
|
381 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
382 |
if result.se is not None:
|
| 349 |
ashish |
383 |
raise result.se
|
|
|
384 |
return
|
|
|
385 |
|
|
|
386 |
def updateMessage(self, id, message):
|
|
|
387 |
"""
|
|
|
388 |
Parameters:
|
|
|
389 |
- id
|
|
|
390 |
- message
|
|
|
391 |
"""
|
|
|
392 |
self.send_updateMessage(id, message)
|
|
|
393 |
self.recv_updateMessage()
|
|
|
394 |
|
|
|
395 |
def send_updateMessage(self, id, message):
|
|
|
396 |
self._oprot.writeMessageBegin('updateMessage', TMessageType.CALL, self._seqid)
|
|
|
397 |
args = updateMessage_args()
|
|
|
398 |
args.id = id
|
|
|
399 |
args.message = message
|
|
|
400 |
args.write(self._oprot)
|
|
|
401 |
self._oprot.writeMessageEnd()
|
|
|
402 |
self._oprot.trans.flush()
|
|
|
403 |
|
|
|
404 |
def recv_updateMessage(self, ):
|
|
|
405 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
406 |
if mtype == TMessageType.EXCEPTION:
|
|
|
407 |
x = TApplicationException()
|
|
|
408 |
x.read(self._iprot)
|
|
|
409 |
self._iprot.readMessageEnd()
|
|
|
410 |
raise x
|
|
|
411 |
result = updateMessage_result()
|
|
|
412 |
result.read(self._iprot)
|
|
|
413 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
414 |
if result.se is not None:
|
| 349 |
ashish |
415 |
raise result.se
|
|
|
416 |
return
|
|
|
417 |
|
|
|
418 |
def getMessage(self, id):
|
|
|
419 |
"""
|
|
|
420 |
Parameters:
|
|
|
421 |
- id
|
|
|
422 |
"""
|
|
|
423 |
self.send_getMessage(id)
|
| 353 |
ashish |
424 |
return self.recv_getMessage()
|
| 349 |
ashish |
425 |
|
|
|
426 |
def send_getMessage(self, id):
|
|
|
427 |
self._oprot.writeMessageBegin('getMessage', TMessageType.CALL, self._seqid)
|
|
|
428 |
args = getMessage_args()
|
|
|
429 |
args.id = id
|
|
|
430 |
args.write(self._oprot)
|
|
|
431 |
self._oprot.writeMessageEnd()
|
|
|
432 |
self._oprot.trans.flush()
|
|
|
433 |
|
|
|
434 |
def recv_getMessage(self, ):
|
|
|
435 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
436 |
if mtype == TMessageType.EXCEPTION:
|
|
|
437 |
x = TApplicationException()
|
|
|
438 |
x.read(self._iprot)
|
|
|
439 |
self._iprot.readMessageEnd()
|
|
|
440 |
raise x
|
|
|
441 |
result = getMessage_result()
|
|
|
442 |
result.read(self._iprot)
|
|
|
443 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
444 |
if result.success is not None:
|
| 353 |
ashish |
445 |
return result.success
|
| 3431 |
rajveer |
446 |
if result.se is not None:
|
| 349 |
ashish |
447 |
raise result.se
|
| 353 |
ashish |
448 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
|
| 349 |
ashish |
449 |
|
|
|
450 |
def getSubstitutedMessage(self, id, params):
|
|
|
451 |
"""
|
|
|
452 |
Parameters:
|
|
|
453 |
- id
|
|
|
454 |
- params
|
|
|
455 |
"""
|
|
|
456 |
self.send_getSubstitutedMessage(id, params)
|
| 353 |
ashish |
457 |
return self.recv_getSubstitutedMessage()
|
| 349 |
ashish |
458 |
|
|
|
459 |
def send_getSubstitutedMessage(self, id, params):
|
|
|
460 |
self._oprot.writeMessageBegin('getSubstitutedMessage', TMessageType.CALL, self._seqid)
|
|
|
461 |
args = getSubstitutedMessage_args()
|
|
|
462 |
args.id = id
|
|
|
463 |
args.params = params
|
|
|
464 |
args.write(self._oprot)
|
|
|
465 |
self._oprot.writeMessageEnd()
|
|
|
466 |
self._oprot.trans.flush()
|
|
|
467 |
|
|
|
468 |
def recv_getSubstitutedMessage(self, ):
|
|
|
469 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
470 |
if mtype == TMessageType.EXCEPTION:
|
|
|
471 |
x = TApplicationException()
|
|
|
472 |
x.read(self._iprot)
|
|
|
473 |
self._iprot.readMessageEnd()
|
|
|
474 |
raise x
|
|
|
475 |
result = getSubstitutedMessage_result()
|
|
|
476 |
result.read(self._iprot)
|
|
|
477 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
478 |
if result.success is not None:
|
| 353 |
ashish |
479 |
return result.success
|
| 3431 |
rajveer |
480 |
if result.se is not None:
|
| 349 |
ashish |
481 |
raise result.se
|
| 353 |
ashish |
482 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
|
| 349 |
ashish |
483 |
|
| 494 |
rajveer |
484 |
def addUser(self, username, password, warehouseId):
|
|
|
485 |
"""
|
|
|
486 |
Parameters:
|
|
|
487 |
- username
|
|
|
488 |
- password
|
|
|
489 |
- warehouseId
|
|
|
490 |
"""
|
|
|
491 |
self.send_addUser(username, password, warehouseId)
|
|
|
492 |
return self.recv_addUser()
|
| 349 |
ashish |
493 |
|
| 494 |
rajveer |
494 |
def send_addUser(self, username, password, warehouseId):
|
|
|
495 |
self._oprot.writeMessageBegin('addUser', TMessageType.CALL, self._seqid)
|
|
|
496 |
args = addUser_args()
|
|
|
497 |
args.username = username
|
|
|
498 |
args.password = password
|
|
|
499 |
args.warehouseId = warehouseId
|
|
|
500 |
args.write(self._oprot)
|
|
|
501 |
self._oprot.writeMessageEnd()
|
|
|
502 |
self._oprot.trans.flush()
|
|
|
503 |
|
|
|
504 |
def recv_addUser(self, ):
|
|
|
505 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
506 |
if mtype == TMessageType.EXCEPTION:
|
|
|
507 |
x = TApplicationException()
|
|
|
508 |
x.read(self._iprot)
|
|
|
509 |
self._iprot.readMessageEnd()
|
|
|
510 |
raise x
|
|
|
511 |
result = addUser_result()
|
|
|
512 |
result.read(self._iprot)
|
|
|
513 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
514 |
if result.success is not None:
|
| 494 |
rajveer |
515 |
return result.success
|
| 3431 |
rajveer |
516 |
if result.se is not None:
|
| 494 |
rajveer |
517 |
raise result.se
|
|
|
518 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
|
|
|
519 |
|
|
|
520 |
def deleteUser(self, username):
|
|
|
521 |
"""
|
|
|
522 |
Parameters:
|
|
|
523 |
- username
|
|
|
524 |
"""
|
|
|
525 |
self.send_deleteUser(username)
|
|
|
526 |
return self.recv_deleteUser()
|
|
|
527 |
|
|
|
528 |
def send_deleteUser(self, username):
|
|
|
529 |
self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
|
|
|
530 |
args = deleteUser_args()
|
|
|
531 |
args.username = username
|
|
|
532 |
args.write(self._oprot)
|
|
|
533 |
self._oprot.writeMessageEnd()
|
|
|
534 |
self._oprot.trans.flush()
|
|
|
535 |
|
|
|
536 |
def recv_deleteUser(self, ):
|
|
|
537 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
538 |
if mtype == TMessageType.EXCEPTION:
|
|
|
539 |
x = TApplicationException()
|
|
|
540 |
x.read(self._iprot)
|
|
|
541 |
self._iprot.readMessageEnd()
|
|
|
542 |
raise x
|
|
|
543 |
result = deleteUser_result()
|
|
|
544 |
result.read(self._iprot)
|
|
|
545 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
546 |
if result.success is not None:
|
| 494 |
rajveer |
547 |
return result.success
|
| 3431 |
rajveer |
548 |
if result.se is not None:
|
| 494 |
rajveer |
549 |
raise result.se
|
|
|
550 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
|
|
|
551 |
|
| 2447 |
chandransh |
552 |
def authenticateDashboardUser(self, username, password):
|
| 494 |
rajveer |
553 |
"""
|
| 2447 |
chandransh |
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 .
|
| 3431 |
rajveer |
556 |
|
| 494 |
rajveer |
557 |
Parameters:
|
|
|
558 |
- username
|
|
|
559 |
- password
|
|
|
560 |
"""
|
| 2447 |
chandransh |
561 |
self.send_authenticateDashboardUser(username, password)
|
|
|
562 |
return self.recv_authenticateDashboardUser()
|
| 494 |
rajveer |
563 |
|
| 2447 |
chandransh |
564 |
def send_authenticateDashboardUser(self, username, password):
|
|
|
565 |
self._oprot.writeMessageBegin('authenticateDashboardUser', TMessageType.CALL, self._seqid)
|
|
|
566 |
args = authenticateDashboardUser_args()
|
| 494 |
rajveer |
567 |
args.username = username
|
|
|
568 |
args.password = password
|
|
|
569 |
args.write(self._oprot)
|
|
|
570 |
self._oprot.writeMessageEnd()
|
|
|
571 |
self._oprot.trans.flush()
|
|
|
572 |
|
| 2447 |
chandransh |
573 |
def recv_authenticateDashboardUser(self, ):
|
| 494 |
rajveer |
574 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
575 |
if mtype == TMessageType.EXCEPTION:
|
|
|
576 |
x = TApplicationException()
|
|
|
577 |
x.read(self._iprot)
|
|
|
578 |
self._iprot.readMessageEnd()
|
|
|
579 |
raise x
|
| 2447 |
chandransh |
580 |
result = authenticateDashboardUser_result()
|
| 494 |
rajveer |
581 |
result.read(self._iprot)
|
|
|
582 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
583 |
if result.success is not None:
|
| 494 |
rajveer |
584 |
return result.success
|
| 3431 |
rajveer |
585 |
if result.se is not None:
|
| 494 |
rajveer |
586 |
raise result.se
|
| 2447 |
chandransh |
587 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
|
| 494 |
rajveer |
588 |
|
|
|
589 |
def updatePassword(self, username, oldPassword, newPassword):
|
|
|
590 |
"""
|
| 2447 |
chandransh |
591 |
Update the password of the dashboard user. Currently, there is no place where this method is called.
|
| 3431 |
rajveer |
592 |
|
| 494 |
rajveer |
593 |
Parameters:
|
|
|
594 |
- username
|
|
|
595 |
- oldPassword
|
|
|
596 |
- newPassword
|
|
|
597 |
"""
|
|
|
598 |
self.send_updatePassword(username, oldPassword, newPassword)
|
|
|
599 |
return self.recv_updatePassword()
|
|
|
600 |
|
|
|
601 |
def send_updatePassword(self, username, oldPassword, newPassword):
|
|
|
602 |
self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
|
|
|
603 |
args = updatePassword_args()
|
|
|
604 |
args.username = username
|
|
|
605 |
args.oldPassword = oldPassword
|
|
|
606 |
args.newPassword = newPassword
|
|
|
607 |
args.write(self._oprot)
|
|
|
608 |
self._oprot.writeMessageEnd()
|
|
|
609 |
self._oprot.trans.flush()
|
|
|
610 |
|
|
|
611 |
def recv_updatePassword(self, ):
|
|
|
612 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
613 |
if mtype == TMessageType.EXCEPTION:
|
|
|
614 |
x = TApplicationException()
|
|
|
615 |
x.read(self._iprot)
|
|
|
616 |
self._iprot.readMessageEnd()
|
|
|
617 |
raise x
|
|
|
618 |
result = updatePassword_result()
|
|
|
619 |
result.read(self._iprot)
|
|
|
620 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
621 |
if result.success is not None:
|
| 494 |
rajveer |
622 |
return result.success
|
| 3431 |
rajveer |
623 |
if result.se is not None:
|
| 494 |
rajveer |
624 |
raise result.se
|
|
|
625 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
|
|
|
626 |
|
| 759 |
chandransh |
627 |
def authenticateLogisticsUser(self, username, password):
|
|
|
628 |
"""
|
|
|
629 |
Returns the LogisticsUser struct associated with the given username and password if they match.
|
|
|
630 |
Throws an exception otherwise.
|
| 3431 |
rajveer |
631 |
|
| 759 |
chandransh |
632 |
Parameters:
|
|
|
633 |
- username
|
|
|
634 |
- password
|
|
|
635 |
"""
|
|
|
636 |
self.send_authenticateLogisticsUser(username, password)
|
|
|
637 |
return self.recv_authenticateLogisticsUser()
|
| 494 |
rajveer |
638 |
|
| 759 |
chandransh |
639 |
def send_authenticateLogisticsUser(self, username, password):
|
|
|
640 |
self._oprot.writeMessageBegin('authenticateLogisticsUser', TMessageType.CALL, self._seqid)
|
|
|
641 |
args = authenticateLogisticsUser_args()
|
|
|
642 |
args.username = username
|
|
|
643 |
args.password = password
|
|
|
644 |
args.write(self._oprot)
|
|
|
645 |
self._oprot.writeMessageEnd()
|
|
|
646 |
self._oprot.trans.flush()
|
|
|
647 |
|
|
|
648 |
def recv_authenticateLogisticsUser(self, ):
|
|
|
649 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
650 |
if mtype == TMessageType.EXCEPTION:
|
|
|
651 |
x = TApplicationException()
|
|
|
652 |
x.read(self._iprot)
|
|
|
653 |
self._iprot.readMessageEnd()
|
|
|
654 |
raise x
|
|
|
655 |
result = authenticateLogisticsUser_result()
|
|
|
656 |
result.read(self._iprot)
|
|
|
657 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
658 |
if result.success is not None:
|
| 759 |
chandransh |
659 |
return result.success
|
| 3431 |
rajveer |
660 |
if result.hse is not None:
|
| 759 |
chandransh |
661 |
raise result.hse
|
|
|
662 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
|
|
|
663 |
|
| 1610 |
ankur.sing |
664 |
def authenticateStatisticsUser(self, username, password):
|
|
|
665 |
"""
|
|
|
666 |
Returns the StatisticsUser struct associated with the given username and password if they match.
|
|
|
667 |
Throws an exception otherwise.
|
| 3431 |
rajveer |
668 |
|
| 1610 |
ankur.sing |
669 |
Parameters:
|
|
|
670 |
- username
|
|
|
671 |
- password
|
|
|
672 |
"""
|
|
|
673 |
self.send_authenticateStatisticsUser(username, password)
|
|
|
674 |
return self.recv_authenticateStatisticsUser()
|
| 759 |
chandransh |
675 |
|
| 1610 |
ankur.sing |
676 |
def send_authenticateStatisticsUser(self, username, password):
|
|
|
677 |
self._oprot.writeMessageBegin('authenticateStatisticsUser', TMessageType.CALL, self._seqid)
|
|
|
678 |
args = authenticateStatisticsUser_args()
|
|
|
679 |
args.username = username
|
|
|
680 |
args.password = password
|
|
|
681 |
args.write(self._oprot)
|
|
|
682 |
self._oprot.writeMessageEnd()
|
|
|
683 |
self._oprot.trans.flush()
|
|
|
684 |
|
|
|
685 |
def recv_authenticateStatisticsUser(self, ):
|
|
|
686 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
687 |
if mtype == TMessageType.EXCEPTION:
|
|
|
688 |
x = TApplicationException()
|
|
|
689 |
x.read(self._iprot)
|
|
|
690 |
self._iprot.readMessageEnd()
|
|
|
691 |
raise x
|
|
|
692 |
result = authenticateStatisticsUser_result()
|
|
|
693 |
result.read(self._iprot)
|
|
|
694 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
695 |
if result.success is not None:
|
| 1610 |
ankur.sing |
696 |
return result.success
|
| 3431 |
rajveer |
697 |
if result.hse is not None:
|
| 1610 |
ankur.sing |
698 |
raise result.hse
|
|
|
699 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
|
|
|
700 |
|
| 1891 |
ankur.sing |
701 |
def authenticateReportUser(self, username, password):
|
|
|
702 |
"""
|
|
|
703 |
Returns the ReportUser struct associated with the given username and password if they match.
|
|
|
704 |
Throws an exception otherwise.
|
| 3431 |
rajveer |
705 |
|
| 1891 |
ankur.sing |
706 |
Parameters:
|
|
|
707 |
- username
|
|
|
708 |
- password
|
|
|
709 |
"""
|
|
|
710 |
self.send_authenticateReportUser(username, password)
|
|
|
711 |
return self.recv_authenticateReportUser()
|
| 1610 |
ankur.sing |
712 |
|
| 1891 |
ankur.sing |
713 |
def send_authenticateReportUser(self, username, password):
|
|
|
714 |
self._oprot.writeMessageBegin('authenticateReportUser', TMessageType.CALL, self._seqid)
|
|
|
715 |
args = authenticateReportUser_args()
|
|
|
716 |
args.username = username
|
|
|
717 |
args.password = password
|
|
|
718 |
args.write(self._oprot)
|
|
|
719 |
self._oprot.writeMessageEnd()
|
|
|
720 |
self._oprot.trans.flush()
|
|
|
721 |
|
|
|
722 |
def recv_authenticateReportUser(self, ):
|
|
|
723 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
724 |
if mtype == TMessageType.EXCEPTION:
|
|
|
725 |
x = TApplicationException()
|
|
|
726 |
x.read(self._iprot)
|
|
|
727 |
self._iprot.readMessageEnd()
|
|
|
728 |
raise x
|
|
|
729 |
result = authenticateReportUser_result()
|
|
|
730 |
result.read(self._iprot)
|
|
|
731 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
732 |
if result.success is not None:
|
| 1891 |
ankur.sing |
733 |
return result.success
|
| 3431 |
rajveer |
734 |
if result.hse is not None:
|
| 1891 |
ankur.sing |
735 |
raise result.hse
|
|
|
736 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
|
|
|
737 |
|
|
|
738 |
def getReports(self, role):
|
|
|
739 |
"""
|
|
|
740 |
Returns list of reports which are configured for the given role.
|
| 3431 |
rajveer |
741 |
|
| 1891 |
ankur.sing |
742 |
Parameters:
|
|
|
743 |
- role
|
|
|
744 |
"""
|
|
|
745 |
self.send_getReports(role)
|
|
|
746 |
return self.recv_getReports()
|
|
|
747 |
|
|
|
748 |
def send_getReports(self, role):
|
|
|
749 |
self._oprot.writeMessageBegin('getReports', TMessageType.CALL, self._seqid)
|
|
|
750 |
args = getReports_args()
|
|
|
751 |
args.role = role
|
|
|
752 |
args.write(self._oprot)
|
|
|
753 |
self._oprot.writeMessageEnd()
|
|
|
754 |
self._oprot.trans.flush()
|
|
|
755 |
|
|
|
756 |
def recv_getReports(self, ):
|
|
|
757 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
758 |
if mtype == TMessageType.EXCEPTION:
|
|
|
759 |
x = TApplicationException()
|
|
|
760 |
x.read(self._iprot)
|
|
|
761 |
self._iprot.readMessageEnd()
|
|
|
762 |
raise x
|
|
|
763 |
result = getReports_result()
|
|
|
764 |
result.read(self._iprot)
|
|
|
765 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
766 |
if result.success is not None:
|
| 1891 |
ankur.sing |
767 |
return result.success
|
|
|
768 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
|
|
|
769 |
|
| 2358 |
ankur.sing |
770 |
def authenticateCatalogUser(self, username, password, role):
|
| 2025 |
ankur.sing |
771 |
"""
|
| 2358 |
ankur.sing |
772 |
Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
|
| 2025 |
ankur.sing |
773 |
Throws an exception otherwise.
|
| 3431 |
rajveer |
774 |
|
| 2025 |
ankur.sing |
775 |
Parameters:
|
|
|
776 |
- username
|
|
|
777 |
- password
|
| 2358 |
ankur.sing |
778 |
- role
|
| 2025 |
ankur.sing |
779 |
"""
|
| 2358 |
ankur.sing |
780 |
self.send_authenticateCatalogUser(username, password, role)
|
| 2025 |
ankur.sing |
781 |
return self.recv_authenticateCatalogUser()
|
| 1891 |
ankur.sing |
782 |
|
| 2358 |
ankur.sing |
783 |
def send_authenticateCatalogUser(self, username, password, role):
|
| 2025 |
ankur.sing |
784 |
self._oprot.writeMessageBegin('authenticateCatalogUser', TMessageType.CALL, self._seqid)
|
|
|
785 |
args = authenticateCatalogUser_args()
|
|
|
786 |
args.username = username
|
|
|
787 |
args.password = password
|
| 2358 |
ankur.sing |
788 |
args.role = role
|
| 2025 |
ankur.sing |
789 |
args.write(self._oprot)
|
|
|
790 |
self._oprot.writeMessageEnd()
|
|
|
791 |
self._oprot.trans.flush()
|
|
|
792 |
|
|
|
793 |
def recv_authenticateCatalogUser(self, ):
|
|
|
794 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
795 |
if mtype == TMessageType.EXCEPTION:
|
|
|
796 |
x = TApplicationException()
|
|
|
797 |
x.read(self._iprot)
|
|
|
798 |
self._iprot.readMessageEnd()
|
|
|
799 |
raise x
|
|
|
800 |
result = authenticateCatalogUser_result()
|
|
|
801 |
result.read(self._iprot)
|
|
|
802 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
803 |
if result.success is not None:
|
| 2025 |
ankur.sing |
804 |
return result.success
|
| 3431 |
rajveer |
805 |
if result.hse is not None:
|
| 2025 |
ankur.sing |
806 |
raise result.hse
|
|
|
807 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
|
|
|
808 |
|
|
|
809 |
|
| 3376 |
rajveer |
810 |
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
|
| 349 |
ashish |
811 |
def __init__(self, handler):
|
| 3376 |
rajveer |
812 |
shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
|
| 1395 |
varun.gupt |
813 |
self._processMap["saveUserEmailForSending"] = Processor.process_saveUserEmailForSending
|
| 1422 |
varun.gupt |
814 |
self._processMap["getEmailsToBeSent"] = Processor.process_getEmailsToBeSent
|
|
|
815 |
self._processMap["markEmailAsSent"] = Processor.process_markEmailAsSent
|
| 349 |
ashish |
816 |
self._processMap["sendMail"] = Processor.process_sendMail
|
|
|
817 |
self._processMap["sendText"] = Processor.process_sendText
|
|
|
818 |
self._processMap["addMessage"] = Processor.process_addMessage
|
|
|
819 |
self._processMap["updateMessage"] = Processor.process_updateMessage
|
|
|
820 |
self._processMap["getMessage"] = Processor.process_getMessage
|
|
|
821 |
self._processMap["getSubstitutedMessage"] = Processor.process_getSubstitutedMessage
|
| 494 |
rajveer |
822 |
self._processMap["addUser"] = Processor.process_addUser
|
|
|
823 |
self._processMap["deleteUser"] = Processor.process_deleteUser
|
| 2447 |
chandransh |
824 |
self._processMap["authenticateDashboardUser"] = Processor.process_authenticateDashboardUser
|
| 494 |
rajveer |
825 |
self._processMap["updatePassword"] = Processor.process_updatePassword
|
| 759 |
chandransh |
826 |
self._processMap["authenticateLogisticsUser"] = Processor.process_authenticateLogisticsUser
|
| 1610 |
ankur.sing |
827 |
self._processMap["authenticateStatisticsUser"] = Processor.process_authenticateStatisticsUser
|
| 1891 |
ankur.sing |
828 |
self._processMap["authenticateReportUser"] = Processor.process_authenticateReportUser
|
|
|
829 |
self._processMap["getReports"] = Processor.process_getReports
|
| 2025 |
ankur.sing |
830 |
self._processMap["authenticateCatalogUser"] = Processor.process_authenticateCatalogUser
|
| 349 |
ashish |
831 |
|
|
|
832 |
def process(self, iprot, oprot):
|
|
|
833 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
834 |
if name not in self._processMap:
|
|
|
835 |
iprot.skip(TType.STRUCT)
|
|
|
836 |
iprot.readMessageEnd()
|
|
|
837 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
838 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
839 |
x.write(oprot)
|
|
|
840 |
oprot.writeMessageEnd()
|
|
|
841 |
oprot.trans.flush()
|
|
|
842 |
return
|
|
|
843 |
else:
|
|
|
844 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
845 |
return True
|
|
|
846 |
|
| 1395 |
varun.gupt |
847 |
def process_saveUserEmailForSending(self, seqid, iprot, oprot):
|
|
|
848 |
args = saveUserEmailForSending_args()
|
|
|
849 |
args.read(iprot)
|
|
|
850 |
iprot.readMessageEnd()
|
|
|
851 |
result = saveUserEmailForSending_result()
|
|
|
852 |
try:
|
| 3206 |
mandeep.dh |
853 |
result.success = self._handler.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType)
|
| 1395 |
varun.gupt |
854 |
except HelperServiceException, se:
|
|
|
855 |
result.se = se
|
|
|
856 |
oprot.writeMessageBegin("saveUserEmailForSending", TMessageType.REPLY, seqid)
|
|
|
857 |
result.write(oprot)
|
|
|
858 |
oprot.writeMessageEnd()
|
|
|
859 |
oprot.trans.flush()
|
|
|
860 |
|
| 1422 |
varun.gupt |
861 |
def process_getEmailsToBeSent(self, seqid, iprot, oprot):
|
|
|
862 |
args = getEmailsToBeSent_args()
|
|
|
863 |
args.read(iprot)
|
|
|
864 |
iprot.readMessageEnd()
|
|
|
865 |
result = getEmailsToBeSent_result()
|
|
|
866 |
try:
|
| 3086 |
rajveer |
867 |
result.success = self._handler.getEmailsToBeSent()
|
| 1422 |
varun.gupt |
868 |
except HelperServiceException, se:
|
|
|
869 |
result.se = se
|
|
|
870 |
oprot.writeMessageBegin("getEmailsToBeSent", TMessageType.REPLY, seqid)
|
|
|
871 |
result.write(oprot)
|
|
|
872 |
oprot.writeMessageEnd()
|
|
|
873 |
oprot.trans.flush()
|
|
|
874 |
|
|
|
875 |
def process_markEmailAsSent(self, seqid, iprot, oprot):
|
|
|
876 |
args = markEmailAsSent_args()
|
|
|
877 |
args.read(iprot)
|
|
|
878 |
iprot.readMessageEnd()
|
|
|
879 |
result = markEmailAsSent_result()
|
|
|
880 |
try:
|
|
|
881 |
self._handler.markEmailAsSent(args.emailId)
|
|
|
882 |
except HelperServiceException, se:
|
|
|
883 |
result.se = se
|
|
|
884 |
oprot.writeMessageBegin("markEmailAsSent", TMessageType.REPLY, seqid)
|
|
|
885 |
result.write(oprot)
|
|
|
886 |
oprot.writeMessageEnd()
|
|
|
887 |
oprot.trans.flush()
|
|
|
888 |
|
| 349 |
ashish |
889 |
def process_sendMail(self, seqid, iprot, oprot):
|
|
|
890 |
args = sendMail_args()
|
|
|
891 |
args.read(iprot)
|
|
|
892 |
iprot.readMessageEnd()
|
|
|
893 |
result = sendMail_result()
|
|
|
894 |
try:
|
|
|
895 |
self._handler.sendMail(args.mail)
|
|
|
896 |
except HelperServiceException, se:
|
|
|
897 |
result.se = se
|
|
|
898 |
oprot.writeMessageBegin("sendMail", TMessageType.REPLY, seqid)
|
|
|
899 |
result.write(oprot)
|
|
|
900 |
oprot.writeMessageEnd()
|
|
|
901 |
oprot.trans.flush()
|
|
|
902 |
|
|
|
903 |
def process_sendText(self, seqid, iprot, oprot):
|
|
|
904 |
args = sendText_args()
|
|
|
905 |
args.read(iprot)
|
|
|
906 |
iprot.readMessageEnd()
|
|
|
907 |
result = sendText_result()
|
|
|
908 |
try:
|
|
|
909 |
self._handler.sendText(args.message)
|
|
|
910 |
except HelperServiceException, se:
|
|
|
911 |
result.se = se
|
|
|
912 |
oprot.writeMessageBegin("sendText", TMessageType.REPLY, seqid)
|
|
|
913 |
result.write(oprot)
|
|
|
914 |
oprot.writeMessageEnd()
|
|
|
915 |
oprot.trans.flush()
|
|
|
916 |
|
|
|
917 |
def process_addMessage(self, seqid, iprot, oprot):
|
|
|
918 |
args = addMessage_args()
|
|
|
919 |
args.read(iprot)
|
|
|
920 |
iprot.readMessageEnd()
|
|
|
921 |
result = addMessage_result()
|
|
|
922 |
try:
|
|
|
923 |
self._handler.addMessage(args.message)
|
|
|
924 |
except HelperServiceException, se:
|
|
|
925 |
result.se = se
|
|
|
926 |
oprot.writeMessageBegin("addMessage", TMessageType.REPLY, seqid)
|
|
|
927 |
result.write(oprot)
|
|
|
928 |
oprot.writeMessageEnd()
|
|
|
929 |
oprot.trans.flush()
|
|
|
930 |
|
|
|
931 |
def process_updateMessage(self, seqid, iprot, oprot):
|
|
|
932 |
args = updateMessage_args()
|
|
|
933 |
args.read(iprot)
|
|
|
934 |
iprot.readMessageEnd()
|
|
|
935 |
result = updateMessage_result()
|
|
|
936 |
try:
|
|
|
937 |
self._handler.updateMessage(args.id, args.message)
|
|
|
938 |
except HelperServiceException, se:
|
|
|
939 |
result.se = se
|
|
|
940 |
oprot.writeMessageBegin("updateMessage", TMessageType.REPLY, seqid)
|
|
|
941 |
result.write(oprot)
|
|
|
942 |
oprot.writeMessageEnd()
|
|
|
943 |
oprot.trans.flush()
|
|
|
944 |
|
|
|
945 |
def process_getMessage(self, seqid, iprot, oprot):
|
|
|
946 |
args = getMessage_args()
|
|
|
947 |
args.read(iprot)
|
|
|
948 |
iprot.readMessageEnd()
|
|
|
949 |
result = getMessage_result()
|
|
|
950 |
try:
|
| 353 |
ashish |
951 |
result.success = self._handler.getMessage(args.id)
|
| 349 |
ashish |
952 |
except HelperServiceException, se:
|
|
|
953 |
result.se = se
|
|
|
954 |
oprot.writeMessageBegin("getMessage", TMessageType.REPLY, seqid)
|
|
|
955 |
result.write(oprot)
|
|
|
956 |
oprot.writeMessageEnd()
|
|
|
957 |
oprot.trans.flush()
|
|
|
958 |
|
|
|
959 |
def process_getSubstitutedMessage(self, seqid, iprot, oprot):
|
|
|
960 |
args = getSubstitutedMessage_args()
|
|
|
961 |
args.read(iprot)
|
|
|
962 |
iprot.readMessageEnd()
|
|
|
963 |
result = getSubstitutedMessage_result()
|
|
|
964 |
try:
|
| 353 |
ashish |
965 |
result.success = self._handler.getSubstitutedMessage(args.id, args.params)
|
| 349 |
ashish |
966 |
except HelperServiceException, se:
|
|
|
967 |
result.se = se
|
|
|
968 |
oprot.writeMessageBegin("getSubstitutedMessage", TMessageType.REPLY, seqid)
|
|
|
969 |
result.write(oprot)
|
|
|
970 |
oprot.writeMessageEnd()
|
|
|
971 |
oprot.trans.flush()
|
|
|
972 |
|
| 494 |
rajveer |
973 |
def process_addUser(self, seqid, iprot, oprot):
|
|
|
974 |
args = addUser_args()
|
|
|
975 |
args.read(iprot)
|
|
|
976 |
iprot.readMessageEnd()
|
|
|
977 |
result = addUser_result()
|
|
|
978 |
try:
|
|
|
979 |
result.success = self._handler.addUser(args.username, args.password, args.warehouseId)
|
|
|
980 |
except HelperServiceException, se:
|
|
|
981 |
result.se = se
|
|
|
982 |
oprot.writeMessageBegin("addUser", TMessageType.REPLY, seqid)
|
|
|
983 |
result.write(oprot)
|
|
|
984 |
oprot.writeMessageEnd()
|
|
|
985 |
oprot.trans.flush()
|
| 349 |
ashish |
986 |
|
| 494 |
rajveer |
987 |
def process_deleteUser(self, seqid, iprot, oprot):
|
|
|
988 |
args = deleteUser_args()
|
|
|
989 |
args.read(iprot)
|
|
|
990 |
iprot.readMessageEnd()
|
|
|
991 |
result = deleteUser_result()
|
|
|
992 |
try:
|
|
|
993 |
result.success = self._handler.deleteUser(args.username)
|
|
|
994 |
except HelperServiceException, se:
|
|
|
995 |
result.se = se
|
|
|
996 |
oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
|
|
|
997 |
result.write(oprot)
|
|
|
998 |
oprot.writeMessageEnd()
|
|
|
999 |
oprot.trans.flush()
|
|
|
1000 |
|
| 2447 |
chandransh |
1001 |
def process_authenticateDashboardUser(self, seqid, iprot, oprot):
|
|
|
1002 |
args = authenticateDashboardUser_args()
|
| 494 |
rajveer |
1003 |
args.read(iprot)
|
|
|
1004 |
iprot.readMessageEnd()
|
| 2447 |
chandransh |
1005 |
result = authenticateDashboardUser_result()
|
| 494 |
rajveer |
1006 |
try:
|
| 2447 |
chandransh |
1007 |
result.success = self._handler.authenticateDashboardUser(args.username, args.password)
|
| 494 |
rajveer |
1008 |
except HelperServiceException, se:
|
|
|
1009 |
result.se = se
|
| 2447 |
chandransh |
1010 |
oprot.writeMessageBegin("authenticateDashboardUser", TMessageType.REPLY, seqid)
|
| 494 |
rajveer |
1011 |
result.write(oprot)
|
|
|
1012 |
oprot.writeMessageEnd()
|
|
|
1013 |
oprot.trans.flush()
|
|
|
1014 |
|
|
|
1015 |
def process_updatePassword(self, seqid, iprot, oprot):
|
|
|
1016 |
args = updatePassword_args()
|
|
|
1017 |
args.read(iprot)
|
|
|
1018 |
iprot.readMessageEnd()
|
|
|
1019 |
result = updatePassword_result()
|
|
|
1020 |
try:
|
|
|
1021 |
result.success = self._handler.updatePassword(args.username, args.oldPassword, args.newPassword)
|
|
|
1022 |
except HelperServiceException, se:
|
|
|
1023 |
result.se = se
|
|
|
1024 |
oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
|
|
|
1025 |
result.write(oprot)
|
|
|
1026 |
oprot.writeMessageEnd()
|
|
|
1027 |
oprot.trans.flush()
|
|
|
1028 |
|
| 759 |
chandransh |
1029 |
def process_authenticateLogisticsUser(self, seqid, iprot, oprot):
|
|
|
1030 |
args = authenticateLogisticsUser_args()
|
|
|
1031 |
args.read(iprot)
|
|
|
1032 |
iprot.readMessageEnd()
|
|
|
1033 |
result = authenticateLogisticsUser_result()
|
|
|
1034 |
try:
|
|
|
1035 |
result.success = self._handler.authenticateLogisticsUser(args.username, args.password)
|
|
|
1036 |
except HelperServiceException, hse:
|
|
|
1037 |
result.hse = hse
|
|
|
1038 |
oprot.writeMessageBegin("authenticateLogisticsUser", TMessageType.REPLY, seqid)
|
|
|
1039 |
result.write(oprot)
|
|
|
1040 |
oprot.writeMessageEnd()
|
|
|
1041 |
oprot.trans.flush()
|
| 494 |
rajveer |
1042 |
|
| 1610 |
ankur.sing |
1043 |
def process_authenticateStatisticsUser(self, seqid, iprot, oprot):
|
|
|
1044 |
args = authenticateStatisticsUser_args()
|
|
|
1045 |
args.read(iprot)
|
|
|
1046 |
iprot.readMessageEnd()
|
|
|
1047 |
result = authenticateStatisticsUser_result()
|
|
|
1048 |
try:
|
|
|
1049 |
result.success = self._handler.authenticateStatisticsUser(args.username, args.password)
|
|
|
1050 |
except HelperServiceException, hse:
|
|
|
1051 |
result.hse = hse
|
|
|
1052 |
oprot.writeMessageBegin("authenticateStatisticsUser", TMessageType.REPLY, seqid)
|
|
|
1053 |
result.write(oprot)
|
|
|
1054 |
oprot.writeMessageEnd()
|
|
|
1055 |
oprot.trans.flush()
|
| 759 |
chandransh |
1056 |
|
| 1891 |
ankur.sing |
1057 |
def process_authenticateReportUser(self, seqid, iprot, oprot):
|
|
|
1058 |
args = authenticateReportUser_args()
|
|
|
1059 |
args.read(iprot)
|
|
|
1060 |
iprot.readMessageEnd()
|
|
|
1061 |
result = authenticateReportUser_result()
|
|
|
1062 |
try:
|
|
|
1063 |
result.success = self._handler.authenticateReportUser(args.username, args.password)
|
|
|
1064 |
except HelperServiceException, hse:
|
|
|
1065 |
result.hse = hse
|
|
|
1066 |
oprot.writeMessageBegin("authenticateReportUser", TMessageType.REPLY, seqid)
|
|
|
1067 |
result.write(oprot)
|
|
|
1068 |
oprot.writeMessageEnd()
|
|
|
1069 |
oprot.trans.flush()
|
| 1610 |
ankur.sing |
1070 |
|
| 1891 |
ankur.sing |
1071 |
def process_getReports(self, seqid, iprot, oprot):
|
|
|
1072 |
args = getReports_args()
|
|
|
1073 |
args.read(iprot)
|
|
|
1074 |
iprot.readMessageEnd()
|
|
|
1075 |
result = getReports_result()
|
|
|
1076 |
result.success = self._handler.getReports(args.role)
|
|
|
1077 |
oprot.writeMessageBegin("getReports", TMessageType.REPLY, seqid)
|
|
|
1078 |
result.write(oprot)
|
|
|
1079 |
oprot.writeMessageEnd()
|
|
|
1080 |
oprot.trans.flush()
|
|
|
1081 |
|
| 2025 |
ankur.sing |
1082 |
def process_authenticateCatalogUser(self, seqid, iprot, oprot):
|
|
|
1083 |
args = authenticateCatalogUser_args()
|
|
|
1084 |
args.read(iprot)
|
|
|
1085 |
iprot.readMessageEnd()
|
|
|
1086 |
result = authenticateCatalogUser_result()
|
|
|
1087 |
try:
|
| 2358 |
ankur.sing |
1088 |
result.success = self._handler.authenticateCatalogUser(args.username, args.password, args.role)
|
| 2025 |
ankur.sing |
1089 |
except HelperServiceException, hse:
|
|
|
1090 |
result.hse = hse
|
|
|
1091 |
oprot.writeMessageBegin("authenticateCatalogUser", TMessageType.REPLY, seqid)
|
|
|
1092 |
result.write(oprot)
|
|
|
1093 |
oprot.writeMessageEnd()
|
|
|
1094 |
oprot.trans.flush()
|
| 1891 |
ankur.sing |
1095 |
|
| 2025 |
ankur.sing |
1096 |
|
| 349 |
ashish |
1097 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
1098 |
|
| 1395 |
varun.gupt |
1099 |
class saveUserEmailForSending_args:
|
|
|
1100 |
"""
|
|
|
1101 |
Attributes:
|
|
|
1102 |
- emailTo
|
|
|
1103 |
- emailFrom
|
|
|
1104 |
- subject
|
|
|
1105 |
- body
|
|
|
1106 |
- source
|
|
|
1107 |
- emailType
|
|
|
1108 |
"""
|
|
|
1109 |
|
|
|
1110 |
thrift_spec = (
|
|
|
1111 |
None, # 0
|
|
|
1112 |
(1, TType.STRING, 'emailTo', None, None, ), # 1
|
|
|
1113 |
(2, TType.STRING, 'emailFrom', None, None, ), # 2
|
|
|
1114 |
(3, TType.STRING, 'subject', None, None, ), # 3
|
|
|
1115 |
(4, TType.STRING, 'body', None, None, ), # 4
|
|
|
1116 |
(5, TType.STRING, 'source', None, None, ), # 5
|
|
|
1117 |
(6, TType.STRING, 'emailType', None, None, ), # 6
|
|
|
1118 |
)
|
|
|
1119 |
|
|
|
1120 |
def __init__(self, emailTo=None, emailFrom=None, subject=None, body=None, source=None, emailType=None,):
|
|
|
1121 |
self.emailTo = emailTo
|
|
|
1122 |
self.emailFrom = emailFrom
|
|
|
1123 |
self.subject = subject
|
|
|
1124 |
self.body = body
|
|
|
1125 |
self.source = source
|
|
|
1126 |
self.emailType = emailType
|
|
|
1127 |
|
|
|
1128 |
def read(self, iprot):
|
|
|
1129 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1130 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1131 |
return
|
|
|
1132 |
iprot.readStructBegin()
|
|
|
1133 |
while True:
|
|
|
1134 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1135 |
if ftype == TType.STOP:
|
|
|
1136 |
break
|
|
|
1137 |
if fid == 1:
|
|
|
1138 |
if ftype == TType.STRING:
|
|
|
1139 |
self.emailTo = iprot.readString();
|
|
|
1140 |
else:
|
|
|
1141 |
iprot.skip(ftype)
|
|
|
1142 |
elif fid == 2:
|
|
|
1143 |
if ftype == TType.STRING:
|
|
|
1144 |
self.emailFrom = iprot.readString();
|
|
|
1145 |
else:
|
|
|
1146 |
iprot.skip(ftype)
|
|
|
1147 |
elif fid == 3:
|
|
|
1148 |
if ftype == TType.STRING:
|
|
|
1149 |
self.subject = iprot.readString();
|
|
|
1150 |
else:
|
|
|
1151 |
iprot.skip(ftype)
|
|
|
1152 |
elif fid == 4:
|
|
|
1153 |
if ftype == TType.STRING:
|
|
|
1154 |
self.body = iprot.readString();
|
|
|
1155 |
else:
|
|
|
1156 |
iprot.skip(ftype)
|
|
|
1157 |
elif fid == 5:
|
|
|
1158 |
if ftype == TType.STRING:
|
|
|
1159 |
self.source = iprot.readString();
|
|
|
1160 |
else:
|
|
|
1161 |
iprot.skip(ftype)
|
|
|
1162 |
elif fid == 6:
|
|
|
1163 |
if ftype == TType.STRING:
|
|
|
1164 |
self.emailType = iprot.readString();
|
|
|
1165 |
else:
|
|
|
1166 |
iprot.skip(ftype)
|
|
|
1167 |
else:
|
|
|
1168 |
iprot.skip(ftype)
|
|
|
1169 |
iprot.readFieldEnd()
|
|
|
1170 |
iprot.readStructEnd()
|
|
|
1171 |
|
|
|
1172 |
def write(self, oprot):
|
|
|
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)))
|
|
|
1175 |
return
|
|
|
1176 |
oprot.writeStructBegin('saveUserEmailForSending_args')
|
| 3431 |
rajveer |
1177 |
if self.emailTo is not None:
|
| 1395 |
varun.gupt |
1178 |
oprot.writeFieldBegin('emailTo', TType.STRING, 1)
|
|
|
1179 |
oprot.writeString(self.emailTo)
|
|
|
1180 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1181 |
if self.emailFrom is not None:
|
| 1395 |
varun.gupt |
1182 |
oprot.writeFieldBegin('emailFrom', TType.STRING, 2)
|
|
|
1183 |
oprot.writeString(self.emailFrom)
|
|
|
1184 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1185 |
if self.subject is not None:
|
| 1395 |
varun.gupt |
1186 |
oprot.writeFieldBegin('subject', TType.STRING, 3)
|
|
|
1187 |
oprot.writeString(self.subject)
|
|
|
1188 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1189 |
if self.body is not None:
|
| 1395 |
varun.gupt |
1190 |
oprot.writeFieldBegin('body', TType.STRING, 4)
|
|
|
1191 |
oprot.writeString(self.body)
|
|
|
1192 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1193 |
if self.source is not None:
|
| 1395 |
varun.gupt |
1194 |
oprot.writeFieldBegin('source', TType.STRING, 5)
|
|
|
1195 |
oprot.writeString(self.source)
|
|
|
1196 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1197 |
if self.emailType is not None:
|
| 1395 |
varun.gupt |
1198 |
oprot.writeFieldBegin('emailType', TType.STRING, 6)
|
|
|
1199 |
oprot.writeString(self.emailType)
|
|
|
1200 |
oprot.writeFieldEnd()
|
|
|
1201 |
oprot.writeFieldStop()
|
|
|
1202 |
oprot.writeStructEnd()
|
|
|
1203 |
|
| 3431 |
rajveer |
1204 |
def validate(self):
|
|
|
1205 |
return
|
|
|
1206 |
|
|
|
1207 |
|
| 1395 |
varun.gupt |
1208 |
def __repr__(self):
|
|
|
1209 |
L = ['%s=%r' % (key, value)
|
|
|
1210 |
for key, value in self.__dict__.iteritems()]
|
|
|
1211 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1212 |
|
|
|
1213 |
def __eq__(self, other):
|
|
|
1214 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1215 |
|
|
|
1216 |
def __ne__(self, other):
|
|
|
1217 |
return not (self == other)
|
|
|
1218 |
|
|
|
1219 |
class saveUserEmailForSending_result:
|
|
|
1220 |
"""
|
|
|
1221 |
Attributes:
|
| 3206 |
mandeep.dh |
1222 |
- success
|
| 1395 |
varun.gupt |
1223 |
- se
|
|
|
1224 |
"""
|
|
|
1225 |
|
|
|
1226 |
thrift_spec = (
|
| 3206 |
mandeep.dh |
1227 |
(0, TType.I64, 'success', None, None, ), # 0
|
| 1395 |
varun.gupt |
1228 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
1229 |
)
|
|
|
1230 |
|
| 3206 |
mandeep.dh |
1231 |
def __init__(self, success=None, se=None,):
|
|
|
1232 |
self.success = success
|
| 1395 |
varun.gupt |
1233 |
self.se = se
|
|
|
1234 |
|
|
|
1235 |
def read(self, iprot):
|
|
|
1236 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1237 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1238 |
return
|
|
|
1239 |
iprot.readStructBegin()
|
|
|
1240 |
while True:
|
|
|
1241 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1242 |
if ftype == TType.STOP:
|
|
|
1243 |
break
|
| 3206 |
mandeep.dh |
1244 |
if fid == 0:
|
|
|
1245 |
if ftype == TType.I64:
|
|
|
1246 |
self.success = iprot.readI64();
|
|
|
1247 |
else:
|
|
|
1248 |
iprot.skip(ftype)
|
|
|
1249 |
elif fid == 1:
|
| 1395 |
varun.gupt |
1250 |
if ftype == TType.STRUCT:
|
|
|
1251 |
self.se = HelperServiceException()
|
|
|
1252 |
self.se.read(iprot)
|
|
|
1253 |
else:
|
|
|
1254 |
iprot.skip(ftype)
|
|
|
1255 |
else:
|
|
|
1256 |
iprot.skip(ftype)
|
|
|
1257 |
iprot.readFieldEnd()
|
|
|
1258 |
iprot.readStructEnd()
|
|
|
1259 |
|
|
|
1260 |
def write(self, oprot):
|
|
|
1261 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1262 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1263 |
return
|
|
|
1264 |
oprot.writeStructBegin('saveUserEmailForSending_result')
|
| 3431 |
rajveer |
1265 |
if self.success is not None:
|
| 3206 |
mandeep.dh |
1266 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
1267 |
oprot.writeI64(self.success)
|
|
|
1268 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1269 |
if self.se is not None:
|
| 1395 |
varun.gupt |
1270 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1271 |
self.se.write(oprot)
|
|
|
1272 |
oprot.writeFieldEnd()
|
|
|
1273 |
oprot.writeFieldStop()
|
|
|
1274 |
oprot.writeStructEnd()
|
|
|
1275 |
|
| 3431 |
rajveer |
1276 |
def validate(self):
|
|
|
1277 |
return
|
|
|
1278 |
|
|
|
1279 |
|
| 1395 |
varun.gupt |
1280 |
def __repr__(self):
|
|
|
1281 |
L = ['%s=%r' % (key, value)
|
|
|
1282 |
for key, value in self.__dict__.iteritems()]
|
|
|
1283 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1284 |
|
|
|
1285 |
def __eq__(self, other):
|
|
|
1286 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1287 |
|
|
|
1288 |
def __ne__(self, other):
|
|
|
1289 |
return not (self == other)
|
|
|
1290 |
|
| 1422 |
varun.gupt |
1291 |
class getEmailsToBeSent_args:
|
|
|
1292 |
|
|
|
1293 |
thrift_spec = (
|
|
|
1294 |
)
|
|
|
1295 |
|
|
|
1296 |
def read(self, iprot):
|
|
|
1297 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1298 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1299 |
return
|
|
|
1300 |
iprot.readStructBegin()
|
|
|
1301 |
while True:
|
|
|
1302 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1303 |
if ftype == TType.STOP:
|
|
|
1304 |
break
|
|
|
1305 |
else:
|
|
|
1306 |
iprot.skip(ftype)
|
|
|
1307 |
iprot.readFieldEnd()
|
|
|
1308 |
iprot.readStructEnd()
|
|
|
1309 |
|
|
|
1310 |
def write(self, oprot):
|
|
|
1311 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1312 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1313 |
return
|
|
|
1314 |
oprot.writeStructBegin('getEmailsToBeSent_args')
|
|
|
1315 |
oprot.writeFieldStop()
|
|
|
1316 |
oprot.writeStructEnd()
|
|
|
1317 |
|
| 3431 |
rajveer |
1318 |
def validate(self):
|
|
|
1319 |
return
|
|
|
1320 |
|
|
|
1321 |
|
| 1422 |
varun.gupt |
1322 |
def __repr__(self):
|
|
|
1323 |
L = ['%s=%r' % (key, value)
|
|
|
1324 |
for key, value in self.__dict__.iteritems()]
|
|
|
1325 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1326 |
|
|
|
1327 |
def __eq__(self, other):
|
|
|
1328 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1329 |
|
|
|
1330 |
def __ne__(self, other):
|
|
|
1331 |
return not (self == other)
|
|
|
1332 |
|
|
|
1333 |
class getEmailsToBeSent_result:
|
|
|
1334 |
"""
|
|
|
1335 |
Attributes:
|
|
|
1336 |
- success
|
|
|
1337 |
- se
|
|
|
1338 |
"""
|
|
|
1339 |
|
|
|
1340 |
thrift_spec = (
|
|
|
1341 |
(0, TType.LIST, 'success', (TType.STRUCT,(UserEmail, UserEmail.thrift_spec)), None, ), # 0
|
|
|
1342 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
1343 |
)
|
|
|
1344 |
|
|
|
1345 |
def __init__(self, success=None, se=None,):
|
|
|
1346 |
self.success = success
|
|
|
1347 |
self.se = se
|
|
|
1348 |
|
|
|
1349 |
def read(self, iprot):
|
|
|
1350 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1351 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1352 |
return
|
|
|
1353 |
iprot.readStructBegin()
|
|
|
1354 |
while True:
|
|
|
1355 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1356 |
if ftype == TType.STOP:
|
|
|
1357 |
break
|
|
|
1358 |
if fid == 0:
|
|
|
1359 |
if ftype == TType.LIST:
|
|
|
1360 |
self.success = []
|
|
|
1361 |
(_etype17, _size14) = iprot.readListBegin()
|
|
|
1362 |
for _i18 in xrange(_size14):
|
|
|
1363 |
_elem19 = UserEmail()
|
|
|
1364 |
_elem19.read(iprot)
|
|
|
1365 |
self.success.append(_elem19)
|
|
|
1366 |
iprot.readListEnd()
|
|
|
1367 |
else:
|
|
|
1368 |
iprot.skip(ftype)
|
|
|
1369 |
elif fid == 1:
|
|
|
1370 |
if ftype == TType.STRUCT:
|
|
|
1371 |
self.se = HelperServiceException()
|
|
|
1372 |
self.se.read(iprot)
|
|
|
1373 |
else:
|
|
|
1374 |
iprot.skip(ftype)
|
|
|
1375 |
else:
|
|
|
1376 |
iprot.skip(ftype)
|
|
|
1377 |
iprot.readFieldEnd()
|
|
|
1378 |
iprot.readStructEnd()
|
|
|
1379 |
|
|
|
1380 |
def write(self, oprot):
|
|
|
1381 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1382 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1383 |
return
|
|
|
1384 |
oprot.writeStructBegin('getEmailsToBeSent_result')
|
| 3431 |
rajveer |
1385 |
if self.success is not None:
|
| 1422 |
varun.gupt |
1386 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1387 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
1388 |
for iter20 in self.success:
|
|
|
1389 |
iter20.write(oprot)
|
|
|
1390 |
oprot.writeListEnd()
|
|
|
1391 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1392 |
if self.se is not None:
|
| 1422 |
varun.gupt |
1393 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1394 |
self.se.write(oprot)
|
|
|
1395 |
oprot.writeFieldEnd()
|
|
|
1396 |
oprot.writeFieldStop()
|
|
|
1397 |
oprot.writeStructEnd()
|
|
|
1398 |
|
| 3431 |
rajveer |
1399 |
def validate(self):
|
|
|
1400 |
return
|
|
|
1401 |
|
|
|
1402 |
|
| 1422 |
varun.gupt |
1403 |
def __repr__(self):
|
|
|
1404 |
L = ['%s=%r' % (key, value)
|
|
|
1405 |
for key, value in self.__dict__.iteritems()]
|
|
|
1406 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1407 |
|
|
|
1408 |
def __eq__(self, other):
|
|
|
1409 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1410 |
|
|
|
1411 |
def __ne__(self, other):
|
|
|
1412 |
return not (self == other)
|
|
|
1413 |
|
|
|
1414 |
class markEmailAsSent_args:
|
|
|
1415 |
"""
|
|
|
1416 |
Attributes:
|
|
|
1417 |
- emailId
|
|
|
1418 |
"""
|
|
|
1419 |
|
|
|
1420 |
thrift_spec = (
|
|
|
1421 |
None, # 0
|
|
|
1422 |
(1, TType.I64, 'emailId', None, None, ), # 1
|
|
|
1423 |
)
|
|
|
1424 |
|
|
|
1425 |
def __init__(self, emailId=None,):
|
|
|
1426 |
self.emailId = emailId
|
|
|
1427 |
|
|
|
1428 |
def read(self, iprot):
|
|
|
1429 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1430 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1431 |
return
|
|
|
1432 |
iprot.readStructBegin()
|
|
|
1433 |
while True:
|
|
|
1434 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1435 |
if ftype == TType.STOP:
|
|
|
1436 |
break
|
|
|
1437 |
if fid == 1:
|
|
|
1438 |
if ftype == TType.I64:
|
|
|
1439 |
self.emailId = iprot.readI64();
|
|
|
1440 |
else:
|
|
|
1441 |
iprot.skip(ftype)
|
|
|
1442 |
else:
|
|
|
1443 |
iprot.skip(ftype)
|
|
|
1444 |
iprot.readFieldEnd()
|
|
|
1445 |
iprot.readStructEnd()
|
|
|
1446 |
|
|
|
1447 |
def write(self, oprot):
|
|
|
1448 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1449 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1450 |
return
|
|
|
1451 |
oprot.writeStructBegin('markEmailAsSent_args')
|
| 3431 |
rajveer |
1452 |
if self.emailId is not None:
|
| 1422 |
varun.gupt |
1453 |
oprot.writeFieldBegin('emailId', TType.I64, 1)
|
|
|
1454 |
oprot.writeI64(self.emailId)
|
|
|
1455 |
oprot.writeFieldEnd()
|
|
|
1456 |
oprot.writeFieldStop()
|
|
|
1457 |
oprot.writeStructEnd()
|
|
|
1458 |
|
| 3431 |
rajveer |
1459 |
def validate(self):
|
|
|
1460 |
return
|
|
|
1461 |
|
|
|
1462 |
|
| 1422 |
varun.gupt |
1463 |
def __repr__(self):
|
|
|
1464 |
L = ['%s=%r' % (key, value)
|
|
|
1465 |
for key, value in self.__dict__.iteritems()]
|
|
|
1466 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1467 |
|
|
|
1468 |
def __eq__(self, other):
|
|
|
1469 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1470 |
|
|
|
1471 |
def __ne__(self, other):
|
|
|
1472 |
return not (self == other)
|
|
|
1473 |
|
|
|
1474 |
class markEmailAsSent_result:
|
|
|
1475 |
"""
|
|
|
1476 |
Attributes:
|
|
|
1477 |
- se
|
|
|
1478 |
"""
|
|
|
1479 |
|
|
|
1480 |
thrift_spec = (
|
|
|
1481 |
None, # 0
|
|
|
1482 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
1483 |
)
|
|
|
1484 |
|
|
|
1485 |
def __init__(self, se=None,):
|
|
|
1486 |
self.se = se
|
|
|
1487 |
|
|
|
1488 |
def read(self, iprot):
|
|
|
1489 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1490 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1491 |
return
|
|
|
1492 |
iprot.readStructBegin()
|
|
|
1493 |
while True:
|
|
|
1494 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1495 |
if ftype == TType.STOP:
|
|
|
1496 |
break
|
|
|
1497 |
if fid == 1:
|
|
|
1498 |
if ftype == TType.STRUCT:
|
|
|
1499 |
self.se = HelperServiceException()
|
|
|
1500 |
self.se.read(iprot)
|
|
|
1501 |
else:
|
|
|
1502 |
iprot.skip(ftype)
|
|
|
1503 |
else:
|
|
|
1504 |
iprot.skip(ftype)
|
|
|
1505 |
iprot.readFieldEnd()
|
|
|
1506 |
iprot.readStructEnd()
|
|
|
1507 |
|
|
|
1508 |
def write(self, oprot):
|
|
|
1509 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1510 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1511 |
return
|
|
|
1512 |
oprot.writeStructBegin('markEmailAsSent_result')
|
| 3431 |
rajveer |
1513 |
if self.se is not None:
|
| 1422 |
varun.gupt |
1514 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1515 |
self.se.write(oprot)
|
|
|
1516 |
oprot.writeFieldEnd()
|
|
|
1517 |
oprot.writeFieldStop()
|
|
|
1518 |
oprot.writeStructEnd()
|
|
|
1519 |
|
| 3431 |
rajveer |
1520 |
def validate(self):
|
|
|
1521 |
return
|
|
|
1522 |
|
|
|
1523 |
|
| 1422 |
varun.gupt |
1524 |
def __repr__(self):
|
|
|
1525 |
L = ['%s=%r' % (key, value)
|
|
|
1526 |
for key, value in self.__dict__.iteritems()]
|
|
|
1527 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1528 |
|
|
|
1529 |
def __eq__(self, other):
|
|
|
1530 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1531 |
|
|
|
1532 |
def __ne__(self, other):
|
|
|
1533 |
return not (self == other)
|
|
|
1534 |
|
| 349 |
ashish |
1535 |
class sendMail_args:
|
|
|
1536 |
"""
|
|
|
1537 |
Attributes:
|
|
|
1538 |
- mail
|
|
|
1539 |
"""
|
|
|
1540 |
|
|
|
1541 |
thrift_spec = (
|
|
|
1542 |
None, # 0
|
|
|
1543 |
(1, TType.STRUCT, 'mail', (Mail, Mail.thrift_spec), None, ), # 1
|
|
|
1544 |
)
|
|
|
1545 |
|
|
|
1546 |
def __init__(self, mail=None,):
|
|
|
1547 |
self.mail = mail
|
|
|
1548 |
|
|
|
1549 |
def read(self, iprot):
|
|
|
1550 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1551 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1552 |
return
|
|
|
1553 |
iprot.readStructBegin()
|
|
|
1554 |
while True:
|
|
|
1555 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1556 |
if ftype == TType.STOP:
|
|
|
1557 |
break
|
|
|
1558 |
if fid == 1:
|
|
|
1559 |
if ftype == TType.STRUCT:
|
|
|
1560 |
self.mail = Mail()
|
|
|
1561 |
self.mail.read(iprot)
|
|
|
1562 |
else:
|
|
|
1563 |
iprot.skip(ftype)
|
|
|
1564 |
else:
|
|
|
1565 |
iprot.skip(ftype)
|
|
|
1566 |
iprot.readFieldEnd()
|
|
|
1567 |
iprot.readStructEnd()
|
|
|
1568 |
|
|
|
1569 |
def write(self, oprot):
|
|
|
1570 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1571 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1572 |
return
|
|
|
1573 |
oprot.writeStructBegin('sendMail_args')
|
| 3431 |
rajveer |
1574 |
if self.mail is not None:
|
| 349 |
ashish |
1575 |
oprot.writeFieldBegin('mail', TType.STRUCT, 1)
|
|
|
1576 |
self.mail.write(oprot)
|
|
|
1577 |
oprot.writeFieldEnd()
|
|
|
1578 |
oprot.writeFieldStop()
|
|
|
1579 |
oprot.writeStructEnd()
|
|
|
1580 |
|
| 3431 |
rajveer |
1581 |
def validate(self):
|
|
|
1582 |
return
|
|
|
1583 |
|
|
|
1584 |
|
| 349 |
ashish |
1585 |
def __repr__(self):
|
|
|
1586 |
L = ['%s=%r' % (key, value)
|
|
|
1587 |
for key, value in self.__dict__.iteritems()]
|
|
|
1588 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1589 |
|
|
|
1590 |
def __eq__(self, other):
|
|
|
1591 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1592 |
|
|
|
1593 |
def __ne__(self, other):
|
|
|
1594 |
return not (self == other)
|
|
|
1595 |
|
|
|
1596 |
class sendMail_result:
|
|
|
1597 |
"""
|
|
|
1598 |
Attributes:
|
|
|
1599 |
- se
|
|
|
1600 |
"""
|
|
|
1601 |
|
|
|
1602 |
thrift_spec = (
|
|
|
1603 |
None, # 0
|
|
|
1604 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
1605 |
)
|
|
|
1606 |
|
|
|
1607 |
def __init__(self, se=None,):
|
|
|
1608 |
self.se = se
|
|
|
1609 |
|
|
|
1610 |
def read(self, iprot):
|
|
|
1611 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1612 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1613 |
return
|
|
|
1614 |
iprot.readStructBegin()
|
|
|
1615 |
while True:
|
|
|
1616 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1617 |
if ftype == TType.STOP:
|
|
|
1618 |
break
|
|
|
1619 |
if fid == 1:
|
|
|
1620 |
if ftype == TType.STRUCT:
|
|
|
1621 |
self.se = HelperServiceException()
|
|
|
1622 |
self.se.read(iprot)
|
|
|
1623 |
else:
|
|
|
1624 |
iprot.skip(ftype)
|
|
|
1625 |
else:
|
|
|
1626 |
iprot.skip(ftype)
|
|
|
1627 |
iprot.readFieldEnd()
|
|
|
1628 |
iprot.readStructEnd()
|
|
|
1629 |
|
|
|
1630 |
def write(self, oprot):
|
|
|
1631 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1632 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1633 |
return
|
|
|
1634 |
oprot.writeStructBegin('sendMail_result')
|
| 3431 |
rajveer |
1635 |
if self.se is not None:
|
| 349 |
ashish |
1636 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1637 |
self.se.write(oprot)
|
|
|
1638 |
oprot.writeFieldEnd()
|
|
|
1639 |
oprot.writeFieldStop()
|
|
|
1640 |
oprot.writeStructEnd()
|
|
|
1641 |
|
| 3431 |
rajveer |
1642 |
def validate(self):
|
|
|
1643 |
return
|
|
|
1644 |
|
|
|
1645 |
|
| 349 |
ashish |
1646 |
def __repr__(self):
|
|
|
1647 |
L = ['%s=%r' % (key, value)
|
|
|
1648 |
for key, value in self.__dict__.iteritems()]
|
|
|
1649 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1650 |
|
|
|
1651 |
def __eq__(self, other):
|
|
|
1652 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1653 |
|
|
|
1654 |
def __ne__(self, other):
|
|
|
1655 |
return not (self == other)
|
|
|
1656 |
|
|
|
1657 |
class sendText_args:
|
|
|
1658 |
"""
|
|
|
1659 |
Attributes:
|
|
|
1660 |
- message
|
|
|
1661 |
"""
|
|
|
1662 |
|
|
|
1663 |
thrift_spec = (
|
|
|
1664 |
None, # 0
|
|
|
1665 |
(1, TType.STRUCT, 'message', (TextMessage, TextMessage.thrift_spec), None, ), # 1
|
|
|
1666 |
)
|
|
|
1667 |
|
|
|
1668 |
def __init__(self, message=None,):
|
|
|
1669 |
self.message = message
|
|
|
1670 |
|
|
|
1671 |
def read(self, iprot):
|
|
|
1672 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1673 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1674 |
return
|
|
|
1675 |
iprot.readStructBegin()
|
|
|
1676 |
while True:
|
|
|
1677 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1678 |
if ftype == TType.STOP:
|
|
|
1679 |
break
|
|
|
1680 |
if fid == 1:
|
|
|
1681 |
if ftype == TType.STRUCT:
|
|
|
1682 |
self.message = TextMessage()
|
|
|
1683 |
self.message.read(iprot)
|
|
|
1684 |
else:
|
|
|
1685 |
iprot.skip(ftype)
|
|
|
1686 |
else:
|
|
|
1687 |
iprot.skip(ftype)
|
|
|
1688 |
iprot.readFieldEnd()
|
|
|
1689 |
iprot.readStructEnd()
|
|
|
1690 |
|
|
|
1691 |
def write(self, oprot):
|
|
|
1692 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1693 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1694 |
return
|
|
|
1695 |
oprot.writeStructBegin('sendText_args')
|
| 3431 |
rajveer |
1696 |
if self.message is not None:
|
| 349 |
ashish |
1697 |
oprot.writeFieldBegin('message', TType.STRUCT, 1)
|
|
|
1698 |
self.message.write(oprot)
|
|
|
1699 |
oprot.writeFieldEnd()
|
|
|
1700 |
oprot.writeFieldStop()
|
|
|
1701 |
oprot.writeStructEnd()
|
|
|
1702 |
|
| 3431 |
rajveer |
1703 |
def validate(self):
|
|
|
1704 |
return
|
|
|
1705 |
|
|
|
1706 |
|
| 349 |
ashish |
1707 |
def __repr__(self):
|
|
|
1708 |
L = ['%s=%r' % (key, value)
|
|
|
1709 |
for key, value in self.__dict__.iteritems()]
|
|
|
1710 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1711 |
|
|
|
1712 |
def __eq__(self, other):
|
|
|
1713 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1714 |
|
|
|
1715 |
def __ne__(self, other):
|
|
|
1716 |
return not (self == other)
|
|
|
1717 |
|
|
|
1718 |
class sendText_result:
|
|
|
1719 |
"""
|
|
|
1720 |
Attributes:
|
|
|
1721 |
- se
|
|
|
1722 |
"""
|
|
|
1723 |
|
|
|
1724 |
thrift_spec = (
|
|
|
1725 |
None, # 0
|
|
|
1726 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
1727 |
)
|
|
|
1728 |
|
|
|
1729 |
def __init__(self, se=None,):
|
|
|
1730 |
self.se = se
|
|
|
1731 |
|
|
|
1732 |
def read(self, iprot):
|
|
|
1733 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1734 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1735 |
return
|
|
|
1736 |
iprot.readStructBegin()
|
|
|
1737 |
while True:
|
|
|
1738 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1739 |
if ftype == TType.STOP:
|
|
|
1740 |
break
|
|
|
1741 |
if fid == 1:
|
|
|
1742 |
if ftype == TType.STRUCT:
|
|
|
1743 |
self.se = HelperServiceException()
|
|
|
1744 |
self.se.read(iprot)
|
|
|
1745 |
else:
|
|
|
1746 |
iprot.skip(ftype)
|
|
|
1747 |
else:
|
|
|
1748 |
iprot.skip(ftype)
|
|
|
1749 |
iprot.readFieldEnd()
|
|
|
1750 |
iprot.readStructEnd()
|
|
|
1751 |
|
|
|
1752 |
def write(self, oprot):
|
|
|
1753 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1754 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1755 |
return
|
|
|
1756 |
oprot.writeStructBegin('sendText_result')
|
| 3431 |
rajveer |
1757 |
if self.se is not None:
|
| 349 |
ashish |
1758 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1759 |
self.se.write(oprot)
|
|
|
1760 |
oprot.writeFieldEnd()
|
|
|
1761 |
oprot.writeFieldStop()
|
|
|
1762 |
oprot.writeStructEnd()
|
|
|
1763 |
|
| 3431 |
rajveer |
1764 |
def validate(self):
|
|
|
1765 |
return
|
|
|
1766 |
|
|
|
1767 |
|
| 349 |
ashish |
1768 |
def __repr__(self):
|
|
|
1769 |
L = ['%s=%r' % (key, value)
|
|
|
1770 |
for key, value in self.__dict__.iteritems()]
|
|
|
1771 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1772 |
|
|
|
1773 |
def __eq__(self, other):
|
|
|
1774 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1775 |
|
|
|
1776 |
def __ne__(self, other):
|
|
|
1777 |
return not (self == other)
|
|
|
1778 |
|
|
|
1779 |
class addMessage_args:
|
|
|
1780 |
"""
|
|
|
1781 |
Attributes:
|
|
|
1782 |
- message
|
|
|
1783 |
"""
|
|
|
1784 |
|
|
|
1785 |
thrift_spec = (
|
|
|
1786 |
None, # 0
|
|
|
1787 |
(1, TType.STRUCT, 'message', (Message, Message.thrift_spec), None, ), # 1
|
|
|
1788 |
)
|
|
|
1789 |
|
|
|
1790 |
def __init__(self, message=None,):
|
|
|
1791 |
self.message = message
|
|
|
1792 |
|
|
|
1793 |
def read(self, iprot):
|
|
|
1794 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1795 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1796 |
return
|
|
|
1797 |
iprot.readStructBegin()
|
|
|
1798 |
while True:
|
|
|
1799 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1800 |
if ftype == TType.STOP:
|
|
|
1801 |
break
|
|
|
1802 |
if fid == 1:
|
|
|
1803 |
if ftype == TType.STRUCT:
|
|
|
1804 |
self.message = Message()
|
|
|
1805 |
self.message.read(iprot)
|
|
|
1806 |
else:
|
|
|
1807 |
iprot.skip(ftype)
|
|
|
1808 |
else:
|
|
|
1809 |
iprot.skip(ftype)
|
|
|
1810 |
iprot.readFieldEnd()
|
|
|
1811 |
iprot.readStructEnd()
|
|
|
1812 |
|
|
|
1813 |
def write(self, oprot):
|
|
|
1814 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1815 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1816 |
return
|
|
|
1817 |
oprot.writeStructBegin('addMessage_args')
|
| 3431 |
rajveer |
1818 |
if self.message is not None:
|
| 349 |
ashish |
1819 |
oprot.writeFieldBegin('message', TType.STRUCT, 1)
|
|
|
1820 |
self.message.write(oprot)
|
|
|
1821 |
oprot.writeFieldEnd()
|
|
|
1822 |
oprot.writeFieldStop()
|
|
|
1823 |
oprot.writeStructEnd()
|
|
|
1824 |
|
| 3431 |
rajveer |
1825 |
def validate(self):
|
|
|
1826 |
return
|
|
|
1827 |
|
|
|
1828 |
|
| 349 |
ashish |
1829 |
def __repr__(self):
|
|
|
1830 |
L = ['%s=%r' % (key, value)
|
|
|
1831 |
for key, value in self.__dict__.iteritems()]
|
|
|
1832 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1833 |
|
|
|
1834 |
def __eq__(self, other):
|
|
|
1835 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1836 |
|
|
|
1837 |
def __ne__(self, other):
|
|
|
1838 |
return not (self == other)
|
|
|
1839 |
|
|
|
1840 |
class addMessage_result:
|
|
|
1841 |
"""
|
|
|
1842 |
Attributes:
|
|
|
1843 |
- se
|
|
|
1844 |
"""
|
|
|
1845 |
|
|
|
1846 |
thrift_spec = (
|
|
|
1847 |
None, # 0
|
|
|
1848 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
1849 |
)
|
|
|
1850 |
|
|
|
1851 |
def __init__(self, se=None,):
|
|
|
1852 |
self.se = se
|
|
|
1853 |
|
|
|
1854 |
def read(self, iprot):
|
|
|
1855 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1856 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1857 |
return
|
|
|
1858 |
iprot.readStructBegin()
|
|
|
1859 |
while True:
|
|
|
1860 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1861 |
if ftype == TType.STOP:
|
|
|
1862 |
break
|
|
|
1863 |
if fid == 1:
|
|
|
1864 |
if ftype == TType.STRUCT:
|
|
|
1865 |
self.se = HelperServiceException()
|
|
|
1866 |
self.se.read(iprot)
|
|
|
1867 |
else:
|
|
|
1868 |
iprot.skip(ftype)
|
|
|
1869 |
else:
|
|
|
1870 |
iprot.skip(ftype)
|
|
|
1871 |
iprot.readFieldEnd()
|
|
|
1872 |
iprot.readStructEnd()
|
|
|
1873 |
|
|
|
1874 |
def write(self, oprot):
|
|
|
1875 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1876 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1877 |
return
|
|
|
1878 |
oprot.writeStructBegin('addMessage_result')
|
| 3431 |
rajveer |
1879 |
if self.se is not None:
|
| 349 |
ashish |
1880 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1881 |
self.se.write(oprot)
|
|
|
1882 |
oprot.writeFieldEnd()
|
|
|
1883 |
oprot.writeFieldStop()
|
|
|
1884 |
oprot.writeStructEnd()
|
|
|
1885 |
|
| 3431 |
rajveer |
1886 |
def validate(self):
|
|
|
1887 |
return
|
|
|
1888 |
|
|
|
1889 |
|
| 349 |
ashish |
1890 |
def __repr__(self):
|
|
|
1891 |
L = ['%s=%r' % (key, value)
|
|
|
1892 |
for key, value in self.__dict__.iteritems()]
|
|
|
1893 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1894 |
|
|
|
1895 |
def __eq__(self, other):
|
|
|
1896 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1897 |
|
|
|
1898 |
def __ne__(self, other):
|
|
|
1899 |
return not (self == other)
|
|
|
1900 |
|
|
|
1901 |
class updateMessage_args:
|
|
|
1902 |
"""
|
|
|
1903 |
Attributes:
|
|
|
1904 |
- id
|
|
|
1905 |
- message
|
|
|
1906 |
"""
|
|
|
1907 |
|
|
|
1908 |
thrift_spec = (
|
|
|
1909 |
None, # 0
|
|
|
1910 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
1911 |
(2, TType.STRING, 'message', None, None, ), # 2
|
|
|
1912 |
)
|
|
|
1913 |
|
|
|
1914 |
def __init__(self, id=None, message=None,):
|
|
|
1915 |
self.id = id
|
|
|
1916 |
self.message = message
|
|
|
1917 |
|
|
|
1918 |
def read(self, iprot):
|
|
|
1919 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1920 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1921 |
return
|
|
|
1922 |
iprot.readStructBegin()
|
|
|
1923 |
while True:
|
|
|
1924 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1925 |
if ftype == TType.STOP:
|
|
|
1926 |
break
|
|
|
1927 |
if fid == 1:
|
|
|
1928 |
if ftype == TType.I64:
|
|
|
1929 |
self.id = iprot.readI64();
|
|
|
1930 |
else:
|
|
|
1931 |
iprot.skip(ftype)
|
|
|
1932 |
elif fid == 2:
|
|
|
1933 |
if ftype == TType.STRING:
|
|
|
1934 |
self.message = iprot.readString();
|
|
|
1935 |
else:
|
|
|
1936 |
iprot.skip(ftype)
|
|
|
1937 |
else:
|
|
|
1938 |
iprot.skip(ftype)
|
|
|
1939 |
iprot.readFieldEnd()
|
|
|
1940 |
iprot.readStructEnd()
|
|
|
1941 |
|
|
|
1942 |
def write(self, oprot):
|
|
|
1943 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1944 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1945 |
return
|
|
|
1946 |
oprot.writeStructBegin('updateMessage_args')
|
| 3431 |
rajveer |
1947 |
if self.id is not None:
|
| 349 |
ashish |
1948 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1949 |
oprot.writeI64(self.id)
|
|
|
1950 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1951 |
if self.message is not None:
|
| 349 |
ashish |
1952 |
oprot.writeFieldBegin('message', TType.STRING, 2)
|
|
|
1953 |
oprot.writeString(self.message)
|
|
|
1954 |
oprot.writeFieldEnd()
|
|
|
1955 |
oprot.writeFieldStop()
|
|
|
1956 |
oprot.writeStructEnd()
|
|
|
1957 |
|
| 3431 |
rajveer |
1958 |
def validate(self):
|
|
|
1959 |
return
|
|
|
1960 |
|
|
|
1961 |
|
| 349 |
ashish |
1962 |
def __repr__(self):
|
|
|
1963 |
L = ['%s=%r' % (key, value)
|
|
|
1964 |
for key, value in self.__dict__.iteritems()]
|
|
|
1965 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1966 |
|
|
|
1967 |
def __eq__(self, other):
|
|
|
1968 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1969 |
|
|
|
1970 |
def __ne__(self, other):
|
|
|
1971 |
return not (self == other)
|
|
|
1972 |
|
|
|
1973 |
class updateMessage_result:
|
|
|
1974 |
"""
|
|
|
1975 |
Attributes:
|
|
|
1976 |
- se
|
|
|
1977 |
"""
|
|
|
1978 |
|
|
|
1979 |
thrift_spec = (
|
|
|
1980 |
None, # 0
|
|
|
1981 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
1982 |
)
|
|
|
1983 |
|
|
|
1984 |
def __init__(self, se=None,):
|
|
|
1985 |
self.se = se
|
|
|
1986 |
|
|
|
1987 |
def read(self, iprot):
|
|
|
1988 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1989 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1990 |
return
|
|
|
1991 |
iprot.readStructBegin()
|
|
|
1992 |
while True:
|
|
|
1993 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1994 |
if ftype == TType.STOP:
|
|
|
1995 |
break
|
|
|
1996 |
if fid == 1:
|
|
|
1997 |
if ftype == TType.STRUCT:
|
|
|
1998 |
self.se = HelperServiceException()
|
|
|
1999 |
self.se.read(iprot)
|
|
|
2000 |
else:
|
|
|
2001 |
iprot.skip(ftype)
|
|
|
2002 |
else:
|
|
|
2003 |
iprot.skip(ftype)
|
|
|
2004 |
iprot.readFieldEnd()
|
|
|
2005 |
iprot.readStructEnd()
|
|
|
2006 |
|
|
|
2007 |
def write(self, oprot):
|
|
|
2008 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2009 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2010 |
return
|
|
|
2011 |
oprot.writeStructBegin('updateMessage_result')
|
| 3431 |
rajveer |
2012 |
if self.se is not None:
|
| 349 |
ashish |
2013 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
2014 |
self.se.write(oprot)
|
|
|
2015 |
oprot.writeFieldEnd()
|
|
|
2016 |
oprot.writeFieldStop()
|
|
|
2017 |
oprot.writeStructEnd()
|
|
|
2018 |
|
| 3431 |
rajveer |
2019 |
def validate(self):
|
|
|
2020 |
return
|
|
|
2021 |
|
|
|
2022 |
|
| 349 |
ashish |
2023 |
def __repr__(self):
|
|
|
2024 |
L = ['%s=%r' % (key, value)
|
|
|
2025 |
for key, value in self.__dict__.iteritems()]
|
|
|
2026 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2027 |
|
|
|
2028 |
def __eq__(self, other):
|
|
|
2029 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2030 |
|
|
|
2031 |
def __ne__(self, other):
|
|
|
2032 |
return not (self == other)
|
|
|
2033 |
|
|
|
2034 |
class getMessage_args:
|
|
|
2035 |
"""
|
|
|
2036 |
Attributes:
|
|
|
2037 |
- id
|
|
|
2038 |
"""
|
|
|
2039 |
|
|
|
2040 |
thrift_spec = (
|
|
|
2041 |
None, # 0
|
|
|
2042 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
2043 |
)
|
|
|
2044 |
|
|
|
2045 |
def __init__(self, id=None,):
|
|
|
2046 |
self.id = id
|
|
|
2047 |
|
|
|
2048 |
def read(self, iprot):
|
|
|
2049 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2050 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2051 |
return
|
|
|
2052 |
iprot.readStructBegin()
|
|
|
2053 |
while True:
|
|
|
2054 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2055 |
if ftype == TType.STOP:
|
|
|
2056 |
break
|
|
|
2057 |
if fid == 1:
|
|
|
2058 |
if ftype == TType.I64:
|
|
|
2059 |
self.id = iprot.readI64();
|
|
|
2060 |
else:
|
|
|
2061 |
iprot.skip(ftype)
|
|
|
2062 |
else:
|
|
|
2063 |
iprot.skip(ftype)
|
|
|
2064 |
iprot.readFieldEnd()
|
|
|
2065 |
iprot.readStructEnd()
|
|
|
2066 |
|
|
|
2067 |
def write(self, oprot):
|
|
|
2068 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2069 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2070 |
return
|
|
|
2071 |
oprot.writeStructBegin('getMessage_args')
|
| 3431 |
rajveer |
2072 |
if self.id is not None:
|
| 349 |
ashish |
2073 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
2074 |
oprot.writeI64(self.id)
|
|
|
2075 |
oprot.writeFieldEnd()
|
|
|
2076 |
oprot.writeFieldStop()
|
|
|
2077 |
oprot.writeStructEnd()
|
|
|
2078 |
|
| 3431 |
rajveer |
2079 |
def validate(self):
|
|
|
2080 |
return
|
|
|
2081 |
|
|
|
2082 |
|
| 349 |
ashish |
2083 |
def __repr__(self):
|
|
|
2084 |
L = ['%s=%r' % (key, value)
|
|
|
2085 |
for key, value in self.__dict__.iteritems()]
|
|
|
2086 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2087 |
|
|
|
2088 |
def __eq__(self, other):
|
|
|
2089 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2090 |
|
|
|
2091 |
def __ne__(self, other):
|
|
|
2092 |
return not (self == other)
|
|
|
2093 |
|
|
|
2094 |
class getMessage_result:
|
|
|
2095 |
"""
|
|
|
2096 |
Attributes:
|
| 353 |
ashish |
2097 |
- success
|
| 349 |
ashish |
2098 |
- se
|
|
|
2099 |
"""
|
|
|
2100 |
|
|
|
2101 |
thrift_spec = (
|
| 353 |
ashish |
2102 |
(0, TType.STRUCT, 'success', (Message, Message.thrift_spec), None, ), # 0
|
| 349 |
ashish |
2103 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
2104 |
)
|
|
|
2105 |
|
| 353 |
ashish |
2106 |
def __init__(self, success=None, se=None,):
|
|
|
2107 |
self.success = success
|
| 349 |
ashish |
2108 |
self.se = se
|
|
|
2109 |
|
|
|
2110 |
def read(self, iprot):
|
|
|
2111 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2112 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2113 |
return
|
|
|
2114 |
iprot.readStructBegin()
|
|
|
2115 |
while True:
|
|
|
2116 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2117 |
if ftype == TType.STOP:
|
|
|
2118 |
break
|
| 353 |
ashish |
2119 |
if fid == 0:
|
| 349 |
ashish |
2120 |
if ftype == TType.STRUCT:
|
| 353 |
ashish |
2121 |
self.success = Message()
|
|
|
2122 |
self.success.read(iprot)
|
|
|
2123 |
else:
|
|
|
2124 |
iprot.skip(ftype)
|
|
|
2125 |
elif fid == 1:
|
|
|
2126 |
if ftype == TType.STRUCT:
|
| 349 |
ashish |
2127 |
self.se = HelperServiceException()
|
|
|
2128 |
self.se.read(iprot)
|
|
|
2129 |
else:
|
|
|
2130 |
iprot.skip(ftype)
|
|
|
2131 |
else:
|
|
|
2132 |
iprot.skip(ftype)
|
|
|
2133 |
iprot.readFieldEnd()
|
|
|
2134 |
iprot.readStructEnd()
|
|
|
2135 |
|
|
|
2136 |
def write(self, oprot):
|
|
|
2137 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2138 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2139 |
return
|
|
|
2140 |
oprot.writeStructBegin('getMessage_result')
|
| 3431 |
rajveer |
2141 |
if self.success is not None:
|
| 353 |
ashish |
2142 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2143 |
self.success.write(oprot)
|
|
|
2144 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2145 |
if self.se is not None:
|
| 349 |
ashish |
2146 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
2147 |
self.se.write(oprot)
|
|
|
2148 |
oprot.writeFieldEnd()
|
|
|
2149 |
oprot.writeFieldStop()
|
|
|
2150 |
oprot.writeStructEnd()
|
|
|
2151 |
|
| 3431 |
rajveer |
2152 |
def validate(self):
|
|
|
2153 |
return
|
|
|
2154 |
|
|
|
2155 |
|
| 349 |
ashish |
2156 |
def __repr__(self):
|
|
|
2157 |
L = ['%s=%r' % (key, value)
|
|
|
2158 |
for key, value in self.__dict__.iteritems()]
|
|
|
2159 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2160 |
|
|
|
2161 |
def __eq__(self, other):
|
|
|
2162 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2163 |
|
|
|
2164 |
def __ne__(self, other):
|
|
|
2165 |
return not (self == other)
|
|
|
2166 |
|
|
|
2167 |
class getSubstitutedMessage_args:
|
|
|
2168 |
"""
|
|
|
2169 |
Attributes:
|
|
|
2170 |
- id
|
|
|
2171 |
- params
|
|
|
2172 |
"""
|
|
|
2173 |
|
|
|
2174 |
thrift_spec = (
|
|
|
2175 |
None, # 0
|
|
|
2176 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
2177 |
(2, TType.MAP, 'params', (TType.STRING,None,TType.STRING,None), None, ), # 2
|
|
|
2178 |
)
|
|
|
2179 |
|
|
|
2180 |
def __init__(self, id=None, params=None,):
|
|
|
2181 |
self.id = id
|
|
|
2182 |
self.params = params
|
|
|
2183 |
|
|
|
2184 |
def read(self, iprot):
|
|
|
2185 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2186 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2187 |
return
|
|
|
2188 |
iprot.readStructBegin()
|
|
|
2189 |
while True:
|
|
|
2190 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2191 |
if ftype == TType.STOP:
|
|
|
2192 |
break
|
|
|
2193 |
if fid == 1:
|
|
|
2194 |
if ftype == TType.I64:
|
|
|
2195 |
self.id = iprot.readI64();
|
|
|
2196 |
else:
|
|
|
2197 |
iprot.skip(ftype)
|
|
|
2198 |
elif fid == 2:
|
|
|
2199 |
if ftype == TType.MAP:
|
|
|
2200 |
self.params = {}
|
| 1422 |
varun.gupt |
2201 |
(_ktype22, _vtype23, _size21 ) = iprot.readMapBegin()
|
|
|
2202 |
for _i25 in xrange(_size21):
|
|
|
2203 |
_key26 = iprot.readString();
|
|
|
2204 |
_val27 = iprot.readString();
|
|
|
2205 |
self.params[_key26] = _val27
|
| 349 |
ashish |
2206 |
iprot.readMapEnd()
|
|
|
2207 |
else:
|
|
|
2208 |
iprot.skip(ftype)
|
|
|
2209 |
else:
|
|
|
2210 |
iprot.skip(ftype)
|
|
|
2211 |
iprot.readFieldEnd()
|
|
|
2212 |
iprot.readStructEnd()
|
|
|
2213 |
|
|
|
2214 |
def write(self, oprot):
|
|
|
2215 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2216 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2217 |
return
|
|
|
2218 |
oprot.writeStructBegin('getSubstitutedMessage_args')
|
| 3431 |
rajveer |
2219 |
if self.id is not None:
|
| 349 |
ashish |
2220 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
2221 |
oprot.writeI64(self.id)
|
|
|
2222 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2223 |
if self.params is not None:
|
| 349 |
ashish |
2224 |
oprot.writeFieldBegin('params', TType.MAP, 2)
|
|
|
2225 |
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.params))
|
| 1422 |
varun.gupt |
2226 |
for kiter28,viter29 in self.params.items():
|
|
|
2227 |
oprot.writeString(kiter28)
|
|
|
2228 |
oprot.writeString(viter29)
|
| 349 |
ashish |
2229 |
oprot.writeMapEnd()
|
|
|
2230 |
oprot.writeFieldEnd()
|
|
|
2231 |
oprot.writeFieldStop()
|
|
|
2232 |
oprot.writeStructEnd()
|
|
|
2233 |
|
| 3431 |
rajveer |
2234 |
def validate(self):
|
|
|
2235 |
return
|
|
|
2236 |
|
|
|
2237 |
|
| 349 |
ashish |
2238 |
def __repr__(self):
|
|
|
2239 |
L = ['%s=%r' % (key, value)
|
|
|
2240 |
for key, value in self.__dict__.iteritems()]
|
|
|
2241 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2242 |
|
|
|
2243 |
def __eq__(self, other):
|
|
|
2244 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2245 |
|
|
|
2246 |
def __ne__(self, other):
|
|
|
2247 |
return not (self == other)
|
|
|
2248 |
|
|
|
2249 |
class getSubstitutedMessage_result:
|
|
|
2250 |
"""
|
|
|
2251 |
Attributes:
|
| 353 |
ashish |
2252 |
- success
|
| 349 |
ashish |
2253 |
- se
|
|
|
2254 |
"""
|
|
|
2255 |
|
|
|
2256 |
thrift_spec = (
|
| 353 |
ashish |
2257 |
(0, TType.STRUCT, 'success', (Message, Message.thrift_spec), None, ), # 0
|
| 349 |
ashish |
2258 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
2259 |
)
|
|
|
2260 |
|
| 353 |
ashish |
2261 |
def __init__(self, success=None, se=None,):
|
|
|
2262 |
self.success = success
|
| 349 |
ashish |
2263 |
self.se = se
|
|
|
2264 |
|
|
|
2265 |
def read(self, iprot):
|
|
|
2266 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2267 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2268 |
return
|
|
|
2269 |
iprot.readStructBegin()
|
|
|
2270 |
while True:
|
|
|
2271 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2272 |
if ftype == TType.STOP:
|
|
|
2273 |
break
|
| 353 |
ashish |
2274 |
if fid == 0:
|
| 349 |
ashish |
2275 |
if ftype == TType.STRUCT:
|
| 353 |
ashish |
2276 |
self.success = Message()
|
|
|
2277 |
self.success.read(iprot)
|
|
|
2278 |
else:
|
|
|
2279 |
iprot.skip(ftype)
|
|
|
2280 |
elif fid == 1:
|
|
|
2281 |
if ftype == TType.STRUCT:
|
| 349 |
ashish |
2282 |
self.se = HelperServiceException()
|
|
|
2283 |
self.se.read(iprot)
|
|
|
2284 |
else:
|
|
|
2285 |
iprot.skip(ftype)
|
|
|
2286 |
else:
|
|
|
2287 |
iprot.skip(ftype)
|
|
|
2288 |
iprot.readFieldEnd()
|
|
|
2289 |
iprot.readStructEnd()
|
|
|
2290 |
|
|
|
2291 |
def write(self, oprot):
|
|
|
2292 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2293 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2294 |
return
|
|
|
2295 |
oprot.writeStructBegin('getSubstitutedMessage_result')
|
| 3431 |
rajveer |
2296 |
if self.success is not None:
|
| 353 |
ashish |
2297 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2298 |
self.success.write(oprot)
|
|
|
2299 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2300 |
if self.se is not None:
|
| 349 |
ashish |
2301 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
2302 |
self.se.write(oprot)
|
|
|
2303 |
oprot.writeFieldEnd()
|
|
|
2304 |
oprot.writeFieldStop()
|
|
|
2305 |
oprot.writeStructEnd()
|
|
|
2306 |
|
| 3431 |
rajveer |
2307 |
def validate(self):
|
|
|
2308 |
return
|
|
|
2309 |
|
|
|
2310 |
|
| 349 |
ashish |
2311 |
def __repr__(self):
|
|
|
2312 |
L = ['%s=%r' % (key, value)
|
|
|
2313 |
for key, value in self.__dict__.iteritems()]
|
|
|
2314 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2315 |
|
|
|
2316 |
def __eq__(self, other):
|
|
|
2317 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2318 |
|
|
|
2319 |
def __ne__(self, other):
|
|
|
2320 |
return not (self == other)
|
|
|
2321 |
|
| 494 |
rajveer |
2322 |
class addUser_args:
|
|
|
2323 |
"""
|
|
|
2324 |
Attributes:
|
|
|
2325 |
- username
|
|
|
2326 |
- password
|
|
|
2327 |
- warehouseId
|
|
|
2328 |
"""
|
| 349 |
ashish |
2329 |
|
| 494 |
rajveer |
2330 |
thrift_spec = (
|
|
|
2331 |
None, # 0
|
|
|
2332 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
2333 |
(2, TType.STRING, 'password', None, None, ), # 2
|
|
|
2334 |
(3, TType.I64, 'warehouseId', None, None, ), # 3
|
|
|
2335 |
)
|
|
|
2336 |
|
|
|
2337 |
def __init__(self, username=None, password=None, warehouseId=None,):
|
|
|
2338 |
self.username = username
|
|
|
2339 |
self.password = password
|
|
|
2340 |
self.warehouseId = warehouseId
|
|
|
2341 |
|
|
|
2342 |
def read(self, iprot):
|
|
|
2343 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2344 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2345 |
return
|
|
|
2346 |
iprot.readStructBegin()
|
|
|
2347 |
while True:
|
|
|
2348 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2349 |
if ftype == TType.STOP:
|
|
|
2350 |
break
|
|
|
2351 |
if fid == 1:
|
|
|
2352 |
if ftype == TType.STRING:
|
|
|
2353 |
self.username = iprot.readString();
|
|
|
2354 |
else:
|
|
|
2355 |
iprot.skip(ftype)
|
|
|
2356 |
elif fid == 2:
|
|
|
2357 |
if ftype == TType.STRING:
|
|
|
2358 |
self.password = iprot.readString();
|
|
|
2359 |
else:
|
|
|
2360 |
iprot.skip(ftype)
|
|
|
2361 |
elif fid == 3:
|
|
|
2362 |
if ftype == TType.I64:
|
|
|
2363 |
self.warehouseId = iprot.readI64();
|
|
|
2364 |
else:
|
|
|
2365 |
iprot.skip(ftype)
|
|
|
2366 |
else:
|
|
|
2367 |
iprot.skip(ftype)
|
|
|
2368 |
iprot.readFieldEnd()
|
|
|
2369 |
iprot.readStructEnd()
|
|
|
2370 |
|
|
|
2371 |
def write(self, oprot):
|
|
|
2372 |
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)))
|
|
|
2374 |
return
|
|
|
2375 |
oprot.writeStructBegin('addUser_args')
|
| 3431 |
rajveer |
2376 |
if self.username is not None:
|
| 494 |
rajveer |
2377 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
2378 |
oprot.writeString(self.username)
|
|
|
2379 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2380 |
if self.password is not None:
|
| 494 |
rajveer |
2381 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
2382 |
oprot.writeString(self.password)
|
|
|
2383 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2384 |
if self.warehouseId is not None:
|
| 494 |
rajveer |
2385 |
oprot.writeFieldBegin('warehouseId', TType.I64, 3)
|
|
|
2386 |
oprot.writeI64(self.warehouseId)
|
|
|
2387 |
oprot.writeFieldEnd()
|
|
|
2388 |
oprot.writeFieldStop()
|
|
|
2389 |
oprot.writeStructEnd()
|
|
|
2390 |
|
| 3431 |
rajveer |
2391 |
def validate(self):
|
|
|
2392 |
return
|
|
|
2393 |
|
|
|
2394 |
|
| 494 |
rajveer |
2395 |
def __repr__(self):
|
|
|
2396 |
L = ['%s=%r' % (key, value)
|
|
|
2397 |
for key, value in self.__dict__.iteritems()]
|
|
|
2398 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2399 |
|
|
|
2400 |
def __eq__(self, other):
|
|
|
2401 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2402 |
|
|
|
2403 |
def __ne__(self, other):
|
|
|
2404 |
return not (self == other)
|
|
|
2405 |
|
|
|
2406 |
class addUser_result:
|
|
|
2407 |
"""
|
|
|
2408 |
Attributes:
|
|
|
2409 |
- success
|
|
|
2410 |
- se
|
|
|
2411 |
"""
|
|
|
2412 |
|
|
|
2413 |
thrift_spec = (
|
|
|
2414 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
2415 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
2416 |
)
|
|
|
2417 |
|
|
|
2418 |
def __init__(self, success=None, se=None,):
|
|
|
2419 |
self.success = success
|
|
|
2420 |
self.se = se
|
|
|
2421 |
|
|
|
2422 |
def read(self, iprot):
|
|
|
2423 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2424 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2425 |
return
|
|
|
2426 |
iprot.readStructBegin()
|
|
|
2427 |
while True:
|
|
|
2428 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2429 |
if ftype == TType.STOP:
|
|
|
2430 |
break
|
|
|
2431 |
if fid == 0:
|
|
|
2432 |
if ftype == TType.BOOL:
|
|
|
2433 |
self.success = iprot.readBool();
|
|
|
2434 |
else:
|
|
|
2435 |
iprot.skip(ftype)
|
|
|
2436 |
elif fid == 1:
|
|
|
2437 |
if ftype == TType.STRUCT:
|
|
|
2438 |
self.se = HelperServiceException()
|
|
|
2439 |
self.se.read(iprot)
|
|
|
2440 |
else:
|
|
|
2441 |
iprot.skip(ftype)
|
|
|
2442 |
else:
|
|
|
2443 |
iprot.skip(ftype)
|
|
|
2444 |
iprot.readFieldEnd()
|
|
|
2445 |
iprot.readStructEnd()
|
|
|
2446 |
|
|
|
2447 |
def write(self, oprot):
|
|
|
2448 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2449 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2450 |
return
|
|
|
2451 |
oprot.writeStructBegin('addUser_result')
|
| 3431 |
rajveer |
2452 |
if self.success is not None:
|
| 494 |
rajveer |
2453 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
2454 |
oprot.writeBool(self.success)
|
|
|
2455 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2456 |
if self.se is not None:
|
| 494 |
rajveer |
2457 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
2458 |
self.se.write(oprot)
|
|
|
2459 |
oprot.writeFieldEnd()
|
|
|
2460 |
oprot.writeFieldStop()
|
|
|
2461 |
oprot.writeStructEnd()
|
|
|
2462 |
|
| 3431 |
rajveer |
2463 |
def validate(self):
|
|
|
2464 |
return
|
|
|
2465 |
|
|
|
2466 |
|
| 494 |
rajveer |
2467 |
def __repr__(self):
|
|
|
2468 |
L = ['%s=%r' % (key, value)
|
|
|
2469 |
for key, value in self.__dict__.iteritems()]
|
|
|
2470 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2471 |
|
|
|
2472 |
def __eq__(self, other):
|
|
|
2473 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2474 |
|
|
|
2475 |
def __ne__(self, other):
|
|
|
2476 |
return not (self == other)
|
|
|
2477 |
|
|
|
2478 |
class deleteUser_args:
|
|
|
2479 |
"""
|
|
|
2480 |
Attributes:
|
|
|
2481 |
- username
|
|
|
2482 |
"""
|
|
|
2483 |
|
|
|
2484 |
thrift_spec = (
|
|
|
2485 |
None, # 0
|
|
|
2486 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
2487 |
)
|
|
|
2488 |
|
|
|
2489 |
def __init__(self, username=None,):
|
|
|
2490 |
self.username = username
|
|
|
2491 |
|
|
|
2492 |
def read(self, iprot):
|
|
|
2493 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2494 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2495 |
return
|
|
|
2496 |
iprot.readStructBegin()
|
|
|
2497 |
while True:
|
|
|
2498 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2499 |
if ftype == TType.STOP:
|
|
|
2500 |
break
|
|
|
2501 |
if fid == 1:
|
|
|
2502 |
if ftype == TType.STRING:
|
|
|
2503 |
self.username = iprot.readString();
|
|
|
2504 |
else:
|
|
|
2505 |
iprot.skip(ftype)
|
|
|
2506 |
else:
|
|
|
2507 |
iprot.skip(ftype)
|
|
|
2508 |
iprot.readFieldEnd()
|
|
|
2509 |
iprot.readStructEnd()
|
|
|
2510 |
|
|
|
2511 |
def write(self, oprot):
|
|
|
2512 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2513 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2514 |
return
|
|
|
2515 |
oprot.writeStructBegin('deleteUser_args')
|
| 3431 |
rajveer |
2516 |
if self.username is not None:
|
| 494 |
rajveer |
2517 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
2518 |
oprot.writeString(self.username)
|
|
|
2519 |
oprot.writeFieldEnd()
|
|
|
2520 |
oprot.writeFieldStop()
|
|
|
2521 |
oprot.writeStructEnd()
|
|
|
2522 |
|
| 3431 |
rajveer |
2523 |
def validate(self):
|
|
|
2524 |
return
|
|
|
2525 |
|
|
|
2526 |
|
| 494 |
rajveer |
2527 |
def __repr__(self):
|
|
|
2528 |
L = ['%s=%r' % (key, value)
|
|
|
2529 |
for key, value in self.__dict__.iteritems()]
|
|
|
2530 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2531 |
|
|
|
2532 |
def __eq__(self, other):
|
|
|
2533 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2534 |
|
|
|
2535 |
def __ne__(self, other):
|
|
|
2536 |
return not (self == other)
|
|
|
2537 |
|
|
|
2538 |
class deleteUser_result:
|
|
|
2539 |
"""
|
|
|
2540 |
Attributes:
|
|
|
2541 |
- success
|
|
|
2542 |
- se
|
|
|
2543 |
"""
|
|
|
2544 |
|
|
|
2545 |
thrift_spec = (
|
|
|
2546 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
2547 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
2548 |
)
|
|
|
2549 |
|
|
|
2550 |
def __init__(self, success=None, se=None,):
|
|
|
2551 |
self.success = success
|
|
|
2552 |
self.se = se
|
|
|
2553 |
|
|
|
2554 |
def read(self, iprot):
|
|
|
2555 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2556 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2557 |
return
|
|
|
2558 |
iprot.readStructBegin()
|
|
|
2559 |
while True:
|
|
|
2560 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2561 |
if ftype == TType.STOP:
|
|
|
2562 |
break
|
|
|
2563 |
if fid == 0:
|
|
|
2564 |
if ftype == TType.BOOL:
|
|
|
2565 |
self.success = iprot.readBool();
|
|
|
2566 |
else:
|
|
|
2567 |
iprot.skip(ftype)
|
|
|
2568 |
elif fid == 1:
|
|
|
2569 |
if ftype == TType.STRUCT:
|
|
|
2570 |
self.se = HelperServiceException()
|
|
|
2571 |
self.se.read(iprot)
|
|
|
2572 |
else:
|
|
|
2573 |
iprot.skip(ftype)
|
|
|
2574 |
else:
|
|
|
2575 |
iprot.skip(ftype)
|
|
|
2576 |
iprot.readFieldEnd()
|
|
|
2577 |
iprot.readStructEnd()
|
|
|
2578 |
|
|
|
2579 |
def write(self, oprot):
|
|
|
2580 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2581 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2582 |
return
|
|
|
2583 |
oprot.writeStructBegin('deleteUser_result')
|
| 3431 |
rajveer |
2584 |
if self.success is not None:
|
| 494 |
rajveer |
2585 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
2586 |
oprot.writeBool(self.success)
|
|
|
2587 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2588 |
if self.se is not None:
|
| 494 |
rajveer |
2589 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
2590 |
self.se.write(oprot)
|
|
|
2591 |
oprot.writeFieldEnd()
|
|
|
2592 |
oprot.writeFieldStop()
|
|
|
2593 |
oprot.writeStructEnd()
|
|
|
2594 |
|
| 3431 |
rajveer |
2595 |
def validate(self):
|
|
|
2596 |
return
|
|
|
2597 |
|
|
|
2598 |
|
| 494 |
rajveer |
2599 |
def __repr__(self):
|
|
|
2600 |
L = ['%s=%r' % (key, value)
|
|
|
2601 |
for key, value in self.__dict__.iteritems()]
|
|
|
2602 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2603 |
|
|
|
2604 |
def __eq__(self, other):
|
|
|
2605 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2606 |
|
|
|
2607 |
def __ne__(self, other):
|
|
|
2608 |
return not (self == other)
|
|
|
2609 |
|
| 2447 |
chandransh |
2610 |
class authenticateDashboardUser_args:
|
| 494 |
rajveer |
2611 |
"""
|
|
|
2612 |
Attributes:
|
|
|
2613 |
- username
|
|
|
2614 |
- password
|
|
|
2615 |
"""
|
|
|
2616 |
|
|
|
2617 |
thrift_spec = (
|
|
|
2618 |
None, # 0
|
|
|
2619 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
2620 |
(2, TType.STRING, 'password', None, None, ), # 2
|
|
|
2621 |
)
|
|
|
2622 |
|
|
|
2623 |
def __init__(self, username=None, password=None,):
|
|
|
2624 |
self.username = username
|
|
|
2625 |
self.password = password
|
|
|
2626 |
|
|
|
2627 |
def read(self, iprot):
|
|
|
2628 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2629 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2630 |
return
|
|
|
2631 |
iprot.readStructBegin()
|
|
|
2632 |
while True:
|
|
|
2633 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2634 |
if ftype == TType.STOP:
|
|
|
2635 |
break
|
|
|
2636 |
if fid == 1:
|
|
|
2637 |
if ftype == TType.STRING:
|
|
|
2638 |
self.username = iprot.readString();
|
|
|
2639 |
else:
|
|
|
2640 |
iprot.skip(ftype)
|
|
|
2641 |
elif fid == 2:
|
|
|
2642 |
if ftype == TType.STRING:
|
|
|
2643 |
self.password = iprot.readString();
|
|
|
2644 |
else:
|
|
|
2645 |
iprot.skip(ftype)
|
|
|
2646 |
else:
|
|
|
2647 |
iprot.skip(ftype)
|
|
|
2648 |
iprot.readFieldEnd()
|
|
|
2649 |
iprot.readStructEnd()
|
|
|
2650 |
|
|
|
2651 |
def write(self, oprot):
|
|
|
2652 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2653 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2654 |
return
|
| 2447 |
chandransh |
2655 |
oprot.writeStructBegin('authenticateDashboardUser_args')
|
| 3431 |
rajveer |
2656 |
if self.username is not None:
|
| 494 |
rajveer |
2657 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
2658 |
oprot.writeString(self.username)
|
|
|
2659 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2660 |
if self.password is not None:
|
| 494 |
rajveer |
2661 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
2662 |
oprot.writeString(self.password)
|
|
|
2663 |
oprot.writeFieldEnd()
|
|
|
2664 |
oprot.writeFieldStop()
|
|
|
2665 |
oprot.writeStructEnd()
|
|
|
2666 |
|
| 3431 |
rajveer |
2667 |
def validate(self):
|
|
|
2668 |
return
|
|
|
2669 |
|
|
|
2670 |
|
| 494 |
rajveer |
2671 |
def __repr__(self):
|
|
|
2672 |
L = ['%s=%r' % (key, value)
|
|
|
2673 |
for key, value in self.__dict__.iteritems()]
|
|
|
2674 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2675 |
|
|
|
2676 |
def __eq__(self, other):
|
|
|
2677 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2678 |
|
|
|
2679 |
def __ne__(self, other):
|
|
|
2680 |
return not (self == other)
|
|
|
2681 |
|
| 2447 |
chandransh |
2682 |
class authenticateDashboardUser_result:
|
| 494 |
rajveer |
2683 |
"""
|
|
|
2684 |
Attributes:
|
|
|
2685 |
- success
|
|
|
2686 |
- se
|
|
|
2687 |
"""
|
|
|
2688 |
|
|
|
2689 |
thrift_spec = (
|
| 2447 |
chandransh |
2690 |
(0, TType.STRUCT, 'success', (DashboardUser, DashboardUser.thrift_spec), None, ), # 0
|
| 494 |
rajveer |
2691 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
2692 |
)
|
|
|
2693 |
|
|
|
2694 |
def __init__(self, success=None, se=None,):
|
|
|
2695 |
self.success = success
|
|
|
2696 |
self.se = se
|
|
|
2697 |
|
|
|
2698 |
def read(self, iprot):
|
|
|
2699 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2700 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2701 |
return
|
|
|
2702 |
iprot.readStructBegin()
|
|
|
2703 |
while True:
|
|
|
2704 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2705 |
if ftype == TType.STOP:
|
|
|
2706 |
break
|
|
|
2707 |
if fid == 0:
|
| 2447 |
chandransh |
2708 |
if ftype == TType.STRUCT:
|
|
|
2709 |
self.success = DashboardUser()
|
|
|
2710 |
self.success.read(iprot)
|
| 494 |
rajveer |
2711 |
else:
|
|
|
2712 |
iprot.skip(ftype)
|
|
|
2713 |
elif fid == 1:
|
|
|
2714 |
if ftype == TType.STRUCT:
|
|
|
2715 |
self.se = HelperServiceException()
|
|
|
2716 |
self.se.read(iprot)
|
|
|
2717 |
else:
|
|
|
2718 |
iprot.skip(ftype)
|
|
|
2719 |
else:
|
|
|
2720 |
iprot.skip(ftype)
|
|
|
2721 |
iprot.readFieldEnd()
|
|
|
2722 |
iprot.readStructEnd()
|
|
|
2723 |
|
|
|
2724 |
def write(self, oprot):
|
|
|
2725 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2726 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2727 |
return
|
| 2447 |
chandransh |
2728 |
oprot.writeStructBegin('authenticateDashboardUser_result')
|
| 3431 |
rajveer |
2729 |
if self.success is not None:
|
| 2447 |
chandransh |
2730 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2731 |
self.success.write(oprot)
|
| 494 |
rajveer |
2732 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2733 |
if self.se is not None:
|
| 494 |
rajveer |
2734 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
2735 |
self.se.write(oprot)
|
|
|
2736 |
oprot.writeFieldEnd()
|
|
|
2737 |
oprot.writeFieldStop()
|
|
|
2738 |
oprot.writeStructEnd()
|
|
|
2739 |
|
| 3431 |
rajveer |
2740 |
def validate(self):
|
|
|
2741 |
return
|
|
|
2742 |
|
|
|
2743 |
|
| 494 |
rajveer |
2744 |
def __repr__(self):
|
|
|
2745 |
L = ['%s=%r' % (key, value)
|
|
|
2746 |
for key, value in self.__dict__.iteritems()]
|
|
|
2747 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2748 |
|
|
|
2749 |
def __eq__(self, other):
|
|
|
2750 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2751 |
|
|
|
2752 |
def __ne__(self, other):
|
|
|
2753 |
return not (self == other)
|
|
|
2754 |
|
|
|
2755 |
class updatePassword_args:
|
|
|
2756 |
"""
|
|
|
2757 |
Attributes:
|
|
|
2758 |
- username
|
|
|
2759 |
- oldPassword
|
|
|
2760 |
- newPassword
|
|
|
2761 |
"""
|
|
|
2762 |
|
|
|
2763 |
thrift_spec = (
|
|
|
2764 |
None, # 0
|
|
|
2765 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
2766 |
(2, TType.STRING, 'oldPassword', None, None, ), # 2
|
|
|
2767 |
(3, TType.STRING, 'newPassword', None, None, ), # 3
|
|
|
2768 |
)
|
|
|
2769 |
|
|
|
2770 |
def __init__(self, username=None, oldPassword=None, newPassword=None,):
|
|
|
2771 |
self.username = username
|
|
|
2772 |
self.oldPassword = oldPassword
|
|
|
2773 |
self.newPassword = newPassword
|
|
|
2774 |
|
|
|
2775 |
def read(self, iprot):
|
|
|
2776 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2777 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2778 |
return
|
|
|
2779 |
iprot.readStructBegin()
|
|
|
2780 |
while True:
|
|
|
2781 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2782 |
if ftype == TType.STOP:
|
|
|
2783 |
break
|
|
|
2784 |
if fid == 1:
|
|
|
2785 |
if ftype == TType.STRING:
|
|
|
2786 |
self.username = iprot.readString();
|
|
|
2787 |
else:
|
|
|
2788 |
iprot.skip(ftype)
|
|
|
2789 |
elif fid == 2:
|
|
|
2790 |
if ftype == TType.STRING:
|
|
|
2791 |
self.oldPassword = iprot.readString();
|
|
|
2792 |
else:
|
|
|
2793 |
iprot.skip(ftype)
|
|
|
2794 |
elif fid == 3:
|
|
|
2795 |
if ftype == TType.STRING:
|
|
|
2796 |
self.newPassword = iprot.readString();
|
|
|
2797 |
else:
|
|
|
2798 |
iprot.skip(ftype)
|
|
|
2799 |
else:
|
|
|
2800 |
iprot.skip(ftype)
|
|
|
2801 |
iprot.readFieldEnd()
|
|
|
2802 |
iprot.readStructEnd()
|
|
|
2803 |
|
|
|
2804 |
def write(self, oprot):
|
|
|
2805 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2806 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2807 |
return
|
|
|
2808 |
oprot.writeStructBegin('updatePassword_args')
|
| 3431 |
rajveer |
2809 |
if self.username is not None:
|
| 494 |
rajveer |
2810 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
2811 |
oprot.writeString(self.username)
|
|
|
2812 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2813 |
if self.oldPassword is not None:
|
| 494 |
rajveer |
2814 |
oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
|
|
|
2815 |
oprot.writeString(self.oldPassword)
|
|
|
2816 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2817 |
if self.newPassword is not None:
|
| 494 |
rajveer |
2818 |
oprot.writeFieldBegin('newPassword', TType.STRING, 3)
|
|
|
2819 |
oprot.writeString(self.newPassword)
|
|
|
2820 |
oprot.writeFieldEnd()
|
|
|
2821 |
oprot.writeFieldStop()
|
|
|
2822 |
oprot.writeStructEnd()
|
|
|
2823 |
|
| 3431 |
rajveer |
2824 |
def validate(self):
|
|
|
2825 |
return
|
|
|
2826 |
|
|
|
2827 |
|
| 494 |
rajveer |
2828 |
def __repr__(self):
|
|
|
2829 |
L = ['%s=%r' % (key, value)
|
|
|
2830 |
for key, value in self.__dict__.iteritems()]
|
|
|
2831 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2832 |
|
|
|
2833 |
def __eq__(self, other):
|
|
|
2834 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2835 |
|
|
|
2836 |
def __ne__(self, other):
|
|
|
2837 |
return not (self == other)
|
|
|
2838 |
|
|
|
2839 |
class updatePassword_result:
|
|
|
2840 |
"""
|
|
|
2841 |
Attributes:
|
|
|
2842 |
- success
|
|
|
2843 |
- se
|
|
|
2844 |
"""
|
|
|
2845 |
|
|
|
2846 |
thrift_spec = (
|
|
|
2847 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
2848 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
2849 |
)
|
|
|
2850 |
|
|
|
2851 |
def __init__(self, success=None, se=None,):
|
|
|
2852 |
self.success = success
|
|
|
2853 |
self.se = se
|
|
|
2854 |
|
|
|
2855 |
def read(self, iprot):
|
|
|
2856 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2857 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2858 |
return
|
|
|
2859 |
iprot.readStructBegin()
|
|
|
2860 |
while True:
|
|
|
2861 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2862 |
if ftype == TType.STOP:
|
|
|
2863 |
break
|
|
|
2864 |
if fid == 0:
|
|
|
2865 |
if ftype == TType.BOOL:
|
|
|
2866 |
self.success = iprot.readBool();
|
|
|
2867 |
else:
|
|
|
2868 |
iprot.skip(ftype)
|
|
|
2869 |
elif fid == 1:
|
|
|
2870 |
if ftype == TType.STRUCT:
|
|
|
2871 |
self.se = HelperServiceException()
|
|
|
2872 |
self.se.read(iprot)
|
|
|
2873 |
else:
|
|
|
2874 |
iprot.skip(ftype)
|
|
|
2875 |
else:
|
|
|
2876 |
iprot.skip(ftype)
|
|
|
2877 |
iprot.readFieldEnd()
|
|
|
2878 |
iprot.readStructEnd()
|
|
|
2879 |
|
|
|
2880 |
def write(self, oprot):
|
|
|
2881 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2882 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2883 |
return
|
|
|
2884 |
oprot.writeStructBegin('updatePassword_result')
|
| 3431 |
rajveer |
2885 |
if self.success is not None:
|
| 494 |
rajveer |
2886 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
2887 |
oprot.writeBool(self.success)
|
|
|
2888 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2889 |
if self.se is not None:
|
| 494 |
rajveer |
2890 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
2891 |
self.se.write(oprot)
|
|
|
2892 |
oprot.writeFieldEnd()
|
|
|
2893 |
oprot.writeFieldStop()
|
|
|
2894 |
oprot.writeStructEnd()
|
|
|
2895 |
|
| 3431 |
rajveer |
2896 |
def validate(self):
|
|
|
2897 |
return
|
|
|
2898 |
|
|
|
2899 |
|
| 494 |
rajveer |
2900 |
def __repr__(self):
|
|
|
2901 |
L = ['%s=%r' % (key, value)
|
|
|
2902 |
for key, value in self.__dict__.iteritems()]
|
|
|
2903 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2904 |
|
|
|
2905 |
def __eq__(self, other):
|
|
|
2906 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2907 |
|
|
|
2908 |
def __ne__(self, other):
|
|
|
2909 |
return not (self == other)
|
|
|
2910 |
|
| 759 |
chandransh |
2911 |
class authenticateLogisticsUser_args:
|
|
|
2912 |
"""
|
|
|
2913 |
Attributes:
|
|
|
2914 |
- username
|
|
|
2915 |
- password
|
|
|
2916 |
"""
|
| 494 |
rajveer |
2917 |
|
| 759 |
chandransh |
2918 |
thrift_spec = (
|
|
|
2919 |
None, # 0
|
|
|
2920 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
2921 |
(2, TType.STRING, 'password', None, None, ), # 2
|
|
|
2922 |
)
|
|
|
2923 |
|
|
|
2924 |
def __init__(self, username=None, password=None,):
|
|
|
2925 |
self.username = username
|
|
|
2926 |
self.password = password
|
|
|
2927 |
|
|
|
2928 |
def read(self, iprot):
|
|
|
2929 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2930 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2931 |
return
|
|
|
2932 |
iprot.readStructBegin()
|
|
|
2933 |
while True:
|
|
|
2934 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2935 |
if ftype == TType.STOP:
|
|
|
2936 |
break
|
|
|
2937 |
if fid == 1:
|
|
|
2938 |
if ftype == TType.STRING:
|
|
|
2939 |
self.username = iprot.readString();
|
|
|
2940 |
else:
|
|
|
2941 |
iprot.skip(ftype)
|
|
|
2942 |
elif fid == 2:
|
|
|
2943 |
if ftype == TType.STRING:
|
|
|
2944 |
self.password = iprot.readString();
|
|
|
2945 |
else:
|
|
|
2946 |
iprot.skip(ftype)
|
|
|
2947 |
else:
|
|
|
2948 |
iprot.skip(ftype)
|
|
|
2949 |
iprot.readFieldEnd()
|
|
|
2950 |
iprot.readStructEnd()
|
|
|
2951 |
|
|
|
2952 |
def write(self, oprot):
|
|
|
2953 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2954 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2955 |
return
|
|
|
2956 |
oprot.writeStructBegin('authenticateLogisticsUser_args')
|
| 3431 |
rajveer |
2957 |
if self.username is not None:
|
| 759 |
chandransh |
2958 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
2959 |
oprot.writeString(self.username)
|
|
|
2960 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2961 |
if self.password is not None:
|
| 759 |
chandransh |
2962 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
2963 |
oprot.writeString(self.password)
|
|
|
2964 |
oprot.writeFieldEnd()
|
|
|
2965 |
oprot.writeFieldStop()
|
|
|
2966 |
oprot.writeStructEnd()
|
|
|
2967 |
|
| 3431 |
rajveer |
2968 |
def validate(self):
|
|
|
2969 |
return
|
|
|
2970 |
|
|
|
2971 |
|
| 759 |
chandransh |
2972 |
def __repr__(self):
|
|
|
2973 |
L = ['%s=%r' % (key, value)
|
|
|
2974 |
for key, value in self.__dict__.iteritems()]
|
|
|
2975 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2976 |
|
|
|
2977 |
def __eq__(self, other):
|
|
|
2978 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2979 |
|
|
|
2980 |
def __ne__(self, other):
|
|
|
2981 |
return not (self == other)
|
|
|
2982 |
|
|
|
2983 |
class authenticateLogisticsUser_result:
|
|
|
2984 |
"""
|
|
|
2985 |
Attributes:
|
|
|
2986 |
- success
|
|
|
2987 |
- hse
|
|
|
2988 |
"""
|
|
|
2989 |
|
|
|
2990 |
thrift_spec = (
|
|
|
2991 |
(0, TType.STRUCT, 'success', (LogisticsUser, LogisticsUser.thrift_spec), None, ), # 0
|
|
|
2992 |
(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
2993 |
)
|
|
|
2994 |
|
|
|
2995 |
def __init__(self, success=None, hse=None,):
|
|
|
2996 |
self.success = success
|
|
|
2997 |
self.hse = hse
|
|
|
2998 |
|
|
|
2999 |
def read(self, iprot):
|
|
|
3000 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3001 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3002 |
return
|
|
|
3003 |
iprot.readStructBegin()
|
|
|
3004 |
while True:
|
|
|
3005 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3006 |
if ftype == TType.STOP:
|
|
|
3007 |
break
|
|
|
3008 |
if fid == 0:
|
|
|
3009 |
if ftype == TType.STRUCT:
|
|
|
3010 |
self.success = LogisticsUser()
|
|
|
3011 |
self.success.read(iprot)
|
|
|
3012 |
else:
|
|
|
3013 |
iprot.skip(ftype)
|
|
|
3014 |
elif fid == 1:
|
|
|
3015 |
if ftype == TType.STRUCT:
|
|
|
3016 |
self.hse = HelperServiceException()
|
|
|
3017 |
self.hse.read(iprot)
|
|
|
3018 |
else:
|
|
|
3019 |
iprot.skip(ftype)
|
|
|
3020 |
else:
|
|
|
3021 |
iprot.skip(ftype)
|
|
|
3022 |
iprot.readFieldEnd()
|
|
|
3023 |
iprot.readStructEnd()
|
|
|
3024 |
|
|
|
3025 |
def write(self, oprot):
|
|
|
3026 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3027 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3028 |
return
|
|
|
3029 |
oprot.writeStructBegin('authenticateLogisticsUser_result')
|
| 3431 |
rajveer |
3030 |
if self.success is not None:
|
| 759 |
chandransh |
3031 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
3032 |
self.success.write(oprot)
|
|
|
3033 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3034 |
if self.hse is not None:
|
| 759 |
chandransh |
3035 |
oprot.writeFieldBegin('hse', TType.STRUCT, 1)
|
|
|
3036 |
self.hse.write(oprot)
|
|
|
3037 |
oprot.writeFieldEnd()
|
|
|
3038 |
oprot.writeFieldStop()
|
|
|
3039 |
oprot.writeStructEnd()
|
|
|
3040 |
|
| 3431 |
rajveer |
3041 |
def validate(self):
|
|
|
3042 |
return
|
|
|
3043 |
|
|
|
3044 |
|
| 759 |
chandransh |
3045 |
def __repr__(self):
|
|
|
3046 |
L = ['%s=%r' % (key, value)
|
|
|
3047 |
for key, value in self.__dict__.iteritems()]
|
|
|
3048 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3049 |
|
|
|
3050 |
def __eq__(self, other):
|
|
|
3051 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3052 |
|
|
|
3053 |
def __ne__(self, other):
|
|
|
3054 |
return not (self == other)
|
|
|
3055 |
|
| 1610 |
ankur.sing |
3056 |
class authenticateStatisticsUser_args:
|
|
|
3057 |
"""
|
|
|
3058 |
Attributes:
|
|
|
3059 |
- username
|
|
|
3060 |
- password
|
|
|
3061 |
"""
|
| 759 |
chandransh |
3062 |
|
| 1610 |
ankur.sing |
3063 |
thrift_spec = (
|
|
|
3064 |
None, # 0
|
|
|
3065 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
3066 |
(2, TType.STRING, 'password', None, None, ), # 2
|
|
|
3067 |
)
|
|
|
3068 |
|
|
|
3069 |
def __init__(self, username=None, password=None,):
|
|
|
3070 |
self.username = username
|
|
|
3071 |
self.password = password
|
|
|
3072 |
|
|
|
3073 |
def read(self, iprot):
|
|
|
3074 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3075 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3076 |
return
|
|
|
3077 |
iprot.readStructBegin()
|
|
|
3078 |
while True:
|
|
|
3079 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3080 |
if ftype == TType.STOP:
|
|
|
3081 |
break
|
|
|
3082 |
if fid == 1:
|
|
|
3083 |
if ftype == TType.STRING:
|
|
|
3084 |
self.username = iprot.readString();
|
|
|
3085 |
else:
|
|
|
3086 |
iprot.skip(ftype)
|
|
|
3087 |
elif fid == 2:
|
|
|
3088 |
if ftype == TType.STRING:
|
|
|
3089 |
self.password = iprot.readString();
|
|
|
3090 |
else:
|
|
|
3091 |
iprot.skip(ftype)
|
|
|
3092 |
else:
|
|
|
3093 |
iprot.skip(ftype)
|
|
|
3094 |
iprot.readFieldEnd()
|
|
|
3095 |
iprot.readStructEnd()
|
|
|
3096 |
|
|
|
3097 |
def write(self, oprot):
|
|
|
3098 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3099 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3100 |
return
|
|
|
3101 |
oprot.writeStructBegin('authenticateStatisticsUser_args')
|
| 3431 |
rajveer |
3102 |
if self.username is not None:
|
| 1610 |
ankur.sing |
3103 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
3104 |
oprot.writeString(self.username)
|
|
|
3105 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3106 |
if self.password is not None:
|
| 1610 |
ankur.sing |
3107 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
3108 |
oprot.writeString(self.password)
|
|
|
3109 |
oprot.writeFieldEnd()
|
|
|
3110 |
oprot.writeFieldStop()
|
|
|
3111 |
oprot.writeStructEnd()
|
|
|
3112 |
|
| 3431 |
rajveer |
3113 |
def validate(self):
|
|
|
3114 |
return
|
|
|
3115 |
|
|
|
3116 |
|
| 1610 |
ankur.sing |
3117 |
def __repr__(self):
|
|
|
3118 |
L = ['%s=%r' % (key, value)
|
|
|
3119 |
for key, value in self.__dict__.iteritems()]
|
|
|
3120 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3121 |
|
|
|
3122 |
def __eq__(self, other):
|
|
|
3123 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3124 |
|
|
|
3125 |
def __ne__(self, other):
|
|
|
3126 |
return not (self == other)
|
|
|
3127 |
|
|
|
3128 |
class authenticateStatisticsUser_result:
|
|
|
3129 |
"""
|
|
|
3130 |
Attributes:
|
|
|
3131 |
- success
|
|
|
3132 |
- hse
|
|
|
3133 |
"""
|
|
|
3134 |
|
|
|
3135 |
thrift_spec = (
|
|
|
3136 |
(0, TType.STRUCT, 'success', (StatisticsUser, StatisticsUser.thrift_spec), None, ), # 0
|
|
|
3137 |
(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
3138 |
)
|
|
|
3139 |
|
|
|
3140 |
def __init__(self, success=None, hse=None,):
|
|
|
3141 |
self.success = success
|
|
|
3142 |
self.hse = hse
|
|
|
3143 |
|
|
|
3144 |
def read(self, iprot):
|
|
|
3145 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3146 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3147 |
return
|
|
|
3148 |
iprot.readStructBegin()
|
|
|
3149 |
while True:
|
|
|
3150 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3151 |
if ftype == TType.STOP:
|
|
|
3152 |
break
|
|
|
3153 |
if fid == 0:
|
|
|
3154 |
if ftype == TType.STRUCT:
|
|
|
3155 |
self.success = StatisticsUser()
|
|
|
3156 |
self.success.read(iprot)
|
|
|
3157 |
else:
|
|
|
3158 |
iprot.skip(ftype)
|
|
|
3159 |
elif fid == 1:
|
|
|
3160 |
if ftype == TType.STRUCT:
|
|
|
3161 |
self.hse = HelperServiceException()
|
|
|
3162 |
self.hse.read(iprot)
|
|
|
3163 |
else:
|
|
|
3164 |
iprot.skip(ftype)
|
|
|
3165 |
else:
|
|
|
3166 |
iprot.skip(ftype)
|
|
|
3167 |
iprot.readFieldEnd()
|
|
|
3168 |
iprot.readStructEnd()
|
|
|
3169 |
|
|
|
3170 |
def write(self, oprot):
|
|
|
3171 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3172 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3173 |
return
|
|
|
3174 |
oprot.writeStructBegin('authenticateStatisticsUser_result')
|
| 3431 |
rajveer |
3175 |
if self.success is not None:
|
| 1610 |
ankur.sing |
3176 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
3177 |
self.success.write(oprot)
|
|
|
3178 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3179 |
if self.hse is not None:
|
| 1610 |
ankur.sing |
3180 |
oprot.writeFieldBegin('hse', TType.STRUCT, 1)
|
|
|
3181 |
self.hse.write(oprot)
|
|
|
3182 |
oprot.writeFieldEnd()
|
|
|
3183 |
oprot.writeFieldStop()
|
|
|
3184 |
oprot.writeStructEnd()
|
|
|
3185 |
|
| 3431 |
rajveer |
3186 |
def validate(self):
|
|
|
3187 |
return
|
|
|
3188 |
|
|
|
3189 |
|
| 1610 |
ankur.sing |
3190 |
def __repr__(self):
|
|
|
3191 |
L = ['%s=%r' % (key, value)
|
|
|
3192 |
for key, value in self.__dict__.iteritems()]
|
|
|
3193 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3194 |
|
|
|
3195 |
def __eq__(self, other):
|
|
|
3196 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3197 |
|
|
|
3198 |
def __ne__(self, other):
|
|
|
3199 |
return not (self == other)
|
|
|
3200 |
|
| 1891 |
ankur.sing |
3201 |
class authenticateReportUser_args:
|
|
|
3202 |
"""
|
|
|
3203 |
Attributes:
|
|
|
3204 |
- username
|
|
|
3205 |
- password
|
|
|
3206 |
"""
|
| 1610 |
ankur.sing |
3207 |
|
| 1891 |
ankur.sing |
3208 |
thrift_spec = (
|
|
|
3209 |
None, # 0
|
|
|
3210 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
3211 |
(2, TType.STRING, 'password', None, None, ), # 2
|
|
|
3212 |
)
|
|
|
3213 |
|
|
|
3214 |
def __init__(self, username=None, password=None,):
|
|
|
3215 |
self.username = username
|
|
|
3216 |
self.password = password
|
|
|
3217 |
|
|
|
3218 |
def read(self, iprot):
|
|
|
3219 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3220 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3221 |
return
|
|
|
3222 |
iprot.readStructBegin()
|
|
|
3223 |
while True:
|
|
|
3224 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3225 |
if ftype == TType.STOP:
|
|
|
3226 |
break
|
|
|
3227 |
if fid == 1:
|
|
|
3228 |
if ftype == TType.STRING:
|
|
|
3229 |
self.username = iprot.readString();
|
|
|
3230 |
else:
|
|
|
3231 |
iprot.skip(ftype)
|
|
|
3232 |
elif fid == 2:
|
|
|
3233 |
if ftype == TType.STRING:
|
|
|
3234 |
self.password = iprot.readString();
|
|
|
3235 |
else:
|
|
|
3236 |
iprot.skip(ftype)
|
|
|
3237 |
else:
|
|
|
3238 |
iprot.skip(ftype)
|
|
|
3239 |
iprot.readFieldEnd()
|
|
|
3240 |
iprot.readStructEnd()
|
|
|
3241 |
|
|
|
3242 |
def write(self, oprot):
|
|
|
3243 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3244 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3245 |
return
|
|
|
3246 |
oprot.writeStructBegin('authenticateReportUser_args')
|
| 3431 |
rajveer |
3247 |
if self.username is not None:
|
| 1891 |
ankur.sing |
3248 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
3249 |
oprot.writeString(self.username)
|
|
|
3250 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3251 |
if self.password is not None:
|
| 1891 |
ankur.sing |
3252 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
3253 |
oprot.writeString(self.password)
|
|
|
3254 |
oprot.writeFieldEnd()
|
|
|
3255 |
oprot.writeFieldStop()
|
|
|
3256 |
oprot.writeStructEnd()
|
|
|
3257 |
|
| 3431 |
rajveer |
3258 |
def validate(self):
|
|
|
3259 |
return
|
|
|
3260 |
|
|
|
3261 |
|
| 1891 |
ankur.sing |
3262 |
def __repr__(self):
|
|
|
3263 |
L = ['%s=%r' % (key, value)
|
|
|
3264 |
for key, value in self.__dict__.iteritems()]
|
|
|
3265 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3266 |
|
|
|
3267 |
def __eq__(self, other):
|
|
|
3268 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3269 |
|
|
|
3270 |
def __ne__(self, other):
|
|
|
3271 |
return not (self == other)
|
|
|
3272 |
|
|
|
3273 |
class authenticateReportUser_result:
|
|
|
3274 |
"""
|
|
|
3275 |
Attributes:
|
|
|
3276 |
- success
|
|
|
3277 |
- hse
|
|
|
3278 |
"""
|
|
|
3279 |
|
|
|
3280 |
thrift_spec = (
|
|
|
3281 |
(0, TType.STRUCT, 'success', (ReportUser, ReportUser.thrift_spec), None, ), # 0
|
|
|
3282 |
(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
3283 |
)
|
|
|
3284 |
|
|
|
3285 |
def __init__(self, success=None, hse=None,):
|
|
|
3286 |
self.success = success
|
|
|
3287 |
self.hse = hse
|
|
|
3288 |
|
|
|
3289 |
def read(self, iprot):
|
|
|
3290 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3291 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3292 |
return
|
|
|
3293 |
iprot.readStructBegin()
|
|
|
3294 |
while True:
|
|
|
3295 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3296 |
if ftype == TType.STOP:
|
|
|
3297 |
break
|
|
|
3298 |
if fid == 0:
|
|
|
3299 |
if ftype == TType.STRUCT:
|
|
|
3300 |
self.success = ReportUser()
|
|
|
3301 |
self.success.read(iprot)
|
|
|
3302 |
else:
|
|
|
3303 |
iprot.skip(ftype)
|
|
|
3304 |
elif fid == 1:
|
|
|
3305 |
if ftype == TType.STRUCT:
|
|
|
3306 |
self.hse = HelperServiceException()
|
|
|
3307 |
self.hse.read(iprot)
|
|
|
3308 |
else:
|
|
|
3309 |
iprot.skip(ftype)
|
|
|
3310 |
else:
|
|
|
3311 |
iprot.skip(ftype)
|
|
|
3312 |
iprot.readFieldEnd()
|
|
|
3313 |
iprot.readStructEnd()
|
|
|
3314 |
|
|
|
3315 |
def write(self, oprot):
|
|
|
3316 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3317 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3318 |
return
|
|
|
3319 |
oprot.writeStructBegin('authenticateReportUser_result')
|
| 3431 |
rajveer |
3320 |
if self.success is not None:
|
| 1891 |
ankur.sing |
3321 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
3322 |
self.success.write(oprot)
|
|
|
3323 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3324 |
if self.hse is not None:
|
| 1891 |
ankur.sing |
3325 |
oprot.writeFieldBegin('hse', TType.STRUCT, 1)
|
|
|
3326 |
self.hse.write(oprot)
|
|
|
3327 |
oprot.writeFieldEnd()
|
|
|
3328 |
oprot.writeFieldStop()
|
|
|
3329 |
oprot.writeStructEnd()
|
|
|
3330 |
|
| 3431 |
rajveer |
3331 |
def validate(self):
|
|
|
3332 |
return
|
|
|
3333 |
|
|
|
3334 |
|
| 1891 |
ankur.sing |
3335 |
def __repr__(self):
|
|
|
3336 |
L = ['%s=%r' % (key, value)
|
|
|
3337 |
for key, value in self.__dict__.iteritems()]
|
|
|
3338 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3339 |
|
|
|
3340 |
def __eq__(self, other):
|
|
|
3341 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3342 |
|
|
|
3343 |
def __ne__(self, other):
|
|
|
3344 |
return not (self == other)
|
|
|
3345 |
|
|
|
3346 |
class getReports_args:
|
|
|
3347 |
"""
|
|
|
3348 |
Attributes:
|
|
|
3349 |
- role
|
|
|
3350 |
"""
|
|
|
3351 |
|
|
|
3352 |
thrift_spec = (
|
|
|
3353 |
None, # 0
|
|
|
3354 |
(1, TType.I64, 'role', None, None, ), # 1
|
|
|
3355 |
)
|
|
|
3356 |
|
|
|
3357 |
def __init__(self, role=None,):
|
|
|
3358 |
self.role = role
|
|
|
3359 |
|
|
|
3360 |
def read(self, iprot):
|
|
|
3361 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3362 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3363 |
return
|
|
|
3364 |
iprot.readStructBegin()
|
|
|
3365 |
while True:
|
|
|
3366 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3367 |
if ftype == TType.STOP:
|
|
|
3368 |
break
|
|
|
3369 |
if fid == 1:
|
|
|
3370 |
if ftype == TType.I64:
|
|
|
3371 |
self.role = iprot.readI64();
|
|
|
3372 |
else:
|
|
|
3373 |
iprot.skip(ftype)
|
|
|
3374 |
else:
|
|
|
3375 |
iprot.skip(ftype)
|
|
|
3376 |
iprot.readFieldEnd()
|
|
|
3377 |
iprot.readStructEnd()
|
|
|
3378 |
|
|
|
3379 |
def write(self, oprot):
|
|
|
3380 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3381 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3382 |
return
|
|
|
3383 |
oprot.writeStructBegin('getReports_args')
|
| 3431 |
rajveer |
3384 |
if self.role is not None:
|
| 1891 |
ankur.sing |
3385 |
oprot.writeFieldBegin('role', TType.I64, 1)
|
|
|
3386 |
oprot.writeI64(self.role)
|
|
|
3387 |
oprot.writeFieldEnd()
|
|
|
3388 |
oprot.writeFieldStop()
|
|
|
3389 |
oprot.writeStructEnd()
|
|
|
3390 |
|
| 3431 |
rajveer |
3391 |
def validate(self):
|
|
|
3392 |
return
|
|
|
3393 |
|
|
|
3394 |
|
| 1891 |
ankur.sing |
3395 |
def __repr__(self):
|
|
|
3396 |
L = ['%s=%r' % (key, value)
|
|
|
3397 |
for key, value in self.__dict__.iteritems()]
|
|
|
3398 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3399 |
|
|
|
3400 |
def __eq__(self, other):
|
|
|
3401 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3402 |
|
|
|
3403 |
def __ne__(self, other):
|
|
|
3404 |
return not (self == other)
|
|
|
3405 |
|
|
|
3406 |
class getReports_result:
|
|
|
3407 |
"""
|
|
|
3408 |
Attributes:
|
|
|
3409 |
- success
|
|
|
3410 |
"""
|
|
|
3411 |
|
|
|
3412 |
thrift_spec = (
|
|
|
3413 |
(0, TType.LIST, 'success', (TType.STRUCT,(Report, Report.thrift_spec)), None, ), # 0
|
|
|
3414 |
)
|
|
|
3415 |
|
|
|
3416 |
def __init__(self, success=None,):
|
|
|
3417 |
self.success = success
|
|
|
3418 |
|
|
|
3419 |
def read(self, iprot):
|
|
|
3420 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3421 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3422 |
return
|
|
|
3423 |
iprot.readStructBegin()
|
|
|
3424 |
while True:
|
|
|
3425 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3426 |
if ftype == TType.STOP:
|
|
|
3427 |
break
|
|
|
3428 |
if fid == 0:
|
|
|
3429 |
if ftype == TType.LIST:
|
|
|
3430 |
self.success = []
|
|
|
3431 |
(_etype33, _size30) = iprot.readListBegin()
|
|
|
3432 |
for _i34 in xrange(_size30):
|
|
|
3433 |
_elem35 = Report()
|
|
|
3434 |
_elem35.read(iprot)
|
|
|
3435 |
self.success.append(_elem35)
|
|
|
3436 |
iprot.readListEnd()
|
|
|
3437 |
else:
|
|
|
3438 |
iprot.skip(ftype)
|
|
|
3439 |
else:
|
|
|
3440 |
iprot.skip(ftype)
|
|
|
3441 |
iprot.readFieldEnd()
|
|
|
3442 |
iprot.readStructEnd()
|
|
|
3443 |
|
|
|
3444 |
def write(self, oprot):
|
|
|
3445 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3446 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3447 |
return
|
|
|
3448 |
oprot.writeStructBegin('getReports_result')
|
| 3431 |
rajveer |
3449 |
if self.success is not None:
|
| 1891 |
ankur.sing |
3450 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
3451 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
3452 |
for iter36 in self.success:
|
|
|
3453 |
iter36.write(oprot)
|
|
|
3454 |
oprot.writeListEnd()
|
|
|
3455 |
oprot.writeFieldEnd()
|
|
|
3456 |
oprot.writeFieldStop()
|
|
|
3457 |
oprot.writeStructEnd()
|
|
|
3458 |
|
| 3431 |
rajveer |
3459 |
def validate(self):
|
|
|
3460 |
return
|
|
|
3461 |
|
|
|
3462 |
|
| 1891 |
ankur.sing |
3463 |
def __repr__(self):
|
|
|
3464 |
L = ['%s=%r' % (key, value)
|
|
|
3465 |
for key, value in self.__dict__.iteritems()]
|
|
|
3466 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3467 |
|
|
|
3468 |
def __eq__(self, other):
|
|
|
3469 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3470 |
|
|
|
3471 |
def __ne__(self, other):
|
|
|
3472 |
return not (self == other)
|
|
|
3473 |
|
| 2025 |
ankur.sing |
3474 |
class authenticateCatalogUser_args:
|
|
|
3475 |
"""
|
|
|
3476 |
Attributes:
|
|
|
3477 |
- username
|
|
|
3478 |
- password
|
| 2358 |
ankur.sing |
3479 |
- role
|
| 2025 |
ankur.sing |
3480 |
"""
|
| 1891 |
ankur.sing |
3481 |
|
| 2025 |
ankur.sing |
3482 |
thrift_spec = (
|
|
|
3483 |
None, # 0
|
|
|
3484 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
3485 |
(2, TType.STRING, 'password', None, None, ), # 2
|
| 2358 |
ankur.sing |
3486 |
(3, TType.I64, 'role', None, None, ), # 3
|
| 2025 |
ankur.sing |
3487 |
)
|
|
|
3488 |
|
| 2358 |
ankur.sing |
3489 |
def __init__(self, username=None, password=None, role=None,):
|
| 2025 |
ankur.sing |
3490 |
self.username = username
|
|
|
3491 |
self.password = password
|
| 2358 |
ankur.sing |
3492 |
self.role = role
|
| 2025 |
ankur.sing |
3493 |
|
|
|
3494 |
def read(self, iprot):
|
|
|
3495 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3496 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3497 |
return
|
|
|
3498 |
iprot.readStructBegin()
|
|
|
3499 |
while True:
|
|
|
3500 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3501 |
if ftype == TType.STOP:
|
|
|
3502 |
break
|
|
|
3503 |
if fid == 1:
|
|
|
3504 |
if ftype == TType.STRING:
|
|
|
3505 |
self.username = iprot.readString();
|
|
|
3506 |
else:
|
|
|
3507 |
iprot.skip(ftype)
|
|
|
3508 |
elif fid == 2:
|
|
|
3509 |
if ftype == TType.STRING:
|
|
|
3510 |
self.password = iprot.readString();
|
|
|
3511 |
else:
|
|
|
3512 |
iprot.skip(ftype)
|
| 2358 |
ankur.sing |
3513 |
elif fid == 3:
|
|
|
3514 |
if ftype == TType.I64:
|
|
|
3515 |
self.role = iprot.readI64();
|
|
|
3516 |
else:
|
|
|
3517 |
iprot.skip(ftype)
|
| 2025 |
ankur.sing |
3518 |
else:
|
|
|
3519 |
iprot.skip(ftype)
|
|
|
3520 |
iprot.readFieldEnd()
|
|
|
3521 |
iprot.readStructEnd()
|
|
|
3522 |
|
|
|
3523 |
def write(self, oprot):
|
|
|
3524 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3525 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3526 |
return
|
|
|
3527 |
oprot.writeStructBegin('authenticateCatalogUser_args')
|
| 3431 |
rajveer |
3528 |
if self.username is not None:
|
| 2025 |
ankur.sing |
3529 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
3530 |
oprot.writeString(self.username)
|
|
|
3531 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3532 |
if self.password is not None:
|
| 2025 |
ankur.sing |
3533 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
3534 |
oprot.writeString(self.password)
|
|
|
3535 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3536 |
if self.role is not None:
|
| 2358 |
ankur.sing |
3537 |
oprot.writeFieldBegin('role', TType.I64, 3)
|
|
|
3538 |
oprot.writeI64(self.role)
|
|
|
3539 |
oprot.writeFieldEnd()
|
| 2025 |
ankur.sing |
3540 |
oprot.writeFieldStop()
|
|
|
3541 |
oprot.writeStructEnd()
|
|
|
3542 |
|
| 3431 |
rajveer |
3543 |
def validate(self):
|
|
|
3544 |
return
|
|
|
3545 |
|
|
|
3546 |
|
| 2025 |
ankur.sing |
3547 |
def __repr__(self):
|
|
|
3548 |
L = ['%s=%r' % (key, value)
|
|
|
3549 |
for key, value in self.__dict__.iteritems()]
|
|
|
3550 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3551 |
|
|
|
3552 |
def __eq__(self, other):
|
|
|
3553 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3554 |
|
|
|
3555 |
def __ne__(self, other):
|
|
|
3556 |
return not (self == other)
|
|
|
3557 |
|
|
|
3558 |
class authenticateCatalogUser_result:
|
|
|
3559 |
"""
|
|
|
3560 |
Attributes:
|
|
|
3561 |
- success
|
|
|
3562 |
- hse
|
|
|
3563 |
"""
|
|
|
3564 |
|
|
|
3565 |
thrift_spec = (
|
|
|
3566 |
(0, TType.STRUCT, 'success', (CatalogDashboardUser, CatalogDashboardUser.thrift_spec), None, ), # 0
|
|
|
3567 |
(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
3568 |
)
|
|
|
3569 |
|
|
|
3570 |
def __init__(self, success=None, hse=None,):
|
|
|
3571 |
self.success = success
|
|
|
3572 |
self.hse = hse
|
|
|
3573 |
|
|
|
3574 |
def read(self, iprot):
|
|
|
3575 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3576 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3577 |
return
|
|
|
3578 |
iprot.readStructBegin()
|
|
|
3579 |
while True:
|
|
|
3580 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3581 |
if ftype == TType.STOP:
|
|
|
3582 |
break
|
|
|
3583 |
if fid == 0:
|
|
|
3584 |
if ftype == TType.STRUCT:
|
|
|
3585 |
self.success = CatalogDashboardUser()
|
|
|
3586 |
self.success.read(iprot)
|
|
|
3587 |
else:
|
|
|
3588 |
iprot.skip(ftype)
|
|
|
3589 |
elif fid == 1:
|
|
|
3590 |
if ftype == TType.STRUCT:
|
|
|
3591 |
self.hse = HelperServiceException()
|
|
|
3592 |
self.hse.read(iprot)
|
|
|
3593 |
else:
|
|
|
3594 |
iprot.skip(ftype)
|
|
|
3595 |
else:
|
|
|
3596 |
iprot.skip(ftype)
|
|
|
3597 |
iprot.readFieldEnd()
|
|
|
3598 |
iprot.readStructEnd()
|
|
|
3599 |
|
|
|
3600 |
def write(self, oprot):
|
|
|
3601 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3602 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3603 |
return
|
|
|
3604 |
oprot.writeStructBegin('authenticateCatalogUser_result')
|
| 3431 |
rajveer |
3605 |
if self.success is not None:
|
| 2025 |
ankur.sing |
3606 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
3607 |
self.success.write(oprot)
|
|
|
3608 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3609 |
if self.hse is not None:
|
| 2025 |
ankur.sing |
3610 |
oprot.writeFieldBegin('hse', TType.STRUCT, 1)
|
|
|
3611 |
self.hse.write(oprot)
|
|
|
3612 |
oprot.writeFieldEnd()
|
|
|
3613 |
oprot.writeFieldStop()
|
|
|
3614 |
oprot.writeStructEnd()
|
|
|
3615 |
|
| 3431 |
rajveer |
3616 |
def validate(self):
|
|
|
3617 |
return
|
|
|
3618 |
|
|
|
3619 |
|
| 2025 |
ankur.sing |
3620 |
def __repr__(self):
|
|
|
3621 |
L = ['%s=%r' % (key, value)
|
|
|
3622 |
for key, value in self.__dict__.iteritems()]
|
|
|
3623 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3624 |
|
|
|
3625 |
def __eq__(self, other):
|
|
|
3626 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3627 |
|
|
|
3628 |
def __ne__(self, other):
|
|
|
3629 |
return not (self == other)
|