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