| 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 |
|
| 4544 |
varun.gupt |
185 |
def shareEntities(self, entityIds, email):
|
|
|
186 |
"""
|
|
|
187 |
Saves the list of entity Ids to be shared with an email address
|
| 2025 |
ankur.sing |
188 |
|
| 4544 |
varun.gupt |
189 |
Parameters:
|
|
|
190 |
- entityIds
|
|
|
191 |
- email
|
|
|
192 |
"""
|
|
|
193 |
pass
|
|
|
194 |
|
| 4691 |
mandeep.dh |
195 |
def getAgents(self, ):
|
|
|
196 |
pass
|
| 4544 |
varun.gupt |
197 |
|
| 4691 |
mandeep.dh |
198 |
def validateLogIn(self, emailId, password):
|
|
|
199 |
"""
|
|
|
200 |
Parameters:
|
|
|
201 |
- emailId
|
|
|
202 |
- password
|
|
|
203 |
"""
|
|
|
204 |
pass
|
|
|
205 |
|
|
|
206 |
def updatePasswordForAgent(self, agentEmailId, password):
|
|
|
207 |
"""
|
|
|
208 |
Parameters:
|
|
|
209 |
- agentEmailId
|
|
|
210 |
- password
|
|
|
211 |
"""
|
|
|
212 |
pass
|
|
|
213 |
|
|
|
214 |
def getRoleNamesForAgent(self, agentEmailId):
|
|
|
215 |
"""
|
|
|
216 |
Parameters:
|
|
|
217 |
- agentEmailId
|
|
|
218 |
"""
|
|
|
219 |
pass
|
|
|
220 |
|
|
|
221 |
def getPermissionsForRoleName(self, roleName):
|
|
|
222 |
"""
|
|
|
223 |
Parameters:
|
|
|
224 |
- roleName
|
|
|
225 |
"""
|
|
|
226 |
pass
|
|
|
227 |
|
| 4806 |
varun.gupt |
228 |
def saveQuickLink(self, url, text):
|
|
|
229 |
"""
|
|
|
230 |
Parameters:
|
|
|
231 |
- url
|
|
|
232 |
- text
|
|
|
233 |
"""
|
|
|
234 |
pass
|
| 4691 |
mandeep.dh |
235 |
|
| 4806 |
varun.gupt |
236 |
def getQuickLinks(self, ):
|
|
|
237 |
pass
|
|
|
238 |
|
| 4996 |
varun.gupt |
239 |
def updateQuickLink(self, id, url, text):
|
|
|
240 |
"""
|
|
|
241 |
Parameters:
|
|
|
242 |
- id
|
|
|
243 |
- url
|
|
|
244 |
- text
|
|
|
245 |
"""
|
|
|
246 |
pass
|
| 4806 |
varun.gupt |
247 |
|
| 5055 |
varun.gupt |
248 |
def getEmailsForNotificationsSent(self, startDatetime, endDatetime):
|
|
|
249 |
"""
|
|
|
250 |
Returns a list of emails to which product notifications have been sent in a given date range
|
| 4996 |
varun.gupt |
251 |
|
| 5055 |
varun.gupt |
252 |
Parameters:
|
|
|
253 |
- startDatetime
|
|
|
254 |
- endDatetime
|
|
|
255 |
"""
|
|
|
256 |
pass
|
|
|
257 |
|
|
|
258 |
|
| 3376 |
rajveer |
259 |
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
|
| 349 |
ashish |
260 |
def __init__(self, iprot, oprot=None):
|
| 3376 |
rajveer |
261 |
shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
|
| 349 |
ashish |
262 |
|
| 1395 |
varun.gupt |
263 |
def saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType):
|
|
|
264 |
"""
|
| 3206 |
mandeep.dh |
265 |
Save email details, to be sent later; Also returns its identifier.
|
| 3431 |
rajveer |
266 |
|
| 1395 |
varun.gupt |
267 |
Parameters:
|
|
|
268 |
- emailTo
|
|
|
269 |
- emailFrom
|
|
|
270 |
- subject
|
|
|
271 |
- body
|
|
|
272 |
- source
|
|
|
273 |
- emailType
|
|
|
274 |
"""
|
|
|
275 |
self.send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType)
|
| 3206 |
mandeep.dh |
276 |
return self.recv_saveUserEmailForSending()
|
| 1395 |
varun.gupt |
277 |
|
|
|
278 |
def send_saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType):
|
|
|
279 |
self._oprot.writeMessageBegin('saveUserEmailForSending', TMessageType.CALL, self._seqid)
|
|
|
280 |
args = saveUserEmailForSending_args()
|
|
|
281 |
args.emailTo = emailTo
|
|
|
282 |
args.emailFrom = emailFrom
|
|
|
283 |
args.subject = subject
|
|
|
284 |
args.body = body
|
|
|
285 |
args.source = source
|
|
|
286 |
args.emailType = emailType
|
|
|
287 |
args.write(self._oprot)
|
|
|
288 |
self._oprot.writeMessageEnd()
|
|
|
289 |
self._oprot.trans.flush()
|
|
|
290 |
|
|
|
291 |
def recv_saveUserEmailForSending(self, ):
|
|
|
292 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
293 |
if mtype == TMessageType.EXCEPTION:
|
|
|
294 |
x = TApplicationException()
|
|
|
295 |
x.read(self._iprot)
|
|
|
296 |
self._iprot.readMessageEnd()
|
|
|
297 |
raise x
|
|
|
298 |
result = saveUserEmailForSending_result()
|
|
|
299 |
result.read(self._iprot)
|
|
|
300 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
301 |
if result.success is not None:
|
| 3206 |
mandeep.dh |
302 |
return result.success
|
| 3431 |
rajveer |
303 |
if result.se is not None:
|
| 1395 |
varun.gupt |
304 |
raise result.se
|
| 3206 |
mandeep.dh |
305 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
|
| 1395 |
varun.gupt |
306 |
|
| 3086 |
rajveer |
307 |
def getEmailsToBeSent(self, ):
|
| 1422 |
varun.gupt |
308 |
"""
|
| 2783 |
chandransh |
309 |
Retreives all the emails pending for dispatch
|
| 1422 |
varun.gupt |
310 |
"""
|
| 3086 |
rajveer |
311 |
self.send_getEmailsToBeSent()
|
| 1422 |
varun.gupt |
312 |
return self.recv_getEmailsToBeSent()
|
|
|
313 |
|
| 3086 |
rajveer |
314 |
def send_getEmailsToBeSent(self, ):
|
| 1422 |
varun.gupt |
315 |
self._oprot.writeMessageBegin('getEmailsToBeSent', TMessageType.CALL, self._seqid)
|
|
|
316 |
args = getEmailsToBeSent_args()
|
|
|
317 |
args.write(self._oprot)
|
|
|
318 |
self._oprot.writeMessageEnd()
|
|
|
319 |
self._oprot.trans.flush()
|
|
|
320 |
|
|
|
321 |
def recv_getEmailsToBeSent(self, ):
|
|
|
322 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
323 |
if mtype == TMessageType.EXCEPTION:
|
|
|
324 |
x = TApplicationException()
|
|
|
325 |
x.read(self._iprot)
|
|
|
326 |
self._iprot.readMessageEnd()
|
|
|
327 |
raise x
|
|
|
328 |
result = getEmailsToBeSent_result()
|
|
|
329 |
result.read(self._iprot)
|
|
|
330 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
331 |
if result.success is not None:
|
| 1422 |
varun.gupt |
332 |
return result.success
|
| 3431 |
rajveer |
333 |
if result.se is not None:
|
| 1422 |
varun.gupt |
334 |
raise result.se
|
|
|
335 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
|
|
|
336 |
|
|
|
337 |
def markEmailAsSent(self, emailId):
|
|
|
338 |
"""
|
| 2783 |
chandransh |
339 |
Marks email as sent after successful dispatch
|
| 3431 |
rajveer |
340 |
|
| 1422 |
varun.gupt |
341 |
Parameters:
|
|
|
342 |
- emailId
|
|
|
343 |
"""
|
|
|
344 |
self.send_markEmailAsSent(emailId)
|
|
|
345 |
self.recv_markEmailAsSent()
|
|
|
346 |
|
|
|
347 |
def send_markEmailAsSent(self, emailId):
|
|
|
348 |
self._oprot.writeMessageBegin('markEmailAsSent', TMessageType.CALL, self._seqid)
|
|
|
349 |
args = markEmailAsSent_args()
|
|
|
350 |
args.emailId = emailId
|
|
|
351 |
args.write(self._oprot)
|
|
|
352 |
self._oprot.writeMessageEnd()
|
|
|
353 |
self._oprot.trans.flush()
|
|
|
354 |
|
|
|
355 |
def recv_markEmailAsSent(self, ):
|
|
|
356 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
357 |
if mtype == TMessageType.EXCEPTION:
|
|
|
358 |
x = TApplicationException()
|
|
|
359 |
x.read(self._iprot)
|
|
|
360 |
self._iprot.readMessageEnd()
|
|
|
361 |
raise x
|
|
|
362 |
result = markEmailAsSent_result()
|
|
|
363 |
result.read(self._iprot)
|
|
|
364 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
365 |
if result.se is not None:
|
| 1422 |
varun.gupt |
366 |
raise result.se
|
|
|
367 |
return
|
|
|
368 |
|
| 349 |
ashish |
369 |
def sendMail(self, mail):
|
|
|
370 |
"""
|
|
|
371 |
Parameters:
|
|
|
372 |
- mail
|
|
|
373 |
"""
|
|
|
374 |
self.send_sendMail(mail)
|
|
|
375 |
self.recv_sendMail()
|
|
|
376 |
|
|
|
377 |
def send_sendMail(self, mail):
|
|
|
378 |
self._oprot.writeMessageBegin('sendMail', TMessageType.CALL, self._seqid)
|
|
|
379 |
args = sendMail_args()
|
|
|
380 |
args.mail = mail
|
|
|
381 |
args.write(self._oprot)
|
|
|
382 |
self._oprot.writeMessageEnd()
|
|
|
383 |
self._oprot.trans.flush()
|
|
|
384 |
|
|
|
385 |
def recv_sendMail(self, ):
|
|
|
386 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
387 |
if mtype == TMessageType.EXCEPTION:
|
|
|
388 |
x = TApplicationException()
|
|
|
389 |
x.read(self._iprot)
|
|
|
390 |
self._iprot.readMessageEnd()
|
|
|
391 |
raise x
|
|
|
392 |
result = sendMail_result()
|
|
|
393 |
result.read(self._iprot)
|
|
|
394 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
395 |
if result.se is not None:
|
| 349 |
ashish |
396 |
raise result.se
|
|
|
397 |
return
|
|
|
398 |
|
|
|
399 |
def sendText(self, message):
|
|
|
400 |
"""
|
|
|
401 |
Parameters:
|
|
|
402 |
- message
|
|
|
403 |
"""
|
|
|
404 |
self.send_sendText(message)
|
|
|
405 |
self.recv_sendText()
|
|
|
406 |
|
|
|
407 |
def send_sendText(self, message):
|
|
|
408 |
self._oprot.writeMessageBegin('sendText', TMessageType.CALL, self._seqid)
|
|
|
409 |
args = sendText_args()
|
|
|
410 |
args.message = message
|
|
|
411 |
args.write(self._oprot)
|
|
|
412 |
self._oprot.writeMessageEnd()
|
|
|
413 |
self._oprot.trans.flush()
|
|
|
414 |
|
|
|
415 |
def recv_sendText(self, ):
|
|
|
416 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
417 |
if mtype == TMessageType.EXCEPTION:
|
|
|
418 |
x = TApplicationException()
|
|
|
419 |
x.read(self._iprot)
|
|
|
420 |
self._iprot.readMessageEnd()
|
|
|
421 |
raise x
|
|
|
422 |
result = sendText_result()
|
|
|
423 |
result.read(self._iprot)
|
|
|
424 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
425 |
if result.se is not None:
|
| 349 |
ashish |
426 |
raise result.se
|
|
|
427 |
return
|
|
|
428 |
|
|
|
429 |
def addMessage(self, message):
|
|
|
430 |
"""
|
|
|
431 |
Parameters:
|
|
|
432 |
- message
|
|
|
433 |
"""
|
|
|
434 |
self.send_addMessage(message)
|
|
|
435 |
self.recv_addMessage()
|
|
|
436 |
|
|
|
437 |
def send_addMessage(self, message):
|
|
|
438 |
self._oprot.writeMessageBegin('addMessage', TMessageType.CALL, self._seqid)
|
|
|
439 |
args = addMessage_args()
|
|
|
440 |
args.message = message
|
|
|
441 |
args.write(self._oprot)
|
|
|
442 |
self._oprot.writeMessageEnd()
|
|
|
443 |
self._oprot.trans.flush()
|
|
|
444 |
|
|
|
445 |
def recv_addMessage(self, ):
|
|
|
446 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
447 |
if mtype == TMessageType.EXCEPTION:
|
|
|
448 |
x = TApplicationException()
|
|
|
449 |
x.read(self._iprot)
|
|
|
450 |
self._iprot.readMessageEnd()
|
|
|
451 |
raise x
|
|
|
452 |
result = addMessage_result()
|
|
|
453 |
result.read(self._iprot)
|
|
|
454 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
455 |
if result.se is not None:
|
| 349 |
ashish |
456 |
raise result.se
|
|
|
457 |
return
|
|
|
458 |
|
|
|
459 |
def updateMessage(self, id, message):
|
|
|
460 |
"""
|
|
|
461 |
Parameters:
|
|
|
462 |
- id
|
|
|
463 |
- message
|
|
|
464 |
"""
|
|
|
465 |
self.send_updateMessage(id, message)
|
|
|
466 |
self.recv_updateMessage()
|
|
|
467 |
|
|
|
468 |
def send_updateMessage(self, id, message):
|
|
|
469 |
self._oprot.writeMessageBegin('updateMessage', TMessageType.CALL, self._seqid)
|
|
|
470 |
args = updateMessage_args()
|
|
|
471 |
args.id = id
|
|
|
472 |
args.message = message
|
|
|
473 |
args.write(self._oprot)
|
|
|
474 |
self._oprot.writeMessageEnd()
|
|
|
475 |
self._oprot.trans.flush()
|
|
|
476 |
|
|
|
477 |
def recv_updateMessage(self, ):
|
|
|
478 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
479 |
if mtype == TMessageType.EXCEPTION:
|
|
|
480 |
x = TApplicationException()
|
|
|
481 |
x.read(self._iprot)
|
|
|
482 |
self._iprot.readMessageEnd()
|
|
|
483 |
raise x
|
|
|
484 |
result = updateMessage_result()
|
|
|
485 |
result.read(self._iprot)
|
|
|
486 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
487 |
if result.se is not None:
|
| 349 |
ashish |
488 |
raise result.se
|
|
|
489 |
return
|
|
|
490 |
|
|
|
491 |
def getMessage(self, id):
|
|
|
492 |
"""
|
|
|
493 |
Parameters:
|
|
|
494 |
- id
|
|
|
495 |
"""
|
|
|
496 |
self.send_getMessage(id)
|
| 353 |
ashish |
497 |
return self.recv_getMessage()
|
| 349 |
ashish |
498 |
|
|
|
499 |
def send_getMessage(self, id):
|
|
|
500 |
self._oprot.writeMessageBegin('getMessage', TMessageType.CALL, self._seqid)
|
|
|
501 |
args = getMessage_args()
|
|
|
502 |
args.id = id
|
|
|
503 |
args.write(self._oprot)
|
|
|
504 |
self._oprot.writeMessageEnd()
|
|
|
505 |
self._oprot.trans.flush()
|
|
|
506 |
|
|
|
507 |
def recv_getMessage(self, ):
|
|
|
508 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
509 |
if mtype == TMessageType.EXCEPTION:
|
|
|
510 |
x = TApplicationException()
|
|
|
511 |
x.read(self._iprot)
|
|
|
512 |
self._iprot.readMessageEnd()
|
|
|
513 |
raise x
|
|
|
514 |
result = getMessage_result()
|
|
|
515 |
result.read(self._iprot)
|
|
|
516 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
517 |
if result.success is not None:
|
| 353 |
ashish |
518 |
return result.success
|
| 3431 |
rajveer |
519 |
if result.se is not None:
|
| 349 |
ashish |
520 |
raise result.se
|
| 353 |
ashish |
521 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
|
| 349 |
ashish |
522 |
|
|
|
523 |
def getSubstitutedMessage(self, id, params):
|
|
|
524 |
"""
|
|
|
525 |
Parameters:
|
|
|
526 |
- id
|
|
|
527 |
- params
|
|
|
528 |
"""
|
|
|
529 |
self.send_getSubstitutedMessage(id, params)
|
| 353 |
ashish |
530 |
return self.recv_getSubstitutedMessage()
|
| 349 |
ashish |
531 |
|
|
|
532 |
def send_getSubstitutedMessage(self, id, params):
|
|
|
533 |
self._oprot.writeMessageBegin('getSubstitutedMessage', TMessageType.CALL, self._seqid)
|
|
|
534 |
args = getSubstitutedMessage_args()
|
|
|
535 |
args.id = id
|
|
|
536 |
args.params = params
|
|
|
537 |
args.write(self._oprot)
|
|
|
538 |
self._oprot.writeMessageEnd()
|
|
|
539 |
self._oprot.trans.flush()
|
|
|
540 |
|
|
|
541 |
def recv_getSubstitutedMessage(self, ):
|
|
|
542 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
543 |
if mtype == TMessageType.EXCEPTION:
|
|
|
544 |
x = TApplicationException()
|
|
|
545 |
x.read(self._iprot)
|
|
|
546 |
self._iprot.readMessageEnd()
|
|
|
547 |
raise x
|
|
|
548 |
result = getSubstitutedMessage_result()
|
|
|
549 |
result.read(self._iprot)
|
|
|
550 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
551 |
if result.success is not None:
|
| 353 |
ashish |
552 |
return result.success
|
| 3431 |
rajveer |
553 |
if result.se is not None:
|
| 349 |
ashish |
554 |
raise result.se
|
| 353 |
ashish |
555 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
|
| 349 |
ashish |
556 |
|
| 494 |
rajveer |
557 |
def addUser(self, username, password, warehouseId):
|
|
|
558 |
"""
|
|
|
559 |
Parameters:
|
|
|
560 |
- username
|
|
|
561 |
- password
|
|
|
562 |
- warehouseId
|
|
|
563 |
"""
|
|
|
564 |
self.send_addUser(username, password, warehouseId)
|
|
|
565 |
return self.recv_addUser()
|
| 349 |
ashish |
566 |
|
| 494 |
rajveer |
567 |
def send_addUser(self, username, password, warehouseId):
|
|
|
568 |
self._oprot.writeMessageBegin('addUser', TMessageType.CALL, self._seqid)
|
|
|
569 |
args = addUser_args()
|
|
|
570 |
args.username = username
|
|
|
571 |
args.password = password
|
|
|
572 |
args.warehouseId = warehouseId
|
|
|
573 |
args.write(self._oprot)
|
|
|
574 |
self._oprot.writeMessageEnd()
|
|
|
575 |
self._oprot.trans.flush()
|
|
|
576 |
|
|
|
577 |
def recv_addUser(self, ):
|
|
|
578 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
579 |
if mtype == TMessageType.EXCEPTION:
|
|
|
580 |
x = TApplicationException()
|
|
|
581 |
x.read(self._iprot)
|
|
|
582 |
self._iprot.readMessageEnd()
|
|
|
583 |
raise x
|
|
|
584 |
result = addUser_result()
|
|
|
585 |
result.read(self._iprot)
|
|
|
586 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
587 |
if result.success is not None:
|
| 494 |
rajveer |
588 |
return result.success
|
| 3431 |
rajveer |
589 |
if result.se is not None:
|
| 494 |
rajveer |
590 |
raise result.se
|
|
|
591 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
|
|
|
592 |
|
|
|
593 |
def deleteUser(self, username):
|
|
|
594 |
"""
|
|
|
595 |
Parameters:
|
|
|
596 |
- username
|
|
|
597 |
"""
|
|
|
598 |
self.send_deleteUser(username)
|
|
|
599 |
return self.recv_deleteUser()
|
|
|
600 |
|
|
|
601 |
def send_deleteUser(self, username):
|
|
|
602 |
self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
|
|
|
603 |
args = deleteUser_args()
|
|
|
604 |
args.username = username
|
|
|
605 |
args.write(self._oprot)
|
|
|
606 |
self._oprot.writeMessageEnd()
|
|
|
607 |
self._oprot.trans.flush()
|
|
|
608 |
|
|
|
609 |
def recv_deleteUser(self, ):
|
|
|
610 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
611 |
if mtype == TMessageType.EXCEPTION:
|
|
|
612 |
x = TApplicationException()
|
|
|
613 |
x.read(self._iprot)
|
|
|
614 |
self._iprot.readMessageEnd()
|
|
|
615 |
raise x
|
|
|
616 |
result = deleteUser_result()
|
|
|
617 |
result.read(self._iprot)
|
|
|
618 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
619 |
if result.success is not None:
|
| 494 |
rajveer |
620 |
return result.success
|
| 3431 |
rajveer |
621 |
if result.se is not None:
|
| 494 |
rajveer |
622 |
raise result.se
|
|
|
623 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
|
|
|
624 |
|
| 2447 |
chandransh |
625 |
def authenticateDashboardUser(self, username, password):
|
| 494 |
rajveer |
626 |
"""
|
| 2447 |
chandransh |
627 |
Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
|
|
|
628 |
The loggedOn timestamp for the dashboard user is updated .
|
| 3431 |
rajveer |
629 |
|
| 494 |
rajveer |
630 |
Parameters:
|
|
|
631 |
- username
|
|
|
632 |
- password
|
|
|
633 |
"""
|
| 2447 |
chandransh |
634 |
self.send_authenticateDashboardUser(username, password)
|
|
|
635 |
return self.recv_authenticateDashboardUser()
|
| 494 |
rajveer |
636 |
|
| 2447 |
chandransh |
637 |
def send_authenticateDashboardUser(self, username, password):
|
|
|
638 |
self._oprot.writeMessageBegin('authenticateDashboardUser', TMessageType.CALL, self._seqid)
|
|
|
639 |
args = authenticateDashboardUser_args()
|
| 494 |
rajveer |
640 |
args.username = username
|
|
|
641 |
args.password = password
|
|
|
642 |
args.write(self._oprot)
|
|
|
643 |
self._oprot.writeMessageEnd()
|
|
|
644 |
self._oprot.trans.flush()
|
|
|
645 |
|
| 2447 |
chandransh |
646 |
def recv_authenticateDashboardUser(self, ):
|
| 494 |
rajveer |
647 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
648 |
if mtype == TMessageType.EXCEPTION:
|
|
|
649 |
x = TApplicationException()
|
|
|
650 |
x.read(self._iprot)
|
|
|
651 |
self._iprot.readMessageEnd()
|
|
|
652 |
raise x
|
| 2447 |
chandransh |
653 |
result = authenticateDashboardUser_result()
|
| 494 |
rajveer |
654 |
result.read(self._iprot)
|
|
|
655 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
656 |
if result.success is not None:
|
| 494 |
rajveer |
657 |
return result.success
|
| 3431 |
rajveer |
658 |
if result.se is not None:
|
| 494 |
rajveer |
659 |
raise result.se
|
| 2447 |
chandransh |
660 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
|
| 494 |
rajveer |
661 |
|
|
|
662 |
def updatePassword(self, username, oldPassword, newPassword):
|
|
|
663 |
"""
|
| 2447 |
chandransh |
664 |
Update the password of the dashboard user. Currently, there is no place where this method is called.
|
| 3431 |
rajveer |
665 |
|
| 494 |
rajveer |
666 |
Parameters:
|
|
|
667 |
- username
|
|
|
668 |
- oldPassword
|
|
|
669 |
- newPassword
|
|
|
670 |
"""
|
|
|
671 |
self.send_updatePassword(username, oldPassword, newPassword)
|
|
|
672 |
return self.recv_updatePassword()
|
|
|
673 |
|
|
|
674 |
def send_updatePassword(self, username, oldPassword, newPassword):
|
|
|
675 |
self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
|
|
|
676 |
args = updatePassword_args()
|
|
|
677 |
args.username = username
|
|
|
678 |
args.oldPassword = oldPassword
|
|
|
679 |
args.newPassword = newPassword
|
|
|
680 |
args.write(self._oprot)
|
|
|
681 |
self._oprot.writeMessageEnd()
|
|
|
682 |
self._oprot.trans.flush()
|
|
|
683 |
|
|
|
684 |
def recv_updatePassword(self, ):
|
|
|
685 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
686 |
if mtype == TMessageType.EXCEPTION:
|
|
|
687 |
x = TApplicationException()
|
|
|
688 |
x.read(self._iprot)
|
|
|
689 |
self._iprot.readMessageEnd()
|
|
|
690 |
raise x
|
|
|
691 |
result = updatePassword_result()
|
|
|
692 |
result.read(self._iprot)
|
|
|
693 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
694 |
if result.success is not None:
|
| 494 |
rajveer |
695 |
return result.success
|
| 3431 |
rajveer |
696 |
if result.se is not None:
|
| 494 |
rajveer |
697 |
raise result.se
|
|
|
698 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
|
|
|
699 |
|
| 759 |
chandransh |
700 |
def authenticateLogisticsUser(self, username, password):
|
|
|
701 |
"""
|
|
|
702 |
Returns the LogisticsUser struct associated with the given username and password if they match.
|
|
|
703 |
Throws an exception otherwise.
|
| 3431 |
rajveer |
704 |
|
| 759 |
chandransh |
705 |
Parameters:
|
|
|
706 |
- username
|
|
|
707 |
- password
|
|
|
708 |
"""
|
|
|
709 |
self.send_authenticateLogisticsUser(username, password)
|
|
|
710 |
return self.recv_authenticateLogisticsUser()
|
| 494 |
rajveer |
711 |
|
| 759 |
chandransh |
712 |
def send_authenticateLogisticsUser(self, username, password):
|
|
|
713 |
self._oprot.writeMessageBegin('authenticateLogisticsUser', TMessageType.CALL, self._seqid)
|
|
|
714 |
args = authenticateLogisticsUser_args()
|
|
|
715 |
args.username = username
|
|
|
716 |
args.password = password
|
|
|
717 |
args.write(self._oprot)
|
|
|
718 |
self._oprot.writeMessageEnd()
|
|
|
719 |
self._oprot.trans.flush()
|
|
|
720 |
|
|
|
721 |
def recv_authenticateLogisticsUser(self, ):
|
|
|
722 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
723 |
if mtype == TMessageType.EXCEPTION:
|
|
|
724 |
x = TApplicationException()
|
|
|
725 |
x.read(self._iprot)
|
|
|
726 |
self._iprot.readMessageEnd()
|
|
|
727 |
raise x
|
|
|
728 |
result = authenticateLogisticsUser_result()
|
|
|
729 |
result.read(self._iprot)
|
|
|
730 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
731 |
if result.success is not None:
|
| 759 |
chandransh |
732 |
return result.success
|
| 3431 |
rajveer |
733 |
if result.hse is not None:
|
| 759 |
chandransh |
734 |
raise result.hse
|
|
|
735 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
|
|
|
736 |
|
| 1610 |
ankur.sing |
737 |
def authenticateStatisticsUser(self, username, password):
|
|
|
738 |
"""
|
|
|
739 |
Returns the StatisticsUser struct associated with the given username and password if they match.
|
|
|
740 |
Throws an exception otherwise.
|
| 3431 |
rajveer |
741 |
|
| 1610 |
ankur.sing |
742 |
Parameters:
|
|
|
743 |
- username
|
|
|
744 |
- password
|
|
|
745 |
"""
|
|
|
746 |
self.send_authenticateStatisticsUser(username, password)
|
|
|
747 |
return self.recv_authenticateStatisticsUser()
|
| 759 |
chandransh |
748 |
|
| 1610 |
ankur.sing |
749 |
def send_authenticateStatisticsUser(self, username, password):
|
|
|
750 |
self._oprot.writeMessageBegin('authenticateStatisticsUser', TMessageType.CALL, self._seqid)
|
|
|
751 |
args = authenticateStatisticsUser_args()
|
|
|
752 |
args.username = username
|
|
|
753 |
args.password = password
|
|
|
754 |
args.write(self._oprot)
|
|
|
755 |
self._oprot.writeMessageEnd()
|
|
|
756 |
self._oprot.trans.flush()
|
|
|
757 |
|
|
|
758 |
def recv_authenticateStatisticsUser(self, ):
|
|
|
759 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
760 |
if mtype == TMessageType.EXCEPTION:
|
|
|
761 |
x = TApplicationException()
|
|
|
762 |
x.read(self._iprot)
|
|
|
763 |
self._iprot.readMessageEnd()
|
|
|
764 |
raise x
|
|
|
765 |
result = authenticateStatisticsUser_result()
|
|
|
766 |
result.read(self._iprot)
|
|
|
767 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
768 |
if result.success is not None:
|
| 1610 |
ankur.sing |
769 |
return result.success
|
| 3431 |
rajveer |
770 |
if result.hse is not None:
|
| 1610 |
ankur.sing |
771 |
raise result.hse
|
|
|
772 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
|
|
|
773 |
|
| 1891 |
ankur.sing |
774 |
def authenticateReportUser(self, username, password):
|
|
|
775 |
"""
|
|
|
776 |
Returns the ReportUser struct associated with the given username and password if they match.
|
|
|
777 |
Throws an exception otherwise.
|
| 3431 |
rajveer |
778 |
|
| 1891 |
ankur.sing |
779 |
Parameters:
|
|
|
780 |
- username
|
|
|
781 |
- password
|
|
|
782 |
"""
|
|
|
783 |
self.send_authenticateReportUser(username, password)
|
|
|
784 |
return self.recv_authenticateReportUser()
|
| 1610 |
ankur.sing |
785 |
|
| 1891 |
ankur.sing |
786 |
def send_authenticateReportUser(self, username, password):
|
|
|
787 |
self._oprot.writeMessageBegin('authenticateReportUser', TMessageType.CALL, self._seqid)
|
|
|
788 |
args = authenticateReportUser_args()
|
|
|
789 |
args.username = username
|
|
|
790 |
args.password = password
|
|
|
791 |
args.write(self._oprot)
|
|
|
792 |
self._oprot.writeMessageEnd()
|
|
|
793 |
self._oprot.trans.flush()
|
|
|
794 |
|
|
|
795 |
def recv_authenticateReportUser(self, ):
|
|
|
796 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
797 |
if mtype == TMessageType.EXCEPTION:
|
|
|
798 |
x = TApplicationException()
|
|
|
799 |
x.read(self._iprot)
|
|
|
800 |
self._iprot.readMessageEnd()
|
|
|
801 |
raise x
|
|
|
802 |
result = authenticateReportUser_result()
|
|
|
803 |
result.read(self._iprot)
|
|
|
804 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
805 |
if result.success is not None:
|
| 1891 |
ankur.sing |
806 |
return result.success
|
| 3431 |
rajveer |
807 |
if result.hse is not None:
|
| 1891 |
ankur.sing |
808 |
raise result.hse
|
|
|
809 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
|
|
|
810 |
|
|
|
811 |
def getReports(self, role):
|
|
|
812 |
"""
|
|
|
813 |
Returns list of reports which are configured for the given role.
|
| 3431 |
rajveer |
814 |
|
| 1891 |
ankur.sing |
815 |
Parameters:
|
|
|
816 |
- role
|
|
|
817 |
"""
|
|
|
818 |
self.send_getReports(role)
|
|
|
819 |
return self.recv_getReports()
|
|
|
820 |
|
|
|
821 |
def send_getReports(self, role):
|
|
|
822 |
self._oprot.writeMessageBegin('getReports', TMessageType.CALL, self._seqid)
|
|
|
823 |
args = getReports_args()
|
|
|
824 |
args.role = role
|
|
|
825 |
args.write(self._oprot)
|
|
|
826 |
self._oprot.writeMessageEnd()
|
|
|
827 |
self._oprot.trans.flush()
|
|
|
828 |
|
|
|
829 |
def recv_getReports(self, ):
|
|
|
830 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
831 |
if mtype == TMessageType.EXCEPTION:
|
|
|
832 |
x = TApplicationException()
|
|
|
833 |
x.read(self._iprot)
|
|
|
834 |
self._iprot.readMessageEnd()
|
|
|
835 |
raise x
|
|
|
836 |
result = getReports_result()
|
|
|
837 |
result.read(self._iprot)
|
|
|
838 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
839 |
if result.success is not None:
|
| 1891 |
ankur.sing |
840 |
return result.success
|
|
|
841 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
|
|
|
842 |
|
| 2358 |
ankur.sing |
843 |
def authenticateCatalogUser(self, username, password, role):
|
| 2025 |
ankur.sing |
844 |
"""
|
| 2358 |
ankur.sing |
845 |
Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
|
| 2025 |
ankur.sing |
846 |
Throws an exception otherwise.
|
| 3431 |
rajveer |
847 |
|
| 2025 |
ankur.sing |
848 |
Parameters:
|
|
|
849 |
- username
|
|
|
850 |
- password
|
| 2358 |
ankur.sing |
851 |
- role
|
| 2025 |
ankur.sing |
852 |
"""
|
| 2358 |
ankur.sing |
853 |
self.send_authenticateCatalogUser(username, password, role)
|
| 2025 |
ankur.sing |
854 |
return self.recv_authenticateCatalogUser()
|
| 1891 |
ankur.sing |
855 |
|
| 2358 |
ankur.sing |
856 |
def send_authenticateCatalogUser(self, username, password, role):
|
| 2025 |
ankur.sing |
857 |
self._oprot.writeMessageBegin('authenticateCatalogUser', TMessageType.CALL, self._seqid)
|
|
|
858 |
args = authenticateCatalogUser_args()
|
|
|
859 |
args.username = username
|
|
|
860 |
args.password = password
|
| 2358 |
ankur.sing |
861 |
args.role = role
|
| 2025 |
ankur.sing |
862 |
args.write(self._oprot)
|
|
|
863 |
self._oprot.writeMessageEnd()
|
|
|
864 |
self._oprot.trans.flush()
|
|
|
865 |
|
|
|
866 |
def recv_authenticateCatalogUser(self, ):
|
|
|
867 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
868 |
if mtype == TMessageType.EXCEPTION:
|
|
|
869 |
x = TApplicationException()
|
|
|
870 |
x.read(self._iprot)
|
|
|
871 |
self._iprot.readMessageEnd()
|
|
|
872 |
raise x
|
|
|
873 |
result = authenticateCatalogUser_result()
|
|
|
874 |
result.read(self._iprot)
|
|
|
875 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
876 |
if result.success is not None:
|
| 2025 |
ankur.sing |
877 |
return result.success
|
| 3431 |
rajveer |
878 |
if result.hse is not None:
|
| 2025 |
ankur.sing |
879 |
raise result.hse
|
|
|
880 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
|
|
|
881 |
|
| 4544 |
varun.gupt |
882 |
def shareEntities(self, entityIds, email):
|
|
|
883 |
"""
|
|
|
884 |
Saves the list of entity Ids to be shared with an email address
|
| 2025 |
ankur.sing |
885 |
|
| 4544 |
varun.gupt |
886 |
Parameters:
|
|
|
887 |
- entityIds
|
|
|
888 |
- email
|
|
|
889 |
"""
|
|
|
890 |
self.send_shareEntities(entityIds, email)
|
|
|
891 |
self.recv_shareEntities()
|
|
|
892 |
|
|
|
893 |
def send_shareEntities(self, entityIds, email):
|
|
|
894 |
self._oprot.writeMessageBegin('shareEntities', TMessageType.CALL, self._seqid)
|
|
|
895 |
args = shareEntities_args()
|
|
|
896 |
args.entityIds = entityIds
|
|
|
897 |
args.email = email
|
|
|
898 |
args.write(self._oprot)
|
|
|
899 |
self._oprot.writeMessageEnd()
|
|
|
900 |
self._oprot.trans.flush()
|
|
|
901 |
|
|
|
902 |
def recv_shareEntities(self, ):
|
|
|
903 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
904 |
if mtype == TMessageType.EXCEPTION:
|
|
|
905 |
x = TApplicationException()
|
|
|
906 |
x.read(self._iprot)
|
|
|
907 |
self._iprot.readMessageEnd()
|
|
|
908 |
raise x
|
|
|
909 |
result = shareEntities_result()
|
|
|
910 |
result.read(self._iprot)
|
|
|
911 |
self._iprot.readMessageEnd()
|
|
|
912 |
if result.hse is not None:
|
|
|
913 |
raise result.hse
|
|
|
914 |
return
|
|
|
915 |
|
| 4691 |
mandeep.dh |
916 |
def getAgents(self, ):
|
|
|
917 |
self.send_getAgents()
|
|
|
918 |
return self.recv_getAgents()
|
| 4544 |
varun.gupt |
919 |
|
| 4691 |
mandeep.dh |
920 |
def send_getAgents(self, ):
|
|
|
921 |
self._oprot.writeMessageBegin('getAgents', TMessageType.CALL, self._seqid)
|
|
|
922 |
args = getAgents_args()
|
|
|
923 |
args.write(self._oprot)
|
|
|
924 |
self._oprot.writeMessageEnd()
|
|
|
925 |
self._oprot.trans.flush()
|
|
|
926 |
|
|
|
927 |
def recv_getAgents(self, ):
|
|
|
928 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
929 |
if mtype == TMessageType.EXCEPTION:
|
|
|
930 |
x = TApplicationException()
|
|
|
931 |
x.read(self._iprot)
|
|
|
932 |
self._iprot.readMessageEnd()
|
|
|
933 |
raise x
|
|
|
934 |
result = getAgents_result()
|
|
|
935 |
result.read(self._iprot)
|
|
|
936 |
self._iprot.readMessageEnd()
|
|
|
937 |
if result.success is not None:
|
|
|
938 |
return result.success
|
|
|
939 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
|
|
|
940 |
|
|
|
941 |
def validateLogIn(self, emailId, password):
|
|
|
942 |
"""
|
|
|
943 |
Parameters:
|
|
|
944 |
- emailId
|
|
|
945 |
- password
|
|
|
946 |
"""
|
|
|
947 |
self.send_validateLogIn(emailId, password)
|
|
|
948 |
return self.recv_validateLogIn()
|
|
|
949 |
|
|
|
950 |
def send_validateLogIn(self, emailId, password):
|
|
|
951 |
self._oprot.writeMessageBegin('validateLogIn', TMessageType.CALL, self._seqid)
|
|
|
952 |
args = validateLogIn_args()
|
|
|
953 |
args.emailId = emailId
|
|
|
954 |
args.password = password
|
|
|
955 |
args.write(self._oprot)
|
|
|
956 |
self._oprot.writeMessageEnd()
|
|
|
957 |
self._oprot.trans.flush()
|
|
|
958 |
|
|
|
959 |
def recv_validateLogIn(self, ):
|
|
|
960 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
961 |
if mtype == TMessageType.EXCEPTION:
|
|
|
962 |
x = TApplicationException()
|
|
|
963 |
x.read(self._iprot)
|
|
|
964 |
self._iprot.readMessageEnd()
|
|
|
965 |
raise x
|
|
|
966 |
result = validateLogIn_result()
|
|
|
967 |
result.read(self._iprot)
|
|
|
968 |
self._iprot.readMessageEnd()
|
|
|
969 |
if result.success is not None:
|
|
|
970 |
return result.success
|
|
|
971 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
|
|
|
972 |
|
|
|
973 |
def updatePasswordForAgent(self, agentEmailId, password):
|
|
|
974 |
"""
|
|
|
975 |
Parameters:
|
|
|
976 |
- agentEmailId
|
|
|
977 |
- password
|
|
|
978 |
"""
|
|
|
979 |
self.send_updatePasswordForAgent(agentEmailId, password)
|
|
|
980 |
self.recv_updatePasswordForAgent()
|
|
|
981 |
|
|
|
982 |
def send_updatePasswordForAgent(self, agentEmailId, password):
|
|
|
983 |
self._oprot.writeMessageBegin('updatePasswordForAgent', TMessageType.CALL, self._seqid)
|
|
|
984 |
args = updatePasswordForAgent_args()
|
|
|
985 |
args.agentEmailId = agentEmailId
|
|
|
986 |
args.password = password
|
|
|
987 |
args.write(self._oprot)
|
|
|
988 |
self._oprot.writeMessageEnd()
|
|
|
989 |
self._oprot.trans.flush()
|
|
|
990 |
|
|
|
991 |
def recv_updatePasswordForAgent(self, ):
|
|
|
992 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
993 |
if mtype == TMessageType.EXCEPTION:
|
|
|
994 |
x = TApplicationException()
|
|
|
995 |
x.read(self._iprot)
|
|
|
996 |
self._iprot.readMessageEnd()
|
|
|
997 |
raise x
|
|
|
998 |
result = updatePasswordForAgent_result()
|
|
|
999 |
result.read(self._iprot)
|
|
|
1000 |
self._iprot.readMessageEnd()
|
|
|
1001 |
return
|
|
|
1002 |
|
|
|
1003 |
def getRoleNamesForAgent(self, agentEmailId):
|
|
|
1004 |
"""
|
|
|
1005 |
Parameters:
|
|
|
1006 |
- agentEmailId
|
|
|
1007 |
"""
|
|
|
1008 |
self.send_getRoleNamesForAgent(agentEmailId)
|
|
|
1009 |
return self.recv_getRoleNamesForAgent()
|
|
|
1010 |
|
|
|
1011 |
def send_getRoleNamesForAgent(self, agentEmailId):
|
|
|
1012 |
self._oprot.writeMessageBegin('getRoleNamesForAgent', TMessageType.CALL, self._seqid)
|
|
|
1013 |
args = getRoleNamesForAgent_args()
|
|
|
1014 |
args.agentEmailId = agentEmailId
|
|
|
1015 |
args.write(self._oprot)
|
|
|
1016 |
self._oprot.writeMessageEnd()
|
|
|
1017 |
self._oprot.trans.flush()
|
|
|
1018 |
|
|
|
1019 |
def recv_getRoleNamesForAgent(self, ):
|
|
|
1020 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1021 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1022 |
x = TApplicationException()
|
|
|
1023 |
x.read(self._iprot)
|
|
|
1024 |
self._iprot.readMessageEnd()
|
|
|
1025 |
raise x
|
|
|
1026 |
result = getRoleNamesForAgent_result()
|
|
|
1027 |
result.read(self._iprot)
|
|
|
1028 |
self._iprot.readMessageEnd()
|
|
|
1029 |
if result.success is not None:
|
|
|
1030 |
return result.success
|
|
|
1031 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
|
|
|
1032 |
|
|
|
1033 |
def getPermissionsForRoleName(self, roleName):
|
|
|
1034 |
"""
|
|
|
1035 |
Parameters:
|
|
|
1036 |
- roleName
|
|
|
1037 |
"""
|
|
|
1038 |
self.send_getPermissionsForRoleName(roleName)
|
|
|
1039 |
return self.recv_getPermissionsForRoleName()
|
|
|
1040 |
|
|
|
1041 |
def send_getPermissionsForRoleName(self, roleName):
|
|
|
1042 |
self._oprot.writeMessageBegin('getPermissionsForRoleName', TMessageType.CALL, self._seqid)
|
|
|
1043 |
args = getPermissionsForRoleName_args()
|
|
|
1044 |
args.roleName = roleName
|
|
|
1045 |
args.write(self._oprot)
|
|
|
1046 |
self._oprot.writeMessageEnd()
|
|
|
1047 |
self._oprot.trans.flush()
|
|
|
1048 |
|
|
|
1049 |
def recv_getPermissionsForRoleName(self, ):
|
|
|
1050 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1051 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1052 |
x = TApplicationException()
|
|
|
1053 |
x.read(self._iprot)
|
|
|
1054 |
self._iprot.readMessageEnd()
|
|
|
1055 |
raise x
|
|
|
1056 |
result = getPermissionsForRoleName_result()
|
|
|
1057 |
result.read(self._iprot)
|
|
|
1058 |
self._iprot.readMessageEnd()
|
|
|
1059 |
if result.success is not None:
|
|
|
1060 |
return result.success
|
|
|
1061 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
|
|
|
1062 |
|
| 4806 |
varun.gupt |
1063 |
def saveQuickLink(self, url, text):
|
|
|
1064 |
"""
|
|
|
1065 |
Parameters:
|
|
|
1066 |
- url
|
|
|
1067 |
- text
|
|
|
1068 |
"""
|
|
|
1069 |
self.send_saveQuickLink(url, text)
|
|
|
1070 |
self.recv_saveQuickLink()
|
| 4691 |
mandeep.dh |
1071 |
|
| 4806 |
varun.gupt |
1072 |
def send_saveQuickLink(self, url, text):
|
|
|
1073 |
self._oprot.writeMessageBegin('saveQuickLink', TMessageType.CALL, self._seqid)
|
|
|
1074 |
args = saveQuickLink_args()
|
|
|
1075 |
args.url = url
|
|
|
1076 |
args.text = text
|
|
|
1077 |
args.write(self._oprot)
|
|
|
1078 |
self._oprot.writeMessageEnd()
|
|
|
1079 |
self._oprot.trans.flush()
|
|
|
1080 |
|
|
|
1081 |
def recv_saveQuickLink(self, ):
|
|
|
1082 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1083 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1084 |
x = TApplicationException()
|
|
|
1085 |
x.read(self._iprot)
|
|
|
1086 |
self._iprot.readMessageEnd()
|
|
|
1087 |
raise x
|
|
|
1088 |
result = saveQuickLink_result()
|
|
|
1089 |
result.read(self._iprot)
|
|
|
1090 |
self._iprot.readMessageEnd()
|
|
|
1091 |
if result.hse is not None:
|
|
|
1092 |
raise result.hse
|
|
|
1093 |
return
|
|
|
1094 |
|
|
|
1095 |
def getQuickLinks(self, ):
|
|
|
1096 |
self.send_getQuickLinks()
|
|
|
1097 |
return self.recv_getQuickLinks()
|
|
|
1098 |
|
|
|
1099 |
def send_getQuickLinks(self, ):
|
|
|
1100 |
self._oprot.writeMessageBegin('getQuickLinks', TMessageType.CALL, self._seqid)
|
|
|
1101 |
args = getQuickLinks_args()
|
|
|
1102 |
args.write(self._oprot)
|
|
|
1103 |
self._oprot.writeMessageEnd()
|
|
|
1104 |
self._oprot.trans.flush()
|
|
|
1105 |
|
|
|
1106 |
def recv_getQuickLinks(self, ):
|
|
|
1107 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1108 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1109 |
x = TApplicationException()
|
|
|
1110 |
x.read(self._iprot)
|
|
|
1111 |
self._iprot.readMessageEnd()
|
|
|
1112 |
raise x
|
|
|
1113 |
result = getQuickLinks_result()
|
|
|
1114 |
result.read(self._iprot)
|
|
|
1115 |
self._iprot.readMessageEnd()
|
|
|
1116 |
if result.success is not None:
|
|
|
1117 |
return result.success
|
|
|
1118 |
if result.hse is not None:
|
|
|
1119 |
raise result.hse
|
|
|
1120 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");
|
|
|
1121 |
|
| 4996 |
varun.gupt |
1122 |
def updateQuickLink(self, id, url, text):
|
|
|
1123 |
"""
|
|
|
1124 |
Parameters:
|
|
|
1125 |
- id
|
|
|
1126 |
- url
|
|
|
1127 |
- text
|
|
|
1128 |
"""
|
|
|
1129 |
self.send_updateQuickLink(id, url, text)
|
|
|
1130 |
self.recv_updateQuickLink()
|
| 4806 |
varun.gupt |
1131 |
|
| 4996 |
varun.gupt |
1132 |
def send_updateQuickLink(self, id, url, text):
|
|
|
1133 |
self._oprot.writeMessageBegin('updateQuickLink', TMessageType.CALL, self._seqid)
|
|
|
1134 |
args = updateQuickLink_args()
|
|
|
1135 |
args.id = id
|
|
|
1136 |
args.url = url
|
|
|
1137 |
args.text = text
|
|
|
1138 |
args.write(self._oprot)
|
|
|
1139 |
self._oprot.writeMessageEnd()
|
|
|
1140 |
self._oprot.trans.flush()
|
|
|
1141 |
|
|
|
1142 |
def recv_updateQuickLink(self, ):
|
|
|
1143 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1144 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1145 |
x = TApplicationException()
|
|
|
1146 |
x.read(self._iprot)
|
|
|
1147 |
self._iprot.readMessageEnd()
|
|
|
1148 |
raise x
|
|
|
1149 |
result = updateQuickLink_result()
|
|
|
1150 |
result.read(self._iprot)
|
|
|
1151 |
self._iprot.readMessageEnd()
|
|
|
1152 |
if result.hse is not None:
|
|
|
1153 |
raise result.hse
|
|
|
1154 |
return
|
|
|
1155 |
|
| 5055 |
varun.gupt |
1156 |
def getEmailsForNotificationsSent(self, startDatetime, endDatetime):
|
|
|
1157 |
"""
|
|
|
1158 |
Returns a list of emails to which product notifications have been sent in a given date range
|
| 4996 |
varun.gupt |
1159 |
|
| 5055 |
varun.gupt |
1160 |
Parameters:
|
|
|
1161 |
- startDatetime
|
|
|
1162 |
- endDatetime
|
|
|
1163 |
"""
|
|
|
1164 |
self.send_getEmailsForNotificationsSent(startDatetime, endDatetime)
|
|
|
1165 |
return self.recv_getEmailsForNotificationsSent()
|
|
|
1166 |
|
|
|
1167 |
def send_getEmailsForNotificationsSent(self, startDatetime, endDatetime):
|
|
|
1168 |
self._oprot.writeMessageBegin('getEmailsForNotificationsSent', TMessageType.CALL, self._seqid)
|
|
|
1169 |
args = getEmailsForNotificationsSent_args()
|
|
|
1170 |
args.startDatetime = startDatetime
|
|
|
1171 |
args.endDatetime = endDatetime
|
|
|
1172 |
args.write(self._oprot)
|
|
|
1173 |
self._oprot.writeMessageEnd()
|
|
|
1174 |
self._oprot.trans.flush()
|
|
|
1175 |
|
|
|
1176 |
def recv_getEmailsForNotificationsSent(self, ):
|
|
|
1177 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1178 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1179 |
x = TApplicationException()
|
|
|
1180 |
x.read(self._iprot)
|
|
|
1181 |
self._iprot.readMessageEnd()
|
|
|
1182 |
raise x
|
|
|
1183 |
result = getEmailsForNotificationsSent_result()
|
|
|
1184 |
result.read(self._iprot)
|
|
|
1185 |
self._iprot.readMessageEnd()
|
|
|
1186 |
if result.success is not None:
|
|
|
1187 |
return result.success
|
|
|
1188 |
if result.hse is not None:
|
|
|
1189 |
raise result.hse
|
|
|
1190 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");
|
|
|
1191 |
|
|
|
1192 |
|
| 3376 |
rajveer |
1193 |
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
|
| 349 |
ashish |
1194 |
def __init__(self, handler):
|
| 3376 |
rajveer |
1195 |
shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
|
| 1395 |
varun.gupt |
1196 |
self._processMap["saveUserEmailForSending"] = Processor.process_saveUserEmailForSending
|
| 1422 |
varun.gupt |
1197 |
self._processMap["getEmailsToBeSent"] = Processor.process_getEmailsToBeSent
|
|
|
1198 |
self._processMap["markEmailAsSent"] = Processor.process_markEmailAsSent
|
| 349 |
ashish |
1199 |
self._processMap["sendMail"] = Processor.process_sendMail
|
|
|
1200 |
self._processMap["sendText"] = Processor.process_sendText
|
|
|
1201 |
self._processMap["addMessage"] = Processor.process_addMessage
|
|
|
1202 |
self._processMap["updateMessage"] = Processor.process_updateMessage
|
|
|
1203 |
self._processMap["getMessage"] = Processor.process_getMessage
|
|
|
1204 |
self._processMap["getSubstitutedMessage"] = Processor.process_getSubstitutedMessage
|
| 494 |
rajveer |
1205 |
self._processMap["addUser"] = Processor.process_addUser
|
|
|
1206 |
self._processMap["deleteUser"] = Processor.process_deleteUser
|
| 2447 |
chandransh |
1207 |
self._processMap["authenticateDashboardUser"] = Processor.process_authenticateDashboardUser
|
| 494 |
rajveer |
1208 |
self._processMap["updatePassword"] = Processor.process_updatePassword
|
| 759 |
chandransh |
1209 |
self._processMap["authenticateLogisticsUser"] = Processor.process_authenticateLogisticsUser
|
| 1610 |
ankur.sing |
1210 |
self._processMap["authenticateStatisticsUser"] = Processor.process_authenticateStatisticsUser
|
| 1891 |
ankur.sing |
1211 |
self._processMap["authenticateReportUser"] = Processor.process_authenticateReportUser
|
|
|
1212 |
self._processMap["getReports"] = Processor.process_getReports
|
| 2025 |
ankur.sing |
1213 |
self._processMap["authenticateCatalogUser"] = Processor.process_authenticateCatalogUser
|
| 4544 |
varun.gupt |
1214 |
self._processMap["shareEntities"] = Processor.process_shareEntities
|
| 4691 |
mandeep.dh |
1215 |
self._processMap["getAgents"] = Processor.process_getAgents
|
|
|
1216 |
self._processMap["validateLogIn"] = Processor.process_validateLogIn
|
|
|
1217 |
self._processMap["updatePasswordForAgent"] = Processor.process_updatePasswordForAgent
|
|
|
1218 |
self._processMap["getRoleNamesForAgent"] = Processor.process_getRoleNamesForAgent
|
|
|
1219 |
self._processMap["getPermissionsForRoleName"] = Processor.process_getPermissionsForRoleName
|
| 4806 |
varun.gupt |
1220 |
self._processMap["saveQuickLink"] = Processor.process_saveQuickLink
|
|
|
1221 |
self._processMap["getQuickLinks"] = Processor.process_getQuickLinks
|
| 4996 |
varun.gupt |
1222 |
self._processMap["updateQuickLink"] = Processor.process_updateQuickLink
|
| 5055 |
varun.gupt |
1223 |
self._processMap["getEmailsForNotificationsSent"] = Processor.process_getEmailsForNotificationsSent
|
| 349 |
ashish |
1224 |
|
|
|
1225 |
def process(self, iprot, oprot):
|
|
|
1226 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
1227 |
if name not in self._processMap:
|
|
|
1228 |
iprot.skip(TType.STRUCT)
|
|
|
1229 |
iprot.readMessageEnd()
|
|
|
1230 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
1231 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
1232 |
x.write(oprot)
|
|
|
1233 |
oprot.writeMessageEnd()
|
|
|
1234 |
oprot.trans.flush()
|
|
|
1235 |
return
|
|
|
1236 |
else:
|
|
|
1237 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
1238 |
return True
|
|
|
1239 |
|
| 1395 |
varun.gupt |
1240 |
def process_saveUserEmailForSending(self, seqid, iprot, oprot):
|
|
|
1241 |
args = saveUserEmailForSending_args()
|
|
|
1242 |
args.read(iprot)
|
|
|
1243 |
iprot.readMessageEnd()
|
|
|
1244 |
result = saveUserEmailForSending_result()
|
|
|
1245 |
try:
|
| 3206 |
mandeep.dh |
1246 |
result.success = self._handler.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType)
|
| 1395 |
varun.gupt |
1247 |
except HelperServiceException, se:
|
|
|
1248 |
result.se = se
|
|
|
1249 |
oprot.writeMessageBegin("saveUserEmailForSending", TMessageType.REPLY, seqid)
|
|
|
1250 |
result.write(oprot)
|
|
|
1251 |
oprot.writeMessageEnd()
|
|
|
1252 |
oprot.trans.flush()
|
|
|
1253 |
|
| 1422 |
varun.gupt |
1254 |
def process_getEmailsToBeSent(self, seqid, iprot, oprot):
|
|
|
1255 |
args = getEmailsToBeSent_args()
|
|
|
1256 |
args.read(iprot)
|
|
|
1257 |
iprot.readMessageEnd()
|
|
|
1258 |
result = getEmailsToBeSent_result()
|
|
|
1259 |
try:
|
| 3086 |
rajveer |
1260 |
result.success = self._handler.getEmailsToBeSent()
|
| 1422 |
varun.gupt |
1261 |
except HelperServiceException, se:
|
|
|
1262 |
result.se = se
|
|
|
1263 |
oprot.writeMessageBegin("getEmailsToBeSent", TMessageType.REPLY, seqid)
|
|
|
1264 |
result.write(oprot)
|
|
|
1265 |
oprot.writeMessageEnd()
|
|
|
1266 |
oprot.trans.flush()
|
|
|
1267 |
|
|
|
1268 |
def process_markEmailAsSent(self, seqid, iprot, oprot):
|
|
|
1269 |
args = markEmailAsSent_args()
|
|
|
1270 |
args.read(iprot)
|
|
|
1271 |
iprot.readMessageEnd()
|
|
|
1272 |
result = markEmailAsSent_result()
|
|
|
1273 |
try:
|
|
|
1274 |
self._handler.markEmailAsSent(args.emailId)
|
|
|
1275 |
except HelperServiceException, se:
|
|
|
1276 |
result.se = se
|
|
|
1277 |
oprot.writeMessageBegin("markEmailAsSent", TMessageType.REPLY, seqid)
|
|
|
1278 |
result.write(oprot)
|
|
|
1279 |
oprot.writeMessageEnd()
|
|
|
1280 |
oprot.trans.flush()
|
|
|
1281 |
|
| 349 |
ashish |
1282 |
def process_sendMail(self, seqid, iprot, oprot):
|
|
|
1283 |
args = sendMail_args()
|
|
|
1284 |
args.read(iprot)
|
|
|
1285 |
iprot.readMessageEnd()
|
|
|
1286 |
result = sendMail_result()
|
|
|
1287 |
try:
|
|
|
1288 |
self._handler.sendMail(args.mail)
|
|
|
1289 |
except HelperServiceException, se:
|
|
|
1290 |
result.se = se
|
|
|
1291 |
oprot.writeMessageBegin("sendMail", TMessageType.REPLY, seqid)
|
|
|
1292 |
result.write(oprot)
|
|
|
1293 |
oprot.writeMessageEnd()
|
|
|
1294 |
oprot.trans.flush()
|
|
|
1295 |
|
|
|
1296 |
def process_sendText(self, seqid, iprot, oprot):
|
|
|
1297 |
args = sendText_args()
|
|
|
1298 |
args.read(iprot)
|
|
|
1299 |
iprot.readMessageEnd()
|
|
|
1300 |
result = sendText_result()
|
|
|
1301 |
try:
|
|
|
1302 |
self._handler.sendText(args.message)
|
|
|
1303 |
except HelperServiceException, se:
|
|
|
1304 |
result.se = se
|
|
|
1305 |
oprot.writeMessageBegin("sendText", TMessageType.REPLY, seqid)
|
|
|
1306 |
result.write(oprot)
|
|
|
1307 |
oprot.writeMessageEnd()
|
|
|
1308 |
oprot.trans.flush()
|
|
|
1309 |
|
|
|
1310 |
def process_addMessage(self, seqid, iprot, oprot):
|
|
|
1311 |
args = addMessage_args()
|
|
|
1312 |
args.read(iprot)
|
|
|
1313 |
iprot.readMessageEnd()
|
|
|
1314 |
result = addMessage_result()
|
|
|
1315 |
try:
|
|
|
1316 |
self._handler.addMessage(args.message)
|
|
|
1317 |
except HelperServiceException, se:
|
|
|
1318 |
result.se = se
|
|
|
1319 |
oprot.writeMessageBegin("addMessage", TMessageType.REPLY, seqid)
|
|
|
1320 |
result.write(oprot)
|
|
|
1321 |
oprot.writeMessageEnd()
|
|
|
1322 |
oprot.trans.flush()
|
|
|
1323 |
|
|
|
1324 |
def process_updateMessage(self, seqid, iprot, oprot):
|
|
|
1325 |
args = updateMessage_args()
|
|
|
1326 |
args.read(iprot)
|
|
|
1327 |
iprot.readMessageEnd()
|
|
|
1328 |
result = updateMessage_result()
|
|
|
1329 |
try:
|
|
|
1330 |
self._handler.updateMessage(args.id, args.message)
|
|
|
1331 |
except HelperServiceException, se:
|
|
|
1332 |
result.se = se
|
|
|
1333 |
oprot.writeMessageBegin("updateMessage", TMessageType.REPLY, seqid)
|
|
|
1334 |
result.write(oprot)
|
|
|
1335 |
oprot.writeMessageEnd()
|
|
|
1336 |
oprot.trans.flush()
|
|
|
1337 |
|
|
|
1338 |
def process_getMessage(self, seqid, iprot, oprot):
|
|
|
1339 |
args = getMessage_args()
|
|
|
1340 |
args.read(iprot)
|
|
|
1341 |
iprot.readMessageEnd()
|
|
|
1342 |
result = getMessage_result()
|
|
|
1343 |
try:
|
| 353 |
ashish |
1344 |
result.success = self._handler.getMessage(args.id)
|
| 349 |
ashish |
1345 |
except HelperServiceException, se:
|
|
|
1346 |
result.se = se
|
|
|
1347 |
oprot.writeMessageBegin("getMessage", TMessageType.REPLY, seqid)
|
|
|
1348 |
result.write(oprot)
|
|
|
1349 |
oprot.writeMessageEnd()
|
|
|
1350 |
oprot.trans.flush()
|
|
|
1351 |
|
|
|
1352 |
def process_getSubstitutedMessage(self, seqid, iprot, oprot):
|
|
|
1353 |
args = getSubstitutedMessage_args()
|
|
|
1354 |
args.read(iprot)
|
|
|
1355 |
iprot.readMessageEnd()
|
|
|
1356 |
result = getSubstitutedMessage_result()
|
|
|
1357 |
try:
|
| 353 |
ashish |
1358 |
result.success = self._handler.getSubstitutedMessage(args.id, args.params)
|
| 349 |
ashish |
1359 |
except HelperServiceException, se:
|
|
|
1360 |
result.se = se
|
|
|
1361 |
oprot.writeMessageBegin("getSubstitutedMessage", TMessageType.REPLY, seqid)
|
|
|
1362 |
result.write(oprot)
|
|
|
1363 |
oprot.writeMessageEnd()
|
|
|
1364 |
oprot.trans.flush()
|
|
|
1365 |
|
| 494 |
rajveer |
1366 |
def process_addUser(self, seqid, iprot, oprot):
|
|
|
1367 |
args = addUser_args()
|
|
|
1368 |
args.read(iprot)
|
|
|
1369 |
iprot.readMessageEnd()
|
|
|
1370 |
result = addUser_result()
|
|
|
1371 |
try:
|
|
|
1372 |
result.success = self._handler.addUser(args.username, args.password, args.warehouseId)
|
|
|
1373 |
except HelperServiceException, se:
|
|
|
1374 |
result.se = se
|
|
|
1375 |
oprot.writeMessageBegin("addUser", TMessageType.REPLY, seqid)
|
|
|
1376 |
result.write(oprot)
|
|
|
1377 |
oprot.writeMessageEnd()
|
|
|
1378 |
oprot.trans.flush()
|
| 349 |
ashish |
1379 |
|
| 494 |
rajveer |
1380 |
def process_deleteUser(self, seqid, iprot, oprot):
|
|
|
1381 |
args = deleteUser_args()
|
|
|
1382 |
args.read(iprot)
|
|
|
1383 |
iprot.readMessageEnd()
|
|
|
1384 |
result = deleteUser_result()
|
|
|
1385 |
try:
|
|
|
1386 |
result.success = self._handler.deleteUser(args.username)
|
|
|
1387 |
except HelperServiceException, se:
|
|
|
1388 |
result.se = se
|
|
|
1389 |
oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
|
|
|
1390 |
result.write(oprot)
|
|
|
1391 |
oprot.writeMessageEnd()
|
|
|
1392 |
oprot.trans.flush()
|
|
|
1393 |
|
| 2447 |
chandransh |
1394 |
def process_authenticateDashboardUser(self, seqid, iprot, oprot):
|
|
|
1395 |
args = authenticateDashboardUser_args()
|
| 494 |
rajveer |
1396 |
args.read(iprot)
|
|
|
1397 |
iprot.readMessageEnd()
|
| 2447 |
chandransh |
1398 |
result = authenticateDashboardUser_result()
|
| 494 |
rajveer |
1399 |
try:
|
| 2447 |
chandransh |
1400 |
result.success = self._handler.authenticateDashboardUser(args.username, args.password)
|
| 494 |
rajveer |
1401 |
except HelperServiceException, se:
|
|
|
1402 |
result.se = se
|
| 2447 |
chandransh |
1403 |
oprot.writeMessageBegin("authenticateDashboardUser", TMessageType.REPLY, seqid)
|
| 494 |
rajveer |
1404 |
result.write(oprot)
|
|
|
1405 |
oprot.writeMessageEnd()
|
|
|
1406 |
oprot.trans.flush()
|
|
|
1407 |
|
|
|
1408 |
def process_updatePassword(self, seqid, iprot, oprot):
|
|
|
1409 |
args = updatePassword_args()
|
|
|
1410 |
args.read(iprot)
|
|
|
1411 |
iprot.readMessageEnd()
|
|
|
1412 |
result = updatePassword_result()
|
|
|
1413 |
try:
|
|
|
1414 |
result.success = self._handler.updatePassword(args.username, args.oldPassword, args.newPassword)
|
|
|
1415 |
except HelperServiceException, se:
|
|
|
1416 |
result.se = se
|
|
|
1417 |
oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
|
|
|
1418 |
result.write(oprot)
|
|
|
1419 |
oprot.writeMessageEnd()
|
|
|
1420 |
oprot.trans.flush()
|
|
|
1421 |
|
| 759 |
chandransh |
1422 |
def process_authenticateLogisticsUser(self, seqid, iprot, oprot):
|
|
|
1423 |
args = authenticateLogisticsUser_args()
|
|
|
1424 |
args.read(iprot)
|
|
|
1425 |
iprot.readMessageEnd()
|
|
|
1426 |
result = authenticateLogisticsUser_result()
|
|
|
1427 |
try:
|
|
|
1428 |
result.success = self._handler.authenticateLogisticsUser(args.username, args.password)
|
|
|
1429 |
except HelperServiceException, hse:
|
|
|
1430 |
result.hse = hse
|
|
|
1431 |
oprot.writeMessageBegin("authenticateLogisticsUser", TMessageType.REPLY, seqid)
|
|
|
1432 |
result.write(oprot)
|
|
|
1433 |
oprot.writeMessageEnd()
|
|
|
1434 |
oprot.trans.flush()
|
| 494 |
rajveer |
1435 |
|
| 1610 |
ankur.sing |
1436 |
def process_authenticateStatisticsUser(self, seqid, iprot, oprot):
|
|
|
1437 |
args = authenticateStatisticsUser_args()
|
|
|
1438 |
args.read(iprot)
|
|
|
1439 |
iprot.readMessageEnd()
|
|
|
1440 |
result = authenticateStatisticsUser_result()
|
|
|
1441 |
try:
|
|
|
1442 |
result.success = self._handler.authenticateStatisticsUser(args.username, args.password)
|
|
|
1443 |
except HelperServiceException, hse:
|
|
|
1444 |
result.hse = hse
|
|
|
1445 |
oprot.writeMessageBegin("authenticateStatisticsUser", TMessageType.REPLY, seqid)
|
|
|
1446 |
result.write(oprot)
|
|
|
1447 |
oprot.writeMessageEnd()
|
|
|
1448 |
oprot.trans.flush()
|
| 759 |
chandransh |
1449 |
|
| 1891 |
ankur.sing |
1450 |
def process_authenticateReportUser(self, seqid, iprot, oprot):
|
|
|
1451 |
args = authenticateReportUser_args()
|
|
|
1452 |
args.read(iprot)
|
|
|
1453 |
iprot.readMessageEnd()
|
|
|
1454 |
result = authenticateReportUser_result()
|
|
|
1455 |
try:
|
|
|
1456 |
result.success = self._handler.authenticateReportUser(args.username, args.password)
|
|
|
1457 |
except HelperServiceException, hse:
|
|
|
1458 |
result.hse = hse
|
|
|
1459 |
oprot.writeMessageBegin("authenticateReportUser", TMessageType.REPLY, seqid)
|
|
|
1460 |
result.write(oprot)
|
|
|
1461 |
oprot.writeMessageEnd()
|
|
|
1462 |
oprot.trans.flush()
|
| 1610 |
ankur.sing |
1463 |
|
| 1891 |
ankur.sing |
1464 |
def process_getReports(self, seqid, iprot, oprot):
|
|
|
1465 |
args = getReports_args()
|
|
|
1466 |
args.read(iprot)
|
|
|
1467 |
iprot.readMessageEnd()
|
|
|
1468 |
result = getReports_result()
|
|
|
1469 |
result.success = self._handler.getReports(args.role)
|
|
|
1470 |
oprot.writeMessageBegin("getReports", TMessageType.REPLY, seqid)
|
|
|
1471 |
result.write(oprot)
|
|
|
1472 |
oprot.writeMessageEnd()
|
|
|
1473 |
oprot.trans.flush()
|
|
|
1474 |
|
| 2025 |
ankur.sing |
1475 |
def process_authenticateCatalogUser(self, seqid, iprot, oprot):
|
|
|
1476 |
args = authenticateCatalogUser_args()
|
|
|
1477 |
args.read(iprot)
|
|
|
1478 |
iprot.readMessageEnd()
|
|
|
1479 |
result = authenticateCatalogUser_result()
|
|
|
1480 |
try:
|
| 2358 |
ankur.sing |
1481 |
result.success = self._handler.authenticateCatalogUser(args.username, args.password, args.role)
|
| 2025 |
ankur.sing |
1482 |
except HelperServiceException, hse:
|
|
|
1483 |
result.hse = hse
|
|
|
1484 |
oprot.writeMessageBegin("authenticateCatalogUser", TMessageType.REPLY, seqid)
|
|
|
1485 |
result.write(oprot)
|
|
|
1486 |
oprot.writeMessageEnd()
|
|
|
1487 |
oprot.trans.flush()
|
| 1891 |
ankur.sing |
1488 |
|
| 4544 |
varun.gupt |
1489 |
def process_shareEntities(self, seqid, iprot, oprot):
|
|
|
1490 |
args = shareEntities_args()
|
|
|
1491 |
args.read(iprot)
|
|
|
1492 |
iprot.readMessageEnd()
|
|
|
1493 |
result = shareEntities_result()
|
|
|
1494 |
try:
|
|
|
1495 |
self._handler.shareEntities(args.entityIds, args.email)
|
|
|
1496 |
except HelperServiceException, hse:
|
|
|
1497 |
result.hse = hse
|
|
|
1498 |
oprot.writeMessageBegin("shareEntities", TMessageType.REPLY, seqid)
|
|
|
1499 |
result.write(oprot)
|
|
|
1500 |
oprot.writeMessageEnd()
|
|
|
1501 |
oprot.trans.flush()
|
| 2025 |
ankur.sing |
1502 |
|
| 4691 |
mandeep.dh |
1503 |
def process_getAgents(self, seqid, iprot, oprot):
|
|
|
1504 |
args = getAgents_args()
|
|
|
1505 |
args.read(iprot)
|
|
|
1506 |
iprot.readMessageEnd()
|
|
|
1507 |
result = getAgents_result()
|
|
|
1508 |
result.success = self._handler.getAgents()
|
|
|
1509 |
oprot.writeMessageBegin("getAgents", TMessageType.REPLY, seqid)
|
|
|
1510 |
result.write(oprot)
|
|
|
1511 |
oprot.writeMessageEnd()
|
|
|
1512 |
oprot.trans.flush()
|
| 4544 |
varun.gupt |
1513 |
|
| 4691 |
mandeep.dh |
1514 |
def process_validateLogIn(self, seqid, iprot, oprot):
|
|
|
1515 |
args = validateLogIn_args()
|
|
|
1516 |
args.read(iprot)
|
|
|
1517 |
iprot.readMessageEnd()
|
|
|
1518 |
result = validateLogIn_result()
|
|
|
1519 |
result.success = self._handler.validateLogIn(args.emailId, args.password)
|
|
|
1520 |
oprot.writeMessageBegin("validateLogIn", TMessageType.REPLY, seqid)
|
|
|
1521 |
result.write(oprot)
|
|
|
1522 |
oprot.writeMessageEnd()
|
|
|
1523 |
oprot.trans.flush()
|
|
|
1524 |
|
|
|
1525 |
def process_updatePasswordForAgent(self, seqid, iprot, oprot):
|
|
|
1526 |
args = updatePasswordForAgent_args()
|
|
|
1527 |
args.read(iprot)
|
|
|
1528 |
iprot.readMessageEnd()
|
|
|
1529 |
result = updatePasswordForAgent_result()
|
|
|
1530 |
self._handler.updatePasswordForAgent(args.agentEmailId, args.password)
|
|
|
1531 |
oprot.writeMessageBegin("updatePasswordForAgent", TMessageType.REPLY, seqid)
|
|
|
1532 |
result.write(oprot)
|
|
|
1533 |
oprot.writeMessageEnd()
|
|
|
1534 |
oprot.trans.flush()
|
|
|
1535 |
|
|
|
1536 |
def process_getRoleNamesForAgent(self, seqid, iprot, oprot):
|
|
|
1537 |
args = getRoleNamesForAgent_args()
|
|
|
1538 |
args.read(iprot)
|
|
|
1539 |
iprot.readMessageEnd()
|
|
|
1540 |
result = getRoleNamesForAgent_result()
|
|
|
1541 |
result.success = self._handler.getRoleNamesForAgent(args.agentEmailId)
|
|
|
1542 |
oprot.writeMessageBegin("getRoleNamesForAgent", TMessageType.REPLY, seqid)
|
|
|
1543 |
result.write(oprot)
|
|
|
1544 |
oprot.writeMessageEnd()
|
|
|
1545 |
oprot.trans.flush()
|
|
|
1546 |
|
|
|
1547 |
def process_getPermissionsForRoleName(self, seqid, iprot, oprot):
|
|
|
1548 |
args = getPermissionsForRoleName_args()
|
|
|
1549 |
args.read(iprot)
|
|
|
1550 |
iprot.readMessageEnd()
|
|
|
1551 |
result = getPermissionsForRoleName_result()
|
|
|
1552 |
result.success = self._handler.getPermissionsForRoleName(args.roleName)
|
|
|
1553 |
oprot.writeMessageBegin("getPermissionsForRoleName", TMessageType.REPLY, seqid)
|
|
|
1554 |
result.write(oprot)
|
|
|
1555 |
oprot.writeMessageEnd()
|
|
|
1556 |
oprot.trans.flush()
|
|
|
1557 |
|
| 4806 |
varun.gupt |
1558 |
def process_saveQuickLink(self, seqid, iprot, oprot):
|
|
|
1559 |
args = saveQuickLink_args()
|
|
|
1560 |
args.read(iprot)
|
|
|
1561 |
iprot.readMessageEnd()
|
|
|
1562 |
result = saveQuickLink_result()
|
|
|
1563 |
try:
|
|
|
1564 |
self._handler.saveQuickLink(args.url, args.text)
|
|
|
1565 |
except HelperServiceException, hse:
|
|
|
1566 |
result.hse = hse
|
|
|
1567 |
oprot.writeMessageBegin("saveQuickLink", TMessageType.REPLY, seqid)
|
|
|
1568 |
result.write(oprot)
|
|
|
1569 |
oprot.writeMessageEnd()
|
|
|
1570 |
oprot.trans.flush()
|
| 4691 |
mandeep.dh |
1571 |
|
| 4806 |
varun.gupt |
1572 |
def process_getQuickLinks(self, seqid, iprot, oprot):
|
|
|
1573 |
args = getQuickLinks_args()
|
|
|
1574 |
args.read(iprot)
|
|
|
1575 |
iprot.readMessageEnd()
|
|
|
1576 |
result = getQuickLinks_result()
|
|
|
1577 |
try:
|
|
|
1578 |
result.success = self._handler.getQuickLinks()
|
|
|
1579 |
except HelperServiceException, hse:
|
|
|
1580 |
result.hse = hse
|
|
|
1581 |
oprot.writeMessageBegin("getQuickLinks", TMessageType.REPLY, seqid)
|
|
|
1582 |
result.write(oprot)
|
|
|
1583 |
oprot.writeMessageEnd()
|
|
|
1584 |
oprot.trans.flush()
|
|
|
1585 |
|
| 4996 |
varun.gupt |
1586 |
def process_updateQuickLink(self, seqid, iprot, oprot):
|
|
|
1587 |
args = updateQuickLink_args()
|
|
|
1588 |
args.read(iprot)
|
|
|
1589 |
iprot.readMessageEnd()
|
|
|
1590 |
result = updateQuickLink_result()
|
|
|
1591 |
try:
|
|
|
1592 |
self._handler.updateQuickLink(args.id, args.url, args.text)
|
|
|
1593 |
except HelperServiceException, hse:
|
|
|
1594 |
result.hse = hse
|
|
|
1595 |
oprot.writeMessageBegin("updateQuickLink", TMessageType.REPLY, seqid)
|
|
|
1596 |
result.write(oprot)
|
|
|
1597 |
oprot.writeMessageEnd()
|
|
|
1598 |
oprot.trans.flush()
|
| 4806 |
varun.gupt |
1599 |
|
| 5055 |
varun.gupt |
1600 |
def process_getEmailsForNotificationsSent(self, seqid, iprot, oprot):
|
|
|
1601 |
args = getEmailsForNotificationsSent_args()
|
|
|
1602 |
args.read(iprot)
|
|
|
1603 |
iprot.readMessageEnd()
|
|
|
1604 |
result = getEmailsForNotificationsSent_result()
|
|
|
1605 |
try:
|
|
|
1606 |
result.success = self._handler.getEmailsForNotificationsSent(args.startDatetime, args.endDatetime)
|
|
|
1607 |
except HelperServiceException, hse:
|
|
|
1608 |
result.hse = hse
|
|
|
1609 |
oprot.writeMessageBegin("getEmailsForNotificationsSent", TMessageType.REPLY, seqid)
|
|
|
1610 |
result.write(oprot)
|
|
|
1611 |
oprot.writeMessageEnd()
|
|
|
1612 |
oprot.trans.flush()
|
| 4996 |
varun.gupt |
1613 |
|
| 5055 |
varun.gupt |
1614 |
|
| 349 |
ashish |
1615 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
1616 |
|
| 1395 |
varun.gupt |
1617 |
class saveUserEmailForSending_args:
|
|
|
1618 |
"""
|
|
|
1619 |
Attributes:
|
|
|
1620 |
- emailTo
|
|
|
1621 |
- emailFrom
|
|
|
1622 |
- subject
|
|
|
1623 |
- body
|
|
|
1624 |
- source
|
|
|
1625 |
- emailType
|
|
|
1626 |
"""
|
|
|
1627 |
|
|
|
1628 |
thrift_spec = (
|
|
|
1629 |
None, # 0
|
|
|
1630 |
(1, TType.STRING, 'emailTo', None, None, ), # 1
|
|
|
1631 |
(2, TType.STRING, 'emailFrom', None, None, ), # 2
|
|
|
1632 |
(3, TType.STRING, 'subject', None, None, ), # 3
|
|
|
1633 |
(4, TType.STRING, 'body', None, None, ), # 4
|
|
|
1634 |
(5, TType.STRING, 'source', None, None, ), # 5
|
|
|
1635 |
(6, TType.STRING, 'emailType', None, None, ), # 6
|
|
|
1636 |
)
|
|
|
1637 |
|
|
|
1638 |
def __init__(self, emailTo=None, emailFrom=None, subject=None, body=None, source=None, emailType=None,):
|
|
|
1639 |
self.emailTo = emailTo
|
|
|
1640 |
self.emailFrom = emailFrom
|
|
|
1641 |
self.subject = subject
|
|
|
1642 |
self.body = body
|
|
|
1643 |
self.source = source
|
|
|
1644 |
self.emailType = emailType
|
|
|
1645 |
|
|
|
1646 |
def read(self, iprot):
|
|
|
1647 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1648 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1649 |
return
|
|
|
1650 |
iprot.readStructBegin()
|
|
|
1651 |
while True:
|
|
|
1652 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1653 |
if ftype == TType.STOP:
|
|
|
1654 |
break
|
|
|
1655 |
if fid == 1:
|
|
|
1656 |
if ftype == TType.STRING:
|
|
|
1657 |
self.emailTo = iprot.readString();
|
|
|
1658 |
else:
|
|
|
1659 |
iprot.skip(ftype)
|
|
|
1660 |
elif fid == 2:
|
|
|
1661 |
if ftype == TType.STRING:
|
|
|
1662 |
self.emailFrom = iprot.readString();
|
|
|
1663 |
else:
|
|
|
1664 |
iprot.skip(ftype)
|
|
|
1665 |
elif fid == 3:
|
|
|
1666 |
if ftype == TType.STRING:
|
|
|
1667 |
self.subject = iprot.readString();
|
|
|
1668 |
else:
|
|
|
1669 |
iprot.skip(ftype)
|
|
|
1670 |
elif fid == 4:
|
|
|
1671 |
if ftype == TType.STRING:
|
|
|
1672 |
self.body = iprot.readString();
|
|
|
1673 |
else:
|
|
|
1674 |
iprot.skip(ftype)
|
|
|
1675 |
elif fid == 5:
|
|
|
1676 |
if ftype == TType.STRING:
|
|
|
1677 |
self.source = iprot.readString();
|
|
|
1678 |
else:
|
|
|
1679 |
iprot.skip(ftype)
|
|
|
1680 |
elif fid == 6:
|
|
|
1681 |
if ftype == TType.STRING:
|
|
|
1682 |
self.emailType = iprot.readString();
|
|
|
1683 |
else:
|
|
|
1684 |
iprot.skip(ftype)
|
|
|
1685 |
else:
|
|
|
1686 |
iprot.skip(ftype)
|
|
|
1687 |
iprot.readFieldEnd()
|
|
|
1688 |
iprot.readStructEnd()
|
|
|
1689 |
|
|
|
1690 |
def write(self, oprot):
|
|
|
1691 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1692 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1693 |
return
|
|
|
1694 |
oprot.writeStructBegin('saveUserEmailForSending_args')
|
| 3431 |
rajveer |
1695 |
if self.emailTo is not None:
|
| 1395 |
varun.gupt |
1696 |
oprot.writeFieldBegin('emailTo', TType.STRING, 1)
|
|
|
1697 |
oprot.writeString(self.emailTo)
|
|
|
1698 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1699 |
if self.emailFrom is not None:
|
| 1395 |
varun.gupt |
1700 |
oprot.writeFieldBegin('emailFrom', TType.STRING, 2)
|
|
|
1701 |
oprot.writeString(self.emailFrom)
|
|
|
1702 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1703 |
if self.subject is not None:
|
| 1395 |
varun.gupt |
1704 |
oprot.writeFieldBegin('subject', TType.STRING, 3)
|
|
|
1705 |
oprot.writeString(self.subject)
|
|
|
1706 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1707 |
if self.body is not None:
|
| 1395 |
varun.gupt |
1708 |
oprot.writeFieldBegin('body', TType.STRING, 4)
|
|
|
1709 |
oprot.writeString(self.body)
|
|
|
1710 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1711 |
if self.source is not None:
|
| 1395 |
varun.gupt |
1712 |
oprot.writeFieldBegin('source', TType.STRING, 5)
|
|
|
1713 |
oprot.writeString(self.source)
|
|
|
1714 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1715 |
if self.emailType is not None:
|
| 1395 |
varun.gupt |
1716 |
oprot.writeFieldBegin('emailType', TType.STRING, 6)
|
|
|
1717 |
oprot.writeString(self.emailType)
|
|
|
1718 |
oprot.writeFieldEnd()
|
|
|
1719 |
oprot.writeFieldStop()
|
|
|
1720 |
oprot.writeStructEnd()
|
|
|
1721 |
|
| 3431 |
rajveer |
1722 |
def validate(self):
|
|
|
1723 |
return
|
|
|
1724 |
|
|
|
1725 |
|
| 1395 |
varun.gupt |
1726 |
def __repr__(self):
|
|
|
1727 |
L = ['%s=%r' % (key, value)
|
|
|
1728 |
for key, value in self.__dict__.iteritems()]
|
|
|
1729 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1730 |
|
|
|
1731 |
def __eq__(self, other):
|
|
|
1732 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1733 |
|
|
|
1734 |
def __ne__(self, other):
|
|
|
1735 |
return not (self == other)
|
|
|
1736 |
|
|
|
1737 |
class saveUserEmailForSending_result:
|
|
|
1738 |
"""
|
|
|
1739 |
Attributes:
|
| 3206 |
mandeep.dh |
1740 |
- success
|
| 1395 |
varun.gupt |
1741 |
- se
|
|
|
1742 |
"""
|
|
|
1743 |
|
|
|
1744 |
thrift_spec = (
|
| 3206 |
mandeep.dh |
1745 |
(0, TType.I64, 'success', None, None, ), # 0
|
| 1395 |
varun.gupt |
1746 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
1747 |
)
|
|
|
1748 |
|
| 3206 |
mandeep.dh |
1749 |
def __init__(self, success=None, se=None,):
|
|
|
1750 |
self.success = success
|
| 1395 |
varun.gupt |
1751 |
self.se = se
|
|
|
1752 |
|
|
|
1753 |
def read(self, iprot):
|
|
|
1754 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1755 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1756 |
return
|
|
|
1757 |
iprot.readStructBegin()
|
|
|
1758 |
while True:
|
|
|
1759 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1760 |
if ftype == TType.STOP:
|
|
|
1761 |
break
|
| 3206 |
mandeep.dh |
1762 |
if fid == 0:
|
|
|
1763 |
if ftype == TType.I64:
|
|
|
1764 |
self.success = iprot.readI64();
|
|
|
1765 |
else:
|
|
|
1766 |
iprot.skip(ftype)
|
|
|
1767 |
elif fid == 1:
|
| 1395 |
varun.gupt |
1768 |
if ftype == TType.STRUCT:
|
|
|
1769 |
self.se = HelperServiceException()
|
|
|
1770 |
self.se.read(iprot)
|
|
|
1771 |
else:
|
|
|
1772 |
iprot.skip(ftype)
|
|
|
1773 |
else:
|
|
|
1774 |
iprot.skip(ftype)
|
|
|
1775 |
iprot.readFieldEnd()
|
|
|
1776 |
iprot.readStructEnd()
|
|
|
1777 |
|
|
|
1778 |
def write(self, oprot):
|
|
|
1779 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1780 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1781 |
return
|
|
|
1782 |
oprot.writeStructBegin('saveUserEmailForSending_result')
|
| 3431 |
rajveer |
1783 |
if self.success is not None:
|
| 3206 |
mandeep.dh |
1784 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
1785 |
oprot.writeI64(self.success)
|
|
|
1786 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1787 |
if self.se is not None:
|
| 1395 |
varun.gupt |
1788 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1789 |
self.se.write(oprot)
|
|
|
1790 |
oprot.writeFieldEnd()
|
|
|
1791 |
oprot.writeFieldStop()
|
|
|
1792 |
oprot.writeStructEnd()
|
|
|
1793 |
|
| 3431 |
rajveer |
1794 |
def validate(self):
|
|
|
1795 |
return
|
|
|
1796 |
|
|
|
1797 |
|
| 1395 |
varun.gupt |
1798 |
def __repr__(self):
|
|
|
1799 |
L = ['%s=%r' % (key, value)
|
|
|
1800 |
for key, value in self.__dict__.iteritems()]
|
|
|
1801 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1802 |
|
|
|
1803 |
def __eq__(self, other):
|
|
|
1804 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1805 |
|
|
|
1806 |
def __ne__(self, other):
|
|
|
1807 |
return not (self == other)
|
|
|
1808 |
|
| 1422 |
varun.gupt |
1809 |
class getEmailsToBeSent_args:
|
|
|
1810 |
|
|
|
1811 |
thrift_spec = (
|
|
|
1812 |
)
|
|
|
1813 |
|
|
|
1814 |
def read(self, iprot):
|
|
|
1815 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1816 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1817 |
return
|
|
|
1818 |
iprot.readStructBegin()
|
|
|
1819 |
while True:
|
|
|
1820 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1821 |
if ftype == TType.STOP:
|
|
|
1822 |
break
|
|
|
1823 |
else:
|
|
|
1824 |
iprot.skip(ftype)
|
|
|
1825 |
iprot.readFieldEnd()
|
|
|
1826 |
iprot.readStructEnd()
|
|
|
1827 |
|
|
|
1828 |
def write(self, oprot):
|
|
|
1829 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1830 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1831 |
return
|
|
|
1832 |
oprot.writeStructBegin('getEmailsToBeSent_args')
|
|
|
1833 |
oprot.writeFieldStop()
|
|
|
1834 |
oprot.writeStructEnd()
|
|
|
1835 |
|
| 3431 |
rajveer |
1836 |
def validate(self):
|
|
|
1837 |
return
|
|
|
1838 |
|
|
|
1839 |
|
| 1422 |
varun.gupt |
1840 |
def __repr__(self):
|
|
|
1841 |
L = ['%s=%r' % (key, value)
|
|
|
1842 |
for key, value in self.__dict__.iteritems()]
|
|
|
1843 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1844 |
|
|
|
1845 |
def __eq__(self, other):
|
|
|
1846 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1847 |
|
|
|
1848 |
def __ne__(self, other):
|
|
|
1849 |
return not (self == other)
|
|
|
1850 |
|
|
|
1851 |
class getEmailsToBeSent_result:
|
|
|
1852 |
"""
|
|
|
1853 |
Attributes:
|
|
|
1854 |
- success
|
|
|
1855 |
- se
|
|
|
1856 |
"""
|
|
|
1857 |
|
|
|
1858 |
thrift_spec = (
|
|
|
1859 |
(0, TType.LIST, 'success', (TType.STRUCT,(UserEmail, UserEmail.thrift_spec)), None, ), # 0
|
|
|
1860 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
1861 |
)
|
|
|
1862 |
|
|
|
1863 |
def __init__(self, success=None, se=None,):
|
|
|
1864 |
self.success = success
|
|
|
1865 |
self.se = se
|
|
|
1866 |
|
|
|
1867 |
def read(self, iprot):
|
|
|
1868 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1869 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1870 |
return
|
|
|
1871 |
iprot.readStructBegin()
|
|
|
1872 |
while True:
|
|
|
1873 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1874 |
if ftype == TType.STOP:
|
|
|
1875 |
break
|
|
|
1876 |
if fid == 0:
|
|
|
1877 |
if ftype == TType.LIST:
|
|
|
1878 |
self.success = []
|
|
|
1879 |
(_etype17, _size14) = iprot.readListBegin()
|
|
|
1880 |
for _i18 in xrange(_size14):
|
|
|
1881 |
_elem19 = UserEmail()
|
|
|
1882 |
_elem19.read(iprot)
|
|
|
1883 |
self.success.append(_elem19)
|
|
|
1884 |
iprot.readListEnd()
|
|
|
1885 |
else:
|
|
|
1886 |
iprot.skip(ftype)
|
|
|
1887 |
elif fid == 1:
|
|
|
1888 |
if ftype == TType.STRUCT:
|
|
|
1889 |
self.se = HelperServiceException()
|
|
|
1890 |
self.se.read(iprot)
|
|
|
1891 |
else:
|
|
|
1892 |
iprot.skip(ftype)
|
|
|
1893 |
else:
|
|
|
1894 |
iprot.skip(ftype)
|
|
|
1895 |
iprot.readFieldEnd()
|
|
|
1896 |
iprot.readStructEnd()
|
|
|
1897 |
|
|
|
1898 |
def write(self, oprot):
|
|
|
1899 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1900 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1901 |
return
|
|
|
1902 |
oprot.writeStructBegin('getEmailsToBeSent_result')
|
| 3431 |
rajveer |
1903 |
if self.success is not None:
|
| 1422 |
varun.gupt |
1904 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1905 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
1906 |
for iter20 in self.success:
|
|
|
1907 |
iter20.write(oprot)
|
|
|
1908 |
oprot.writeListEnd()
|
|
|
1909 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1910 |
if self.se is not None:
|
| 1422 |
varun.gupt |
1911 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
1912 |
self.se.write(oprot)
|
|
|
1913 |
oprot.writeFieldEnd()
|
|
|
1914 |
oprot.writeFieldStop()
|
|
|
1915 |
oprot.writeStructEnd()
|
|
|
1916 |
|
| 3431 |
rajveer |
1917 |
def validate(self):
|
|
|
1918 |
return
|
|
|
1919 |
|
|
|
1920 |
|
| 1422 |
varun.gupt |
1921 |
def __repr__(self):
|
|
|
1922 |
L = ['%s=%r' % (key, value)
|
|
|
1923 |
for key, value in self.__dict__.iteritems()]
|
|
|
1924 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1925 |
|
|
|
1926 |
def __eq__(self, other):
|
|
|
1927 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1928 |
|
|
|
1929 |
def __ne__(self, other):
|
|
|
1930 |
return not (self == other)
|
|
|
1931 |
|
|
|
1932 |
class markEmailAsSent_args:
|
|
|
1933 |
"""
|
|
|
1934 |
Attributes:
|
|
|
1935 |
- emailId
|
|
|
1936 |
"""
|
|
|
1937 |
|
|
|
1938 |
thrift_spec = (
|
|
|
1939 |
None, # 0
|
|
|
1940 |
(1, TType.I64, 'emailId', None, None, ), # 1
|
|
|
1941 |
)
|
|
|
1942 |
|
|
|
1943 |
def __init__(self, emailId=None,):
|
|
|
1944 |
self.emailId = emailId
|
|
|
1945 |
|
|
|
1946 |
def read(self, iprot):
|
|
|
1947 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1948 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1949 |
return
|
|
|
1950 |
iprot.readStructBegin()
|
|
|
1951 |
while True:
|
|
|
1952 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1953 |
if ftype == TType.STOP:
|
|
|
1954 |
break
|
|
|
1955 |
if fid == 1:
|
|
|
1956 |
if ftype == TType.I64:
|
|
|
1957 |
self.emailId = iprot.readI64();
|
|
|
1958 |
else:
|
|
|
1959 |
iprot.skip(ftype)
|
|
|
1960 |
else:
|
|
|
1961 |
iprot.skip(ftype)
|
|
|
1962 |
iprot.readFieldEnd()
|
|
|
1963 |
iprot.readStructEnd()
|
|
|
1964 |
|
|
|
1965 |
def write(self, oprot):
|
|
|
1966 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1967 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1968 |
return
|
|
|
1969 |
oprot.writeStructBegin('markEmailAsSent_args')
|
| 3431 |
rajveer |
1970 |
if self.emailId is not None:
|
| 1422 |
varun.gupt |
1971 |
oprot.writeFieldBegin('emailId', TType.I64, 1)
|
|
|
1972 |
oprot.writeI64(self.emailId)
|
|
|
1973 |
oprot.writeFieldEnd()
|
|
|
1974 |
oprot.writeFieldStop()
|
|
|
1975 |
oprot.writeStructEnd()
|
|
|
1976 |
|
| 3431 |
rajveer |
1977 |
def validate(self):
|
|
|
1978 |
return
|
|
|
1979 |
|
|
|
1980 |
|
| 1422 |
varun.gupt |
1981 |
def __repr__(self):
|
|
|
1982 |
L = ['%s=%r' % (key, value)
|
|
|
1983 |
for key, value in self.__dict__.iteritems()]
|
|
|
1984 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1985 |
|
|
|
1986 |
def __eq__(self, other):
|
|
|
1987 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1988 |
|
|
|
1989 |
def __ne__(self, other):
|
|
|
1990 |
return not (self == other)
|
|
|
1991 |
|
|
|
1992 |
class markEmailAsSent_result:
|
|
|
1993 |
"""
|
|
|
1994 |
Attributes:
|
|
|
1995 |
- se
|
|
|
1996 |
"""
|
|
|
1997 |
|
|
|
1998 |
thrift_spec = (
|
|
|
1999 |
None, # 0
|
|
|
2000 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
2001 |
)
|
|
|
2002 |
|
|
|
2003 |
def __init__(self, se=None,):
|
|
|
2004 |
self.se = se
|
|
|
2005 |
|
|
|
2006 |
def read(self, iprot):
|
|
|
2007 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2008 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2009 |
return
|
|
|
2010 |
iprot.readStructBegin()
|
|
|
2011 |
while True:
|
|
|
2012 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2013 |
if ftype == TType.STOP:
|
|
|
2014 |
break
|
|
|
2015 |
if fid == 1:
|
|
|
2016 |
if ftype == TType.STRUCT:
|
|
|
2017 |
self.se = HelperServiceException()
|
|
|
2018 |
self.se.read(iprot)
|
|
|
2019 |
else:
|
|
|
2020 |
iprot.skip(ftype)
|
|
|
2021 |
else:
|
|
|
2022 |
iprot.skip(ftype)
|
|
|
2023 |
iprot.readFieldEnd()
|
|
|
2024 |
iprot.readStructEnd()
|
|
|
2025 |
|
|
|
2026 |
def write(self, oprot):
|
|
|
2027 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2028 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2029 |
return
|
|
|
2030 |
oprot.writeStructBegin('markEmailAsSent_result')
|
| 3431 |
rajveer |
2031 |
if self.se is not None:
|
| 1422 |
varun.gupt |
2032 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
2033 |
self.se.write(oprot)
|
|
|
2034 |
oprot.writeFieldEnd()
|
|
|
2035 |
oprot.writeFieldStop()
|
|
|
2036 |
oprot.writeStructEnd()
|
|
|
2037 |
|
| 3431 |
rajveer |
2038 |
def validate(self):
|
|
|
2039 |
return
|
|
|
2040 |
|
|
|
2041 |
|
| 1422 |
varun.gupt |
2042 |
def __repr__(self):
|
|
|
2043 |
L = ['%s=%r' % (key, value)
|
|
|
2044 |
for key, value in self.__dict__.iteritems()]
|
|
|
2045 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2046 |
|
|
|
2047 |
def __eq__(self, other):
|
|
|
2048 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2049 |
|
|
|
2050 |
def __ne__(self, other):
|
|
|
2051 |
return not (self == other)
|
|
|
2052 |
|
| 349 |
ashish |
2053 |
class sendMail_args:
|
|
|
2054 |
"""
|
|
|
2055 |
Attributes:
|
|
|
2056 |
- mail
|
|
|
2057 |
"""
|
|
|
2058 |
|
|
|
2059 |
thrift_spec = (
|
|
|
2060 |
None, # 0
|
|
|
2061 |
(1, TType.STRUCT, 'mail', (Mail, Mail.thrift_spec), None, ), # 1
|
|
|
2062 |
)
|
|
|
2063 |
|
|
|
2064 |
def __init__(self, mail=None,):
|
|
|
2065 |
self.mail = mail
|
|
|
2066 |
|
|
|
2067 |
def read(self, iprot):
|
|
|
2068 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2069 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2070 |
return
|
|
|
2071 |
iprot.readStructBegin()
|
|
|
2072 |
while True:
|
|
|
2073 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2074 |
if ftype == TType.STOP:
|
|
|
2075 |
break
|
|
|
2076 |
if fid == 1:
|
|
|
2077 |
if ftype == TType.STRUCT:
|
|
|
2078 |
self.mail = Mail()
|
|
|
2079 |
self.mail.read(iprot)
|
|
|
2080 |
else:
|
|
|
2081 |
iprot.skip(ftype)
|
|
|
2082 |
else:
|
|
|
2083 |
iprot.skip(ftype)
|
|
|
2084 |
iprot.readFieldEnd()
|
|
|
2085 |
iprot.readStructEnd()
|
|
|
2086 |
|
|
|
2087 |
def write(self, oprot):
|
|
|
2088 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2089 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2090 |
return
|
|
|
2091 |
oprot.writeStructBegin('sendMail_args')
|
| 3431 |
rajveer |
2092 |
if self.mail is not None:
|
| 349 |
ashish |
2093 |
oprot.writeFieldBegin('mail', TType.STRUCT, 1)
|
|
|
2094 |
self.mail.write(oprot)
|
|
|
2095 |
oprot.writeFieldEnd()
|
|
|
2096 |
oprot.writeFieldStop()
|
|
|
2097 |
oprot.writeStructEnd()
|
|
|
2098 |
|
| 3431 |
rajveer |
2099 |
def validate(self):
|
|
|
2100 |
return
|
|
|
2101 |
|
|
|
2102 |
|
| 349 |
ashish |
2103 |
def __repr__(self):
|
|
|
2104 |
L = ['%s=%r' % (key, value)
|
|
|
2105 |
for key, value in self.__dict__.iteritems()]
|
|
|
2106 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2107 |
|
|
|
2108 |
def __eq__(self, other):
|
|
|
2109 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2110 |
|
|
|
2111 |
def __ne__(self, other):
|
|
|
2112 |
return not (self == other)
|
|
|
2113 |
|
|
|
2114 |
class sendMail_result:
|
|
|
2115 |
"""
|
|
|
2116 |
Attributes:
|
|
|
2117 |
- se
|
|
|
2118 |
"""
|
|
|
2119 |
|
|
|
2120 |
thrift_spec = (
|
|
|
2121 |
None, # 0
|
|
|
2122 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
2123 |
)
|
|
|
2124 |
|
|
|
2125 |
def __init__(self, se=None,):
|
|
|
2126 |
self.se = se
|
|
|
2127 |
|
|
|
2128 |
def read(self, iprot):
|
|
|
2129 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2130 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2131 |
return
|
|
|
2132 |
iprot.readStructBegin()
|
|
|
2133 |
while True:
|
|
|
2134 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2135 |
if ftype == TType.STOP:
|
|
|
2136 |
break
|
|
|
2137 |
if fid == 1:
|
|
|
2138 |
if ftype == TType.STRUCT:
|
|
|
2139 |
self.se = HelperServiceException()
|
|
|
2140 |
self.se.read(iprot)
|
|
|
2141 |
else:
|
|
|
2142 |
iprot.skip(ftype)
|
|
|
2143 |
else:
|
|
|
2144 |
iprot.skip(ftype)
|
|
|
2145 |
iprot.readFieldEnd()
|
|
|
2146 |
iprot.readStructEnd()
|
|
|
2147 |
|
|
|
2148 |
def write(self, oprot):
|
|
|
2149 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2150 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2151 |
return
|
|
|
2152 |
oprot.writeStructBegin('sendMail_result')
|
| 3431 |
rajveer |
2153 |
if self.se is not None:
|
| 349 |
ashish |
2154 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
2155 |
self.se.write(oprot)
|
|
|
2156 |
oprot.writeFieldEnd()
|
|
|
2157 |
oprot.writeFieldStop()
|
|
|
2158 |
oprot.writeStructEnd()
|
|
|
2159 |
|
| 3431 |
rajveer |
2160 |
def validate(self):
|
|
|
2161 |
return
|
|
|
2162 |
|
|
|
2163 |
|
| 349 |
ashish |
2164 |
def __repr__(self):
|
|
|
2165 |
L = ['%s=%r' % (key, value)
|
|
|
2166 |
for key, value in self.__dict__.iteritems()]
|
|
|
2167 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2168 |
|
|
|
2169 |
def __eq__(self, other):
|
|
|
2170 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2171 |
|
|
|
2172 |
def __ne__(self, other):
|
|
|
2173 |
return not (self == other)
|
|
|
2174 |
|
|
|
2175 |
class sendText_args:
|
|
|
2176 |
"""
|
|
|
2177 |
Attributes:
|
|
|
2178 |
- message
|
|
|
2179 |
"""
|
|
|
2180 |
|
|
|
2181 |
thrift_spec = (
|
|
|
2182 |
None, # 0
|
|
|
2183 |
(1, TType.STRUCT, 'message', (TextMessage, TextMessage.thrift_spec), None, ), # 1
|
|
|
2184 |
)
|
|
|
2185 |
|
|
|
2186 |
def __init__(self, message=None,):
|
|
|
2187 |
self.message = message
|
|
|
2188 |
|
|
|
2189 |
def read(self, iprot):
|
|
|
2190 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2191 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2192 |
return
|
|
|
2193 |
iprot.readStructBegin()
|
|
|
2194 |
while True:
|
|
|
2195 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2196 |
if ftype == TType.STOP:
|
|
|
2197 |
break
|
|
|
2198 |
if fid == 1:
|
|
|
2199 |
if ftype == TType.STRUCT:
|
|
|
2200 |
self.message = TextMessage()
|
|
|
2201 |
self.message.read(iprot)
|
|
|
2202 |
else:
|
|
|
2203 |
iprot.skip(ftype)
|
|
|
2204 |
else:
|
|
|
2205 |
iprot.skip(ftype)
|
|
|
2206 |
iprot.readFieldEnd()
|
|
|
2207 |
iprot.readStructEnd()
|
|
|
2208 |
|
|
|
2209 |
def write(self, oprot):
|
|
|
2210 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2211 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2212 |
return
|
|
|
2213 |
oprot.writeStructBegin('sendText_args')
|
| 3431 |
rajveer |
2214 |
if self.message is not None:
|
| 349 |
ashish |
2215 |
oprot.writeFieldBegin('message', TType.STRUCT, 1)
|
|
|
2216 |
self.message.write(oprot)
|
|
|
2217 |
oprot.writeFieldEnd()
|
|
|
2218 |
oprot.writeFieldStop()
|
|
|
2219 |
oprot.writeStructEnd()
|
|
|
2220 |
|
| 3431 |
rajveer |
2221 |
def validate(self):
|
|
|
2222 |
return
|
|
|
2223 |
|
|
|
2224 |
|
| 349 |
ashish |
2225 |
def __repr__(self):
|
|
|
2226 |
L = ['%s=%r' % (key, value)
|
|
|
2227 |
for key, value in self.__dict__.iteritems()]
|
|
|
2228 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2229 |
|
|
|
2230 |
def __eq__(self, other):
|
|
|
2231 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2232 |
|
|
|
2233 |
def __ne__(self, other):
|
|
|
2234 |
return not (self == other)
|
|
|
2235 |
|
|
|
2236 |
class sendText_result:
|
|
|
2237 |
"""
|
|
|
2238 |
Attributes:
|
|
|
2239 |
- se
|
|
|
2240 |
"""
|
|
|
2241 |
|
|
|
2242 |
thrift_spec = (
|
|
|
2243 |
None, # 0
|
|
|
2244 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
2245 |
)
|
|
|
2246 |
|
|
|
2247 |
def __init__(self, se=None,):
|
|
|
2248 |
self.se = se
|
|
|
2249 |
|
|
|
2250 |
def read(self, iprot):
|
|
|
2251 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2252 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2253 |
return
|
|
|
2254 |
iprot.readStructBegin()
|
|
|
2255 |
while True:
|
|
|
2256 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2257 |
if ftype == TType.STOP:
|
|
|
2258 |
break
|
|
|
2259 |
if fid == 1:
|
|
|
2260 |
if ftype == TType.STRUCT:
|
|
|
2261 |
self.se = HelperServiceException()
|
|
|
2262 |
self.se.read(iprot)
|
|
|
2263 |
else:
|
|
|
2264 |
iprot.skip(ftype)
|
|
|
2265 |
else:
|
|
|
2266 |
iprot.skip(ftype)
|
|
|
2267 |
iprot.readFieldEnd()
|
|
|
2268 |
iprot.readStructEnd()
|
|
|
2269 |
|
|
|
2270 |
def write(self, oprot):
|
|
|
2271 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2272 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2273 |
return
|
|
|
2274 |
oprot.writeStructBegin('sendText_result')
|
| 3431 |
rajveer |
2275 |
if self.se is not None:
|
| 349 |
ashish |
2276 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
2277 |
self.se.write(oprot)
|
|
|
2278 |
oprot.writeFieldEnd()
|
|
|
2279 |
oprot.writeFieldStop()
|
|
|
2280 |
oprot.writeStructEnd()
|
|
|
2281 |
|
| 3431 |
rajveer |
2282 |
def validate(self):
|
|
|
2283 |
return
|
|
|
2284 |
|
|
|
2285 |
|
| 349 |
ashish |
2286 |
def __repr__(self):
|
|
|
2287 |
L = ['%s=%r' % (key, value)
|
|
|
2288 |
for key, value in self.__dict__.iteritems()]
|
|
|
2289 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2290 |
|
|
|
2291 |
def __eq__(self, other):
|
|
|
2292 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2293 |
|
|
|
2294 |
def __ne__(self, other):
|
|
|
2295 |
return not (self == other)
|
|
|
2296 |
|
|
|
2297 |
class addMessage_args:
|
|
|
2298 |
"""
|
|
|
2299 |
Attributes:
|
|
|
2300 |
- message
|
|
|
2301 |
"""
|
|
|
2302 |
|
|
|
2303 |
thrift_spec = (
|
|
|
2304 |
None, # 0
|
|
|
2305 |
(1, TType.STRUCT, 'message', (Message, Message.thrift_spec), None, ), # 1
|
|
|
2306 |
)
|
|
|
2307 |
|
|
|
2308 |
def __init__(self, message=None,):
|
|
|
2309 |
self.message = message
|
|
|
2310 |
|
|
|
2311 |
def read(self, iprot):
|
|
|
2312 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2313 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2314 |
return
|
|
|
2315 |
iprot.readStructBegin()
|
|
|
2316 |
while True:
|
|
|
2317 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2318 |
if ftype == TType.STOP:
|
|
|
2319 |
break
|
|
|
2320 |
if fid == 1:
|
|
|
2321 |
if ftype == TType.STRUCT:
|
|
|
2322 |
self.message = Message()
|
|
|
2323 |
self.message.read(iprot)
|
|
|
2324 |
else:
|
|
|
2325 |
iprot.skip(ftype)
|
|
|
2326 |
else:
|
|
|
2327 |
iprot.skip(ftype)
|
|
|
2328 |
iprot.readFieldEnd()
|
|
|
2329 |
iprot.readStructEnd()
|
|
|
2330 |
|
|
|
2331 |
def write(self, oprot):
|
|
|
2332 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2333 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2334 |
return
|
|
|
2335 |
oprot.writeStructBegin('addMessage_args')
|
| 3431 |
rajveer |
2336 |
if self.message is not None:
|
| 349 |
ashish |
2337 |
oprot.writeFieldBegin('message', TType.STRUCT, 1)
|
|
|
2338 |
self.message.write(oprot)
|
|
|
2339 |
oprot.writeFieldEnd()
|
|
|
2340 |
oprot.writeFieldStop()
|
|
|
2341 |
oprot.writeStructEnd()
|
|
|
2342 |
|
| 3431 |
rajveer |
2343 |
def validate(self):
|
|
|
2344 |
return
|
|
|
2345 |
|
|
|
2346 |
|
| 349 |
ashish |
2347 |
def __repr__(self):
|
|
|
2348 |
L = ['%s=%r' % (key, value)
|
|
|
2349 |
for key, value in self.__dict__.iteritems()]
|
|
|
2350 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2351 |
|
|
|
2352 |
def __eq__(self, other):
|
|
|
2353 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2354 |
|
|
|
2355 |
def __ne__(self, other):
|
|
|
2356 |
return not (self == other)
|
|
|
2357 |
|
|
|
2358 |
class addMessage_result:
|
|
|
2359 |
"""
|
|
|
2360 |
Attributes:
|
|
|
2361 |
- se
|
|
|
2362 |
"""
|
|
|
2363 |
|
|
|
2364 |
thrift_spec = (
|
|
|
2365 |
None, # 0
|
|
|
2366 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
2367 |
)
|
|
|
2368 |
|
|
|
2369 |
def __init__(self, se=None,):
|
|
|
2370 |
self.se = se
|
|
|
2371 |
|
|
|
2372 |
def read(self, iprot):
|
|
|
2373 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2374 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2375 |
return
|
|
|
2376 |
iprot.readStructBegin()
|
|
|
2377 |
while True:
|
|
|
2378 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2379 |
if ftype == TType.STOP:
|
|
|
2380 |
break
|
|
|
2381 |
if fid == 1:
|
|
|
2382 |
if ftype == TType.STRUCT:
|
|
|
2383 |
self.se = HelperServiceException()
|
|
|
2384 |
self.se.read(iprot)
|
|
|
2385 |
else:
|
|
|
2386 |
iprot.skip(ftype)
|
|
|
2387 |
else:
|
|
|
2388 |
iprot.skip(ftype)
|
|
|
2389 |
iprot.readFieldEnd()
|
|
|
2390 |
iprot.readStructEnd()
|
|
|
2391 |
|
|
|
2392 |
def write(self, oprot):
|
|
|
2393 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2394 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2395 |
return
|
|
|
2396 |
oprot.writeStructBegin('addMessage_result')
|
| 3431 |
rajveer |
2397 |
if self.se is not None:
|
| 349 |
ashish |
2398 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
2399 |
self.se.write(oprot)
|
|
|
2400 |
oprot.writeFieldEnd()
|
|
|
2401 |
oprot.writeFieldStop()
|
|
|
2402 |
oprot.writeStructEnd()
|
|
|
2403 |
|
| 3431 |
rajveer |
2404 |
def validate(self):
|
|
|
2405 |
return
|
|
|
2406 |
|
|
|
2407 |
|
| 349 |
ashish |
2408 |
def __repr__(self):
|
|
|
2409 |
L = ['%s=%r' % (key, value)
|
|
|
2410 |
for key, value in self.__dict__.iteritems()]
|
|
|
2411 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2412 |
|
|
|
2413 |
def __eq__(self, other):
|
|
|
2414 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2415 |
|
|
|
2416 |
def __ne__(self, other):
|
|
|
2417 |
return not (self == other)
|
|
|
2418 |
|
|
|
2419 |
class updateMessage_args:
|
|
|
2420 |
"""
|
|
|
2421 |
Attributes:
|
|
|
2422 |
- id
|
|
|
2423 |
- message
|
|
|
2424 |
"""
|
|
|
2425 |
|
|
|
2426 |
thrift_spec = (
|
|
|
2427 |
None, # 0
|
|
|
2428 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
2429 |
(2, TType.STRING, 'message', None, None, ), # 2
|
|
|
2430 |
)
|
|
|
2431 |
|
|
|
2432 |
def __init__(self, id=None, message=None,):
|
|
|
2433 |
self.id = id
|
|
|
2434 |
self.message = message
|
|
|
2435 |
|
|
|
2436 |
def read(self, iprot):
|
|
|
2437 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2438 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2439 |
return
|
|
|
2440 |
iprot.readStructBegin()
|
|
|
2441 |
while True:
|
|
|
2442 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2443 |
if ftype == TType.STOP:
|
|
|
2444 |
break
|
|
|
2445 |
if fid == 1:
|
|
|
2446 |
if ftype == TType.I64:
|
|
|
2447 |
self.id = iprot.readI64();
|
|
|
2448 |
else:
|
|
|
2449 |
iprot.skip(ftype)
|
|
|
2450 |
elif fid == 2:
|
|
|
2451 |
if ftype == TType.STRING:
|
|
|
2452 |
self.message = iprot.readString();
|
|
|
2453 |
else:
|
|
|
2454 |
iprot.skip(ftype)
|
|
|
2455 |
else:
|
|
|
2456 |
iprot.skip(ftype)
|
|
|
2457 |
iprot.readFieldEnd()
|
|
|
2458 |
iprot.readStructEnd()
|
|
|
2459 |
|
|
|
2460 |
def write(self, oprot):
|
|
|
2461 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2462 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2463 |
return
|
|
|
2464 |
oprot.writeStructBegin('updateMessage_args')
|
| 3431 |
rajveer |
2465 |
if self.id is not None:
|
| 349 |
ashish |
2466 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
2467 |
oprot.writeI64(self.id)
|
|
|
2468 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2469 |
if self.message is not None:
|
| 349 |
ashish |
2470 |
oprot.writeFieldBegin('message', TType.STRING, 2)
|
|
|
2471 |
oprot.writeString(self.message)
|
|
|
2472 |
oprot.writeFieldEnd()
|
|
|
2473 |
oprot.writeFieldStop()
|
|
|
2474 |
oprot.writeStructEnd()
|
|
|
2475 |
|
| 3431 |
rajveer |
2476 |
def validate(self):
|
|
|
2477 |
return
|
|
|
2478 |
|
|
|
2479 |
|
| 349 |
ashish |
2480 |
def __repr__(self):
|
|
|
2481 |
L = ['%s=%r' % (key, value)
|
|
|
2482 |
for key, value in self.__dict__.iteritems()]
|
|
|
2483 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2484 |
|
|
|
2485 |
def __eq__(self, other):
|
|
|
2486 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2487 |
|
|
|
2488 |
def __ne__(self, other):
|
|
|
2489 |
return not (self == other)
|
|
|
2490 |
|
|
|
2491 |
class updateMessage_result:
|
|
|
2492 |
"""
|
|
|
2493 |
Attributes:
|
|
|
2494 |
- se
|
|
|
2495 |
"""
|
|
|
2496 |
|
|
|
2497 |
thrift_spec = (
|
|
|
2498 |
None, # 0
|
|
|
2499 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
2500 |
)
|
|
|
2501 |
|
|
|
2502 |
def __init__(self, se=None,):
|
|
|
2503 |
self.se = se
|
|
|
2504 |
|
|
|
2505 |
def read(self, iprot):
|
|
|
2506 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2507 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2508 |
return
|
|
|
2509 |
iprot.readStructBegin()
|
|
|
2510 |
while True:
|
|
|
2511 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2512 |
if ftype == TType.STOP:
|
|
|
2513 |
break
|
|
|
2514 |
if fid == 1:
|
|
|
2515 |
if ftype == TType.STRUCT:
|
|
|
2516 |
self.se = HelperServiceException()
|
|
|
2517 |
self.se.read(iprot)
|
|
|
2518 |
else:
|
|
|
2519 |
iprot.skip(ftype)
|
|
|
2520 |
else:
|
|
|
2521 |
iprot.skip(ftype)
|
|
|
2522 |
iprot.readFieldEnd()
|
|
|
2523 |
iprot.readStructEnd()
|
|
|
2524 |
|
|
|
2525 |
def write(self, oprot):
|
|
|
2526 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2527 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2528 |
return
|
|
|
2529 |
oprot.writeStructBegin('updateMessage_result')
|
| 3431 |
rajveer |
2530 |
if self.se is not None:
|
| 349 |
ashish |
2531 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
2532 |
self.se.write(oprot)
|
|
|
2533 |
oprot.writeFieldEnd()
|
|
|
2534 |
oprot.writeFieldStop()
|
|
|
2535 |
oprot.writeStructEnd()
|
|
|
2536 |
|
| 3431 |
rajveer |
2537 |
def validate(self):
|
|
|
2538 |
return
|
|
|
2539 |
|
|
|
2540 |
|
| 349 |
ashish |
2541 |
def __repr__(self):
|
|
|
2542 |
L = ['%s=%r' % (key, value)
|
|
|
2543 |
for key, value in self.__dict__.iteritems()]
|
|
|
2544 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2545 |
|
|
|
2546 |
def __eq__(self, other):
|
|
|
2547 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2548 |
|
|
|
2549 |
def __ne__(self, other):
|
|
|
2550 |
return not (self == other)
|
|
|
2551 |
|
|
|
2552 |
class getMessage_args:
|
|
|
2553 |
"""
|
|
|
2554 |
Attributes:
|
|
|
2555 |
- id
|
|
|
2556 |
"""
|
|
|
2557 |
|
|
|
2558 |
thrift_spec = (
|
|
|
2559 |
None, # 0
|
|
|
2560 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
2561 |
)
|
|
|
2562 |
|
|
|
2563 |
def __init__(self, id=None,):
|
|
|
2564 |
self.id = id
|
|
|
2565 |
|
|
|
2566 |
def read(self, iprot):
|
|
|
2567 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2568 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2569 |
return
|
|
|
2570 |
iprot.readStructBegin()
|
|
|
2571 |
while True:
|
|
|
2572 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2573 |
if ftype == TType.STOP:
|
|
|
2574 |
break
|
|
|
2575 |
if fid == 1:
|
|
|
2576 |
if ftype == TType.I64:
|
|
|
2577 |
self.id = iprot.readI64();
|
|
|
2578 |
else:
|
|
|
2579 |
iprot.skip(ftype)
|
|
|
2580 |
else:
|
|
|
2581 |
iprot.skip(ftype)
|
|
|
2582 |
iprot.readFieldEnd()
|
|
|
2583 |
iprot.readStructEnd()
|
|
|
2584 |
|
|
|
2585 |
def write(self, oprot):
|
|
|
2586 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2587 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2588 |
return
|
|
|
2589 |
oprot.writeStructBegin('getMessage_args')
|
| 3431 |
rajveer |
2590 |
if self.id is not None:
|
| 349 |
ashish |
2591 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
2592 |
oprot.writeI64(self.id)
|
|
|
2593 |
oprot.writeFieldEnd()
|
|
|
2594 |
oprot.writeFieldStop()
|
|
|
2595 |
oprot.writeStructEnd()
|
|
|
2596 |
|
| 3431 |
rajveer |
2597 |
def validate(self):
|
|
|
2598 |
return
|
|
|
2599 |
|
|
|
2600 |
|
| 349 |
ashish |
2601 |
def __repr__(self):
|
|
|
2602 |
L = ['%s=%r' % (key, value)
|
|
|
2603 |
for key, value in self.__dict__.iteritems()]
|
|
|
2604 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2605 |
|
|
|
2606 |
def __eq__(self, other):
|
|
|
2607 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2608 |
|
|
|
2609 |
def __ne__(self, other):
|
|
|
2610 |
return not (self == other)
|
|
|
2611 |
|
|
|
2612 |
class getMessage_result:
|
|
|
2613 |
"""
|
|
|
2614 |
Attributes:
|
| 353 |
ashish |
2615 |
- success
|
| 349 |
ashish |
2616 |
- se
|
|
|
2617 |
"""
|
|
|
2618 |
|
|
|
2619 |
thrift_spec = (
|
| 353 |
ashish |
2620 |
(0, TType.STRUCT, 'success', (Message, Message.thrift_spec), None, ), # 0
|
| 349 |
ashish |
2621 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
2622 |
)
|
|
|
2623 |
|
| 353 |
ashish |
2624 |
def __init__(self, success=None, se=None,):
|
|
|
2625 |
self.success = success
|
| 349 |
ashish |
2626 |
self.se = se
|
|
|
2627 |
|
|
|
2628 |
def read(self, iprot):
|
|
|
2629 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2630 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2631 |
return
|
|
|
2632 |
iprot.readStructBegin()
|
|
|
2633 |
while True:
|
|
|
2634 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2635 |
if ftype == TType.STOP:
|
|
|
2636 |
break
|
| 353 |
ashish |
2637 |
if fid == 0:
|
| 349 |
ashish |
2638 |
if ftype == TType.STRUCT:
|
| 353 |
ashish |
2639 |
self.success = Message()
|
|
|
2640 |
self.success.read(iprot)
|
|
|
2641 |
else:
|
|
|
2642 |
iprot.skip(ftype)
|
|
|
2643 |
elif fid == 1:
|
|
|
2644 |
if ftype == TType.STRUCT:
|
| 349 |
ashish |
2645 |
self.se = HelperServiceException()
|
|
|
2646 |
self.se.read(iprot)
|
|
|
2647 |
else:
|
|
|
2648 |
iprot.skip(ftype)
|
|
|
2649 |
else:
|
|
|
2650 |
iprot.skip(ftype)
|
|
|
2651 |
iprot.readFieldEnd()
|
|
|
2652 |
iprot.readStructEnd()
|
|
|
2653 |
|
|
|
2654 |
def write(self, oprot):
|
|
|
2655 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2656 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2657 |
return
|
|
|
2658 |
oprot.writeStructBegin('getMessage_result')
|
| 3431 |
rajveer |
2659 |
if self.success is not None:
|
| 353 |
ashish |
2660 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2661 |
self.success.write(oprot)
|
|
|
2662 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2663 |
if self.se is not None:
|
| 349 |
ashish |
2664 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
2665 |
self.se.write(oprot)
|
|
|
2666 |
oprot.writeFieldEnd()
|
|
|
2667 |
oprot.writeFieldStop()
|
|
|
2668 |
oprot.writeStructEnd()
|
|
|
2669 |
|
| 3431 |
rajveer |
2670 |
def validate(self):
|
|
|
2671 |
return
|
|
|
2672 |
|
|
|
2673 |
|
| 349 |
ashish |
2674 |
def __repr__(self):
|
|
|
2675 |
L = ['%s=%r' % (key, value)
|
|
|
2676 |
for key, value in self.__dict__.iteritems()]
|
|
|
2677 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2678 |
|
|
|
2679 |
def __eq__(self, other):
|
|
|
2680 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2681 |
|
|
|
2682 |
def __ne__(self, other):
|
|
|
2683 |
return not (self == other)
|
|
|
2684 |
|
|
|
2685 |
class getSubstitutedMessage_args:
|
|
|
2686 |
"""
|
|
|
2687 |
Attributes:
|
|
|
2688 |
- id
|
|
|
2689 |
- params
|
|
|
2690 |
"""
|
|
|
2691 |
|
|
|
2692 |
thrift_spec = (
|
|
|
2693 |
None, # 0
|
|
|
2694 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
2695 |
(2, TType.MAP, 'params', (TType.STRING,None,TType.STRING,None), None, ), # 2
|
|
|
2696 |
)
|
|
|
2697 |
|
|
|
2698 |
def __init__(self, id=None, params=None,):
|
|
|
2699 |
self.id = id
|
|
|
2700 |
self.params = params
|
|
|
2701 |
|
|
|
2702 |
def read(self, iprot):
|
|
|
2703 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2704 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2705 |
return
|
|
|
2706 |
iprot.readStructBegin()
|
|
|
2707 |
while True:
|
|
|
2708 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2709 |
if ftype == TType.STOP:
|
|
|
2710 |
break
|
|
|
2711 |
if fid == 1:
|
|
|
2712 |
if ftype == TType.I64:
|
|
|
2713 |
self.id = iprot.readI64();
|
|
|
2714 |
else:
|
|
|
2715 |
iprot.skip(ftype)
|
|
|
2716 |
elif fid == 2:
|
|
|
2717 |
if ftype == TType.MAP:
|
|
|
2718 |
self.params = {}
|
| 1422 |
varun.gupt |
2719 |
(_ktype22, _vtype23, _size21 ) = iprot.readMapBegin()
|
|
|
2720 |
for _i25 in xrange(_size21):
|
|
|
2721 |
_key26 = iprot.readString();
|
|
|
2722 |
_val27 = iprot.readString();
|
|
|
2723 |
self.params[_key26] = _val27
|
| 349 |
ashish |
2724 |
iprot.readMapEnd()
|
|
|
2725 |
else:
|
|
|
2726 |
iprot.skip(ftype)
|
|
|
2727 |
else:
|
|
|
2728 |
iprot.skip(ftype)
|
|
|
2729 |
iprot.readFieldEnd()
|
|
|
2730 |
iprot.readStructEnd()
|
|
|
2731 |
|
|
|
2732 |
def write(self, oprot):
|
|
|
2733 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2734 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2735 |
return
|
|
|
2736 |
oprot.writeStructBegin('getSubstitutedMessage_args')
|
| 3431 |
rajveer |
2737 |
if self.id is not None:
|
| 349 |
ashish |
2738 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
2739 |
oprot.writeI64(self.id)
|
|
|
2740 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2741 |
if self.params is not None:
|
| 349 |
ashish |
2742 |
oprot.writeFieldBegin('params', TType.MAP, 2)
|
|
|
2743 |
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.params))
|
| 1422 |
varun.gupt |
2744 |
for kiter28,viter29 in self.params.items():
|
|
|
2745 |
oprot.writeString(kiter28)
|
|
|
2746 |
oprot.writeString(viter29)
|
| 349 |
ashish |
2747 |
oprot.writeMapEnd()
|
|
|
2748 |
oprot.writeFieldEnd()
|
|
|
2749 |
oprot.writeFieldStop()
|
|
|
2750 |
oprot.writeStructEnd()
|
|
|
2751 |
|
| 3431 |
rajveer |
2752 |
def validate(self):
|
|
|
2753 |
return
|
|
|
2754 |
|
|
|
2755 |
|
| 349 |
ashish |
2756 |
def __repr__(self):
|
|
|
2757 |
L = ['%s=%r' % (key, value)
|
|
|
2758 |
for key, value in self.__dict__.iteritems()]
|
|
|
2759 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2760 |
|
|
|
2761 |
def __eq__(self, other):
|
|
|
2762 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2763 |
|
|
|
2764 |
def __ne__(self, other):
|
|
|
2765 |
return not (self == other)
|
|
|
2766 |
|
|
|
2767 |
class getSubstitutedMessage_result:
|
|
|
2768 |
"""
|
|
|
2769 |
Attributes:
|
| 353 |
ashish |
2770 |
- success
|
| 349 |
ashish |
2771 |
- se
|
|
|
2772 |
"""
|
|
|
2773 |
|
|
|
2774 |
thrift_spec = (
|
| 353 |
ashish |
2775 |
(0, TType.STRUCT, 'success', (Message, Message.thrift_spec), None, ), # 0
|
| 349 |
ashish |
2776 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
2777 |
)
|
|
|
2778 |
|
| 353 |
ashish |
2779 |
def __init__(self, success=None, se=None,):
|
|
|
2780 |
self.success = success
|
| 349 |
ashish |
2781 |
self.se = se
|
|
|
2782 |
|
|
|
2783 |
def read(self, iprot):
|
|
|
2784 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2785 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2786 |
return
|
|
|
2787 |
iprot.readStructBegin()
|
|
|
2788 |
while True:
|
|
|
2789 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2790 |
if ftype == TType.STOP:
|
|
|
2791 |
break
|
| 353 |
ashish |
2792 |
if fid == 0:
|
| 349 |
ashish |
2793 |
if ftype == TType.STRUCT:
|
| 353 |
ashish |
2794 |
self.success = Message()
|
|
|
2795 |
self.success.read(iprot)
|
|
|
2796 |
else:
|
|
|
2797 |
iprot.skip(ftype)
|
|
|
2798 |
elif fid == 1:
|
|
|
2799 |
if ftype == TType.STRUCT:
|
| 349 |
ashish |
2800 |
self.se = HelperServiceException()
|
|
|
2801 |
self.se.read(iprot)
|
|
|
2802 |
else:
|
|
|
2803 |
iprot.skip(ftype)
|
|
|
2804 |
else:
|
|
|
2805 |
iprot.skip(ftype)
|
|
|
2806 |
iprot.readFieldEnd()
|
|
|
2807 |
iprot.readStructEnd()
|
|
|
2808 |
|
|
|
2809 |
def write(self, oprot):
|
|
|
2810 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2811 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2812 |
return
|
|
|
2813 |
oprot.writeStructBegin('getSubstitutedMessage_result')
|
| 3431 |
rajveer |
2814 |
if self.success is not None:
|
| 353 |
ashish |
2815 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2816 |
self.success.write(oprot)
|
|
|
2817 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2818 |
if self.se is not None:
|
| 349 |
ashish |
2819 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
2820 |
self.se.write(oprot)
|
|
|
2821 |
oprot.writeFieldEnd()
|
|
|
2822 |
oprot.writeFieldStop()
|
|
|
2823 |
oprot.writeStructEnd()
|
|
|
2824 |
|
| 3431 |
rajveer |
2825 |
def validate(self):
|
|
|
2826 |
return
|
|
|
2827 |
|
|
|
2828 |
|
| 349 |
ashish |
2829 |
def __repr__(self):
|
|
|
2830 |
L = ['%s=%r' % (key, value)
|
|
|
2831 |
for key, value in self.__dict__.iteritems()]
|
|
|
2832 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2833 |
|
|
|
2834 |
def __eq__(self, other):
|
|
|
2835 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2836 |
|
|
|
2837 |
def __ne__(self, other):
|
|
|
2838 |
return not (self == other)
|
|
|
2839 |
|
| 494 |
rajveer |
2840 |
class addUser_args:
|
|
|
2841 |
"""
|
|
|
2842 |
Attributes:
|
|
|
2843 |
- username
|
|
|
2844 |
- password
|
|
|
2845 |
- warehouseId
|
|
|
2846 |
"""
|
| 349 |
ashish |
2847 |
|
| 494 |
rajveer |
2848 |
thrift_spec = (
|
|
|
2849 |
None, # 0
|
|
|
2850 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
2851 |
(2, TType.STRING, 'password', None, None, ), # 2
|
|
|
2852 |
(3, TType.I64, 'warehouseId', None, None, ), # 3
|
|
|
2853 |
)
|
|
|
2854 |
|
|
|
2855 |
def __init__(self, username=None, password=None, warehouseId=None,):
|
|
|
2856 |
self.username = username
|
|
|
2857 |
self.password = password
|
|
|
2858 |
self.warehouseId = warehouseId
|
|
|
2859 |
|
|
|
2860 |
def read(self, iprot):
|
|
|
2861 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2862 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2863 |
return
|
|
|
2864 |
iprot.readStructBegin()
|
|
|
2865 |
while True:
|
|
|
2866 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2867 |
if ftype == TType.STOP:
|
|
|
2868 |
break
|
|
|
2869 |
if fid == 1:
|
|
|
2870 |
if ftype == TType.STRING:
|
|
|
2871 |
self.username = iprot.readString();
|
|
|
2872 |
else:
|
|
|
2873 |
iprot.skip(ftype)
|
|
|
2874 |
elif fid == 2:
|
|
|
2875 |
if ftype == TType.STRING:
|
|
|
2876 |
self.password = iprot.readString();
|
|
|
2877 |
else:
|
|
|
2878 |
iprot.skip(ftype)
|
|
|
2879 |
elif fid == 3:
|
|
|
2880 |
if ftype == TType.I64:
|
|
|
2881 |
self.warehouseId = iprot.readI64();
|
|
|
2882 |
else:
|
|
|
2883 |
iprot.skip(ftype)
|
|
|
2884 |
else:
|
|
|
2885 |
iprot.skip(ftype)
|
|
|
2886 |
iprot.readFieldEnd()
|
|
|
2887 |
iprot.readStructEnd()
|
|
|
2888 |
|
|
|
2889 |
def write(self, oprot):
|
|
|
2890 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2891 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2892 |
return
|
|
|
2893 |
oprot.writeStructBegin('addUser_args')
|
| 3431 |
rajveer |
2894 |
if self.username is not None:
|
| 494 |
rajveer |
2895 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
2896 |
oprot.writeString(self.username)
|
|
|
2897 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2898 |
if self.password is not None:
|
| 494 |
rajveer |
2899 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
2900 |
oprot.writeString(self.password)
|
|
|
2901 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2902 |
if self.warehouseId is not None:
|
| 494 |
rajveer |
2903 |
oprot.writeFieldBegin('warehouseId', TType.I64, 3)
|
|
|
2904 |
oprot.writeI64(self.warehouseId)
|
|
|
2905 |
oprot.writeFieldEnd()
|
|
|
2906 |
oprot.writeFieldStop()
|
|
|
2907 |
oprot.writeStructEnd()
|
|
|
2908 |
|
| 3431 |
rajveer |
2909 |
def validate(self):
|
|
|
2910 |
return
|
|
|
2911 |
|
|
|
2912 |
|
| 494 |
rajveer |
2913 |
def __repr__(self):
|
|
|
2914 |
L = ['%s=%r' % (key, value)
|
|
|
2915 |
for key, value in self.__dict__.iteritems()]
|
|
|
2916 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2917 |
|
|
|
2918 |
def __eq__(self, other):
|
|
|
2919 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2920 |
|
|
|
2921 |
def __ne__(self, other):
|
|
|
2922 |
return not (self == other)
|
|
|
2923 |
|
|
|
2924 |
class addUser_result:
|
|
|
2925 |
"""
|
|
|
2926 |
Attributes:
|
|
|
2927 |
- success
|
|
|
2928 |
- se
|
|
|
2929 |
"""
|
|
|
2930 |
|
|
|
2931 |
thrift_spec = (
|
|
|
2932 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
2933 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
2934 |
)
|
|
|
2935 |
|
|
|
2936 |
def __init__(self, success=None, se=None,):
|
|
|
2937 |
self.success = success
|
|
|
2938 |
self.se = se
|
|
|
2939 |
|
|
|
2940 |
def read(self, iprot):
|
|
|
2941 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2942 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2943 |
return
|
|
|
2944 |
iprot.readStructBegin()
|
|
|
2945 |
while True:
|
|
|
2946 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2947 |
if ftype == TType.STOP:
|
|
|
2948 |
break
|
|
|
2949 |
if fid == 0:
|
|
|
2950 |
if ftype == TType.BOOL:
|
|
|
2951 |
self.success = iprot.readBool();
|
|
|
2952 |
else:
|
|
|
2953 |
iprot.skip(ftype)
|
|
|
2954 |
elif fid == 1:
|
|
|
2955 |
if ftype == TType.STRUCT:
|
|
|
2956 |
self.se = HelperServiceException()
|
|
|
2957 |
self.se.read(iprot)
|
|
|
2958 |
else:
|
|
|
2959 |
iprot.skip(ftype)
|
|
|
2960 |
else:
|
|
|
2961 |
iprot.skip(ftype)
|
|
|
2962 |
iprot.readFieldEnd()
|
|
|
2963 |
iprot.readStructEnd()
|
|
|
2964 |
|
|
|
2965 |
def write(self, oprot):
|
|
|
2966 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2967 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2968 |
return
|
|
|
2969 |
oprot.writeStructBegin('addUser_result')
|
| 3431 |
rajveer |
2970 |
if self.success is not None:
|
| 494 |
rajveer |
2971 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
2972 |
oprot.writeBool(self.success)
|
|
|
2973 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2974 |
if self.se is not None:
|
| 494 |
rajveer |
2975 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
2976 |
self.se.write(oprot)
|
|
|
2977 |
oprot.writeFieldEnd()
|
|
|
2978 |
oprot.writeFieldStop()
|
|
|
2979 |
oprot.writeStructEnd()
|
|
|
2980 |
|
| 3431 |
rajveer |
2981 |
def validate(self):
|
|
|
2982 |
return
|
|
|
2983 |
|
|
|
2984 |
|
| 494 |
rajveer |
2985 |
def __repr__(self):
|
|
|
2986 |
L = ['%s=%r' % (key, value)
|
|
|
2987 |
for key, value in self.__dict__.iteritems()]
|
|
|
2988 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2989 |
|
|
|
2990 |
def __eq__(self, other):
|
|
|
2991 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2992 |
|
|
|
2993 |
def __ne__(self, other):
|
|
|
2994 |
return not (self == other)
|
|
|
2995 |
|
|
|
2996 |
class deleteUser_args:
|
|
|
2997 |
"""
|
|
|
2998 |
Attributes:
|
|
|
2999 |
- username
|
|
|
3000 |
"""
|
|
|
3001 |
|
|
|
3002 |
thrift_spec = (
|
|
|
3003 |
None, # 0
|
|
|
3004 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
3005 |
)
|
|
|
3006 |
|
|
|
3007 |
def __init__(self, username=None,):
|
|
|
3008 |
self.username = username
|
|
|
3009 |
|
|
|
3010 |
def read(self, iprot):
|
|
|
3011 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3012 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3013 |
return
|
|
|
3014 |
iprot.readStructBegin()
|
|
|
3015 |
while True:
|
|
|
3016 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3017 |
if ftype == TType.STOP:
|
|
|
3018 |
break
|
|
|
3019 |
if fid == 1:
|
|
|
3020 |
if ftype == TType.STRING:
|
|
|
3021 |
self.username = iprot.readString();
|
|
|
3022 |
else:
|
|
|
3023 |
iprot.skip(ftype)
|
|
|
3024 |
else:
|
|
|
3025 |
iprot.skip(ftype)
|
|
|
3026 |
iprot.readFieldEnd()
|
|
|
3027 |
iprot.readStructEnd()
|
|
|
3028 |
|
|
|
3029 |
def write(self, oprot):
|
|
|
3030 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3031 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3032 |
return
|
|
|
3033 |
oprot.writeStructBegin('deleteUser_args')
|
| 3431 |
rajveer |
3034 |
if self.username is not None:
|
| 494 |
rajveer |
3035 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
3036 |
oprot.writeString(self.username)
|
|
|
3037 |
oprot.writeFieldEnd()
|
|
|
3038 |
oprot.writeFieldStop()
|
|
|
3039 |
oprot.writeStructEnd()
|
|
|
3040 |
|
| 3431 |
rajveer |
3041 |
def validate(self):
|
|
|
3042 |
return
|
|
|
3043 |
|
|
|
3044 |
|
| 494 |
rajveer |
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 |
|
|
|
3056 |
class deleteUser_result:
|
|
|
3057 |
"""
|
|
|
3058 |
Attributes:
|
|
|
3059 |
- success
|
|
|
3060 |
- se
|
|
|
3061 |
"""
|
|
|
3062 |
|
|
|
3063 |
thrift_spec = (
|
|
|
3064 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
3065 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
3066 |
)
|
|
|
3067 |
|
|
|
3068 |
def __init__(self, success=None, se=None,):
|
|
|
3069 |
self.success = success
|
|
|
3070 |
self.se = se
|
|
|
3071 |
|
|
|
3072 |
def read(self, iprot):
|
|
|
3073 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3074 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3075 |
return
|
|
|
3076 |
iprot.readStructBegin()
|
|
|
3077 |
while True:
|
|
|
3078 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3079 |
if ftype == TType.STOP:
|
|
|
3080 |
break
|
|
|
3081 |
if fid == 0:
|
|
|
3082 |
if ftype == TType.BOOL:
|
|
|
3083 |
self.success = iprot.readBool();
|
|
|
3084 |
else:
|
|
|
3085 |
iprot.skip(ftype)
|
|
|
3086 |
elif fid == 1:
|
|
|
3087 |
if ftype == TType.STRUCT:
|
|
|
3088 |
self.se = HelperServiceException()
|
|
|
3089 |
self.se.read(iprot)
|
|
|
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('deleteUser_result')
|
| 3431 |
rajveer |
3102 |
if self.success is not None:
|
| 494 |
rajveer |
3103 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
3104 |
oprot.writeBool(self.success)
|
|
|
3105 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3106 |
if self.se is not None:
|
| 494 |
rajveer |
3107 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
3108 |
self.se.write(oprot)
|
|
|
3109 |
oprot.writeFieldEnd()
|
|
|
3110 |
oprot.writeFieldStop()
|
|
|
3111 |
oprot.writeStructEnd()
|
|
|
3112 |
|
| 3431 |
rajveer |
3113 |
def validate(self):
|
|
|
3114 |
return
|
|
|
3115 |
|
|
|
3116 |
|
| 494 |
rajveer |
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 |
|
| 2447 |
chandransh |
3128 |
class authenticateDashboardUser_args:
|
| 494 |
rajveer |
3129 |
"""
|
|
|
3130 |
Attributes:
|
|
|
3131 |
- username
|
|
|
3132 |
- password
|
|
|
3133 |
"""
|
|
|
3134 |
|
|
|
3135 |
thrift_spec = (
|
|
|
3136 |
None, # 0
|
|
|
3137 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
3138 |
(2, TType.STRING, 'password', None, None, ), # 2
|
|
|
3139 |
)
|
|
|
3140 |
|
|
|
3141 |
def __init__(self, username=None, password=None,):
|
|
|
3142 |
self.username = username
|
|
|
3143 |
self.password = password
|
|
|
3144 |
|
|
|
3145 |
def read(self, iprot):
|
|
|
3146 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3147 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3148 |
return
|
|
|
3149 |
iprot.readStructBegin()
|
|
|
3150 |
while True:
|
|
|
3151 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3152 |
if ftype == TType.STOP:
|
|
|
3153 |
break
|
|
|
3154 |
if fid == 1:
|
|
|
3155 |
if ftype == TType.STRING:
|
|
|
3156 |
self.username = iprot.readString();
|
|
|
3157 |
else:
|
|
|
3158 |
iprot.skip(ftype)
|
|
|
3159 |
elif fid == 2:
|
|
|
3160 |
if ftype == TType.STRING:
|
|
|
3161 |
self.password = iprot.readString();
|
|
|
3162 |
else:
|
|
|
3163 |
iprot.skip(ftype)
|
|
|
3164 |
else:
|
|
|
3165 |
iprot.skip(ftype)
|
|
|
3166 |
iprot.readFieldEnd()
|
|
|
3167 |
iprot.readStructEnd()
|
|
|
3168 |
|
|
|
3169 |
def write(self, oprot):
|
|
|
3170 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3171 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3172 |
return
|
| 2447 |
chandransh |
3173 |
oprot.writeStructBegin('authenticateDashboardUser_args')
|
| 3431 |
rajveer |
3174 |
if self.username is not None:
|
| 494 |
rajveer |
3175 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
3176 |
oprot.writeString(self.username)
|
|
|
3177 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3178 |
if self.password is not None:
|
| 494 |
rajveer |
3179 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
3180 |
oprot.writeString(self.password)
|
|
|
3181 |
oprot.writeFieldEnd()
|
|
|
3182 |
oprot.writeFieldStop()
|
|
|
3183 |
oprot.writeStructEnd()
|
|
|
3184 |
|
| 3431 |
rajveer |
3185 |
def validate(self):
|
|
|
3186 |
return
|
|
|
3187 |
|
|
|
3188 |
|
| 494 |
rajveer |
3189 |
def __repr__(self):
|
|
|
3190 |
L = ['%s=%r' % (key, value)
|
|
|
3191 |
for key, value in self.__dict__.iteritems()]
|
|
|
3192 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3193 |
|
|
|
3194 |
def __eq__(self, other):
|
|
|
3195 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3196 |
|
|
|
3197 |
def __ne__(self, other):
|
|
|
3198 |
return not (self == other)
|
|
|
3199 |
|
| 2447 |
chandransh |
3200 |
class authenticateDashboardUser_result:
|
| 494 |
rajveer |
3201 |
"""
|
|
|
3202 |
Attributes:
|
|
|
3203 |
- success
|
|
|
3204 |
- se
|
|
|
3205 |
"""
|
|
|
3206 |
|
|
|
3207 |
thrift_spec = (
|
| 2447 |
chandransh |
3208 |
(0, TType.STRUCT, 'success', (DashboardUser, DashboardUser.thrift_spec), None, ), # 0
|
| 494 |
rajveer |
3209 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
3210 |
)
|
|
|
3211 |
|
|
|
3212 |
def __init__(self, success=None, se=None,):
|
|
|
3213 |
self.success = success
|
|
|
3214 |
self.se = se
|
|
|
3215 |
|
|
|
3216 |
def read(self, iprot):
|
|
|
3217 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3218 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3219 |
return
|
|
|
3220 |
iprot.readStructBegin()
|
|
|
3221 |
while True:
|
|
|
3222 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3223 |
if ftype == TType.STOP:
|
|
|
3224 |
break
|
|
|
3225 |
if fid == 0:
|
| 2447 |
chandransh |
3226 |
if ftype == TType.STRUCT:
|
|
|
3227 |
self.success = DashboardUser()
|
|
|
3228 |
self.success.read(iprot)
|
| 494 |
rajveer |
3229 |
else:
|
|
|
3230 |
iprot.skip(ftype)
|
|
|
3231 |
elif fid == 1:
|
|
|
3232 |
if ftype == TType.STRUCT:
|
|
|
3233 |
self.se = HelperServiceException()
|
|
|
3234 |
self.se.read(iprot)
|
|
|
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
|
| 2447 |
chandransh |
3246 |
oprot.writeStructBegin('authenticateDashboardUser_result')
|
| 3431 |
rajveer |
3247 |
if self.success is not None:
|
| 2447 |
chandransh |
3248 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
3249 |
self.success.write(oprot)
|
| 494 |
rajveer |
3250 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3251 |
if self.se is not None:
|
| 494 |
rajveer |
3252 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
3253 |
self.se.write(oprot)
|
|
|
3254 |
oprot.writeFieldEnd()
|
|
|
3255 |
oprot.writeFieldStop()
|
|
|
3256 |
oprot.writeStructEnd()
|
|
|
3257 |
|
| 3431 |
rajveer |
3258 |
def validate(self):
|
|
|
3259 |
return
|
|
|
3260 |
|
|
|
3261 |
|
| 494 |
rajveer |
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 updatePassword_args:
|
|
|
3274 |
"""
|
|
|
3275 |
Attributes:
|
|
|
3276 |
- username
|
|
|
3277 |
- oldPassword
|
|
|
3278 |
- newPassword
|
|
|
3279 |
"""
|
|
|
3280 |
|
|
|
3281 |
thrift_spec = (
|
|
|
3282 |
None, # 0
|
|
|
3283 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
3284 |
(2, TType.STRING, 'oldPassword', None, None, ), # 2
|
|
|
3285 |
(3, TType.STRING, 'newPassword', None, None, ), # 3
|
|
|
3286 |
)
|
|
|
3287 |
|
|
|
3288 |
def __init__(self, username=None, oldPassword=None, newPassword=None,):
|
|
|
3289 |
self.username = username
|
|
|
3290 |
self.oldPassword = oldPassword
|
|
|
3291 |
self.newPassword = newPassword
|
|
|
3292 |
|
|
|
3293 |
def read(self, iprot):
|
|
|
3294 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3295 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3296 |
return
|
|
|
3297 |
iprot.readStructBegin()
|
|
|
3298 |
while True:
|
|
|
3299 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3300 |
if ftype == TType.STOP:
|
|
|
3301 |
break
|
|
|
3302 |
if fid == 1:
|
|
|
3303 |
if ftype == TType.STRING:
|
|
|
3304 |
self.username = iprot.readString();
|
|
|
3305 |
else:
|
|
|
3306 |
iprot.skip(ftype)
|
|
|
3307 |
elif fid == 2:
|
|
|
3308 |
if ftype == TType.STRING:
|
|
|
3309 |
self.oldPassword = iprot.readString();
|
|
|
3310 |
else:
|
|
|
3311 |
iprot.skip(ftype)
|
|
|
3312 |
elif fid == 3:
|
|
|
3313 |
if ftype == TType.STRING:
|
|
|
3314 |
self.newPassword = iprot.readString();
|
|
|
3315 |
else:
|
|
|
3316 |
iprot.skip(ftype)
|
|
|
3317 |
else:
|
|
|
3318 |
iprot.skip(ftype)
|
|
|
3319 |
iprot.readFieldEnd()
|
|
|
3320 |
iprot.readStructEnd()
|
|
|
3321 |
|
|
|
3322 |
def write(self, oprot):
|
|
|
3323 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3324 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3325 |
return
|
|
|
3326 |
oprot.writeStructBegin('updatePassword_args')
|
| 3431 |
rajveer |
3327 |
if self.username is not None:
|
| 494 |
rajveer |
3328 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
3329 |
oprot.writeString(self.username)
|
|
|
3330 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3331 |
if self.oldPassword is not None:
|
| 494 |
rajveer |
3332 |
oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
|
|
|
3333 |
oprot.writeString(self.oldPassword)
|
|
|
3334 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3335 |
if self.newPassword is not None:
|
| 494 |
rajveer |
3336 |
oprot.writeFieldBegin('newPassword', TType.STRING, 3)
|
|
|
3337 |
oprot.writeString(self.newPassword)
|
|
|
3338 |
oprot.writeFieldEnd()
|
|
|
3339 |
oprot.writeFieldStop()
|
|
|
3340 |
oprot.writeStructEnd()
|
|
|
3341 |
|
| 3431 |
rajveer |
3342 |
def validate(self):
|
|
|
3343 |
return
|
|
|
3344 |
|
|
|
3345 |
|
| 494 |
rajveer |
3346 |
def __repr__(self):
|
|
|
3347 |
L = ['%s=%r' % (key, value)
|
|
|
3348 |
for key, value in self.__dict__.iteritems()]
|
|
|
3349 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3350 |
|
|
|
3351 |
def __eq__(self, other):
|
|
|
3352 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3353 |
|
|
|
3354 |
def __ne__(self, other):
|
|
|
3355 |
return not (self == other)
|
|
|
3356 |
|
|
|
3357 |
class updatePassword_result:
|
|
|
3358 |
"""
|
|
|
3359 |
Attributes:
|
|
|
3360 |
- success
|
|
|
3361 |
- se
|
|
|
3362 |
"""
|
|
|
3363 |
|
|
|
3364 |
thrift_spec = (
|
|
|
3365 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
3366 |
(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
3367 |
)
|
|
|
3368 |
|
|
|
3369 |
def __init__(self, success=None, se=None,):
|
|
|
3370 |
self.success = success
|
|
|
3371 |
self.se = se
|
|
|
3372 |
|
|
|
3373 |
def read(self, iprot):
|
|
|
3374 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3375 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3376 |
return
|
|
|
3377 |
iprot.readStructBegin()
|
|
|
3378 |
while True:
|
|
|
3379 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3380 |
if ftype == TType.STOP:
|
|
|
3381 |
break
|
|
|
3382 |
if fid == 0:
|
|
|
3383 |
if ftype == TType.BOOL:
|
|
|
3384 |
self.success = iprot.readBool();
|
|
|
3385 |
else:
|
|
|
3386 |
iprot.skip(ftype)
|
|
|
3387 |
elif fid == 1:
|
|
|
3388 |
if ftype == TType.STRUCT:
|
|
|
3389 |
self.se = HelperServiceException()
|
|
|
3390 |
self.se.read(iprot)
|
|
|
3391 |
else:
|
|
|
3392 |
iprot.skip(ftype)
|
|
|
3393 |
else:
|
|
|
3394 |
iprot.skip(ftype)
|
|
|
3395 |
iprot.readFieldEnd()
|
|
|
3396 |
iprot.readStructEnd()
|
|
|
3397 |
|
|
|
3398 |
def write(self, oprot):
|
|
|
3399 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3400 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3401 |
return
|
|
|
3402 |
oprot.writeStructBegin('updatePassword_result')
|
| 3431 |
rajveer |
3403 |
if self.success is not None:
|
| 494 |
rajveer |
3404 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
3405 |
oprot.writeBool(self.success)
|
|
|
3406 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3407 |
if self.se is not None:
|
| 494 |
rajveer |
3408 |
oprot.writeFieldBegin('se', TType.STRUCT, 1)
|
|
|
3409 |
self.se.write(oprot)
|
|
|
3410 |
oprot.writeFieldEnd()
|
|
|
3411 |
oprot.writeFieldStop()
|
|
|
3412 |
oprot.writeStructEnd()
|
|
|
3413 |
|
| 3431 |
rajveer |
3414 |
def validate(self):
|
|
|
3415 |
return
|
|
|
3416 |
|
|
|
3417 |
|
| 494 |
rajveer |
3418 |
def __repr__(self):
|
|
|
3419 |
L = ['%s=%r' % (key, value)
|
|
|
3420 |
for key, value in self.__dict__.iteritems()]
|
|
|
3421 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3422 |
|
|
|
3423 |
def __eq__(self, other):
|
|
|
3424 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3425 |
|
|
|
3426 |
def __ne__(self, other):
|
|
|
3427 |
return not (self == other)
|
|
|
3428 |
|
| 759 |
chandransh |
3429 |
class authenticateLogisticsUser_args:
|
|
|
3430 |
"""
|
|
|
3431 |
Attributes:
|
|
|
3432 |
- username
|
|
|
3433 |
- password
|
|
|
3434 |
"""
|
| 494 |
rajveer |
3435 |
|
| 759 |
chandransh |
3436 |
thrift_spec = (
|
|
|
3437 |
None, # 0
|
|
|
3438 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
3439 |
(2, TType.STRING, 'password', None, None, ), # 2
|
|
|
3440 |
)
|
|
|
3441 |
|
|
|
3442 |
def __init__(self, username=None, password=None,):
|
|
|
3443 |
self.username = username
|
|
|
3444 |
self.password = password
|
|
|
3445 |
|
|
|
3446 |
def read(self, iprot):
|
|
|
3447 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3448 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3449 |
return
|
|
|
3450 |
iprot.readStructBegin()
|
|
|
3451 |
while True:
|
|
|
3452 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3453 |
if ftype == TType.STOP:
|
|
|
3454 |
break
|
|
|
3455 |
if fid == 1:
|
|
|
3456 |
if ftype == TType.STRING:
|
|
|
3457 |
self.username = iprot.readString();
|
|
|
3458 |
else:
|
|
|
3459 |
iprot.skip(ftype)
|
|
|
3460 |
elif fid == 2:
|
|
|
3461 |
if ftype == TType.STRING:
|
|
|
3462 |
self.password = iprot.readString();
|
|
|
3463 |
else:
|
|
|
3464 |
iprot.skip(ftype)
|
|
|
3465 |
else:
|
|
|
3466 |
iprot.skip(ftype)
|
|
|
3467 |
iprot.readFieldEnd()
|
|
|
3468 |
iprot.readStructEnd()
|
|
|
3469 |
|
|
|
3470 |
def write(self, oprot):
|
|
|
3471 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3472 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3473 |
return
|
|
|
3474 |
oprot.writeStructBegin('authenticateLogisticsUser_args')
|
| 3431 |
rajveer |
3475 |
if self.username is not None:
|
| 759 |
chandransh |
3476 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
3477 |
oprot.writeString(self.username)
|
|
|
3478 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3479 |
if self.password is not None:
|
| 759 |
chandransh |
3480 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
3481 |
oprot.writeString(self.password)
|
|
|
3482 |
oprot.writeFieldEnd()
|
|
|
3483 |
oprot.writeFieldStop()
|
|
|
3484 |
oprot.writeStructEnd()
|
|
|
3485 |
|
| 3431 |
rajveer |
3486 |
def validate(self):
|
|
|
3487 |
return
|
|
|
3488 |
|
|
|
3489 |
|
| 759 |
chandransh |
3490 |
def __repr__(self):
|
|
|
3491 |
L = ['%s=%r' % (key, value)
|
|
|
3492 |
for key, value in self.__dict__.iteritems()]
|
|
|
3493 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3494 |
|
|
|
3495 |
def __eq__(self, other):
|
|
|
3496 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3497 |
|
|
|
3498 |
def __ne__(self, other):
|
|
|
3499 |
return not (self == other)
|
|
|
3500 |
|
|
|
3501 |
class authenticateLogisticsUser_result:
|
|
|
3502 |
"""
|
|
|
3503 |
Attributes:
|
|
|
3504 |
- success
|
|
|
3505 |
- hse
|
|
|
3506 |
"""
|
|
|
3507 |
|
|
|
3508 |
thrift_spec = (
|
|
|
3509 |
(0, TType.STRUCT, 'success', (LogisticsUser, LogisticsUser.thrift_spec), None, ), # 0
|
|
|
3510 |
(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
3511 |
)
|
|
|
3512 |
|
|
|
3513 |
def __init__(self, success=None, hse=None,):
|
|
|
3514 |
self.success = success
|
|
|
3515 |
self.hse = hse
|
|
|
3516 |
|
|
|
3517 |
def read(self, iprot):
|
|
|
3518 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3519 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3520 |
return
|
|
|
3521 |
iprot.readStructBegin()
|
|
|
3522 |
while True:
|
|
|
3523 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3524 |
if ftype == TType.STOP:
|
|
|
3525 |
break
|
|
|
3526 |
if fid == 0:
|
|
|
3527 |
if ftype == TType.STRUCT:
|
|
|
3528 |
self.success = LogisticsUser()
|
|
|
3529 |
self.success.read(iprot)
|
|
|
3530 |
else:
|
|
|
3531 |
iprot.skip(ftype)
|
|
|
3532 |
elif fid == 1:
|
|
|
3533 |
if ftype == TType.STRUCT:
|
|
|
3534 |
self.hse = HelperServiceException()
|
|
|
3535 |
self.hse.read(iprot)
|
|
|
3536 |
else:
|
|
|
3537 |
iprot.skip(ftype)
|
|
|
3538 |
else:
|
|
|
3539 |
iprot.skip(ftype)
|
|
|
3540 |
iprot.readFieldEnd()
|
|
|
3541 |
iprot.readStructEnd()
|
|
|
3542 |
|
|
|
3543 |
def write(self, oprot):
|
|
|
3544 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3545 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3546 |
return
|
|
|
3547 |
oprot.writeStructBegin('authenticateLogisticsUser_result')
|
| 3431 |
rajveer |
3548 |
if self.success is not None:
|
| 759 |
chandransh |
3549 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
3550 |
self.success.write(oprot)
|
|
|
3551 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3552 |
if self.hse is not None:
|
| 759 |
chandransh |
3553 |
oprot.writeFieldBegin('hse', TType.STRUCT, 1)
|
|
|
3554 |
self.hse.write(oprot)
|
|
|
3555 |
oprot.writeFieldEnd()
|
|
|
3556 |
oprot.writeFieldStop()
|
|
|
3557 |
oprot.writeStructEnd()
|
|
|
3558 |
|
| 3431 |
rajveer |
3559 |
def validate(self):
|
|
|
3560 |
return
|
|
|
3561 |
|
|
|
3562 |
|
| 759 |
chandransh |
3563 |
def __repr__(self):
|
|
|
3564 |
L = ['%s=%r' % (key, value)
|
|
|
3565 |
for key, value in self.__dict__.iteritems()]
|
|
|
3566 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3567 |
|
|
|
3568 |
def __eq__(self, other):
|
|
|
3569 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3570 |
|
|
|
3571 |
def __ne__(self, other):
|
|
|
3572 |
return not (self == other)
|
|
|
3573 |
|
| 1610 |
ankur.sing |
3574 |
class authenticateStatisticsUser_args:
|
|
|
3575 |
"""
|
|
|
3576 |
Attributes:
|
|
|
3577 |
- username
|
|
|
3578 |
- password
|
|
|
3579 |
"""
|
| 759 |
chandransh |
3580 |
|
| 1610 |
ankur.sing |
3581 |
thrift_spec = (
|
|
|
3582 |
None, # 0
|
|
|
3583 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
3584 |
(2, TType.STRING, 'password', None, None, ), # 2
|
|
|
3585 |
)
|
|
|
3586 |
|
|
|
3587 |
def __init__(self, username=None, password=None,):
|
|
|
3588 |
self.username = username
|
|
|
3589 |
self.password = password
|
|
|
3590 |
|
|
|
3591 |
def read(self, iprot):
|
|
|
3592 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3593 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3594 |
return
|
|
|
3595 |
iprot.readStructBegin()
|
|
|
3596 |
while True:
|
|
|
3597 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3598 |
if ftype == TType.STOP:
|
|
|
3599 |
break
|
|
|
3600 |
if fid == 1:
|
|
|
3601 |
if ftype == TType.STRING:
|
|
|
3602 |
self.username = iprot.readString();
|
|
|
3603 |
else:
|
|
|
3604 |
iprot.skip(ftype)
|
|
|
3605 |
elif fid == 2:
|
|
|
3606 |
if ftype == TType.STRING:
|
|
|
3607 |
self.password = iprot.readString();
|
|
|
3608 |
else:
|
|
|
3609 |
iprot.skip(ftype)
|
|
|
3610 |
else:
|
|
|
3611 |
iprot.skip(ftype)
|
|
|
3612 |
iprot.readFieldEnd()
|
|
|
3613 |
iprot.readStructEnd()
|
|
|
3614 |
|
|
|
3615 |
def write(self, oprot):
|
|
|
3616 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3617 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3618 |
return
|
|
|
3619 |
oprot.writeStructBegin('authenticateStatisticsUser_args')
|
| 3431 |
rajveer |
3620 |
if self.username is not None:
|
| 1610 |
ankur.sing |
3621 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
3622 |
oprot.writeString(self.username)
|
|
|
3623 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3624 |
if self.password is not None:
|
| 1610 |
ankur.sing |
3625 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
3626 |
oprot.writeString(self.password)
|
|
|
3627 |
oprot.writeFieldEnd()
|
|
|
3628 |
oprot.writeFieldStop()
|
|
|
3629 |
oprot.writeStructEnd()
|
|
|
3630 |
|
| 3431 |
rajveer |
3631 |
def validate(self):
|
|
|
3632 |
return
|
|
|
3633 |
|
|
|
3634 |
|
| 1610 |
ankur.sing |
3635 |
def __repr__(self):
|
|
|
3636 |
L = ['%s=%r' % (key, value)
|
|
|
3637 |
for key, value in self.__dict__.iteritems()]
|
|
|
3638 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3639 |
|
|
|
3640 |
def __eq__(self, other):
|
|
|
3641 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3642 |
|
|
|
3643 |
def __ne__(self, other):
|
|
|
3644 |
return not (self == other)
|
|
|
3645 |
|
|
|
3646 |
class authenticateStatisticsUser_result:
|
|
|
3647 |
"""
|
|
|
3648 |
Attributes:
|
|
|
3649 |
- success
|
|
|
3650 |
- hse
|
|
|
3651 |
"""
|
|
|
3652 |
|
|
|
3653 |
thrift_spec = (
|
|
|
3654 |
(0, TType.STRUCT, 'success', (StatisticsUser, StatisticsUser.thrift_spec), None, ), # 0
|
|
|
3655 |
(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
3656 |
)
|
|
|
3657 |
|
|
|
3658 |
def __init__(self, success=None, hse=None,):
|
|
|
3659 |
self.success = success
|
|
|
3660 |
self.hse = hse
|
|
|
3661 |
|
|
|
3662 |
def read(self, iprot):
|
|
|
3663 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3664 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3665 |
return
|
|
|
3666 |
iprot.readStructBegin()
|
|
|
3667 |
while True:
|
|
|
3668 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3669 |
if ftype == TType.STOP:
|
|
|
3670 |
break
|
|
|
3671 |
if fid == 0:
|
|
|
3672 |
if ftype == TType.STRUCT:
|
|
|
3673 |
self.success = StatisticsUser()
|
|
|
3674 |
self.success.read(iprot)
|
|
|
3675 |
else:
|
|
|
3676 |
iprot.skip(ftype)
|
|
|
3677 |
elif fid == 1:
|
|
|
3678 |
if ftype == TType.STRUCT:
|
|
|
3679 |
self.hse = HelperServiceException()
|
|
|
3680 |
self.hse.read(iprot)
|
|
|
3681 |
else:
|
|
|
3682 |
iprot.skip(ftype)
|
|
|
3683 |
else:
|
|
|
3684 |
iprot.skip(ftype)
|
|
|
3685 |
iprot.readFieldEnd()
|
|
|
3686 |
iprot.readStructEnd()
|
|
|
3687 |
|
|
|
3688 |
def write(self, oprot):
|
|
|
3689 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3690 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3691 |
return
|
|
|
3692 |
oprot.writeStructBegin('authenticateStatisticsUser_result')
|
| 3431 |
rajveer |
3693 |
if self.success is not None:
|
| 1610 |
ankur.sing |
3694 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
3695 |
self.success.write(oprot)
|
|
|
3696 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3697 |
if self.hse is not None:
|
| 1610 |
ankur.sing |
3698 |
oprot.writeFieldBegin('hse', TType.STRUCT, 1)
|
|
|
3699 |
self.hse.write(oprot)
|
|
|
3700 |
oprot.writeFieldEnd()
|
|
|
3701 |
oprot.writeFieldStop()
|
|
|
3702 |
oprot.writeStructEnd()
|
|
|
3703 |
|
| 3431 |
rajveer |
3704 |
def validate(self):
|
|
|
3705 |
return
|
|
|
3706 |
|
|
|
3707 |
|
| 1610 |
ankur.sing |
3708 |
def __repr__(self):
|
|
|
3709 |
L = ['%s=%r' % (key, value)
|
|
|
3710 |
for key, value in self.__dict__.iteritems()]
|
|
|
3711 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3712 |
|
|
|
3713 |
def __eq__(self, other):
|
|
|
3714 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3715 |
|
|
|
3716 |
def __ne__(self, other):
|
|
|
3717 |
return not (self == other)
|
|
|
3718 |
|
| 1891 |
ankur.sing |
3719 |
class authenticateReportUser_args:
|
|
|
3720 |
"""
|
|
|
3721 |
Attributes:
|
|
|
3722 |
- username
|
|
|
3723 |
- password
|
|
|
3724 |
"""
|
| 1610 |
ankur.sing |
3725 |
|
| 1891 |
ankur.sing |
3726 |
thrift_spec = (
|
|
|
3727 |
None, # 0
|
|
|
3728 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
3729 |
(2, TType.STRING, 'password', None, None, ), # 2
|
|
|
3730 |
)
|
|
|
3731 |
|
|
|
3732 |
def __init__(self, username=None, password=None,):
|
|
|
3733 |
self.username = username
|
|
|
3734 |
self.password = password
|
|
|
3735 |
|
|
|
3736 |
def read(self, iprot):
|
|
|
3737 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3738 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3739 |
return
|
|
|
3740 |
iprot.readStructBegin()
|
|
|
3741 |
while True:
|
|
|
3742 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3743 |
if ftype == TType.STOP:
|
|
|
3744 |
break
|
|
|
3745 |
if fid == 1:
|
|
|
3746 |
if ftype == TType.STRING:
|
|
|
3747 |
self.username = iprot.readString();
|
|
|
3748 |
else:
|
|
|
3749 |
iprot.skip(ftype)
|
|
|
3750 |
elif fid == 2:
|
|
|
3751 |
if ftype == TType.STRING:
|
|
|
3752 |
self.password = iprot.readString();
|
|
|
3753 |
else:
|
|
|
3754 |
iprot.skip(ftype)
|
|
|
3755 |
else:
|
|
|
3756 |
iprot.skip(ftype)
|
|
|
3757 |
iprot.readFieldEnd()
|
|
|
3758 |
iprot.readStructEnd()
|
|
|
3759 |
|
|
|
3760 |
def write(self, oprot):
|
|
|
3761 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3762 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3763 |
return
|
|
|
3764 |
oprot.writeStructBegin('authenticateReportUser_args')
|
| 3431 |
rajveer |
3765 |
if self.username is not None:
|
| 1891 |
ankur.sing |
3766 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
3767 |
oprot.writeString(self.username)
|
|
|
3768 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3769 |
if self.password is not None:
|
| 1891 |
ankur.sing |
3770 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
3771 |
oprot.writeString(self.password)
|
|
|
3772 |
oprot.writeFieldEnd()
|
|
|
3773 |
oprot.writeFieldStop()
|
|
|
3774 |
oprot.writeStructEnd()
|
|
|
3775 |
|
| 3431 |
rajveer |
3776 |
def validate(self):
|
|
|
3777 |
return
|
|
|
3778 |
|
|
|
3779 |
|
| 1891 |
ankur.sing |
3780 |
def __repr__(self):
|
|
|
3781 |
L = ['%s=%r' % (key, value)
|
|
|
3782 |
for key, value in self.__dict__.iteritems()]
|
|
|
3783 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3784 |
|
|
|
3785 |
def __eq__(self, other):
|
|
|
3786 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3787 |
|
|
|
3788 |
def __ne__(self, other):
|
|
|
3789 |
return not (self == other)
|
|
|
3790 |
|
|
|
3791 |
class authenticateReportUser_result:
|
|
|
3792 |
"""
|
|
|
3793 |
Attributes:
|
|
|
3794 |
- success
|
|
|
3795 |
- hse
|
|
|
3796 |
"""
|
|
|
3797 |
|
|
|
3798 |
thrift_spec = (
|
|
|
3799 |
(0, TType.STRUCT, 'success', (ReportUser, ReportUser.thrift_spec), None, ), # 0
|
|
|
3800 |
(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
3801 |
)
|
|
|
3802 |
|
|
|
3803 |
def __init__(self, success=None, hse=None,):
|
|
|
3804 |
self.success = success
|
|
|
3805 |
self.hse = hse
|
|
|
3806 |
|
|
|
3807 |
def read(self, iprot):
|
|
|
3808 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3809 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3810 |
return
|
|
|
3811 |
iprot.readStructBegin()
|
|
|
3812 |
while True:
|
|
|
3813 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3814 |
if ftype == TType.STOP:
|
|
|
3815 |
break
|
|
|
3816 |
if fid == 0:
|
|
|
3817 |
if ftype == TType.STRUCT:
|
|
|
3818 |
self.success = ReportUser()
|
|
|
3819 |
self.success.read(iprot)
|
|
|
3820 |
else:
|
|
|
3821 |
iprot.skip(ftype)
|
|
|
3822 |
elif fid == 1:
|
|
|
3823 |
if ftype == TType.STRUCT:
|
|
|
3824 |
self.hse = HelperServiceException()
|
|
|
3825 |
self.hse.read(iprot)
|
|
|
3826 |
else:
|
|
|
3827 |
iprot.skip(ftype)
|
|
|
3828 |
else:
|
|
|
3829 |
iprot.skip(ftype)
|
|
|
3830 |
iprot.readFieldEnd()
|
|
|
3831 |
iprot.readStructEnd()
|
|
|
3832 |
|
|
|
3833 |
def write(self, oprot):
|
|
|
3834 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3835 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3836 |
return
|
|
|
3837 |
oprot.writeStructBegin('authenticateReportUser_result')
|
| 3431 |
rajveer |
3838 |
if self.success is not None:
|
| 1891 |
ankur.sing |
3839 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
3840 |
self.success.write(oprot)
|
|
|
3841 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3842 |
if self.hse is not None:
|
| 1891 |
ankur.sing |
3843 |
oprot.writeFieldBegin('hse', TType.STRUCT, 1)
|
|
|
3844 |
self.hse.write(oprot)
|
|
|
3845 |
oprot.writeFieldEnd()
|
|
|
3846 |
oprot.writeFieldStop()
|
|
|
3847 |
oprot.writeStructEnd()
|
|
|
3848 |
|
| 3431 |
rajveer |
3849 |
def validate(self):
|
|
|
3850 |
return
|
|
|
3851 |
|
|
|
3852 |
|
| 1891 |
ankur.sing |
3853 |
def __repr__(self):
|
|
|
3854 |
L = ['%s=%r' % (key, value)
|
|
|
3855 |
for key, value in self.__dict__.iteritems()]
|
|
|
3856 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3857 |
|
|
|
3858 |
def __eq__(self, other):
|
|
|
3859 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3860 |
|
|
|
3861 |
def __ne__(self, other):
|
|
|
3862 |
return not (self == other)
|
|
|
3863 |
|
|
|
3864 |
class getReports_args:
|
|
|
3865 |
"""
|
|
|
3866 |
Attributes:
|
|
|
3867 |
- role
|
|
|
3868 |
"""
|
|
|
3869 |
|
|
|
3870 |
thrift_spec = (
|
|
|
3871 |
None, # 0
|
|
|
3872 |
(1, TType.I64, 'role', None, None, ), # 1
|
|
|
3873 |
)
|
|
|
3874 |
|
|
|
3875 |
def __init__(self, role=None,):
|
|
|
3876 |
self.role = role
|
|
|
3877 |
|
|
|
3878 |
def read(self, iprot):
|
|
|
3879 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3880 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3881 |
return
|
|
|
3882 |
iprot.readStructBegin()
|
|
|
3883 |
while True:
|
|
|
3884 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3885 |
if ftype == TType.STOP:
|
|
|
3886 |
break
|
|
|
3887 |
if fid == 1:
|
|
|
3888 |
if ftype == TType.I64:
|
|
|
3889 |
self.role = iprot.readI64();
|
|
|
3890 |
else:
|
|
|
3891 |
iprot.skip(ftype)
|
|
|
3892 |
else:
|
|
|
3893 |
iprot.skip(ftype)
|
|
|
3894 |
iprot.readFieldEnd()
|
|
|
3895 |
iprot.readStructEnd()
|
|
|
3896 |
|
|
|
3897 |
def write(self, oprot):
|
|
|
3898 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3899 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3900 |
return
|
|
|
3901 |
oprot.writeStructBegin('getReports_args')
|
| 3431 |
rajveer |
3902 |
if self.role is not None:
|
| 1891 |
ankur.sing |
3903 |
oprot.writeFieldBegin('role', TType.I64, 1)
|
|
|
3904 |
oprot.writeI64(self.role)
|
|
|
3905 |
oprot.writeFieldEnd()
|
|
|
3906 |
oprot.writeFieldStop()
|
|
|
3907 |
oprot.writeStructEnd()
|
|
|
3908 |
|
| 3431 |
rajveer |
3909 |
def validate(self):
|
|
|
3910 |
return
|
|
|
3911 |
|
|
|
3912 |
|
| 1891 |
ankur.sing |
3913 |
def __repr__(self):
|
|
|
3914 |
L = ['%s=%r' % (key, value)
|
|
|
3915 |
for key, value in self.__dict__.iteritems()]
|
|
|
3916 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3917 |
|
|
|
3918 |
def __eq__(self, other):
|
|
|
3919 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3920 |
|
|
|
3921 |
def __ne__(self, other):
|
|
|
3922 |
return not (self == other)
|
|
|
3923 |
|
|
|
3924 |
class getReports_result:
|
|
|
3925 |
"""
|
|
|
3926 |
Attributes:
|
|
|
3927 |
- success
|
|
|
3928 |
"""
|
|
|
3929 |
|
|
|
3930 |
thrift_spec = (
|
|
|
3931 |
(0, TType.LIST, 'success', (TType.STRUCT,(Report, Report.thrift_spec)), None, ), # 0
|
|
|
3932 |
)
|
|
|
3933 |
|
|
|
3934 |
def __init__(self, success=None,):
|
|
|
3935 |
self.success = success
|
|
|
3936 |
|
|
|
3937 |
def read(self, iprot):
|
|
|
3938 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3939 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3940 |
return
|
|
|
3941 |
iprot.readStructBegin()
|
|
|
3942 |
while True:
|
|
|
3943 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3944 |
if ftype == TType.STOP:
|
|
|
3945 |
break
|
|
|
3946 |
if fid == 0:
|
|
|
3947 |
if ftype == TType.LIST:
|
|
|
3948 |
self.success = []
|
|
|
3949 |
(_etype33, _size30) = iprot.readListBegin()
|
|
|
3950 |
for _i34 in xrange(_size30):
|
|
|
3951 |
_elem35 = Report()
|
|
|
3952 |
_elem35.read(iprot)
|
|
|
3953 |
self.success.append(_elem35)
|
|
|
3954 |
iprot.readListEnd()
|
|
|
3955 |
else:
|
|
|
3956 |
iprot.skip(ftype)
|
|
|
3957 |
else:
|
|
|
3958 |
iprot.skip(ftype)
|
|
|
3959 |
iprot.readFieldEnd()
|
|
|
3960 |
iprot.readStructEnd()
|
|
|
3961 |
|
|
|
3962 |
def write(self, oprot):
|
|
|
3963 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3964 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3965 |
return
|
|
|
3966 |
oprot.writeStructBegin('getReports_result')
|
| 3431 |
rajveer |
3967 |
if self.success is not None:
|
| 1891 |
ankur.sing |
3968 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
3969 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
3970 |
for iter36 in self.success:
|
|
|
3971 |
iter36.write(oprot)
|
|
|
3972 |
oprot.writeListEnd()
|
|
|
3973 |
oprot.writeFieldEnd()
|
|
|
3974 |
oprot.writeFieldStop()
|
|
|
3975 |
oprot.writeStructEnd()
|
|
|
3976 |
|
| 3431 |
rajveer |
3977 |
def validate(self):
|
|
|
3978 |
return
|
|
|
3979 |
|
|
|
3980 |
|
| 1891 |
ankur.sing |
3981 |
def __repr__(self):
|
|
|
3982 |
L = ['%s=%r' % (key, value)
|
|
|
3983 |
for key, value in self.__dict__.iteritems()]
|
|
|
3984 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3985 |
|
|
|
3986 |
def __eq__(self, other):
|
|
|
3987 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3988 |
|
|
|
3989 |
def __ne__(self, other):
|
|
|
3990 |
return not (self == other)
|
|
|
3991 |
|
| 2025 |
ankur.sing |
3992 |
class authenticateCatalogUser_args:
|
|
|
3993 |
"""
|
|
|
3994 |
Attributes:
|
|
|
3995 |
- username
|
|
|
3996 |
- password
|
| 2358 |
ankur.sing |
3997 |
- role
|
| 2025 |
ankur.sing |
3998 |
"""
|
| 1891 |
ankur.sing |
3999 |
|
| 2025 |
ankur.sing |
4000 |
thrift_spec = (
|
|
|
4001 |
None, # 0
|
|
|
4002 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
4003 |
(2, TType.STRING, 'password', None, None, ), # 2
|
| 2358 |
ankur.sing |
4004 |
(3, TType.I64, 'role', None, None, ), # 3
|
| 2025 |
ankur.sing |
4005 |
)
|
|
|
4006 |
|
| 2358 |
ankur.sing |
4007 |
def __init__(self, username=None, password=None, role=None,):
|
| 2025 |
ankur.sing |
4008 |
self.username = username
|
|
|
4009 |
self.password = password
|
| 2358 |
ankur.sing |
4010 |
self.role = role
|
| 2025 |
ankur.sing |
4011 |
|
|
|
4012 |
def read(self, iprot):
|
|
|
4013 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4014 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4015 |
return
|
|
|
4016 |
iprot.readStructBegin()
|
|
|
4017 |
while True:
|
|
|
4018 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4019 |
if ftype == TType.STOP:
|
|
|
4020 |
break
|
|
|
4021 |
if fid == 1:
|
|
|
4022 |
if ftype == TType.STRING:
|
|
|
4023 |
self.username = iprot.readString();
|
|
|
4024 |
else:
|
|
|
4025 |
iprot.skip(ftype)
|
|
|
4026 |
elif fid == 2:
|
|
|
4027 |
if ftype == TType.STRING:
|
|
|
4028 |
self.password = iprot.readString();
|
|
|
4029 |
else:
|
|
|
4030 |
iprot.skip(ftype)
|
| 2358 |
ankur.sing |
4031 |
elif fid == 3:
|
|
|
4032 |
if ftype == TType.I64:
|
|
|
4033 |
self.role = iprot.readI64();
|
|
|
4034 |
else:
|
|
|
4035 |
iprot.skip(ftype)
|
| 2025 |
ankur.sing |
4036 |
else:
|
|
|
4037 |
iprot.skip(ftype)
|
|
|
4038 |
iprot.readFieldEnd()
|
|
|
4039 |
iprot.readStructEnd()
|
|
|
4040 |
|
|
|
4041 |
def write(self, oprot):
|
|
|
4042 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4043 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4044 |
return
|
|
|
4045 |
oprot.writeStructBegin('authenticateCatalogUser_args')
|
| 3431 |
rajveer |
4046 |
if self.username is not None:
|
| 2025 |
ankur.sing |
4047 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
4048 |
oprot.writeString(self.username)
|
|
|
4049 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
4050 |
if self.password is not None:
|
| 2025 |
ankur.sing |
4051 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
4052 |
oprot.writeString(self.password)
|
|
|
4053 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
4054 |
if self.role is not None:
|
| 2358 |
ankur.sing |
4055 |
oprot.writeFieldBegin('role', TType.I64, 3)
|
|
|
4056 |
oprot.writeI64(self.role)
|
|
|
4057 |
oprot.writeFieldEnd()
|
| 2025 |
ankur.sing |
4058 |
oprot.writeFieldStop()
|
|
|
4059 |
oprot.writeStructEnd()
|
|
|
4060 |
|
| 3431 |
rajveer |
4061 |
def validate(self):
|
|
|
4062 |
return
|
|
|
4063 |
|
|
|
4064 |
|
| 2025 |
ankur.sing |
4065 |
def __repr__(self):
|
|
|
4066 |
L = ['%s=%r' % (key, value)
|
|
|
4067 |
for key, value in self.__dict__.iteritems()]
|
|
|
4068 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4069 |
|
|
|
4070 |
def __eq__(self, other):
|
|
|
4071 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4072 |
|
|
|
4073 |
def __ne__(self, other):
|
|
|
4074 |
return not (self == other)
|
|
|
4075 |
|
|
|
4076 |
class authenticateCatalogUser_result:
|
|
|
4077 |
"""
|
|
|
4078 |
Attributes:
|
|
|
4079 |
- success
|
|
|
4080 |
- hse
|
|
|
4081 |
"""
|
|
|
4082 |
|
|
|
4083 |
thrift_spec = (
|
|
|
4084 |
(0, TType.STRUCT, 'success', (CatalogDashboardUser, CatalogDashboardUser.thrift_spec), None, ), # 0
|
|
|
4085 |
(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
4086 |
)
|
|
|
4087 |
|
|
|
4088 |
def __init__(self, success=None, hse=None,):
|
|
|
4089 |
self.success = success
|
|
|
4090 |
self.hse = hse
|
|
|
4091 |
|
|
|
4092 |
def read(self, iprot):
|
|
|
4093 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4094 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4095 |
return
|
|
|
4096 |
iprot.readStructBegin()
|
|
|
4097 |
while True:
|
|
|
4098 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4099 |
if ftype == TType.STOP:
|
|
|
4100 |
break
|
|
|
4101 |
if fid == 0:
|
|
|
4102 |
if ftype == TType.STRUCT:
|
|
|
4103 |
self.success = CatalogDashboardUser()
|
|
|
4104 |
self.success.read(iprot)
|
|
|
4105 |
else:
|
|
|
4106 |
iprot.skip(ftype)
|
|
|
4107 |
elif fid == 1:
|
|
|
4108 |
if ftype == TType.STRUCT:
|
|
|
4109 |
self.hse = HelperServiceException()
|
|
|
4110 |
self.hse.read(iprot)
|
|
|
4111 |
else:
|
|
|
4112 |
iprot.skip(ftype)
|
|
|
4113 |
else:
|
|
|
4114 |
iprot.skip(ftype)
|
|
|
4115 |
iprot.readFieldEnd()
|
|
|
4116 |
iprot.readStructEnd()
|
|
|
4117 |
|
|
|
4118 |
def write(self, oprot):
|
|
|
4119 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4120 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4121 |
return
|
|
|
4122 |
oprot.writeStructBegin('authenticateCatalogUser_result')
|
| 3431 |
rajveer |
4123 |
if self.success is not None:
|
| 2025 |
ankur.sing |
4124 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
4125 |
self.success.write(oprot)
|
|
|
4126 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
4127 |
if self.hse is not None:
|
| 2025 |
ankur.sing |
4128 |
oprot.writeFieldBegin('hse', TType.STRUCT, 1)
|
|
|
4129 |
self.hse.write(oprot)
|
|
|
4130 |
oprot.writeFieldEnd()
|
|
|
4131 |
oprot.writeFieldStop()
|
|
|
4132 |
oprot.writeStructEnd()
|
|
|
4133 |
|
| 3431 |
rajveer |
4134 |
def validate(self):
|
|
|
4135 |
return
|
|
|
4136 |
|
|
|
4137 |
|
| 2025 |
ankur.sing |
4138 |
def __repr__(self):
|
|
|
4139 |
L = ['%s=%r' % (key, value)
|
|
|
4140 |
for key, value in self.__dict__.iteritems()]
|
|
|
4141 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4142 |
|
|
|
4143 |
def __eq__(self, other):
|
|
|
4144 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4145 |
|
|
|
4146 |
def __ne__(self, other):
|
|
|
4147 |
return not (self == other)
|
| 4544 |
varun.gupt |
4148 |
|
|
|
4149 |
class shareEntities_args:
|
|
|
4150 |
"""
|
|
|
4151 |
Attributes:
|
|
|
4152 |
- entityIds
|
|
|
4153 |
- email
|
|
|
4154 |
"""
|
|
|
4155 |
|
|
|
4156 |
thrift_spec = (
|
|
|
4157 |
None, # 0
|
|
|
4158 |
(1, TType.LIST, 'entityIds', (TType.I64,None), None, ), # 1
|
|
|
4159 |
(2, TType.STRING, 'email', None, None, ), # 2
|
|
|
4160 |
)
|
|
|
4161 |
|
|
|
4162 |
def __init__(self, entityIds=None, email=None,):
|
|
|
4163 |
self.entityIds = entityIds
|
|
|
4164 |
self.email = email
|
|
|
4165 |
|
|
|
4166 |
def read(self, iprot):
|
|
|
4167 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4168 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4169 |
return
|
|
|
4170 |
iprot.readStructBegin()
|
|
|
4171 |
while True:
|
|
|
4172 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4173 |
if ftype == TType.STOP:
|
|
|
4174 |
break
|
|
|
4175 |
if fid == 1:
|
|
|
4176 |
if ftype == TType.LIST:
|
|
|
4177 |
self.entityIds = []
|
|
|
4178 |
(_etype40, _size37) = iprot.readListBegin()
|
|
|
4179 |
for _i41 in xrange(_size37):
|
|
|
4180 |
_elem42 = iprot.readI64();
|
|
|
4181 |
self.entityIds.append(_elem42)
|
|
|
4182 |
iprot.readListEnd()
|
|
|
4183 |
else:
|
|
|
4184 |
iprot.skip(ftype)
|
|
|
4185 |
elif fid == 2:
|
|
|
4186 |
if ftype == TType.STRING:
|
|
|
4187 |
self.email = iprot.readString();
|
|
|
4188 |
else:
|
|
|
4189 |
iprot.skip(ftype)
|
|
|
4190 |
else:
|
|
|
4191 |
iprot.skip(ftype)
|
|
|
4192 |
iprot.readFieldEnd()
|
|
|
4193 |
iprot.readStructEnd()
|
|
|
4194 |
|
|
|
4195 |
def write(self, oprot):
|
|
|
4196 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4197 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4198 |
return
|
|
|
4199 |
oprot.writeStructBegin('shareEntities_args')
|
|
|
4200 |
if self.entityIds is not None:
|
|
|
4201 |
oprot.writeFieldBegin('entityIds', TType.LIST, 1)
|
|
|
4202 |
oprot.writeListBegin(TType.I64, len(self.entityIds))
|
|
|
4203 |
for iter43 in self.entityIds:
|
|
|
4204 |
oprot.writeI64(iter43)
|
|
|
4205 |
oprot.writeListEnd()
|
|
|
4206 |
oprot.writeFieldEnd()
|
|
|
4207 |
if self.email is not None:
|
|
|
4208 |
oprot.writeFieldBegin('email', TType.STRING, 2)
|
|
|
4209 |
oprot.writeString(self.email)
|
|
|
4210 |
oprot.writeFieldEnd()
|
|
|
4211 |
oprot.writeFieldStop()
|
|
|
4212 |
oprot.writeStructEnd()
|
|
|
4213 |
|
|
|
4214 |
def validate(self):
|
|
|
4215 |
return
|
|
|
4216 |
|
|
|
4217 |
|
|
|
4218 |
def __repr__(self):
|
|
|
4219 |
L = ['%s=%r' % (key, value)
|
|
|
4220 |
for key, value in self.__dict__.iteritems()]
|
|
|
4221 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4222 |
|
|
|
4223 |
def __eq__(self, other):
|
|
|
4224 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4225 |
|
|
|
4226 |
def __ne__(self, other):
|
|
|
4227 |
return not (self == other)
|
|
|
4228 |
|
|
|
4229 |
class shareEntities_result:
|
|
|
4230 |
"""
|
|
|
4231 |
Attributes:
|
|
|
4232 |
- hse
|
|
|
4233 |
"""
|
|
|
4234 |
|
|
|
4235 |
thrift_spec = (
|
|
|
4236 |
None, # 0
|
|
|
4237 |
(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
4238 |
)
|
|
|
4239 |
|
|
|
4240 |
def __init__(self, hse=None,):
|
|
|
4241 |
self.hse = hse
|
|
|
4242 |
|
|
|
4243 |
def read(self, iprot):
|
|
|
4244 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4245 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4246 |
return
|
|
|
4247 |
iprot.readStructBegin()
|
|
|
4248 |
while True:
|
|
|
4249 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4250 |
if ftype == TType.STOP:
|
|
|
4251 |
break
|
|
|
4252 |
if fid == 1:
|
|
|
4253 |
if ftype == TType.STRUCT:
|
|
|
4254 |
self.hse = HelperServiceException()
|
|
|
4255 |
self.hse.read(iprot)
|
|
|
4256 |
else:
|
|
|
4257 |
iprot.skip(ftype)
|
|
|
4258 |
else:
|
|
|
4259 |
iprot.skip(ftype)
|
|
|
4260 |
iprot.readFieldEnd()
|
|
|
4261 |
iprot.readStructEnd()
|
|
|
4262 |
|
|
|
4263 |
def write(self, oprot):
|
|
|
4264 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4265 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4266 |
return
|
|
|
4267 |
oprot.writeStructBegin('shareEntities_result')
|
|
|
4268 |
if self.hse is not None:
|
|
|
4269 |
oprot.writeFieldBegin('hse', TType.STRUCT, 1)
|
|
|
4270 |
self.hse.write(oprot)
|
|
|
4271 |
oprot.writeFieldEnd()
|
|
|
4272 |
oprot.writeFieldStop()
|
|
|
4273 |
oprot.writeStructEnd()
|
|
|
4274 |
|
|
|
4275 |
def validate(self):
|
|
|
4276 |
return
|
|
|
4277 |
|
|
|
4278 |
|
|
|
4279 |
def __repr__(self):
|
|
|
4280 |
L = ['%s=%r' % (key, value)
|
|
|
4281 |
for key, value in self.__dict__.iteritems()]
|
|
|
4282 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4283 |
|
|
|
4284 |
def __eq__(self, other):
|
|
|
4285 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4286 |
|
|
|
4287 |
def __ne__(self, other):
|
|
|
4288 |
return not (self == other)
|
| 4691 |
mandeep.dh |
4289 |
|
|
|
4290 |
class getAgents_args:
|
|
|
4291 |
|
|
|
4292 |
thrift_spec = (
|
|
|
4293 |
)
|
|
|
4294 |
|
|
|
4295 |
def read(self, iprot):
|
|
|
4296 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4297 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4298 |
return
|
|
|
4299 |
iprot.readStructBegin()
|
|
|
4300 |
while True:
|
|
|
4301 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4302 |
if ftype == TType.STOP:
|
|
|
4303 |
break
|
|
|
4304 |
else:
|
|
|
4305 |
iprot.skip(ftype)
|
|
|
4306 |
iprot.readFieldEnd()
|
|
|
4307 |
iprot.readStructEnd()
|
|
|
4308 |
|
|
|
4309 |
def write(self, oprot):
|
|
|
4310 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4311 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4312 |
return
|
|
|
4313 |
oprot.writeStructBegin('getAgents_args')
|
|
|
4314 |
oprot.writeFieldStop()
|
|
|
4315 |
oprot.writeStructEnd()
|
|
|
4316 |
|
|
|
4317 |
def validate(self):
|
|
|
4318 |
return
|
|
|
4319 |
|
|
|
4320 |
|
|
|
4321 |
def __repr__(self):
|
|
|
4322 |
L = ['%s=%r' % (key, value)
|
|
|
4323 |
for key, value in self.__dict__.iteritems()]
|
|
|
4324 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4325 |
|
|
|
4326 |
def __eq__(self, other):
|
|
|
4327 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4328 |
|
|
|
4329 |
def __ne__(self, other):
|
|
|
4330 |
return not (self == other)
|
|
|
4331 |
|
|
|
4332 |
class getAgents_result:
|
|
|
4333 |
"""
|
|
|
4334 |
Attributes:
|
|
|
4335 |
- success
|
|
|
4336 |
"""
|
|
|
4337 |
|
|
|
4338 |
thrift_spec = (
|
|
|
4339 |
(0, TType.LIST, 'success', (TType.STRUCT,(Agent, Agent.thrift_spec)), None, ), # 0
|
|
|
4340 |
)
|
|
|
4341 |
|
|
|
4342 |
def __init__(self, success=None,):
|
|
|
4343 |
self.success = success
|
|
|
4344 |
|
|
|
4345 |
def read(self, iprot):
|
|
|
4346 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4347 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4348 |
return
|
|
|
4349 |
iprot.readStructBegin()
|
|
|
4350 |
while True:
|
|
|
4351 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4352 |
if ftype == TType.STOP:
|
|
|
4353 |
break
|
|
|
4354 |
if fid == 0:
|
|
|
4355 |
if ftype == TType.LIST:
|
|
|
4356 |
self.success = []
|
|
|
4357 |
(_etype47, _size44) = iprot.readListBegin()
|
|
|
4358 |
for _i48 in xrange(_size44):
|
|
|
4359 |
_elem49 = Agent()
|
|
|
4360 |
_elem49.read(iprot)
|
|
|
4361 |
self.success.append(_elem49)
|
|
|
4362 |
iprot.readListEnd()
|
|
|
4363 |
else:
|
|
|
4364 |
iprot.skip(ftype)
|
|
|
4365 |
else:
|
|
|
4366 |
iprot.skip(ftype)
|
|
|
4367 |
iprot.readFieldEnd()
|
|
|
4368 |
iprot.readStructEnd()
|
|
|
4369 |
|
|
|
4370 |
def write(self, oprot):
|
|
|
4371 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4372 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4373 |
return
|
|
|
4374 |
oprot.writeStructBegin('getAgents_result')
|
|
|
4375 |
if self.success is not None:
|
|
|
4376 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
4377 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
4378 |
for iter50 in self.success:
|
|
|
4379 |
iter50.write(oprot)
|
|
|
4380 |
oprot.writeListEnd()
|
|
|
4381 |
oprot.writeFieldEnd()
|
|
|
4382 |
oprot.writeFieldStop()
|
|
|
4383 |
oprot.writeStructEnd()
|
|
|
4384 |
|
|
|
4385 |
def validate(self):
|
|
|
4386 |
return
|
|
|
4387 |
|
|
|
4388 |
|
|
|
4389 |
def __repr__(self):
|
|
|
4390 |
L = ['%s=%r' % (key, value)
|
|
|
4391 |
for key, value in self.__dict__.iteritems()]
|
|
|
4392 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4393 |
|
|
|
4394 |
def __eq__(self, other):
|
|
|
4395 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4396 |
|
|
|
4397 |
def __ne__(self, other):
|
|
|
4398 |
return not (self == other)
|
|
|
4399 |
|
|
|
4400 |
class validateLogIn_args:
|
|
|
4401 |
"""
|
|
|
4402 |
Attributes:
|
|
|
4403 |
- emailId
|
|
|
4404 |
- password
|
|
|
4405 |
"""
|
|
|
4406 |
|
|
|
4407 |
thrift_spec = (
|
|
|
4408 |
None, # 0
|
|
|
4409 |
(1, TType.STRING, 'emailId', None, None, ), # 1
|
|
|
4410 |
(2, TType.STRING, 'password', None, None, ), # 2
|
|
|
4411 |
)
|
|
|
4412 |
|
|
|
4413 |
def __init__(self, emailId=None, password=None,):
|
|
|
4414 |
self.emailId = emailId
|
|
|
4415 |
self.password = password
|
|
|
4416 |
|
|
|
4417 |
def read(self, iprot):
|
|
|
4418 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4419 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4420 |
return
|
|
|
4421 |
iprot.readStructBegin()
|
|
|
4422 |
while True:
|
|
|
4423 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4424 |
if ftype == TType.STOP:
|
|
|
4425 |
break
|
|
|
4426 |
if fid == 1:
|
|
|
4427 |
if ftype == TType.STRING:
|
|
|
4428 |
self.emailId = iprot.readString();
|
|
|
4429 |
else:
|
|
|
4430 |
iprot.skip(ftype)
|
|
|
4431 |
elif fid == 2:
|
|
|
4432 |
if ftype == TType.STRING:
|
|
|
4433 |
self.password = iprot.readString();
|
|
|
4434 |
else:
|
|
|
4435 |
iprot.skip(ftype)
|
|
|
4436 |
else:
|
|
|
4437 |
iprot.skip(ftype)
|
|
|
4438 |
iprot.readFieldEnd()
|
|
|
4439 |
iprot.readStructEnd()
|
|
|
4440 |
|
|
|
4441 |
def write(self, oprot):
|
|
|
4442 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4443 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4444 |
return
|
|
|
4445 |
oprot.writeStructBegin('validateLogIn_args')
|
|
|
4446 |
if self.emailId is not None:
|
|
|
4447 |
oprot.writeFieldBegin('emailId', TType.STRING, 1)
|
|
|
4448 |
oprot.writeString(self.emailId)
|
|
|
4449 |
oprot.writeFieldEnd()
|
|
|
4450 |
if self.password is not None:
|
|
|
4451 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
4452 |
oprot.writeString(self.password)
|
|
|
4453 |
oprot.writeFieldEnd()
|
|
|
4454 |
oprot.writeFieldStop()
|
|
|
4455 |
oprot.writeStructEnd()
|
|
|
4456 |
|
|
|
4457 |
def validate(self):
|
|
|
4458 |
return
|
|
|
4459 |
|
|
|
4460 |
|
|
|
4461 |
def __repr__(self):
|
|
|
4462 |
L = ['%s=%r' % (key, value)
|
|
|
4463 |
for key, value in self.__dict__.iteritems()]
|
|
|
4464 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4465 |
|
|
|
4466 |
def __eq__(self, other):
|
|
|
4467 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4468 |
|
|
|
4469 |
def __ne__(self, other):
|
|
|
4470 |
return not (self == other)
|
|
|
4471 |
|
|
|
4472 |
class validateLogIn_result:
|
|
|
4473 |
"""
|
|
|
4474 |
Attributes:
|
|
|
4475 |
- success
|
|
|
4476 |
"""
|
|
|
4477 |
|
|
|
4478 |
thrift_spec = (
|
|
|
4479 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
4480 |
)
|
|
|
4481 |
|
|
|
4482 |
def __init__(self, success=None,):
|
|
|
4483 |
self.success = success
|
|
|
4484 |
|
|
|
4485 |
def read(self, iprot):
|
|
|
4486 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4487 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4488 |
return
|
|
|
4489 |
iprot.readStructBegin()
|
|
|
4490 |
while True:
|
|
|
4491 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4492 |
if ftype == TType.STOP:
|
|
|
4493 |
break
|
|
|
4494 |
if fid == 0:
|
|
|
4495 |
if ftype == TType.BOOL:
|
|
|
4496 |
self.success = iprot.readBool();
|
|
|
4497 |
else:
|
|
|
4498 |
iprot.skip(ftype)
|
|
|
4499 |
else:
|
|
|
4500 |
iprot.skip(ftype)
|
|
|
4501 |
iprot.readFieldEnd()
|
|
|
4502 |
iprot.readStructEnd()
|
|
|
4503 |
|
|
|
4504 |
def write(self, oprot):
|
|
|
4505 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4506 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4507 |
return
|
|
|
4508 |
oprot.writeStructBegin('validateLogIn_result')
|
|
|
4509 |
if self.success is not None:
|
|
|
4510 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
4511 |
oprot.writeBool(self.success)
|
|
|
4512 |
oprot.writeFieldEnd()
|
|
|
4513 |
oprot.writeFieldStop()
|
|
|
4514 |
oprot.writeStructEnd()
|
|
|
4515 |
|
|
|
4516 |
def validate(self):
|
|
|
4517 |
return
|
|
|
4518 |
|
|
|
4519 |
|
|
|
4520 |
def __repr__(self):
|
|
|
4521 |
L = ['%s=%r' % (key, value)
|
|
|
4522 |
for key, value in self.__dict__.iteritems()]
|
|
|
4523 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4524 |
|
|
|
4525 |
def __eq__(self, other):
|
|
|
4526 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4527 |
|
|
|
4528 |
def __ne__(self, other):
|
|
|
4529 |
return not (self == other)
|
|
|
4530 |
|
|
|
4531 |
class updatePasswordForAgent_args:
|
|
|
4532 |
"""
|
|
|
4533 |
Attributes:
|
|
|
4534 |
- agentEmailId
|
|
|
4535 |
- password
|
|
|
4536 |
"""
|
|
|
4537 |
|
|
|
4538 |
thrift_spec = (
|
|
|
4539 |
None, # 0
|
|
|
4540 |
(1, TType.STRING, 'agentEmailId', None, None, ), # 1
|
|
|
4541 |
(2, TType.STRING, 'password', None, None, ), # 2
|
|
|
4542 |
)
|
|
|
4543 |
|
|
|
4544 |
def __init__(self, agentEmailId=None, password=None,):
|
|
|
4545 |
self.agentEmailId = agentEmailId
|
|
|
4546 |
self.password = password
|
|
|
4547 |
|
|
|
4548 |
def read(self, iprot):
|
|
|
4549 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4550 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4551 |
return
|
|
|
4552 |
iprot.readStructBegin()
|
|
|
4553 |
while True:
|
|
|
4554 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4555 |
if ftype == TType.STOP:
|
|
|
4556 |
break
|
|
|
4557 |
if fid == 1:
|
|
|
4558 |
if ftype == TType.STRING:
|
|
|
4559 |
self.agentEmailId = iprot.readString();
|
|
|
4560 |
else:
|
|
|
4561 |
iprot.skip(ftype)
|
|
|
4562 |
elif fid == 2:
|
|
|
4563 |
if ftype == TType.STRING:
|
|
|
4564 |
self.password = iprot.readString();
|
|
|
4565 |
else:
|
|
|
4566 |
iprot.skip(ftype)
|
|
|
4567 |
else:
|
|
|
4568 |
iprot.skip(ftype)
|
|
|
4569 |
iprot.readFieldEnd()
|
|
|
4570 |
iprot.readStructEnd()
|
|
|
4571 |
|
|
|
4572 |
def write(self, oprot):
|
|
|
4573 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4574 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4575 |
return
|
|
|
4576 |
oprot.writeStructBegin('updatePasswordForAgent_args')
|
|
|
4577 |
if self.agentEmailId is not None:
|
|
|
4578 |
oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
|
|
|
4579 |
oprot.writeString(self.agentEmailId)
|
|
|
4580 |
oprot.writeFieldEnd()
|
|
|
4581 |
if self.password is not None:
|
|
|
4582 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
4583 |
oprot.writeString(self.password)
|
|
|
4584 |
oprot.writeFieldEnd()
|
|
|
4585 |
oprot.writeFieldStop()
|
|
|
4586 |
oprot.writeStructEnd()
|
|
|
4587 |
|
|
|
4588 |
def validate(self):
|
|
|
4589 |
return
|
|
|
4590 |
|
|
|
4591 |
|
|
|
4592 |
def __repr__(self):
|
|
|
4593 |
L = ['%s=%r' % (key, value)
|
|
|
4594 |
for key, value in self.__dict__.iteritems()]
|
|
|
4595 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4596 |
|
|
|
4597 |
def __eq__(self, other):
|
|
|
4598 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4599 |
|
|
|
4600 |
def __ne__(self, other):
|
|
|
4601 |
return not (self == other)
|
|
|
4602 |
|
|
|
4603 |
class updatePasswordForAgent_result:
|
|
|
4604 |
|
|
|
4605 |
thrift_spec = (
|
|
|
4606 |
)
|
|
|
4607 |
|
|
|
4608 |
def read(self, iprot):
|
|
|
4609 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4610 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4611 |
return
|
|
|
4612 |
iprot.readStructBegin()
|
|
|
4613 |
while True:
|
|
|
4614 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4615 |
if ftype == TType.STOP:
|
|
|
4616 |
break
|
|
|
4617 |
else:
|
|
|
4618 |
iprot.skip(ftype)
|
|
|
4619 |
iprot.readFieldEnd()
|
|
|
4620 |
iprot.readStructEnd()
|
|
|
4621 |
|
|
|
4622 |
def write(self, oprot):
|
|
|
4623 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4624 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4625 |
return
|
|
|
4626 |
oprot.writeStructBegin('updatePasswordForAgent_result')
|
|
|
4627 |
oprot.writeFieldStop()
|
|
|
4628 |
oprot.writeStructEnd()
|
|
|
4629 |
|
|
|
4630 |
def validate(self):
|
|
|
4631 |
return
|
|
|
4632 |
|
|
|
4633 |
|
|
|
4634 |
def __repr__(self):
|
|
|
4635 |
L = ['%s=%r' % (key, value)
|
|
|
4636 |
for key, value in self.__dict__.iteritems()]
|
|
|
4637 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4638 |
|
|
|
4639 |
def __eq__(self, other):
|
|
|
4640 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4641 |
|
|
|
4642 |
def __ne__(self, other):
|
|
|
4643 |
return not (self == other)
|
|
|
4644 |
|
|
|
4645 |
class getRoleNamesForAgent_args:
|
|
|
4646 |
"""
|
|
|
4647 |
Attributes:
|
|
|
4648 |
- agentEmailId
|
|
|
4649 |
"""
|
|
|
4650 |
|
|
|
4651 |
thrift_spec = (
|
|
|
4652 |
None, # 0
|
|
|
4653 |
(1, TType.STRING, 'agentEmailId', None, None, ), # 1
|
|
|
4654 |
)
|
|
|
4655 |
|
|
|
4656 |
def __init__(self, agentEmailId=None,):
|
|
|
4657 |
self.agentEmailId = agentEmailId
|
|
|
4658 |
|
|
|
4659 |
def read(self, iprot):
|
|
|
4660 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4661 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4662 |
return
|
|
|
4663 |
iprot.readStructBegin()
|
|
|
4664 |
while True:
|
|
|
4665 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4666 |
if ftype == TType.STOP:
|
|
|
4667 |
break
|
|
|
4668 |
if fid == 1:
|
|
|
4669 |
if ftype == TType.STRING:
|
|
|
4670 |
self.agentEmailId = iprot.readString();
|
|
|
4671 |
else:
|
|
|
4672 |
iprot.skip(ftype)
|
|
|
4673 |
else:
|
|
|
4674 |
iprot.skip(ftype)
|
|
|
4675 |
iprot.readFieldEnd()
|
|
|
4676 |
iprot.readStructEnd()
|
|
|
4677 |
|
|
|
4678 |
def write(self, oprot):
|
|
|
4679 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4680 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4681 |
return
|
|
|
4682 |
oprot.writeStructBegin('getRoleNamesForAgent_args')
|
|
|
4683 |
if self.agentEmailId is not None:
|
|
|
4684 |
oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
|
|
|
4685 |
oprot.writeString(self.agentEmailId)
|
|
|
4686 |
oprot.writeFieldEnd()
|
|
|
4687 |
oprot.writeFieldStop()
|
|
|
4688 |
oprot.writeStructEnd()
|
|
|
4689 |
|
|
|
4690 |
def validate(self):
|
|
|
4691 |
return
|
|
|
4692 |
|
|
|
4693 |
|
|
|
4694 |
def __repr__(self):
|
|
|
4695 |
L = ['%s=%r' % (key, value)
|
|
|
4696 |
for key, value in self.__dict__.iteritems()]
|
|
|
4697 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4698 |
|
|
|
4699 |
def __eq__(self, other):
|
|
|
4700 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4701 |
|
|
|
4702 |
def __ne__(self, other):
|
|
|
4703 |
return not (self == other)
|
|
|
4704 |
|
|
|
4705 |
class getRoleNamesForAgent_result:
|
|
|
4706 |
"""
|
|
|
4707 |
Attributes:
|
|
|
4708 |
- success
|
|
|
4709 |
"""
|
|
|
4710 |
|
|
|
4711 |
thrift_spec = (
|
|
|
4712 |
(0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
|
|
|
4713 |
)
|
|
|
4714 |
|
|
|
4715 |
def __init__(self, success=None,):
|
|
|
4716 |
self.success = success
|
|
|
4717 |
|
|
|
4718 |
def read(self, iprot):
|
|
|
4719 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4720 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4721 |
return
|
|
|
4722 |
iprot.readStructBegin()
|
|
|
4723 |
while True:
|
|
|
4724 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4725 |
if ftype == TType.STOP:
|
|
|
4726 |
break
|
|
|
4727 |
if fid == 0:
|
|
|
4728 |
if ftype == TType.LIST:
|
|
|
4729 |
self.success = []
|
|
|
4730 |
(_etype54, _size51) = iprot.readListBegin()
|
|
|
4731 |
for _i55 in xrange(_size51):
|
|
|
4732 |
_elem56 = iprot.readString();
|
|
|
4733 |
self.success.append(_elem56)
|
|
|
4734 |
iprot.readListEnd()
|
|
|
4735 |
else:
|
|
|
4736 |
iprot.skip(ftype)
|
|
|
4737 |
else:
|
|
|
4738 |
iprot.skip(ftype)
|
|
|
4739 |
iprot.readFieldEnd()
|
|
|
4740 |
iprot.readStructEnd()
|
|
|
4741 |
|
|
|
4742 |
def write(self, oprot):
|
|
|
4743 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4744 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4745 |
return
|
|
|
4746 |
oprot.writeStructBegin('getRoleNamesForAgent_result')
|
|
|
4747 |
if self.success is not None:
|
|
|
4748 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
4749 |
oprot.writeListBegin(TType.STRING, len(self.success))
|
|
|
4750 |
for iter57 in self.success:
|
|
|
4751 |
oprot.writeString(iter57)
|
|
|
4752 |
oprot.writeListEnd()
|
|
|
4753 |
oprot.writeFieldEnd()
|
|
|
4754 |
oprot.writeFieldStop()
|
|
|
4755 |
oprot.writeStructEnd()
|
|
|
4756 |
|
|
|
4757 |
def validate(self):
|
|
|
4758 |
return
|
|
|
4759 |
|
|
|
4760 |
|
|
|
4761 |
def __repr__(self):
|
|
|
4762 |
L = ['%s=%r' % (key, value)
|
|
|
4763 |
for key, value in self.__dict__.iteritems()]
|
|
|
4764 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4765 |
|
|
|
4766 |
def __eq__(self, other):
|
|
|
4767 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4768 |
|
|
|
4769 |
def __ne__(self, other):
|
|
|
4770 |
return not (self == other)
|
|
|
4771 |
|
|
|
4772 |
class getPermissionsForRoleName_args:
|
|
|
4773 |
"""
|
|
|
4774 |
Attributes:
|
|
|
4775 |
- roleName
|
|
|
4776 |
"""
|
|
|
4777 |
|
|
|
4778 |
thrift_spec = (
|
|
|
4779 |
None, # 0
|
|
|
4780 |
(1, TType.STRING, 'roleName', None, None, ), # 1
|
|
|
4781 |
)
|
|
|
4782 |
|
|
|
4783 |
def __init__(self, roleName=None,):
|
|
|
4784 |
self.roleName = roleName
|
|
|
4785 |
|
|
|
4786 |
def read(self, iprot):
|
|
|
4787 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4788 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4789 |
return
|
|
|
4790 |
iprot.readStructBegin()
|
|
|
4791 |
while True:
|
|
|
4792 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4793 |
if ftype == TType.STOP:
|
|
|
4794 |
break
|
|
|
4795 |
if fid == 1:
|
|
|
4796 |
if ftype == TType.STRING:
|
|
|
4797 |
self.roleName = iprot.readString();
|
|
|
4798 |
else:
|
|
|
4799 |
iprot.skip(ftype)
|
|
|
4800 |
else:
|
|
|
4801 |
iprot.skip(ftype)
|
|
|
4802 |
iprot.readFieldEnd()
|
|
|
4803 |
iprot.readStructEnd()
|
|
|
4804 |
|
|
|
4805 |
def write(self, oprot):
|
|
|
4806 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4807 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4808 |
return
|
|
|
4809 |
oprot.writeStructBegin('getPermissionsForRoleName_args')
|
|
|
4810 |
if self.roleName is not None:
|
|
|
4811 |
oprot.writeFieldBegin('roleName', TType.STRING, 1)
|
|
|
4812 |
oprot.writeString(self.roleName)
|
|
|
4813 |
oprot.writeFieldEnd()
|
|
|
4814 |
oprot.writeFieldStop()
|
|
|
4815 |
oprot.writeStructEnd()
|
|
|
4816 |
|
|
|
4817 |
def validate(self):
|
|
|
4818 |
return
|
|
|
4819 |
|
|
|
4820 |
|
|
|
4821 |
def __repr__(self):
|
|
|
4822 |
L = ['%s=%r' % (key, value)
|
|
|
4823 |
for key, value in self.__dict__.iteritems()]
|
|
|
4824 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4825 |
|
|
|
4826 |
def __eq__(self, other):
|
|
|
4827 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4828 |
|
|
|
4829 |
def __ne__(self, other):
|
|
|
4830 |
return not (self == other)
|
|
|
4831 |
|
|
|
4832 |
class getPermissionsForRoleName_result:
|
|
|
4833 |
"""
|
|
|
4834 |
Attributes:
|
|
|
4835 |
- success
|
|
|
4836 |
"""
|
|
|
4837 |
|
|
|
4838 |
thrift_spec = (
|
|
|
4839 |
(0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
|
|
|
4840 |
)
|
|
|
4841 |
|
|
|
4842 |
def __init__(self, success=None,):
|
|
|
4843 |
self.success = success
|
|
|
4844 |
|
|
|
4845 |
def read(self, iprot):
|
|
|
4846 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4847 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4848 |
return
|
|
|
4849 |
iprot.readStructBegin()
|
|
|
4850 |
while True:
|
|
|
4851 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4852 |
if ftype == TType.STOP:
|
|
|
4853 |
break
|
|
|
4854 |
if fid == 0:
|
|
|
4855 |
if ftype == TType.LIST:
|
|
|
4856 |
self.success = []
|
|
|
4857 |
(_etype61, _size58) = iprot.readListBegin()
|
|
|
4858 |
for _i62 in xrange(_size58):
|
|
|
4859 |
_elem63 = iprot.readString();
|
|
|
4860 |
self.success.append(_elem63)
|
|
|
4861 |
iprot.readListEnd()
|
|
|
4862 |
else:
|
|
|
4863 |
iprot.skip(ftype)
|
|
|
4864 |
else:
|
|
|
4865 |
iprot.skip(ftype)
|
|
|
4866 |
iprot.readFieldEnd()
|
|
|
4867 |
iprot.readStructEnd()
|
|
|
4868 |
|
|
|
4869 |
def write(self, oprot):
|
|
|
4870 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4871 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4872 |
return
|
|
|
4873 |
oprot.writeStructBegin('getPermissionsForRoleName_result')
|
|
|
4874 |
if self.success is not None:
|
|
|
4875 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
4876 |
oprot.writeListBegin(TType.STRING, len(self.success))
|
|
|
4877 |
for iter64 in self.success:
|
|
|
4878 |
oprot.writeString(iter64)
|
|
|
4879 |
oprot.writeListEnd()
|
|
|
4880 |
oprot.writeFieldEnd()
|
|
|
4881 |
oprot.writeFieldStop()
|
|
|
4882 |
oprot.writeStructEnd()
|
|
|
4883 |
|
|
|
4884 |
def validate(self):
|
|
|
4885 |
return
|
|
|
4886 |
|
|
|
4887 |
|
|
|
4888 |
def __repr__(self):
|
|
|
4889 |
L = ['%s=%r' % (key, value)
|
|
|
4890 |
for key, value in self.__dict__.iteritems()]
|
|
|
4891 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4892 |
|
|
|
4893 |
def __eq__(self, other):
|
|
|
4894 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4895 |
|
|
|
4896 |
def __ne__(self, other):
|
|
|
4897 |
return not (self == other)
|
| 4806 |
varun.gupt |
4898 |
|
|
|
4899 |
class saveQuickLink_args:
|
|
|
4900 |
"""
|
|
|
4901 |
Attributes:
|
|
|
4902 |
- url
|
|
|
4903 |
- text
|
|
|
4904 |
"""
|
|
|
4905 |
|
|
|
4906 |
thrift_spec = (
|
|
|
4907 |
None, # 0
|
|
|
4908 |
(1, TType.STRING, 'url', None, None, ), # 1
|
|
|
4909 |
(2, TType.STRING, 'text', None, None, ), # 2
|
|
|
4910 |
)
|
|
|
4911 |
|
|
|
4912 |
def __init__(self, url=None, text=None,):
|
|
|
4913 |
self.url = url
|
|
|
4914 |
self.text = text
|
|
|
4915 |
|
|
|
4916 |
def read(self, iprot):
|
|
|
4917 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4918 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4919 |
return
|
|
|
4920 |
iprot.readStructBegin()
|
|
|
4921 |
while True:
|
|
|
4922 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4923 |
if ftype == TType.STOP:
|
|
|
4924 |
break
|
|
|
4925 |
if fid == 1:
|
|
|
4926 |
if ftype == TType.STRING:
|
|
|
4927 |
self.url = iprot.readString();
|
|
|
4928 |
else:
|
|
|
4929 |
iprot.skip(ftype)
|
|
|
4930 |
elif fid == 2:
|
|
|
4931 |
if ftype == TType.STRING:
|
|
|
4932 |
self.text = iprot.readString();
|
|
|
4933 |
else:
|
|
|
4934 |
iprot.skip(ftype)
|
|
|
4935 |
else:
|
|
|
4936 |
iprot.skip(ftype)
|
|
|
4937 |
iprot.readFieldEnd()
|
|
|
4938 |
iprot.readStructEnd()
|
|
|
4939 |
|
|
|
4940 |
def write(self, oprot):
|
|
|
4941 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4942 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4943 |
return
|
|
|
4944 |
oprot.writeStructBegin('saveQuickLink_args')
|
|
|
4945 |
if self.url is not None:
|
|
|
4946 |
oprot.writeFieldBegin('url', TType.STRING, 1)
|
|
|
4947 |
oprot.writeString(self.url)
|
|
|
4948 |
oprot.writeFieldEnd()
|
|
|
4949 |
if self.text is not None:
|
|
|
4950 |
oprot.writeFieldBegin('text', TType.STRING, 2)
|
|
|
4951 |
oprot.writeString(self.text)
|
|
|
4952 |
oprot.writeFieldEnd()
|
|
|
4953 |
oprot.writeFieldStop()
|
|
|
4954 |
oprot.writeStructEnd()
|
|
|
4955 |
|
|
|
4956 |
def validate(self):
|
|
|
4957 |
return
|
|
|
4958 |
|
|
|
4959 |
|
|
|
4960 |
def __repr__(self):
|
|
|
4961 |
L = ['%s=%r' % (key, value)
|
|
|
4962 |
for key, value in self.__dict__.iteritems()]
|
|
|
4963 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4964 |
|
|
|
4965 |
def __eq__(self, other):
|
|
|
4966 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4967 |
|
|
|
4968 |
def __ne__(self, other):
|
|
|
4969 |
return not (self == other)
|
|
|
4970 |
|
|
|
4971 |
class saveQuickLink_result:
|
|
|
4972 |
"""
|
|
|
4973 |
Attributes:
|
|
|
4974 |
- hse
|
|
|
4975 |
"""
|
|
|
4976 |
|
|
|
4977 |
thrift_spec = (
|
|
|
4978 |
None, # 0
|
|
|
4979 |
(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
4980 |
)
|
|
|
4981 |
|
|
|
4982 |
def __init__(self, hse=None,):
|
|
|
4983 |
self.hse = hse
|
|
|
4984 |
|
|
|
4985 |
def read(self, iprot):
|
|
|
4986 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4987 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4988 |
return
|
|
|
4989 |
iprot.readStructBegin()
|
|
|
4990 |
while True:
|
|
|
4991 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4992 |
if ftype == TType.STOP:
|
|
|
4993 |
break
|
|
|
4994 |
if fid == 1:
|
|
|
4995 |
if ftype == TType.STRUCT:
|
|
|
4996 |
self.hse = HelperServiceException()
|
|
|
4997 |
self.hse.read(iprot)
|
|
|
4998 |
else:
|
|
|
4999 |
iprot.skip(ftype)
|
|
|
5000 |
else:
|
|
|
5001 |
iprot.skip(ftype)
|
|
|
5002 |
iprot.readFieldEnd()
|
|
|
5003 |
iprot.readStructEnd()
|
|
|
5004 |
|
|
|
5005 |
def write(self, oprot):
|
|
|
5006 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5007 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5008 |
return
|
|
|
5009 |
oprot.writeStructBegin('saveQuickLink_result')
|
|
|
5010 |
if self.hse is not None:
|
|
|
5011 |
oprot.writeFieldBegin('hse', TType.STRUCT, 1)
|
|
|
5012 |
self.hse.write(oprot)
|
|
|
5013 |
oprot.writeFieldEnd()
|
|
|
5014 |
oprot.writeFieldStop()
|
|
|
5015 |
oprot.writeStructEnd()
|
|
|
5016 |
|
|
|
5017 |
def validate(self):
|
|
|
5018 |
return
|
|
|
5019 |
|
|
|
5020 |
|
|
|
5021 |
def __repr__(self):
|
|
|
5022 |
L = ['%s=%r' % (key, value)
|
|
|
5023 |
for key, value in self.__dict__.iteritems()]
|
|
|
5024 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5025 |
|
|
|
5026 |
def __eq__(self, other):
|
|
|
5027 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5028 |
|
|
|
5029 |
def __ne__(self, other):
|
|
|
5030 |
return not (self == other)
|
|
|
5031 |
|
|
|
5032 |
class getQuickLinks_args:
|
|
|
5033 |
|
|
|
5034 |
thrift_spec = (
|
|
|
5035 |
)
|
|
|
5036 |
|
|
|
5037 |
def read(self, iprot):
|
|
|
5038 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5039 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5040 |
return
|
|
|
5041 |
iprot.readStructBegin()
|
|
|
5042 |
while True:
|
|
|
5043 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5044 |
if ftype == TType.STOP:
|
|
|
5045 |
break
|
|
|
5046 |
else:
|
|
|
5047 |
iprot.skip(ftype)
|
|
|
5048 |
iprot.readFieldEnd()
|
|
|
5049 |
iprot.readStructEnd()
|
|
|
5050 |
|
|
|
5051 |
def write(self, oprot):
|
|
|
5052 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5053 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5054 |
return
|
|
|
5055 |
oprot.writeStructBegin('getQuickLinks_args')
|
|
|
5056 |
oprot.writeFieldStop()
|
|
|
5057 |
oprot.writeStructEnd()
|
|
|
5058 |
|
|
|
5059 |
def validate(self):
|
|
|
5060 |
return
|
|
|
5061 |
|
|
|
5062 |
|
|
|
5063 |
def __repr__(self):
|
|
|
5064 |
L = ['%s=%r' % (key, value)
|
|
|
5065 |
for key, value in self.__dict__.iteritems()]
|
|
|
5066 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5067 |
|
|
|
5068 |
def __eq__(self, other):
|
|
|
5069 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5070 |
|
|
|
5071 |
def __ne__(self, other):
|
|
|
5072 |
return not (self == other)
|
|
|
5073 |
|
|
|
5074 |
class getQuickLinks_result:
|
|
|
5075 |
"""
|
|
|
5076 |
Attributes:
|
|
|
5077 |
- success
|
|
|
5078 |
- hse
|
|
|
5079 |
"""
|
|
|
5080 |
|
|
|
5081 |
thrift_spec = (
|
|
|
5082 |
(0, TType.LIST, 'success', (TType.STRUCT,(QuickLink, QuickLink.thrift_spec)), None, ), # 0
|
|
|
5083 |
(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
5084 |
)
|
|
|
5085 |
|
|
|
5086 |
def __init__(self, success=None, hse=None,):
|
|
|
5087 |
self.success = success
|
|
|
5088 |
self.hse = hse
|
|
|
5089 |
|
|
|
5090 |
def read(self, iprot):
|
|
|
5091 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5092 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5093 |
return
|
|
|
5094 |
iprot.readStructBegin()
|
|
|
5095 |
while True:
|
|
|
5096 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5097 |
if ftype == TType.STOP:
|
|
|
5098 |
break
|
|
|
5099 |
if fid == 0:
|
|
|
5100 |
if ftype == TType.LIST:
|
|
|
5101 |
self.success = []
|
|
|
5102 |
(_etype68, _size65) = iprot.readListBegin()
|
|
|
5103 |
for _i69 in xrange(_size65):
|
|
|
5104 |
_elem70 = QuickLink()
|
|
|
5105 |
_elem70.read(iprot)
|
|
|
5106 |
self.success.append(_elem70)
|
|
|
5107 |
iprot.readListEnd()
|
|
|
5108 |
else:
|
|
|
5109 |
iprot.skip(ftype)
|
|
|
5110 |
elif fid == 1:
|
|
|
5111 |
if ftype == TType.STRUCT:
|
|
|
5112 |
self.hse = HelperServiceException()
|
|
|
5113 |
self.hse.read(iprot)
|
|
|
5114 |
else:
|
|
|
5115 |
iprot.skip(ftype)
|
|
|
5116 |
else:
|
|
|
5117 |
iprot.skip(ftype)
|
|
|
5118 |
iprot.readFieldEnd()
|
|
|
5119 |
iprot.readStructEnd()
|
|
|
5120 |
|
|
|
5121 |
def write(self, oprot):
|
|
|
5122 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5123 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5124 |
return
|
|
|
5125 |
oprot.writeStructBegin('getQuickLinks_result')
|
|
|
5126 |
if self.success is not None:
|
|
|
5127 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
5128 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
5129 |
for iter71 in self.success:
|
|
|
5130 |
iter71.write(oprot)
|
|
|
5131 |
oprot.writeListEnd()
|
|
|
5132 |
oprot.writeFieldEnd()
|
|
|
5133 |
if self.hse is not None:
|
|
|
5134 |
oprot.writeFieldBegin('hse', TType.STRUCT, 1)
|
|
|
5135 |
self.hse.write(oprot)
|
|
|
5136 |
oprot.writeFieldEnd()
|
|
|
5137 |
oprot.writeFieldStop()
|
|
|
5138 |
oprot.writeStructEnd()
|
|
|
5139 |
|
|
|
5140 |
def validate(self):
|
|
|
5141 |
return
|
|
|
5142 |
|
|
|
5143 |
|
|
|
5144 |
def __repr__(self):
|
|
|
5145 |
L = ['%s=%r' % (key, value)
|
|
|
5146 |
for key, value in self.__dict__.iteritems()]
|
|
|
5147 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5148 |
|
|
|
5149 |
def __eq__(self, other):
|
|
|
5150 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5151 |
|
|
|
5152 |
def __ne__(self, other):
|
|
|
5153 |
return not (self == other)
|
| 4996 |
varun.gupt |
5154 |
|
|
|
5155 |
class updateQuickLink_args:
|
|
|
5156 |
"""
|
|
|
5157 |
Attributes:
|
|
|
5158 |
- id
|
|
|
5159 |
- url
|
|
|
5160 |
- text
|
|
|
5161 |
"""
|
|
|
5162 |
|
|
|
5163 |
thrift_spec = (
|
|
|
5164 |
None, # 0
|
|
|
5165 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
5166 |
(2, TType.STRING, 'url', None, None, ), # 2
|
|
|
5167 |
(3, TType.STRING, 'text', None, None, ), # 3
|
|
|
5168 |
)
|
|
|
5169 |
|
|
|
5170 |
def __init__(self, id=None, url=None, text=None,):
|
|
|
5171 |
self.id = id
|
|
|
5172 |
self.url = url
|
|
|
5173 |
self.text = text
|
|
|
5174 |
|
|
|
5175 |
def read(self, iprot):
|
|
|
5176 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5177 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5178 |
return
|
|
|
5179 |
iprot.readStructBegin()
|
|
|
5180 |
while True:
|
|
|
5181 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5182 |
if ftype == TType.STOP:
|
|
|
5183 |
break
|
|
|
5184 |
if fid == 1:
|
|
|
5185 |
if ftype == TType.I64:
|
|
|
5186 |
self.id = iprot.readI64();
|
|
|
5187 |
else:
|
|
|
5188 |
iprot.skip(ftype)
|
|
|
5189 |
elif fid == 2:
|
|
|
5190 |
if ftype == TType.STRING:
|
|
|
5191 |
self.url = iprot.readString();
|
|
|
5192 |
else:
|
|
|
5193 |
iprot.skip(ftype)
|
|
|
5194 |
elif fid == 3:
|
|
|
5195 |
if ftype == TType.STRING:
|
|
|
5196 |
self.text = iprot.readString();
|
|
|
5197 |
else:
|
|
|
5198 |
iprot.skip(ftype)
|
|
|
5199 |
else:
|
|
|
5200 |
iprot.skip(ftype)
|
|
|
5201 |
iprot.readFieldEnd()
|
|
|
5202 |
iprot.readStructEnd()
|
|
|
5203 |
|
|
|
5204 |
def write(self, oprot):
|
|
|
5205 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5206 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5207 |
return
|
|
|
5208 |
oprot.writeStructBegin('updateQuickLink_args')
|
|
|
5209 |
if self.id is not None:
|
|
|
5210 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
5211 |
oprot.writeI64(self.id)
|
|
|
5212 |
oprot.writeFieldEnd()
|
|
|
5213 |
if self.url is not None:
|
|
|
5214 |
oprot.writeFieldBegin('url', TType.STRING, 2)
|
|
|
5215 |
oprot.writeString(self.url)
|
|
|
5216 |
oprot.writeFieldEnd()
|
|
|
5217 |
if self.text is not None:
|
|
|
5218 |
oprot.writeFieldBegin('text', TType.STRING, 3)
|
|
|
5219 |
oprot.writeString(self.text)
|
|
|
5220 |
oprot.writeFieldEnd()
|
|
|
5221 |
oprot.writeFieldStop()
|
|
|
5222 |
oprot.writeStructEnd()
|
|
|
5223 |
|
|
|
5224 |
def validate(self):
|
|
|
5225 |
return
|
|
|
5226 |
|
|
|
5227 |
|
|
|
5228 |
def __repr__(self):
|
|
|
5229 |
L = ['%s=%r' % (key, value)
|
|
|
5230 |
for key, value in self.__dict__.iteritems()]
|
|
|
5231 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5232 |
|
|
|
5233 |
def __eq__(self, other):
|
|
|
5234 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5235 |
|
|
|
5236 |
def __ne__(self, other):
|
|
|
5237 |
return not (self == other)
|
|
|
5238 |
|
|
|
5239 |
class updateQuickLink_result:
|
|
|
5240 |
"""
|
|
|
5241 |
Attributes:
|
|
|
5242 |
- hse
|
|
|
5243 |
"""
|
|
|
5244 |
|
|
|
5245 |
thrift_spec = (
|
|
|
5246 |
None, # 0
|
|
|
5247 |
(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
5248 |
)
|
|
|
5249 |
|
|
|
5250 |
def __init__(self, hse=None,):
|
|
|
5251 |
self.hse = hse
|
|
|
5252 |
|
|
|
5253 |
def read(self, iprot):
|
|
|
5254 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5255 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5256 |
return
|
|
|
5257 |
iprot.readStructBegin()
|
|
|
5258 |
while True:
|
|
|
5259 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5260 |
if ftype == TType.STOP:
|
|
|
5261 |
break
|
|
|
5262 |
if fid == 1:
|
|
|
5263 |
if ftype == TType.STRUCT:
|
|
|
5264 |
self.hse = HelperServiceException()
|
|
|
5265 |
self.hse.read(iprot)
|
|
|
5266 |
else:
|
|
|
5267 |
iprot.skip(ftype)
|
|
|
5268 |
else:
|
|
|
5269 |
iprot.skip(ftype)
|
|
|
5270 |
iprot.readFieldEnd()
|
|
|
5271 |
iprot.readStructEnd()
|
|
|
5272 |
|
|
|
5273 |
def write(self, oprot):
|
|
|
5274 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5275 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5276 |
return
|
|
|
5277 |
oprot.writeStructBegin('updateQuickLink_result')
|
|
|
5278 |
if self.hse is not None:
|
|
|
5279 |
oprot.writeFieldBegin('hse', TType.STRUCT, 1)
|
|
|
5280 |
self.hse.write(oprot)
|
|
|
5281 |
oprot.writeFieldEnd()
|
|
|
5282 |
oprot.writeFieldStop()
|
|
|
5283 |
oprot.writeStructEnd()
|
|
|
5284 |
|
|
|
5285 |
def validate(self):
|
|
|
5286 |
return
|
|
|
5287 |
|
|
|
5288 |
|
|
|
5289 |
def __repr__(self):
|
|
|
5290 |
L = ['%s=%r' % (key, value)
|
|
|
5291 |
for key, value in self.__dict__.iteritems()]
|
|
|
5292 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5293 |
|
|
|
5294 |
def __eq__(self, other):
|
|
|
5295 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5296 |
|
|
|
5297 |
def __ne__(self, other):
|
|
|
5298 |
return not (self == other)
|
| 5055 |
varun.gupt |
5299 |
|
|
|
5300 |
class getEmailsForNotificationsSent_args:
|
|
|
5301 |
"""
|
|
|
5302 |
Attributes:
|
|
|
5303 |
- startDatetime
|
|
|
5304 |
- endDatetime
|
|
|
5305 |
"""
|
|
|
5306 |
|
|
|
5307 |
thrift_spec = (
|
|
|
5308 |
None, # 0
|
|
|
5309 |
(1, TType.I64, 'startDatetime', None, None, ), # 1
|
|
|
5310 |
(2, TType.I64, 'endDatetime', None, None, ), # 2
|
|
|
5311 |
)
|
|
|
5312 |
|
|
|
5313 |
def __init__(self, startDatetime=None, endDatetime=None,):
|
|
|
5314 |
self.startDatetime = startDatetime
|
|
|
5315 |
self.endDatetime = endDatetime
|
|
|
5316 |
|
|
|
5317 |
def read(self, iprot):
|
|
|
5318 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5319 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5320 |
return
|
|
|
5321 |
iprot.readStructBegin()
|
|
|
5322 |
while True:
|
|
|
5323 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5324 |
if ftype == TType.STOP:
|
|
|
5325 |
break
|
|
|
5326 |
if fid == 1:
|
|
|
5327 |
if ftype == TType.I64:
|
|
|
5328 |
self.startDatetime = iprot.readI64();
|
|
|
5329 |
else:
|
|
|
5330 |
iprot.skip(ftype)
|
|
|
5331 |
elif fid == 2:
|
|
|
5332 |
if ftype == TType.I64:
|
|
|
5333 |
self.endDatetime = iprot.readI64();
|
|
|
5334 |
else:
|
|
|
5335 |
iprot.skip(ftype)
|
|
|
5336 |
else:
|
|
|
5337 |
iprot.skip(ftype)
|
|
|
5338 |
iprot.readFieldEnd()
|
|
|
5339 |
iprot.readStructEnd()
|
|
|
5340 |
|
|
|
5341 |
def write(self, oprot):
|
|
|
5342 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5343 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5344 |
return
|
|
|
5345 |
oprot.writeStructBegin('getEmailsForNotificationsSent_args')
|
|
|
5346 |
if self.startDatetime is not None:
|
|
|
5347 |
oprot.writeFieldBegin('startDatetime', TType.I64, 1)
|
|
|
5348 |
oprot.writeI64(self.startDatetime)
|
|
|
5349 |
oprot.writeFieldEnd()
|
|
|
5350 |
if self.endDatetime is not None:
|
|
|
5351 |
oprot.writeFieldBegin('endDatetime', TType.I64, 2)
|
|
|
5352 |
oprot.writeI64(self.endDatetime)
|
|
|
5353 |
oprot.writeFieldEnd()
|
|
|
5354 |
oprot.writeFieldStop()
|
|
|
5355 |
oprot.writeStructEnd()
|
|
|
5356 |
|
|
|
5357 |
def validate(self):
|
|
|
5358 |
return
|
|
|
5359 |
|
|
|
5360 |
|
|
|
5361 |
def __repr__(self):
|
|
|
5362 |
L = ['%s=%r' % (key, value)
|
|
|
5363 |
for key, value in self.__dict__.iteritems()]
|
|
|
5364 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5365 |
|
|
|
5366 |
def __eq__(self, other):
|
|
|
5367 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5368 |
|
|
|
5369 |
def __ne__(self, other):
|
|
|
5370 |
return not (self == other)
|
|
|
5371 |
|
|
|
5372 |
class getEmailsForNotificationsSent_result:
|
|
|
5373 |
"""
|
|
|
5374 |
Attributes:
|
|
|
5375 |
- success
|
|
|
5376 |
- hse
|
|
|
5377 |
"""
|
|
|
5378 |
|
|
|
5379 |
thrift_spec = (
|
|
|
5380 |
(0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
|
|
|
5381 |
(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
|
|
|
5382 |
)
|
|
|
5383 |
|
|
|
5384 |
def __init__(self, success=None, hse=None,):
|
|
|
5385 |
self.success = success
|
|
|
5386 |
self.hse = hse
|
|
|
5387 |
|
|
|
5388 |
def read(self, iprot):
|
|
|
5389 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5390 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5391 |
return
|
|
|
5392 |
iprot.readStructBegin()
|
|
|
5393 |
while True:
|
|
|
5394 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5395 |
if ftype == TType.STOP:
|
|
|
5396 |
break
|
|
|
5397 |
if fid == 0:
|
|
|
5398 |
if ftype == TType.LIST:
|
|
|
5399 |
self.success = []
|
|
|
5400 |
(_etype75, _size72) = iprot.readListBegin()
|
|
|
5401 |
for _i76 in xrange(_size72):
|
|
|
5402 |
_elem77 = iprot.readString();
|
|
|
5403 |
self.success.append(_elem77)
|
|
|
5404 |
iprot.readListEnd()
|
|
|
5405 |
else:
|
|
|
5406 |
iprot.skip(ftype)
|
|
|
5407 |
elif fid == 1:
|
|
|
5408 |
if ftype == TType.STRUCT:
|
|
|
5409 |
self.hse = HelperServiceException()
|
|
|
5410 |
self.hse.read(iprot)
|
|
|
5411 |
else:
|
|
|
5412 |
iprot.skip(ftype)
|
|
|
5413 |
else:
|
|
|
5414 |
iprot.skip(ftype)
|
|
|
5415 |
iprot.readFieldEnd()
|
|
|
5416 |
iprot.readStructEnd()
|
|
|
5417 |
|
|
|
5418 |
def write(self, oprot):
|
|
|
5419 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5420 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5421 |
return
|
|
|
5422 |
oprot.writeStructBegin('getEmailsForNotificationsSent_result')
|
|
|
5423 |
if self.success is not None:
|
|
|
5424 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
5425 |
oprot.writeListBegin(TType.STRING, len(self.success))
|
|
|
5426 |
for iter78 in self.success:
|
|
|
5427 |
oprot.writeString(iter78)
|
|
|
5428 |
oprot.writeListEnd()
|
|
|
5429 |
oprot.writeFieldEnd()
|
|
|
5430 |
if self.hse is not None:
|
|
|
5431 |
oprot.writeFieldBegin('hse', TType.STRUCT, 1)
|
|
|
5432 |
self.hse.write(oprot)
|
|
|
5433 |
oprot.writeFieldEnd()
|
|
|
5434 |
oprot.writeFieldStop()
|
|
|
5435 |
oprot.writeStructEnd()
|
|
|
5436 |
|
|
|
5437 |
def validate(self):
|
|
|
5438 |
return
|
|
|
5439 |
|
|
|
5440 |
|
|
|
5441 |
def __repr__(self):
|
|
|
5442 |
L = ['%s=%r' % (key, value)
|
|
|
5443 |
for key, value in self.__dict__.iteritems()]
|
|
|
5444 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5445 |
|
|
|
5446 |
def __eq__(self, other):
|
|
|
5447 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5448 |
|
|
|
5449 |
def __ne__(self, other):
|
|
|
5450 |
return not (self == other)
|