| 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.ttypes
|
| 349 |
ashish |
9 |
|
| 3376 |
rajveer |
10 |
|
| 349 |
ashish |
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 |
|
| 2783 |
chandransh |
19 |
class Role:
|
|
|
20 |
WAREHOUSE_EXECUTIVE = 0
|
|
|
21 |
ADMIN = 1
|
| 4358 |
rajveer |
22 |
WAREHOUSE_MONITOR = 2
|
| 8910 |
amar.kumar |
23 |
WAREHOUSE_OBSERVER = 3
|
| 2783 |
chandransh |
24 |
|
|
|
25 |
_VALUES_TO_NAMES = {
|
|
|
26 |
0: "WAREHOUSE_EXECUTIVE",
|
|
|
27 |
1: "ADMIN",
|
| 4358 |
rajveer |
28 |
2: "WAREHOUSE_MONITOR",
|
| 8910 |
amar.kumar |
29 |
3: "WAREHOUSE_OBSERVER",
|
| 2783 |
chandransh |
30 |
}
|
|
|
31 |
|
|
|
32 |
_NAMES_TO_VALUES = {
|
|
|
33 |
"WAREHOUSE_EXECUTIVE": 0,
|
|
|
34 |
"ADMIN": 1,
|
| 4358 |
rajveer |
35 |
"WAREHOUSE_MONITOR": 2,
|
| 8910 |
amar.kumar |
36 |
"WAREHOUSE_OBSERVER": 3,
|
| 2783 |
chandransh |
37 |
}
|
|
|
38 |
|
| 12696 |
amit.gupta |
39 |
class DealerAuthRole:
|
|
|
40 |
ADMIN = 1
|
|
|
41 |
AREA_MANAGER = 2
|
|
|
42 |
ONFEET_EXECUTIVE = 3
|
| 13214 |
kshitij.so |
43 |
CRM = 4
|
| 12696 |
amit.gupta |
44 |
|
|
|
45 |
_VALUES_TO_NAMES = {
|
|
|
46 |
1: "ADMIN",
|
|
|
47 |
2: "AREA_MANAGER",
|
|
|
48 |
3: "ONFEET_EXECUTIVE",
|
| 13214 |
kshitij.so |
49 |
4: "CRM",
|
| 12696 |
amit.gupta |
50 |
}
|
|
|
51 |
|
|
|
52 |
_NAMES_TO_VALUES = {
|
|
|
53 |
"ADMIN": 1,
|
|
|
54 |
"AREA_MANAGER": 2,
|
|
|
55 |
"ONFEET_EXECUTIVE": 3,
|
| 13214 |
kshitij.so |
56 |
"CRM": 4,
|
| 12696 |
amit.gupta |
57 |
}
|
|
|
58 |
|
| 13214 |
kshitij.so |
59 |
class Campaigns:
|
|
|
60 |
GOSF = 1
|
|
|
61 |
CORPORATE_COUPONS = 2
|
|
|
62 |
|
|
|
63 |
_VALUES_TO_NAMES = {
|
|
|
64 |
1: "GOSF",
|
|
|
65 |
2: "CORPORATE_COUPONS",
|
|
|
66 |
}
|
|
|
67 |
|
|
|
68 |
_NAMES_TO_VALUES = {
|
|
|
69 |
"GOSF": 1,
|
|
|
70 |
"CORPORATE_COUPONS": 2,
|
|
|
71 |
}
|
|
|
72 |
|
| 12691 |
manish.sha |
73 |
class SmsType:
|
|
|
74 |
TRANSACTIONAL = 0
|
|
|
75 |
PROMOTIONAL = 1
|
|
|
76 |
SERVICE_ALERT = 2
|
| 3431 |
rajveer |
77 |
|
| 12691 |
manish.sha |
78 |
_VALUES_TO_NAMES = {
|
|
|
79 |
0: "TRANSACTIONAL",
|
|
|
80 |
1: "PROMOTIONAL",
|
|
|
81 |
2: "SERVICE_ALERT",
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
_NAMES_TO_VALUES = {
|
|
|
85 |
"TRANSACTIONAL": 0,
|
|
|
86 |
"PROMOTIONAL": 1,
|
|
|
87 |
"SERVICE_ALERT": 2,
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
class SmsStatus:
|
|
|
91 |
IN_PROCESS = 0
|
|
|
92 |
DELIVERED = 1
|
|
|
93 |
UNDELIVERED = 2
|
|
|
94 |
SERVICE_ERROR = 3
|
|
|
95 |
USER_ABSENT = 4
|
|
|
96 |
MEMORY_FULL = 5
|
|
|
97 |
NDLC_FAIL = 6
|
|
|
98 |
INVALID_NUMBER = 7
|
|
|
99 |
|
|
|
100 |
_VALUES_TO_NAMES = {
|
|
|
101 |
0: "IN_PROCESS",
|
|
|
102 |
1: "DELIVERED",
|
|
|
103 |
2: "UNDELIVERED",
|
|
|
104 |
3: "SERVICE_ERROR",
|
|
|
105 |
4: "USER_ABSENT",
|
|
|
106 |
5: "MEMORY_FULL",
|
|
|
107 |
6: "NDLC_FAIL",
|
|
|
108 |
7: "INVALID_NUMBER",
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
_NAMES_TO_VALUES = {
|
|
|
112 |
"IN_PROCESS": 0,
|
|
|
113 |
"DELIVERED": 1,
|
|
|
114 |
"UNDELIVERED": 2,
|
|
|
115 |
"SERVICE_ERROR": 3,
|
|
|
116 |
"USER_ABSENT": 4,
|
|
|
117 |
"MEMORY_FULL": 5,
|
|
|
118 |
"NDLC_FAIL": 6,
|
|
|
119 |
"INVALID_NUMBER": 7,
|
|
|
120 |
}
|
|
|
121 |
|
|
|
122 |
class SmsDeliveryStatus:
|
|
|
123 |
NOT_SENT = 0
|
|
|
124 |
SENT_TO_OPERATOR = 1
|
|
|
125 |
SUBMITTED_TO_SMSC = 2
|
|
|
126 |
GOT_STATUS_CODE = 3
|
|
|
127 |
|
|
|
128 |
_VALUES_TO_NAMES = {
|
|
|
129 |
0: "NOT_SENT",
|
|
|
130 |
1: "SENT_TO_OPERATOR",
|
|
|
131 |
2: "SUBMITTED_TO_SMSC",
|
|
|
132 |
3: "GOT_STATUS_CODE",
|
|
|
133 |
}
|
|
|
134 |
|
|
|
135 |
_NAMES_TO_VALUES = {
|
|
|
136 |
"NOT_SENT": 0,
|
|
|
137 |
"SENT_TO_OPERATOR": 1,
|
|
|
138 |
"SUBMITTED_TO_SMSC": 2,
|
|
|
139 |
"GOT_STATUS_CODE": 3,
|
|
|
140 |
}
|
|
|
141 |
|
|
|
142 |
|
| 4691 |
mandeep.dh |
143 |
class Agent:
|
| 349 |
ashish |
144 |
"""
|
|
|
145 |
Helper service
|
|
|
146 |
created by @ashish
|
|
|
147 |
*
|
| 3431 |
rajveer |
148 |
|
| 349 |
ashish |
149 |
Attributes:
|
| 4691 |
mandeep.dh |
150 |
- id
|
|
|
151 |
- name
|
|
|
152 |
- emailId
|
|
|
153 |
- managerId
|
|
|
154 |
- password
|
|
|
155 |
- isActive
|
|
|
156 |
"""
|
|
|
157 |
|
|
|
158 |
thrift_spec = (
|
|
|
159 |
None, # 0
|
|
|
160 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
161 |
(2, TType.STRING, 'name', None, None, ), # 2
|
|
|
162 |
(3, TType.STRING, 'emailId', None, None, ), # 3
|
|
|
163 |
(4, TType.I64, 'managerId', None, None, ), # 4
|
|
|
164 |
(5, TType.STRING, 'password', None, None, ), # 5
|
|
|
165 |
(6, TType.BOOL, 'isActive', None, None, ), # 6
|
|
|
166 |
)
|
|
|
167 |
|
|
|
168 |
def __init__(self, id=None, name=None, emailId=None, managerId=None, password=None, isActive=None,):
|
|
|
169 |
self.id = id
|
|
|
170 |
self.name = name
|
|
|
171 |
self.emailId = emailId
|
|
|
172 |
self.managerId = managerId
|
|
|
173 |
self.password = password
|
|
|
174 |
self.isActive = isActive
|
|
|
175 |
|
|
|
176 |
def read(self, iprot):
|
|
|
177 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
178 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
179 |
return
|
|
|
180 |
iprot.readStructBegin()
|
|
|
181 |
while True:
|
|
|
182 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
183 |
if ftype == TType.STOP:
|
|
|
184 |
break
|
|
|
185 |
if fid == 1:
|
|
|
186 |
if ftype == TType.I64:
|
|
|
187 |
self.id = iprot.readI64();
|
|
|
188 |
else:
|
|
|
189 |
iprot.skip(ftype)
|
|
|
190 |
elif fid == 2:
|
|
|
191 |
if ftype == TType.STRING:
|
|
|
192 |
self.name = iprot.readString();
|
|
|
193 |
else:
|
|
|
194 |
iprot.skip(ftype)
|
|
|
195 |
elif fid == 3:
|
|
|
196 |
if ftype == TType.STRING:
|
|
|
197 |
self.emailId = iprot.readString();
|
|
|
198 |
else:
|
|
|
199 |
iprot.skip(ftype)
|
|
|
200 |
elif fid == 4:
|
|
|
201 |
if ftype == TType.I64:
|
|
|
202 |
self.managerId = iprot.readI64();
|
|
|
203 |
else:
|
|
|
204 |
iprot.skip(ftype)
|
|
|
205 |
elif fid == 5:
|
|
|
206 |
if ftype == TType.STRING:
|
|
|
207 |
self.password = iprot.readString();
|
|
|
208 |
else:
|
|
|
209 |
iprot.skip(ftype)
|
|
|
210 |
elif fid == 6:
|
|
|
211 |
if ftype == TType.BOOL:
|
|
|
212 |
self.isActive = iprot.readBool();
|
|
|
213 |
else:
|
|
|
214 |
iprot.skip(ftype)
|
|
|
215 |
else:
|
|
|
216 |
iprot.skip(ftype)
|
|
|
217 |
iprot.readFieldEnd()
|
|
|
218 |
iprot.readStructEnd()
|
|
|
219 |
|
|
|
220 |
def write(self, oprot):
|
|
|
221 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
222 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
223 |
return
|
|
|
224 |
oprot.writeStructBegin('Agent')
|
|
|
225 |
if self.id is not None:
|
|
|
226 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
227 |
oprot.writeI64(self.id)
|
|
|
228 |
oprot.writeFieldEnd()
|
|
|
229 |
if self.name is not None:
|
|
|
230 |
oprot.writeFieldBegin('name', TType.STRING, 2)
|
|
|
231 |
oprot.writeString(self.name)
|
|
|
232 |
oprot.writeFieldEnd()
|
|
|
233 |
if self.emailId is not None:
|
|
|
234 |
oprot.writeFieldBegin('emailId', TType.STRING, 3)
|
|
|
235 |
oprot.writeString(self.emailId)
|
|
|
236 |
oprot.writeFieldEnd()
|
|
|
237 |
if self.managerId is not None:
|
|
|
238 |
oprot.writeFieldBegin('managerId', TType.I64, 4)
|
|
|
239 |
oprot.writeI64(self.managerId)
|
|
|
240 |
oprot.writeFieldEnd()
|
|
|
241 |
if self.password is not None:
|
|
|
242 |
oprot.writeFieldBegin('password', TType.STRING, 5)
|
|
|
243 |
oprot.writeString(self.password)
|
|
|
244 |
oprot.writeFieldEnd()
|
|
|
245 |
if self.isActive is not None:
|
|
|
246 |
oprot.writeFieldBegin('isActive', TType.BOOL, 6)
|
|
|
247 |
oprot.writeBool(self.isActive)
|
|
|
248 |
oprot.writeFieldEnd()
|
|
|
249 |
oprot.writeFieldStop()
|
|
|
250 |
oprot.writeStructEnd()
|
|
|
251 |
|
|
|
252 |
def validate(self):
|
|
|
253 |
return
|
|
|
254 |
|
|
|
255 |
|
|
|
256 |
def __repr__(self):
|
|
|
257 |
L = ['%s=%r' % (key, value)
|
|
|
258 |
for key, value in self.__dict__.iteritems()]
|
|
|
259 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
260 |
|
|
|
261 |
def __eq__(self, other):
|
|
|
262 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
263 |
|
|
|
264 |
def __ne__(self, other):
|
|
|
265 |
return not (self == other)
|
|
|
266 |
|
|
|
267 |
class Mail:
|
|
|
268 |
"""
|
|
|
269 |
Attributes:
|
| 349 |
ashish |
270 |
- to
|
|
|
271 |
- subject
|
|
|
272 |
- data
|
|
|
273 |
- sender
|
| 353 |
ashish |
274 |
- attachments
|
|
|
275 |
- password
|
| 349 |
ashish |
276 |
"""
|
|
|
277 |
|
|
|
278 |
thrift_spec = (
|
|
|
279 |
None, # 0
|
|
|
280 |
(1, TType.LIST, 'to', (TType.STRING,None), None, ), # 1
|
|
|
281 |
(2, TType.STRING, 'subject', None, None, ), # 2
|
|
|
282 |
(3, TType.STRING, 'data', None, None, ), # 3
|
|
|
283 |
(4, TType.STRING, 'sender', None, None, ), # 4
|
| 353 |
ashish |
284 |
(5, TType.LIST, 'attachments', (TType.STRING,None), None, ), # 5
|
|
|
285 |
(6, TType.STRING, 'password', None, None, ), # 6
|
| 349 |
ashish |
286 |
)
|
|
|
287 |
|
| 353 |
ashish |
288 |
def __init__(self, to=None, subject=None, data=None, sender=None, attachments=None, password=None,):
|
| 349 |
ashish |
289 |
self.to = to
|
|
|
290 |
self.subject = subject
|
|
|
291 |
self.data = data
|
|
|
292 |
self.sender = sender
|
| 353 |
ashish |
293 |
self.attachments = attachments
|
|
|
294 |
self.password = password
|
| 349 |
ashish |
295 |
|
|
|
296 |
def read(self, iprot):
|
|
|
297 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
298 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
299 |
return
|
|
|
300 |
iprot.readStructBegin()
|
|
|
301 |
while True:
|
|
|
302 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
303 |
if ftype == TType.STOP:
|
|
|
304 |
break
|
|
|
305 |
if fid == 1:
|
|
|
306 |
if ftype == TType.LIST:
|
|
|
307 |
self.to = []
|
|
|
308 |
(_etype3, _size0) = iprot.readListBegin()
|
|
|
309 |
for _i4 in xrange(_size0):
|
|
|
310 |
_elem5 = iprot.readString();
|
|
|
311 |
self.to.append(_elem5)
|
|
|
312 |
iprot.readListEnd()
|
|
|
313 |
else:
|
|
|
314 |
iprot.skip(ftype)
|
|
|
315 |
elif fid == 2:
|
|
|
316 |
if ftype == TType.STRING:
|
|
|
317 |
self.subject = iprot.readString();
|
|
|
318 |
else:
|
|
|
319 |
iprot.skip(ftype)
|
|
|
320 |
elif fid == 3:
|
|
|
321 |
if ftype == TType.STRING:
|
|
|
322 |
self.data = iprot.readString();
|
|
|
323 |
else:
|
|
|
324 |
iprot.skip(ftype)
|
|
|
325 |
elif fid == 4:
|
|
|
326 |
if ftype == TType.STRING:
|
|
|
327 |
self.sender = iprot.readString();
|
|
|
328 |
else:
|
|
|
329 |
iprot.skip(ftype)
|
| 353 |
ashish |
330 |
elif fid == 5:
|
|
|
331 |
if ftype == TType.LIST:
|
|
|
332 |
self.attachments = []
|
|
|
333 |
(_etype9, _size6) = iprot.readListBegin()
|
|
|
334 |
for _i10 in xrange(_size6):
|
|
|
335 |
_elem11 = iprot.readString();
|
|
|
336 |
self.attachments.append(_elem11)
|
|
|
337 |
iprot.readListEnd()
|
|
|
338 |
else:
|
|
|
339 |
iprot.skip(ftype)
|
|
|
340 |
elif fid == 6:
|
|
|
341 |
if ftype == TType.STRING:
|
|
|
342 |
self.password = iprot.readString();
|
|
|
343 |
else:
|
|
|
344 |
iprot.skip(ftype)
|
| 349 |
ashish |
345 |
else:
|
|
|
346 |
iprot.skip(ftype)
|
|
|
347 |
iprot.readFieldEnd()
|
|
|
348 |
iprot.readStructEnd()
|
|
|
349 |
|
|
|
350 |
def write(self, oprot):
|
|
|
351 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
352 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
353 |
return
|
|
|
354 |
oprot.writeStructBegin('Mail')
|
| 3431 |
rajveer |
355 |
if self.to is not None:
|
| 349 |
ashish |
356 |
oprot.writeFieldBegin('to', TType.LIST, 1)
|
|
|
357 |
oprot.writeListBegin(TType.STRING, len(self.to))
|
| 353 |
ashish |
358 |
for iter12 in self.to:
|
|
|
359 |
oprot.writeString(iter12)
|
| 349 |
ashish |
360 |
oprot.writeListEnd()
|
|
|
361 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
362 |
if self.subject is not None:
|
| 349 |
ashish |
363 |
oprot.writeFieldBegin('subject', TType.STRING, 2)
|
|
|
364 |
oprot.writeString(self.subject)
|
|
|
365 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
366 |
if self.data is not None:
|
| 349 |
ashish |
367 |
oprot.writeFieldBegin('data', TType.STRING, 3)
|
|
|
368 |
oprot.writeString(self.data)
|
|
|
369 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
370 |
if self.sender is not None:
|
| 349 |
ashish |
371 |
oprot.writeFieldBegin('sender', TType.STRING, 4)
|
|
|
372 |
oprot.writeString(self.sender)
|
|
|
373 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
374 |
if self.attachments is not None:
|
| 353 |
ashish |
375 |
oprot.writeFieldBegin('attachments', TType.LIST, 5)
|
|
|
376 |
oprot.writeListBegin(TType.STRING, len(self.attachments))
|
|
|
377 |
for iter13 in self.attachments:
|
|
|
378 |
oprot.writeString(iter13)
|
|
|
379 |
oprot.writeListEnd()
|
|
|
380 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
381 |
if self.password is not None:
|
| 353 |
ashish |
382 |
oprot.writeFieldBegin('password', TType.STRING, 6)
|
|
|
383 |
oprot.writeString(self.password)
|
|
|
384 |
oprot.writeFieldEnd()
|
| 349 |
ashish |
385 |
oprot.writeFieldStop()
|
|
|
386 |
oprot.writeStructEnd()
|
|
|
387 |
|
| 3431 |
rajveer |
388 |
def validate(self):
|
|
|
389 |
return
|
|
|
390 |
|
|
|
391 |
|
| 349 |
ashish |
392 |
def __repr__(self):
|
|
|
393 |
L = ['%s=%r' % (key, value)
|
|
|
394 |
for key, value in self.__dict__.iteritems()]
|
|
|
395 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
396 |
|
|
|
397 |
def __eq__(self, other):
|
|
|
398 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
399 |
|
|
|
400 |
def __ne__(self, other):
|
|
|
401 |
return not (self == other)
|
|
|
402 |
|
|
|
403 |
class TextMessage:
|
|
|
404 |
"""
|
|
|
405 |
Attributes:
|
|
|
406 |
- number
|
|
|
407 |
- message
|
|
|
408 |
- dispatchTime
|
|
|
409 |
- deliveryTime
|
|
|
410 |
"""
|
|
|
411 |
|
|
|
412 |
thrift_spec = (
|
|
|
413 |
None, # 0
|
|
|
414 |
(1, TType.STRING, 'number', None, None, ), # 1
|
|
|
415 |
(2, TType.STRING, 'message', None, None, ), # 2
|
|
|
416 |
(3, TType.I64, 'dispatchTime', None, None, ), # 3
|
|
|
417 |
(4, TType.I64, 'deliveryTime', None, None, ), # 4
|
|
|
418 |
)
|
|
|
419 |
|
|
|
420 |
def __init__(self, number=None, message=None, dispatchTime=None, deliveryTime=None,):
|
|
|
421 |
self.number = number
|
|
|
422 |
self.message = message
|
|
|
423 |
self.dispatchTime = dispatchTime
|
|
|
424 |
self.deliveryTime = deliveryTime
|
|
|
425 |
|
|
|
426 |
def read(self, iprot):
|
|
|
427 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
428 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
429 |
return
|
|
|
430 |
iprot.readStructBegin()
|
|
|
431 |
while True:
|
|
|
432 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
433 |
if ftype == TType.STOP:
|
|
|
434 |
break
|
|
|
435 |
if fid == 1:
|
|
|
436 |
if ftype == TType.STRING:
|
|
|
437 |
self.number = iprot.readString();
|
|
|
438 |
else:
|
|
|
439 |
iprot.skip(ftype)
|
|
|
440 |
elif fid == 2:
|
|
|
441 |
if ftype == TType.STRING:
|
|
|
442 |
self.message = iprot.readString();
|
|
|
443 |
else:
|
|
|
444 |
iprot.skip(ftype)
|
|
|
445 |
elif fid == 3:
|
|
|
446 |
if ftype == TType.I64:
|
|
|
447 |
self.dispatchTime = iprot.readI64();
|
|
|
448 |
else:
|
|
|
449 |
iprot.skip(ftype)
|
|
|
450 |
elif fid == 4:
|
|
|
451 |
if ftype == TType.I64:
|
|
|
452 |
self.deliveryTime = iprot.readI64();
|
|
|
453 |
else:
|
|
|
454 |
iprot.skip(ftype)
|
|
|
455 |
else:
|
|
|
456 |
iprot.skip(ftype)
|
|
|
457 |
iprot.readFieldEnd()
|
|
|
458 |
iprot.readStructEnd()
|
|
|
459 |
|
|
|
460 |
def write(self, oprot):
|
|
|
461 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
462 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
463 |
return
|
|
|
464 |
oprot.writeStructBegin('TextMessage')
|
| 3431 |
rajveer |
465 |
if self.number is not None:
|
| 349 |
ashish |
466 |
oprot.writeFieldBegin('number', TType.STRING, 1)
|
|
|
467 |
oprot.writeString(self.number)
|
|
|
468 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
469 |
if self.message is not None:
|
| 349 |
ashish |
470 |
oprot.writeFieldBegin('message', TType.STRING, 2)
|
|
|
471 |
oprot.writeString(self.message)
|
|
|
472 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
473 |
if self.dispatchTime is not None:
|
| 349 |
ashish |
474 |
oprot.writeFieldBegin('dispatchTime', TType.I64, 3)
|
|
|
475 |
oprot.writeI64(self.dispatchTime)
|
|
|
476 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
477 |
if self.deliveryTime is not None:
|
| 349 |
ashish |
478 |
oprot.writeFieldBegin('deliveryTime', TType.I64, 4)
|
|
|
479 |
oprot.writeI64(self.deliveryTime)
|
|
|
480 |
oprot.writeFieldEnd()
|
|
|
481 |
oprot.writeFieldStop()
|
|
|
482 |
oprot.writeStructEnd()
|
|
|
483 |
|
| 3431 |
rajveer |
484 |
def validate(self):
|
|
|
485 |
return
|
|
|
486 |
|
|
|
487 |
|
| 349 |
ashish |
488 |
def __repr__(self):
|
|
|
489 |
L = ['%s=%r' % (key, value)
|
|
|
490 |
for key, value in self.__dict__.iteritems()]
|
|
|
491 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
492 |
|
|
|
493 |
def __eq__(self, other):
|
|
|
494 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
495 |
|
|
|
496 |
def __ne__(self, other):
|
|
|
497 |
return not (self == other)
|
|
|
498 |
|
|
|
499 |
class HelperServiceException(Exception):
|
|
|
500 |
"""
|
|
|
501 |
Attributes:
|
|
|
502 |
- id
|
|
|
503 |
- message
|
|
|
504 |
"""
|
|
|
505 |
|
|
|
506 |
thrift_spec = (
|
|
|
507 |
None, # 0
|
|
|
508 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
509 |
(2, TType.STRING, 'message', None, None, ), # 2
|
|
|
510 |
)
|
|
|
511 |
|
|
|
512 |
def __init__(self, id=None, message=None,):
|
|
|
513 |
self.id = id
|
|
|
514 |
self.message = message
|
|
|
515 |
|
|
|
516 |
def read(self, iprot):
|
|
|
517 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
518 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
519 |
return
|
|
|
520 |
iprot.readStructBegin()
|
|
|
521 |
while True:
|
|
|
522 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
523 |
if ftype == TType.STOP:
|
|
|
524 |
break
|
|
|
525 |
if fid == 1:
|
|
|
526 |
if ftype == TType.I64:
|
|
|
527 |
self.id = iprot.readI64();
|
|
|
528 |
else:
|
|
|
529 |
iprot.skip(ftype)
|
|
|
530 |
elif fid == 2:
|
|
|
531 |
if ftype == TType.STRING:
|
|
|
532 |
self.message = iprot.readString();
|
|
|
533 |
else:
|
|
|
534 |
iprot.skip(ftype)
|
|
|
535 |
else:
|
|
|
536 |
iprot.skip(ftype)
|
|
|
537 |
iprot.readFieldEnd()
|
|
|
538 |
iprot.readStructEnd()
|
|
|
539 |
|
|
|
540 |
def write(self, oprot):
|
|
|
541 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
542 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
543 |
return
|
|
|
544 |
oprot.writeStructBegin('HelperServiceException')
|
| 3431 |
rajveer |
545 |
if self.id is not None:
|
| 349 |
ashish |
546 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
547 |
oprot.writeI64(self.id)
|
|
|
548 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
549 |
if self.message is not None:
|
| 349 |
ashish |
550 |
oprot.writeFieldBegin('message', TType.STRING, 2)
|
|
|
551 |
oprot.writeString(self.message)
|
|
|
552 |
oprot.writeFieldEnd()
|
|
|
553 |
oprot.writeFieldStop()
|
|
|
554 |
oprot.writeStructEnd()
|
|
|
555 |
|
| 3431 |
rajveer |
556 |
def validate(self):
|
|
|
557 |
return
|
|
|
558 |
|
|
|
559 |
|
| 349 |
ashish |
560 |
def __str__(self):
|
|
|
561 |
return repr(self)
|
|
|
562 |
|
|
|
563 |
def __repr__(self):
|
|
|
564 |
L = ['%s=%r' % (key, value)
|
|
|
565 |
for key, value in self.__dict__.iteritems()]
|
|
|
566 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
567 |
|
|
|
568 |
def __eq__(self, other):
|
|
|
569 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
570 |
|
|
|
571 |
def __ne__(self, other):
|
|
|
572 |
return not (self == other)
|
|
|
573 |
|
|
|
574 |
class Message:
|
|
|
575 |
"""
|
|
|
576 |
Attributes:
|
|
|
577 |
- id
|
|
|
578 |
- message
|
|
|
579 |
"""
|
|
|
580 |
|
|
|
581 |
thrift_spec = (
|
|
|
582 |
None, # 0
|
|
|
583 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
584 |
(2, TType.STRING, 'message', None, None, ), # 2
|
|
|
585 |
)
|
|
|
586 |
|
|
|
587 |
def __init__(self, id=None, message=None,):
|
|
|
588 |
self.id = id
|
|
|
589 |
self.message = message
|
|
|
590 |
|
|
|
591 |
def read(self, iprot):
|
|
|
592 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
593 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
594 |
return
|
|
|
595 |
iprot.readStructBegin()
|
|
|
596 |
while True:
|
|
|
597 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
598 |
if ftype == TType.STOP:
|
|
|
599 |
break
|
|
|
600 |
if fid == 1:
|
|
|
601 |
if ftype == TType.I64:
|
|
|
602 |
self.id = iprot.readI64();
|
|
|
603 |
else:
|
|
|
604 |
iprot.skip(ftype)
|
|
|
605 |
elif fid == 2:
|
|
|
606 |
if ftype == TType.STRING:
|
|
|
607 |
self.message = iprot.readString();
|
|
|
608 |
else:
|
|
|
609 |
iprot.skip(ftype)
|
|
|
610 |
else:
|
|
|
611 |
iprot.skip(ftype)
|
|
|
612 |
iprot.readFieldEnd()
|
|
|
613 |
iprot.readStructEnd()
|
|
|
614 |
|
|
|
615 |
def write(self, oprot):
|
|
|
616 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
617 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
618 |
return
|
|
|
619 |
oprot.writeStructBegin('Message')
|
| 3431 |
rajveer |
620 |
if self.id is not None:
|
| 349 |
ashish |
621 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
622 |
oprot.writeI64(self.id)
|
|
|
623 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
624 |
if self.message is not None:
|
| 349 |
ashish |
625 |
oprot.writeFieldBegin('message', TType.STRING, 2)
|
|
|
626 |
oprot.writeString(self.message)
|
|
|
627 |
oprot.writeFieldEnd()
|
|
|
628 |
oprot.writeFieldStop()
|
|
|
629 |
oprot.writeStructEnd()
|
|
|
630 |
|
| 3431 |
rajveer |
631 |
def validate(self):
|
|
|
632 |
return
|
|
|
633 |
|
|
|
634 |
|
| 349 |
ashish |
635 |
def __repr__(self):
|
|
|
636 |
L = ['%s=%r' % (key, value)
|
|
|
637 |
for key, value in self.__dict__.iteritems()]
|
|
|
638 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
639 |
|
|
|
640 |
def __eq__(self, other):
|
|
|
641 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
642 |
|
|
|
643 |
def __ne__(self, other):
|
|
|
644 |
return not (self == other)
|
|
|
645 |
|
| 12696 |
amit.gupta |
646 |
class Location:
|
|
|
647 |
"""
|
|
|
648 |
Attributes:
|
|
|
649 |
- lattitude
|
|
|
650 |
- longitude
|
|
|
651 |
"""
|
|
|
652 |
|
|
|
653 |
thrift_spec = (
|
|
|
654 |
None, # 0
|
|
|
655 |
(1, TType.DOUBLE, 'lattitude', None, None, ), # 1
|
|
|
656 |
(2, TType.DOUBLE, 'longitude', None, None, ), # 2
|
|
|
657 |
)
|
|
|
658 |
|
|
|
659 |
def __init__(self, lattitude=None, longitude=None,):
|
|
|
660 |
self.lattitude = lattitude
|
|
|
661 |
self.longitude = longitude
|
|
|
662 |
|
|
|
663 |
def read(self, iprot):
|
|
|
664 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
665 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
666 |
return
|
|
|
667 |
iprot.readStructBegin()
|
|
|
668 |
while True:
|
|
|
669 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
670 |
if ftype == TType.STOP:
|
|
|
671 |
break
|
|
|
672 |
if fid == 1:
|
|
|
673 |
if ftype == TType.DOUBLE:
|
|
|
674 |
self.lattitude = iprot.readDouble();
|
|
|
675 |
else:
|
|
|
676 |
iprot.skip(ftype)
|
|
|
677 |
elif fid == 2:
|
|
|
678 |
if ftype == TType.DOUBLE:
|
|
|
679 |
self.longitude = iprot.readDouble();
|
|
|
680 |
else:
|
|
|
681 |
iprot.skip(ftype)
|
|
|
682 |
else:
|
|
|
683 |
iprot.skip(ftype)
|
|
|
684 |
iprot.readFieldEnd()
|
|
|
685 |
iprot.readStructEnd()
|
|
|
686 |
|
|
|
687 |
def write(self, oprot):
|
|
|
688 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
689 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
690 |
return
|
|
|
691 |
oprot.writeStructBegin('Location')
|
|
|
692 |
if self.lattitude is not None:
|
|
|
693 |
oprot.writeFieldBegin('lattitude', TType.DOUBLE, 1)
|
|
|
694 |
oprot.writeDouble(self.lattitude)
|
|
|
695 |
oprot.writeFieldEnd()
|
|
|
696 |
if self.longitude is not None:
|
|
|
697 |
oprot.writeFieldBegin('longitude', TType.DOUBLE, 2)
|
|
|
698 |
oprot.writeDouble(self.longitude)
|
|
|
699 |
oprot.writeFieldEnd()
|
|
|
700 |
oprot.writeFieldStop()
|
|
|
701 |
oprot.writeStructEnd()
|
|
|
702 |
|
|
|
703 |
def validate(self):
|
|
|
704 |
return
|
|
|
705 |
|
|
|
706 |
|
|
|
707 |
def __repr__(self):
|
|
|
708 |
L = ['%s=%r' % (key, value)
|
|
|
709 |
for key, value in self.__dict__.iteritems()]
|
|
|
710 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
711 |
|
|
|
712 |
def __eq__(self, other):
|
|
|
713 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
714 |
|
|
|
715 |
def __ne__(self, other):
|
|
|
716 |
return not (self == other)
|
|
|
717 |
|
|
|
718 |
class DealerAuth:
|
|
|
719 |
"""
|
|
|
720 |
Attributes:
|
|
|
721 |
- username
|
|
|
722 |
- password
|
|
|
723 |
- role
|
|
|
724 |
- createdOn
|
|
|
725 |
- lastLoggedIn
|
|
|
726 |
- lastLocation
|
|
|
727 |
- isActive
|
|
|
728 |
"""
|
|
|
729 |
|
|
|
730 |
thrift_spec = (
|
|
|
731 |
None, # 0
|
|
|
732 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
733 |
(2, TType.STRING, 'password', None, None, ), # 2
|
|
|
734 |
(3, TType.I32, 'role', None, None, ), # 3
|
|
|
735 |
(4, TType.I64, 'createdOn', None, None, ), # 4
|
|
|
736 |
(5, TType.I64, 'lastLoggedIn', None, None, ), # 5
|
|
|
737 |
(6, TType.STRUCT, 'lastLocation', (Location, Location.thrift_spec), None, ), # 6
|
|
|
738 |
(7, TType.BOOL, 'isActive', None, None, ), # 7
|
|
|
739 |
)
|
|
|
740 |
|
|
|
741 |
def __init__(self, username=None, password=None, role=None, createdOn=None, lastLoggedIn=None, lastLocation=None, isActive=None,):
|
|
|
742 |
self.username = username
|
|
|
743 |
self.password = password
|
|
|
744 |
self.role = role
|
|
|
745 |
self.createdOn = createdOn
|
|
|
746 |
self.lastLoggedIn = lastLoggedIn
|
|
|
747 |
self.lastLocation = lastLocation
|
|
|
748 |
self.isActive = isActive
|
|
|
749 |
|
|
|
750 |
def read(self, iprot):
|
|
|
751 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
752 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
753 |
return
|
|
|
754 |
iprot.readStructBegin()
|
|
|
755 |
while True:
|
|
|
756 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
757 |
if ftype == TType.STOP:
|
|
|
758 |
break
|
|
|
759 |
if fid == 1:
|
|
|
760 |
if ftype == TType.STRING:
|
|
|
761 |
self.username = iprot.readString();
|
|
|
762 |
else:
|
|
|
763 |
iprot.skip(ftype)
|
|
|
764 |
elif fid == 2:
|
|
|
765 |
if ftype == TType.STRING:
|
|
|
766 |
self.password = iprot.readString();
|
|
|
767 |
else:
|
|
|
768 |
iprot.skip(ftype)
|
|
|
769 |
elif fid == 3:
|
|
|
770 |
if ftype == TType.I32:
|
|
|
771 |
self.role = iprot.readI32();
|
|
|
772 |
else:
|
|
|
773 |
iprot.skip(ftype)
|
|
|
774 |
elif fid == 4:
|
|
|
775 |
if ftype == TType.I64:
|
|
|
776 |
self.createdOn = iprot.readI64();
|
|
|
777 |
else:
|
|
|
778 |
iprot.skip(ftype)
|
|
|
779 |
elif fid == 5:
|
|
|
780 |
if ftype == TType.I64:
|
|
|
781 |
self.lastLoggedIn = iprot.readI64();
|
|
|
782 |
else:
|
|
|
783 |
iprot.skip(ftype)
|
|
|
784 |
elif fid == 6:
|
|
|
785 |
if ftype == TType.STRUCT:
|
|
|
786 |
self.lastLocation = Location()
|
|
|
787 |
self.lastLocation.read(iprot)
|
|
|
788 |
else:
|
|
|
789 |
iprot.skip(ftype)
|
|
|
790 |
elif fid == 7:
|
|
|
791 |
if ftype == TType.BOOL:
|
|
|
792 |
self.isActive = iprot.readBool();
|
|
|
793 |
else:
|
|
|
794 |
iprot.skip(ftype)
|
|
|
795 |
else:
|
|
|
796 |
iprot.skip(ftype)
|
|
|
797 |
iprot.readFieldEnd()
|
|
|
798 |
iprot.readStructEnd()
|
|
|
799 |
|
|
|
800 |
def write(self, oprot):
|
|
|
801 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
802 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
803 |
return
|
|
|
804 |
oprot.writeStructBegin('DealerAuth')
|
|
|
805 |
if self.username is not None:
|
|
|
806 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
807 |
oprot.writeString(self.username)
|
|
|
808 |
oprot.writeFieldEnd()
|
|
|
809 |
if self.password is not None:
|
|
|
810 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
811 |
oprot.writeString(self.password)
|
|
|
812 |
oprot.writeFieldEnd()
|
|
|
813 |
if self.role is not None:
|
|
|
814 |
oprot.writeFieldBegin('role', TType.I32, 3)
|
|
|
815 |
oprot.writeI32(self.role)
|
|
|
816 |
oprot.writeFieldEnd()
|
|
|
817 |
if self.createdOn is not None:
|
|
|
818 |
oprot.writeFieldBegin('createdOn', TType.I64, 4)
|
|
|
819 |
oprot.writeI64(self.createdOn)
|
|
|
820 |
oprot.writeFieldEnd()
|
|
|
821 |
if self.lastLoggedIn is not None:
|
|
|
822 |
oprot.writeFieldBegin('lastLoggedIn', TType.I64, 5)
|
|
|
823 |
oprot.writeI64(self.lastLoggedIn)
|
|
|
824 |
oprot.writeFieldEnd()
|
|
|
825 |
if self.lastLocation is not None:
|
|
|
826 |
oprot.writeFieldBegin('lastLocation', TType.STRUCT, 6)
|
|
|
827 |
self.lastLocation.write(oprot)
|
|
|
828 |
oprot.writeFieldEnd()
|
|
|
829 |
if self.isActive is not None:
|
|
|
830 |
oprot.writeFieldBegin('isActive', TType.BOOL, 7)
|
|
|
831 |
oprot.writeBool(self.isActive)
|
|
|
832 |
oprot.writeFieldEnd()
|
|
|
833 |
oprot.writeFieldStop()
|
|
|
834 |
oprot.writeStructEnd()
|
|
|
835 |
|
|
|
836 |
def validate(self):
|
|
|
837 |
return
|
|
|
838 |
|
|
|
839 |
|
|
|
840 |
def __repr__(self):
|
|
|
841 |
L = ['%s=%r' % (key, value)
|
|
|
842 |
for key, value in self.__dict__.iteritems()]
|
|
|
843 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
844 |
|
|
|
845 |
def __eq__(self, other):
|
|
|
846 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
847 |
|
|
|
848 |
def __ne__(self, other):
|
|
|
849 |
return not (self == other)
|
|
|
850 |
|
| 494 |
rajveer |
851 |
class DashboardUser:
|
|
|
852 |
"""
|
|
|
853 |
Attributes:
|
|
|
854 |
- username
|
|
|
855 |
- password
|
| 2447 |
chandransh |
856 |
- warehouseId
|
| 2783 |
chandransh |
857 |
- role
|
| 8303 |
amar.kumar |
858 |
- source
|
| 494 |
rajveer |
859 |
"""
|
|
|
860 |
|
|
|
861 |
thrift_spec = (
|
|
|
862 |
None, # 0
|
|
|
863 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
864 |
(2, TType.STRING, 'password', None, None, ), # 2
|
| 2447 |
chandransh |
865 |
(3, TType.I64, 'warehouseId', None, None, ), # 3
|
| 2783 |
chandransh |
866 |
(4, TType.I32, 'role', None, None, ), # 4
|
| 8303 |
amar.kumar |
867 |
(5, TType.I64, 'source', None, None, ), # 5
|
| 494 |
rajveer |
868 |
)
|
|
|
869 |
|
| 8303 |
amar.kumar |
870 |
def __init__(self, username=None, password=None, warehouseId=None, role=None, source=None,):
|
| 494 |
rajveer |
871 |
self.username = username
|
|
|
872 |
self.password = password
|
| 2447 |
chandransh |
873 |
self.warehouseId = warehouseId
|
| 2783 |
chandransh |
874 |
self.role = role
|
| 8303 |
amar.kumar |
875 |
self.source = source
|
| 494 |
rajveer |
876 |
|
|
|
877 |
def read(self, iprot):
|
|
|
878 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
879 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
880 |
return
|
|
|
881 |
iprot.readStructBegin()
|
|
|
882 |
while True:
|
|
|
883 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
884 |
if ftype == TType.STOP:
|
|
|
885 |
break
|
|
|
886 |
if fid == 1:
|
|
|
887 |
if ftype == TType.STRING:
|
|
|
888 |
self.username = iprot.readString();
|
|
|
889 |
else:
|
|
|
890 |
iprot.skip(ftype)
|
|
|
891 |
elif fid == 2:
|
|
|
892 |
if ftype == TType.STRING:
|
|
|
893 |
self.password = iprot.readString();
|
|
|
894 |
else:
|
|
|
895 |
iprot.skip(ftype)
|
|
|
896 |
elif fid == 3:
|
|
|
897 |
if ftype == TType.I64:
|
| 2447 |
chandransh |
898 |
self.warehouseId = iprot.readI64();
|
| 494 |
rajveer |
899 |
else:
|
|
|
900 |
iprot.skip(ftype)
|
|
|
901 |
elif fid == 4:
|
| 2783 |
chandransh |
902 |
if ftype == TType.I32:
|
|
|
903 |
self.role = iprot.readI32();
|
| 494 |
rajveer |
904 |
else:
|
|
|
905 |
iprot.skip(ftype)
|
| 8303 |
amar.kumar |
906 |
elif fid == 5:
|
|
|
907 |
if ftype == TType.I64:
|
|
|
908 |
self.source = iprot.readI64();
|
|
|
909 |
else:
|
|
|
910 |
iprot.skip(ftype)
|
| 494 |
rajveer |
911 |
else:
|
|
|
912 |
iprot.skip(ftype)
|
|
|
913 |
iprot.readFieldEnd()
|
|
|
914 |
iprot.readStructEnd()
|
|
|
915 |
|
|
|
916 |
def write(self, oprot):
|
|
|
917 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
918 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
919 |
return
|
|
|
920 |
oprot.writeStructBegin('DashboardUser')
|
| 3431 |
rajveer |
921 |
if self.username is not None:
|
| 494 |
rajveer |
922 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
923 |
oprot.writeString(self.username)
|
|
|
924 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
925 |
if self.password is not None:
|
| 494 |
rajveer |
926 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
927 |
oprot.writeString(self.password)
|
|
|
928 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
929 |
if self.warehouseId is not None:
|
| 2447 |
chandransh |
930 |
oprot.writeFieldBegin('warehouseId', TType.I64, 3)
|
|
|
931 |
oprot.writeI64(self.warehouseId)
|
| 494 |
rajveer |
932 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
933 |
if self.role is not None:
|
| 2783 |
chandransh |
934 |
oprot.writeFieldBegin('role', TType.I32, 4)
|
|
|
935 |
oprot.writeI32(self.role)
|
| 494 |
rajveer |
936 |
oprot.writeFieldEnd()
|
| 8303 |
amar.kumar |
937 |
if self.source is not None:
|
|
|
938 |
oprot.writeFieldBegin('source', TType.I64, 5)
|
|
|
939 |
oprot.writeI64(self.source)
|
|
|
940 |
oprot.writeFieldEnd()
|
| 494 |
rajveer |
941 |
oprot.writeFieldStop()
|
|
|
942 |
oprot.writeStructEnd()
|
|
|
943 |
|
| 3431 |
rajveer |
944 |
def validate(self):
|
|
|
945 |
return
|
|
|
946 |
|
|
|
947 |
|
| 494 |
rajveer |
948 |
def __repr__(self):
|
|
|
949 |
L = ['%s=%r' % (key, value)
|
|
|
950 |
for key, value in self.__dict__.iteritems()]
|
|
|
951 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
952 |
|
|
|
953 |
def __eq__(self, other):
|
|
|
954 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
955 |
|
|
|
956 |
def __ne__(self, other):
|
|
|
957 |
return not (self == other)
|
|
|
958 |
|
| 759 |
chandransh |
959 |
class LogisticsUser:
|
|
|
960 |
"""
|
|
|
961 |
Attributes:
|
|
|
962 |
- username
|
|
|
963 |
- providerId
|
|
|
964 |
"""
|
|
|
965 |
|
|
|
966 |
thrift_spec = (
|
|
|
967 |
None, # 0
|
|
|
968 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
969 |
(2, TType.I64, 'providerId', None, None, ), # 2
|
|
|
970 |
)
|
|
|
971 |
|
|
|
972 |
def __init__(self, username=None, providerId=None,):
|
|
|
973 |
self.username = username
|
|
|
974 |
self.providerId = providerId
|
|
|
975 |
|
|
|
976 |
def read(self, iprot):
|
|
|
977 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
978 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
979 |
return
|
|
|
980 |
iprot.readStructBegin()
|
|
|
981 |
while True:
|
|
|
982 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
983 |
if ftype == TType.STOP:
|
|
|
984 |
break
|
|
|
985 |
if fid == 1:
|
|
|
986 |
if ftype == TType.STRING:
|
|
|
987 |
self.username = iprot.readString();
|
|
|
988 |
else:
|
|
|
989 |
iprot.skip(ftype)
|
|
|
990 |
elif fid == 2:
|
|
|
991 |
if ftype == TType.I64:
|
|
|
992 |
self.providerId = iprot.readI64();
|
|
|
993 |
else:
|
|
|
994 |
iprot.skip(ftype)
|
|
|
995 |
else:
|
|
|
996 |
iprot.skip(ftype)
|
|
|
997 |
iprot.readFieldEnd()
|
|
|
998 |
iprot.readStructEnd()
|
|
|
999 |
|
|
|
1000 |
def write(self, oprot):
|
|
|
1001 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1002 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1003 |
return
|
|
|
1004 |
oprot.writeStructBegin('LogisticsUser')
|
| 3431 |
rajveer |
1005 |
if self.username is not None:
|
| 759 |
chandransh |
1006 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
1007 |
oprot.writeString(self.username)
|
|
|
1008 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1009 |
if self.providerId is not None:
|
| 759 |
chandransh |
1010 |
oprot.writeFieldBegin('providerId', TType.I64, 2)
|
|
|
1011 |
oprot.writeI64(self.providerId)
|
|
|
1012 |
oprot.writeFieldEnd()
|
|
|
1013 |
oprot.writeFieldStop()
|
|
|
1014 |
oprot.writeStructEnd()
|
|
|
1015 |
|
| 3431 |
rajveer |
1016 |
def validate(self):
|
|
|
1017 |
return
|
|
|
1018 |
|
|
|
1019 |
|
| 759 |
chandransh |
1020 |
def __repr__(self):
|
|
|
1021 |
L = ['%s=%r' % (key, value)
|
|
|
1022 |
for key, value in self.__dict__.iteritems()]
|
|
|
1023 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1024 |
|
|
|
1025 |
def __eq__(self, other):
|
|
|
1026 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1027 |
|
|
|
1028 |
def __ne__(self, other):
|
|
|
1029 |
return not (self == other)
|
|
|
1030 |
|
| 1610 |
ankur.sing |
1031 |
class StatisticsUser:
|
|
|
1032 |
"""
|
|
|
1033 |
Attributes:
|
|
|
1034 |
- username
|
|
|
1035 |
"""
|
|
|
1036 |
|
|
|
1037 |
thrift_spec = (
|
|
|
1038 |
None, # 0
|
|
|
1039 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
1040 |
)
|
|
|
1041 |
|
|
|
1042 |
def __init__(self, username=None,):
|
|
|
1043 |
self.username = username
|
|
|
1044 |
|
|
|
1045 |
def read(self, iprot):
|
|
|
1046 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1047 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1048 |
return
|
|
|
1049 |
iprot.readStructBegin()
|
|
|
1050 |
while True:
|
|
|
1051 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1052 |
if ftype == TType.STOP:
|
|
|
1053 |
break
|
|
|
1054 |
if fid == 1:
|
|
|
1055 |
if ftype == TType.STRING:
|
|
|
1056 |
self.username = iprot.readString();
|
|
|
1057 |
else:
|
|
|
1058 |
iprot.skip(ftype)
|
|
|
1059 |
else:
|
|
|
1060 |
iprot.skip(ftype)
|
|
|
1061 |
iprot.readFieldEnd()
|
|
|
1062 |
iprot.readStructEnd()
|
|
|
1063 |
|
|
|
1064 |
def write(self, oprot):
|
|
|
1065 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1066 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1067 |
return
|
|
|
1068 |
oprot.writeStructBegin('StatisticsUser')
|
| 3431 |
rajveer |
1069 |
if self.username is not None:
|
| 1610 |
ankur.sing |
1070 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
1071 |
oprot.writeString(self.username)
|
|
|
1072 |
oprot.writeFieldEnd()
|
|
|
1073 |
oprot.writeFieldStop()
|
|
|
1074 |
oprot.writeStructEnd()
|
|
|
1075 |
|
| 3431 |
rajveer |
1076 |
def validate(self):
|
|
|
1077 |
return
|
|
|
1078 |
|
|
|
1079 |
|
| 1610 |
ankur.sing |
1080 |
def __repr__(self):
|
|
|
1081 |
L = ['%s=%r' % (key, value)
|
|
|
1082 |
for key, value in self.__dict__.iteritems()]
|
|
|
1083 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1084 |
|
|
|
1085 |
def __eq__(self, other):
|
|
|
1086 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1087 |
|
|
|
1088 |
def __ne__(self, other):
|
|
|
1089 |
return not (self == other)
|
|
|
1090 |
|
| 2025 |
ankur.sing |
1091 |
class CatalogDashboardUser:
|
|
|
1092 |
"""
|
|
|
1093 |
Attributes:
|
|
|
1094 |
- username
|
|
|
1095 |
- password
|
| 2358 |
ankur.sing |
1096 |
- role
|
| 2025 |
ankur.sing |
1097 |
"""
|
|
|
1098 |
|
|
|
1099 |
thrift_spec = (
|
|
|
1100 |
None, # 0
|
|
|
1101 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
1102 |
(2, TType.STRING, 'password', None, None, ), # 2
|
| 2358 |
ankur.sing |
1103 |
(3, TType.I64, 'role', None, None, ), # 3
|
| 2025 |
ankur.sing |
1104 |
)
|
|
|
1105 |
|
| 2358 |
ankur.sing |
1106 |
def __init__(self, username=None, password=None, role=None,):
|
| 2025 |
ankur.sing |
1107 |
self.username = username
|
|
|
1108 |
self.password = password
|
| 2358 |
ankur.sing |
1109 |
self.role = role
|
| 2025 |
ankur.sing |
1110 |
|
|
|
1111 |
def read(self, iprot):
|
|
|
1112 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1113 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1114 |
return
|
|
|
1115 |
iprot.readStructBegin()
|
|
|
1116 |
while True:
|
|
|
1117 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1118 |
if ftype == TType.STOP:
|
|
|
1119 |
break
|
|
|
1120 |
if fid == 1:
|
|
|
1121 |
if ftype == TType.STRING:
|
|
|
1122 |
self.username = iprot.readString();
|
|
|
1123 |
else:
|
|
|
1124 |
iprot.skip(ftype)
|
|
|
1125 |
elif fid == 2:
|
|
|
1126 |
if ftype == TType.STRING:
|
|
|
1127 |
self.password = iprot.readString();
|
|
|
1128 |
else:
|
|
|
1129 |
iprot.skip(ftype)
|
| 2358 |
ankur.sing |
1130 |
elif fid == 3:
|
|
|
1131 |
if ftype == TType.I64:
|
|
|
1132 |
self.role = iprot.readI64();
|
|
|
1133 |
else:
|
|
|
1134 |
iprot.skip(ftype)
|
| 2025 |
ankur.sing |
1135 |
else:
|
|
|
1136 |
iprot.skip(ftype)
|
|
|
1137 |
iprot.readFieldEnd()
|
|
|
1138 |
iprot.readStructEnd()
|
|
|
1139 |
|
|
|
1140 |
def write(self, oprot):
|
|
|
1141 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1142 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1143 |
return
|
|
|
1144 |
oprot.writeStructBegin('CatalogDashboardUser')
|
| 3431 |
rajveer |
1145 |
if self.username is not None:
|
| 2025 |
ankur.sing |
1146 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
1147 |
oprot.writeString(self.username)
|
|
|
1148 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1149 |
if self.password is not None:
|
| 2025 |
ankur.sing |
1150 |
oprot.writeFieldBegin('password', TType.STRING, 2)
|
|
|
1151 |
oprot.writeString(self.password)
|
|
|
1152 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1153 |
if self.role is not None:
|
| 2358 |
ankur.sing |
1154 |
oprot.writeFieldBegin('role', TType.I64, 3)
|
|
|
1155 |
oprot.writeI64(self.role)
|
|
|
1156 |
oprot.writeFieldEnd()
|
| 2025 |
ankur.sing |
1157 |
oprot.writeFieldStop()
|
|
|
1158 |
oprot.writeStructEnd()
|
|
|
1159 |
|
| 3431 |
rajveer |
1160 |
def validate(self):
|
|
|
1161 |
return
|
|
|
1162 |
|
|
|
1163 |
|
| 2025 |
ankur.sing |
1164 |
def __repr__(self):
|
|
|
1165 |
L = ['%s=%r' % (key, value)
|
|
|
1166 |
for key, value in self.__dict__.iteritems()]
|
|
|
1167 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1168 |
|
|
|
1169 |
def __eq__(self, other):
|
|
|
1170 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1171 |
|
|
|
1172 |
def __ne__(self, other):
|
|
|
1173 |
return not (self == other)
|
|
|
1174 |
|
| 1395 |
varun.gupt |
1175 |
class UserEmail:
|
|
|
1176 |
"""
|
|
|
1177 |
Attributes:
|
| 1422 |
varun.gupt |
1178 |
- id
|
| 1395 |
varun.gupt |
1179 |
- emailTo
|
|
|
1180 |
- emailFrom
|
|
|
1181 |
- subject
|
|
|
1182 |
- body
|
|
|
1183 |
- source
|
|
|
1184 |
- emailType
|
|
|
1185 |
- status
|
|
|
1186 |
- timestamp
|
| 5864 |
rajveer |
1187 |
- cc
|
|
|
1188 |
- bcc
|
| 1395 |
varun.gupt |
1189 |
"""
|
|
|
1190 |
|
|
|
1191 |
thrift_spec = (
|
|
|
1192 |
None, # 0
|
| 1422 |
varun.gupt |
1193 |
(1, TType.I64, 'id', None, None, ), # 1
|
| 5864 |
rajveer |
1194 |
(2, TType.LIST, 'emailTo', (TType.STRING,None), None, ), # 2
|
| 1422 |
varun.gupt |
1195 |
(3, TType.STRING, 'emailFrom', None, None, ), # 3
|
|
|
1196 |
(4, TType.STRING, 'subject', None, None, ), # 4
|
|
|
1197 |
(5, TType.STRING, 'body', None, None, ), # 5
|
|
|
1198 |
(6, TType.STRING, 'source', None, None, ), # 6
|
|
|
1199 |
(7, TType.STRING, 'emailType', None, None, ), # 7
|
|
|
1200 |
(8, TType.BOOL, 'status', None, None, ), # 8
|
|
|
1201 |
(9, TType.I64, 'timestamp', None, None, ), # 9
|
| 5864 |
rajveer |
1202 |
(10, TType.LIST, 'cc', (TType.STRING,None), None, ), # 10
|
|
|
1203 |
(11, TType.LIST, 'bcc', (TType.STRING,None), None, ), # 11
|
| 1395 |
varun.gupt |
1204 |
)
|
|
|
1205 |
|
| 5864 |
rajveer |
1206 |
def __init__(self, id=None, emailTo=None, emailFrom=None, subject=None, body=None, source=None, emailType=None, status=None, timestamp=None, cc=None, bcc=None,):
|
| 1422 |
varun.gupt |
1207 |
self.id = id
|
| 1395 |
varun.gupt |
1208 |
self.emailTo = emailTo
|
|
|
1209 |
self.emailFrom = emailFrom
|
|
|
1210 |
self.subject = subject
|
|
|
1211 |
self.body = body
|
|
|
1212 |
self.source = source
|
|
|
1213 |
self.emailType = emailType
|
|
|
1214 |
self.status = status
|
|
|
1215 |
self.timestamp = timestamp
|
| 5864 |
rajveer |
1216 |
self.cc = cc
|
|
|
1217 |
self.bcc = bcc
|
| 1395 |
varun.gupt |
1218 |
|
|
|
1219 |
def read(self, iprot):
|
|
|
1220 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1221 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1222 |
return
|
|
|
1223 |
iprot.readStructBegin()
|
|
|
1224 |
while True:
|
|
|
1225 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1226 |
if ftype == TType.STOP:
|
|
|
1227 |
break
|
|
|
1228 |
if fid == 1:
|
| 1422 |
varun.gupt |
1229 |
if ftype == TType.I64:
|
|
|
1230 |
self.id = iprot.readI64();
|
|
|
1231 |
else:
|
|
|
1232 |
iprot.skip(ftype)
|
|
|
1233 |
elif fid == 2:
|
| 5864 |
rajveer |
1234 |
if ftype == TType.LIST:
|
|
|
1235 |
self.emailTo = []
|
|
|
1236 |
(_etype17, _size14) = iprot.readListBegin()
|
|
|
1237 |
for _i18 in xrange(_size14):
|
|
|
1238 |
_elem19 = iprot.readString();
|
|
|
1239 |
self.emailTo.append(_elem19)
|
|
|
1240 |
iprot.readListEnd()
|
| 1395 |
varun.gupt |
1241 |
else:
|
|
|
1242 |
iprot.skip(ftype)
|
| 1422 |
varun.gupt |
1243 |
elif fid == 3:
|
| 1395 |
varun.gupt |
1244 |
if ftype == TType.STRING:
|
|
|
1245 |
self.emailFrom = iprot.readString();
|
|
|
1246 |
else:
|
|
|
1247 |
iprot.skip(ftype)
|
| 1422 |
varun.gupt |
1248 |
elif fid == 4:
|
| 1395 |
varun.gupt |
1249 |
if ftype == TType.STRING:
|
|
|
1250 |
self.subject = iprot.readString();
|
|
|
1251 |
else:
|
|
|
1252 |
iprot.skip(ftype)
|
| 1422 |
varun.gupt |
1253 |
elif fid == 5:
|
| 1395 |
varun.gupt |
1254 |
if ftype == TType.STRING:
|
|
|
1255 |
self.body = iprot.readString();
|
|
|
1256 |
else:
|
|
|
1257 |
iprot.skip(ftype)
|
| 1422 |
varun.gupt |
1258 |
elif fid == 6:
|
| 1395 |
varun.gupt |
1259 |
if ftype == TType.STRING:
|
|
|
1260 |
self.source = iprot.readString();
|
|
|
1261 |
else:
|
|
|
1262 |
iprot.skip(ftype)
|
| 1422 |
varun.gupt |
1263 |
elif fid == 7:
|
| 1395 |
varun.gupt |
1264 |
if ftype == TType.STRING:
|
|
|
1265 |
self.emailType = iprot.readString();
|
|
|
1266 |
else:
|
|
|
1267 |
iprot.skip(ftype)
|
| 1422 |
varun.gupt |
1268 |
elif fid == 8:
|
| 1395 |
varun.gupt |
1269 |
if ftype == TType.BOOL:
|
|
|
1270 |
self.status = iprot.readBool();
|
|
|
1271 |
else:
|
|
|
1272 |
iprot.skip(ftype)
|
| 1422 |
varun.gupt |
1273 |
elif fid == 9:
|
| 1395 |
varun.gupt |
1274 |
if ftype == TType.I64:
|
|
|
1275 |
self.timestamp = iprot.readI64();
|
|
|
1276 |
else:
|
|
|
1277 |
iprot.skip(ftype)
|
| 5864 |
rajveer |
1278 |
elif fid == 10:
|
|
|
1279 |
if ftype == TType.LIST:
|
|
|
1280 |
self.cc = []
|
|
|
1281 |
(_etype23, _size20) = iprot.readListBegin()
|
|
|
1282 |
for _i24 in xrange(_size20):
|
|
|
1283 |
_elem25 = iprot.readString();
|
|
|
1284 |
self.cc.append(_elem25)
|
|
|
1285 |
iprot.readListEnd()
|
|
|
1286 |
else:
|
|
|
1287 |
iprot.skip(ftype)
|
|
|
1288 |
elif fid == 11:
|
|
|
1289 |
if ftype == TType.LIST:
|
|
|
1290 |
self.bcc = []
|
|
|
1291 |
(_etype29, _size26) = iprot.readListBegin()
|
|
|
1292 |
for _i30 in xrange(_size26):
|
|
|
1293 |
_elem31 = iprot.readString();
|
|
|
1294 |
self.bcc.append(_elem31)
|
|
|
1295 |
iprot.readListEnd()
|
|
|
1296 |
else:
|
|
|
1297 |
iprot.skip(ftype)
|
| 1395 |
varun.gupt |
1298 |
else:
|
|
|
1299 |
iprot.skip(ftype)
|
|
|
1300 |
iprot.readFieldEnd()
|
|
|
1301 |
iprot.readStructEnd()
|
|
|
1302 |
|
|
|
1303 |
def write(self, oprot):
|
|
|
1304 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1305 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1306 |
return
|
|
|
1307 |
oprot.writeStructBegin('UserEmail')
|
| 3431 |
rajveer |
1308 |
if self.id is not None:
|
| 1422 |
varun.gupt |
1309 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1310 |
oprot.writeI64(self.id)
|
|
|
1311 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1312 |
if self.emailTo is not None:
|
| 5864 |
rajveer |
1313 |
oprot.writeFieldBegin('emailTo', TType.LIST, 2)
|
|
|
1314 |
oprot.writeListBegin(TType.STRING, len(self.emailTo))
|
|
|
1315 |
for iter32 in self.emailTo:
|
|
|
1316 |
oprot.writeString(iter32)
|
|
|
1317 |
oprot.writeListEnd()
|
| 1395 |
varun.gupt |
1318 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1319 |
if self.emailFrom is not None:
|
| 1422 |
varun.gupt |
1320 |
oprot.writeFieldBegin('emailFrom', TType.STRING, 3)
|
| 1395 |
varun.gupt |
1321 |
oprot.writeString(self.emailFrom)
|
|
|
1322 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1323 |
if self.subject is not None:
|
| 1422 |
varun.gupt |
1324 |
oprot.writeFieldBegin('subject', TType.STRING, 4)
|
| 1395 |
varun.gupt |
1325 |
oprot.writeString(self.subject)
|
|
|
1326 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1327 |
if self.body is not None:
|
| 1422 |
varun.gupt |
1328 |
oprot.writeFieldBegin('body', TType.STRING, 5)
|
| 1395 |
varun.gupt |
1329 |
oprot.writeString(self.body)
|
|
|
1330 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1331 |
if self.source is not None:
|
| 1422 |
varun.gupt |
1332 |
oprot.writeFieldBegin('source', TType.STRING, 6)
|
| 1395 |
varun.gupt |
1333 |
oprot.writeString(self.source)
|
|
|
1334 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1335 |
if self.emailType is not None:
|
| 1422 |
varun.gupt |
1336 |
oprot.writeFieldBegin('emailType', TType.STRING, 7)
|
| 1395 |
varun.gupt |
1337 |
oprot.writeString(self.emailType)
|
|
|
1338 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1339 |
if self.status is not None:
|
| 1422 |
varun.gupt |
1340 |
oprot.writeFieldBegin('status', TType.BOOL, 8)
|
| 1395 |
varun.gupt |
1341 |
oprot.writeBool(self.status)
|
|
|
1342 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1343 |
if self.timestamp is not None:
|
| 1422 |
varun.gupt |
1344 |
oprot.writeFieldBegin('timestamp', TType.I64, 9)
|
| 1395 |
varun.gupt |
1345 |
oprot.writeI64(self.timestamp)
|
|
|
1346 |
oprot.writeFieldEnd()
|
| 5864 |
rajveer |
1347 |
if self.cc is not None:
|
|
|
1348 |
oprot.writeFieldBegin('cc', TType.LIST, 10)
|
|
|
1349 |
oprot.writeListBegin(TType.STRING, len(self.cc))
|
|
|
1350 |
for iter33 in self.cc:
|
|
|
1351 |
oprot.writeString(iter33)
|
|
|
1352 |
oprot.writeListEnd()
|
|
|
1353 |
oprot.writeFieldEnd()
|
|
|
1354 |
if self.bcc is not None:
|
|
|
1355 |
oprot.writeFieldBegin('bcc', TType.LIST, 11)
|
|
|
1356 |
oprot.writeListBegin(TType.STRING, len(self.bcc))
|
|
|
1357 |
for iter34 in self.bcc:
|
|
|
1358 |
oprot.writeString(iter34)
|
|
|
1359 |
oprot.writeListEnd()
|
|
|
1360 |
oprot.writeFieldEnd()
|
| 1395 |
varun.gupt |
1361 |
oprot.writeFieldStop()
|
|
|
1362 |
oprot.writeStructEnd()
|
|
|
1363 |
|
| 3431 |
rajveer |
1364 |
def validate(self):
|
|
|
1365 |
return
|
|
|
1366 |
|
|
|
1367 |
|
| 1395 |
varun.gupt |
1368 |
def __repr__(self):
|
|
|
1369 |
L = ['%s=%r' % (key, value)
|
|
|
1370 |
for key, value in self.__dict__.iteritems()]
|
|
|
1371 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1372 |
|
|
|
1373 |
def __eq__(self, other):
|
|
|
1374 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1375 |
|
|
|
1376 |
def __ne__(self, other):
|
|
|
1377 |
return not (self == other)
|
|
|
1378 |
|
| 1891 |
ankur.sing |
1379 |
class ReportUser:
|
|
|
1380 |
"""
|
|
|
1381 |
Attributes:
|
|
|
1382 |
- username
|
|
|
1383 |
- role
|
| 12256 |
kshitij.so |
1384 |
- email
|
| 1891 |
ankur.sing |
1385 |
"""
|
|
|
1386 |
|
|
|
1387 |
thrift_spec = (
|
|
|
1388 |
None, # 0
|
|
|
1389 |
(1, TType.STRING, 'username', None, None, ), # 1
|
|
|
1390 |
(2, TType.I64, 'role', None, None, ), # 2
|
| 12256 |
kshitij.so |
1391 |
(3, TType.STRING, 'email', None, None, ), # 3
|
| 1891 |
ankur.sing |
1392 |
)
|
|
|
1393 |
|
| 12256 |
kshitij.so |
1394 |
def __init__(self, username=None, role=None, email=None,):
|
| 1891 |
ankur.sing |
1395 |
self.username = username
|
|
|
1396 |
self.role = role
|
| 12256 |
kshitij.so |
1397 |
self.email = email
|
| 1891 |
ankur.sing |
1398 |
|
|
|
1399 |
def read(self, iprot):
|
|
|
1400 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1401 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1402 |
return
|
|
|
1403 |
iprot.readStructBegin()
|
|
|
1404 |
while True:
|
|
|
1405 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1406 |
if ftype == TType.STOP:
|
|
|
1407 |
break
|
|
|
1408 |
if fid == 1:
|
|
|
1409 |
if ftype == TType.STRING:
|
|
|
1410 |
self.username = iprot.readString();
|
|
|
1411 |
else:
|
|
|
1412 |
iprot.skip(ftype)
|
|
|
1413 |
elif fid == 2:
|
|
|
1414 |
if ftype == TType.I64:
|
|
|
1415 |
self.role = iprot.readI64();
|
|
|
1416 |
else:
|
|
|
1417 |
iprot.skip(ftype)
|
| 12256 |
kshitij.so |
1418 |
elif fid == 3:
|
|
|
1419 |
if ftype == TType.STRING:
|
|
|
1420 |
self.email = iprot.readString();
|
|
|
1421 |
else:
|
|
|
1422 |
iprot.skip(ftype)
|
| 1891 |
ankur.sing |
1423 |
else:
|
|
|
1424 |
iprot.skip(ftype)
|
|
|
1425 |
iprot.readFieldEnd()
|
|
|
1426 |
iprot.readStructEnd()
|
|
|
1427 |
|
|
|
1428 |
def write(self, oprot):
|
|
|
1429 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1430 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1431 |
return
|
|
|
1432 |
oprot.writeStructBegin('ReportUser')
|
| 3431 |
rajveer |
1433 |
if self.username is not None:
|
| 1891 |
ankur.sing |
1434 |
oprot.writeFieldBegin('username', TType.STRING, 1)
|
|
|
1435 |
oprot.writeString(self.username)
|
|
|
1436 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1437 |
if self.role is not None:
|
| 1891 |
ankur.sing |
1438 |
oprot.writeFieldBegin('role', TType.I64, 2)
|
|
|
1439 |
oprot.writeI64(self.role)
|
|
|
1440 |
oprot.writeFieldEnd()
|
| 12256 |
kshitij.so |
1441 |
if self.email is not None:
|
|
|
1442 |
oprot.writeFieldBegin('email', TType.STRING, 3)
|
|
|
1443 |
oprot.writeString(self.email)
|
|
|
1444 |
oprot.writeFieldEnd()
|
| 1891 |
ankur.sing |
1445 |
oprot.writeFieldStop()
|
|
|
1446 |
oprot.writeStructEnd()
|
|
|
1447 |
|
| 3431 |
rajveer |
1448 |
def validate(self):
|
|
|
1449 |
return
|
|
|
1450 |
|
|
|
1451 |
|
| 1891 |
ankur.sing |
1452 |
def __repr__(self):
|
|
|
1453 |
L = ['%s=%r' % (key, value)
|
|
|
1454 |
for key, value in self.__dict__.iteritems()]
|
|
|
1455 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1456 |
|
|
|
1457 |
def __eq__(self, other):
|
|
|
1458 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1459 |
|
|
|
1460 |
def __ne__(self, other):
|
|
|
1461 |
return not (self == other)
|
|
|
1462 |
|
|
|
1463 |
class Report:
|
|
|
1464 |
"""
|
|
|
1465 |
Attributes:
|
|
|
1466 |
- id
|
|
|
1467 |
- description
|
|
|
1468 |
- controller
|
|
|
1469 |
"""
|
|
|
1470 |
|
|
|
1471 |
thrift_spec = (
|
|
|
1472 |
None, # 0
|
|
|
1473 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
1474 |
(2, TType.STRING, 'description', None, None, ), # 2
|
|
|
1475 |
(3, TType.STRING, 'controller', None, None, ), # 3
|
|
|
1476 |
)
|
|
|
1477 |
|
|
|
1478 |
def __init__(self, id=None, description=None, controller=None,):
|
|
|
1479 |
self.id = id
|
|
|
1480 |
self.description = description
|
|
|
1481 |
self.controller = controller
|
|
|
1482 |
|
|
|
1483 |
def read(self, iprot):
|
|
|
1484 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1485 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1486 |
return
|
|
|
1487 |
iprot.readStructBegin()
|
|
|
1488 |
while True:
|
|
|
1489 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1490 |
if ftype == TType.STOP:
|
|
|
1491 |
break
|
|
|
1492 |
if fid == 1:
|
|
|
1493 |
if ftype == TType.I64:
|
|
|
1494 |
self.id = iprot.readI64();
|
|
|
1495 |
else:
|
|
|
1496 |
iprot.skip(ftype)
|
|
|
1497 |
elif fid == 2:
|
|
|
1498 |
if ftype == TType.STRING:
|
|
|
1499 |
self.description = iprot.readString();
|
|
|
1500 |
else:
|
|
|
1501 |
iprot.skip(ftype)
|
|
|
1502 |
elif fid == 3:
|
|
|
1503 |
if ftype == TType.STRING:
|
|
|
1504 |
self.controller = iprot.readString();
|
|
|
1505 |
else:
|
|
|
1506 |
iprot.skip(ftype)
|
|
|
1507 |
else:
|
|
|
1508 |
iprot.skip(ftype)
|
|
|
1509 |
iprot.readFieldEnd()
|
|
|
1510 |
iprot.readStructEnd()
|
|
|
1511 |
|
|
|
1512 |
def write(self, oprot):
|
|
|
1513 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1514 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1515 |
return
|
|
|
1516 |
oprot.writeStructBegin('Report')
|
| 3431 |
rajveer |
1517 |
if self.id is not None:
|
| 1891 |
ankur.sing |
1518 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1519 |
oprot.writeI64(self.id)
|
|
|
1520 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1521 |
if self.description is not None:
|
| 1891 |
ankur.sing |
1522 |
oprot.writeFieldBegin('description', TType.STRING, 2)
|
|
|
1523 |
oprot.writeString(self.description)
|
|
|
1524 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1525 |
if self.controller is not None:
|
| 1891 |
ankur.sing |
1526 |
oprot.writeFieldBegin('controller', TType.STRING, 3)
|
|
|
1527 |
oprot.writeString(self.controller)
|
|
|
1528 |
oprot.writeFieldEnd()
|
|
|
1529 |
oprot.writeFieldStop()
|
|
|
1530 |
oprot.writeStructEnd()
|
|
|
1531 |
|
| 3431 |
rajveer |
1532 |
def validate(self):
|
|
|
1533 |
return
|
|
|
1534 |
|
|
|
1535 |
|
| 1891 |
ankur.sing |
1536 |
def __repr__(self):
|
|
|
1537 |
L = ['%s=%r' % (key, value)
|
|
|
1538 |
for key, value in self.__dict__.iteritems()]
|
|
|
1539 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1540 |
|
|
|
1541 |
def __eq__(self, other):
|
|
|
1542 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1543 |
|
|
|
1544 |
def __ne__(self, other):
|
|
|
1545 |
return not (self == other)
|
| 4806 |
varun.gupt |
1546 |
|
|
|
1547 |
class QuickLink:
|
|
|
1548 |
"""
|
|
|
1549 |
Attributes:
|
| 4996 |
varun.gupt |
1550 |
- id
|
| 4806 |
varun.gupt |
1551 |
- url
|
|
|
1552 |
- text
|
|
|
1553 |
"""
|
|
|
1554 |
|
|
|
1555 |
thrift_spec = (
|
|
|
1556 |
None, # 0
|
| 4996 |
varun.gupt |
1557 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
1558 |
(2, TType.STRING, 'url', None, None, ), # 2
|
|
|
1559 |
(3, TType.STRING, 'text', None, None, ), # 3
|
| 4806 |
varun.gupt |
1560 |
)
|
|
|
1561 |
|
| 4996 |
varun.gupt |
1562 |
def __init__(self, id=None, url=None, text=None,):
|
|
|
1563 |
self.id = id
|
| 4806 |
varun.gupt |
1564 |
self.url = url
|
|
|
1565 |
self.text = text
|
|
|
1566 |
|
|
|
1567 |
def read(self, iprot):
|
|
|
1568 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1569 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1570 |
return
|
|
|
1571 |
iprot.readStructBegin()
|
|
|
1572 |
while True:
|
|
|
1573 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1574 |
if ftype == TType.STOP:
|
|
|
1575 |
break
|
|
|
1576 |
if fid == 1:
|
| 4996 |
varun.gupt |
1577 |
if ftype == TType.I64:
|
|
|
1578 |
self.id = iprot.readI64();
|
|
|
1579 |
else:
|
|
|
1580 |
iprot.skip(ftype)
|
|
|
1581 |
elif fid == 2:
|
| 4806 |
varun.gupt |
1582 |
if ftype == TType.STRING:
|
|
|
1583 |
self.url = iprot.readString();
|
|
|
1584 |
else:
|
|
|
1585 |
iprot.skip(ftype)
|
| 4996 |
varun.gupt |
1586 |
elif fid == 3:
|
| 4806 |
varun.gupt |
1587 |
if ftype == TType.STRING:
|
|
|
1588 |
self.text = iprot.readString();
|
|
|
1589 |
else:
|
|
|
1590 |
iprot.skip(ftype)
|
|
|
1591 |
else:
|
|
|
1592 |
iprot.skip(ftype)
|
|
|
1593 |
iprot.readFieldEnd()
|
|
|
1594 |
iprot.readStructEnd()
|
|
|
1595 |
|
|
|
1596 |
def write(self, oprot):
|
|
|
1597 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1598 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1599 |
return
|
|
|
1600 |
oprot.writeStructBegin('QuickLink')
|
| 4996 |
varun.gupt |
1601 |
if self.id is not None:
|
|
|
1602 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1603 |
oprot.writeI64(self.id)
|
|
|
1604 |
oprot.writeFieldEnd()
|
| 4806 |
varun.gupt |
1605 |
if self.url is not None:
|
| 4996 |
varun.gupt |
1606 |
oprot.writeFieldBegin('url', TType.STRING, 2)
|
| 4806 |
varun.gupt |
1607 |
oprot.writeString(self.url)
|
|
|
1608 |
oprot.writeFieldEnd()
|
|
|
1609 |
if self.text is not None:
|
| 4996 |
varun.gupt |
1610 |
oprot.writeFieldBegin('text', TType.STRING, 3)
|
| 4806 |
varun.gupt |
1611 |
oprot.writeString(self.text)
|
|
|
1612 |
oprot.writeFieldEnd()
|
|
|
1613 |
oprot.writeFieldStop()
|
|
|
1614 |
oprot.writeStructEnd()
|
|
|
1615 |
|
|
|
1616 |
def validate(self):
|
|
|
1617 |
return
|
|
|
1618 |
|
|
|
1619 |
|
|
|
1620 |
def __repr__(self):
|
|
|
1621 |
L = ['%s=%r' % (key, value)
|
|
|
1622 |
for key, value in self.__dict__.iteritems()]
|
|
|
1623 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1624 |
|
|
|
1625 |
def __eq__(self, other):
|
|
|
1626 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1627 |
|
|
|
1628 |
def __ne__(self, other):
|
|
|
1629 |
return not (self == other)
|
| 7410 |
amar.kumar |
1630 |
|
|
|
1631 |
class AgentWarehouseMapping:
|
|
|
1632 |
"""
|
|
|
1633 |
Attributes:
|
|
|
1634 |
- agentId
|
|
|
1635 |
- warehouseId
|
|
|
1636 |
"""
|
|
|
1637 |
|
|
|
1638 |
thrift_spec = (
|
|
|
1639 |
None, # 0
|
|
|
1640 |
(1, TType.I64, 'agentId', None, None, ), # 1
|
|
|
1641 |
(2, TType.I64, 'warehouseId', None, None, ), # 2
|
|
|
1642 |
)
|
|
|
1643 |
|
|
|
1644 |
def __init__(self, agentId=None, warehouseId=None,):
|
|
|
1645 |
self.agentId = agentId
|
|
|
1646 |
self.warehouseId = warehouseId
|
|
|
1647 |
|
|
|
1648 |
def read(self, iprot):
|
|
|
1649 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1650 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1651 |
return
|
|
|
1652 |
iprot.readStructBegin()
|
|
|
1653 |
while True:
|
|
|
1654 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1655 |
if ftype == TType.STOP:
|
|
|
1656 |
break
|
|
|
1657 |
if fid == 1:
|
|
|
1658 |
if ftype == TType.I64:
|
|
|
1659 |
self.agentId = iprot.readI64();
|
|
|
1660 |
else:
|
|
|
1661 |
iprot.skip(ftype)
|
|
|
1662 |
elif fid == 2:
|
|
|
1663 |
if ftype == TType.I64:
|
|
|
1664 |
self.warehouseId = iprot.readI64();
|
|
|
1665 |
else:
|
|
|
1666 |
iprot.skip(ftype)
|
|
|
1667 |
else:
|
|
|
1668 |
iprot.skip(ftype)
|
|
|
1669 |
iprot.readFieldEnd()
|
|
|
1670 |
iprot.readStructEnd()
|
|
|
1671 |
|
|
|
1672 |
def write(self, oprot):
|
|
|
1673 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1674 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1675 |
return
|
|
|
1676 |
oprot.writeStructBegin('AgentWarehouseMapping')
|
|
|
1677 |
if self.agentId is not None:
|
|
|
1678 |
oprot.writeFieldBegin('agentId', TType.I64, 1)
|
|
|
1679 |
oprot.writeI64(self.agentId)
|
|
|
1680 |
oprot.writeFieldEnd()
|
|
|
1681 |
if self.warehouseId is not None:
|
|
|
1682 |
oprot.writeFieldBegin('warehouseId', TType.I64, 2)
|
|
|
1683 |
oprot.writeI64(self.warehouseId)
|
|
|
1684 |
oprot.writeFieldEnd()
|
|
|
1685 |
oprot.writeFieldStop()
|
|
|
1686 |
oprot.writeStructEnd()
|
|
|
1687 |
|
|
|
1688 |
def validate(self):
|
|
|
1689 |
return
|
|
|
1690 |
|
|
|
1691 |
|
|
|
1692 |
def __repr__(self):
|
|
|
1693 |
L = ['%s=%r' % (key, value)
|
|
|
1694 |
for key, value in self.__dict__.iteritems()]
|
|
|
1695 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1696 |
|
|
|
1697 |
def __eq__(self, other):
|
|
|
1698 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1699 |
|
|
|
1700 |
def __ne__(self, other):
|
|
|
1701 |
return not (self == other)
|
| 12691 |
manish.sha |
1702 |
|
|
|
1703 |
class UserSms:
|
|
|
1704 |
"""
|
|
|
1705 |
Attributes:
|
|
|
1706 |
- id
|
|
|
1707 |
- user_id
|
|
|
1708 |
- mobileNumber
|
|
|
1709 |
- smsText
|
|
|
1710 |
- type
|
|
|
1711 |
- status
|
|
|
1712 |
- attempts
|
|
|
1713 |
- createdTimestamp
|
|
|
1714 |
- responseId
|
|
|
1715 |
- responseText
|
|
|
1716 |
- deliveryStatus
|
|
|
1717 |
"""
|
|
|
1718 |
|
|
|
1719 |
thrift_spec = (
|
|
|
1720 |
None, # 0
|
|
|
1721 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
1722 |
(2, TType.I64, 'user_id', None, None, ), # 2
|
|
|
1723 |
(3, TType.STRING, 'mobileNumber', None, None, ), # 3
|
|
|
1724 |
(4, TType.STRING, 'smsText', None, None, ), # 4
|
|
|
1725 |
(5, TType.I32, 'type', None, None, ), # 5
|
|
|
1726 |
(6, TType.I32, 'status', None, None, ), # 6
|
|
|
1727 |
(7, TType.I64, 'attempts', None, None, ), # 7
|
|
|
1728 |
(8, TType.I64, 'createdTimestamp', None, None, ), # 8
|
|
|
1729 |
(9, TType.STRING, 'responseId', None, None, ), # 9
|
|
|
1730 |
(10, TType.STRING, 'responseText', None, None, ), # 10
|
|
|
1731 |
(11, TType.I32, 'deliveryStatus', None, None, ), # 11
|
|
|
1732 |
)
|
|
|
1733 |
|
|
|
1734 |
def __init__(self, id=None, user_id=None, mobileNumber=None, smsText=None, type=None, status=None, attempts=None, createdTimestamp=None, responseId=None, responseText=None, deliveryStatus=None,):
|
|
|
1735 |
self.id = id
|
|
|
1736 |
self.user_id = user_id
|
|
|
1737 |
self.mobileNumber = mobileNumber
|
|
|
1738 |
self.smsText = smsText
|
|
|
1739 |
self.type = type
|
|
|
1740 |
self.status = status
|
|
|
1741 |
self.attempts = attempts
|
|
|
1742 |
self.createdTimestamp = createdTimestamp
|
|
|
1743 |
self.responseId = responseId
|
|
|
1744 |
self.responseText = responseText
|
|
|
1745 |
self.deliveryStatus = deliveryStatus
|
|
|
1746 |
|
|
|
1747 |
def read(self, iprot):
|
|
|
1748 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1749 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1750 |
return
|
|
|
1751 |
iprot.readStructBegin()
|
|
|
1752 |
while True:
|
|
|
1753 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1754 |
if ftype == TType.STOP:
|
|
|
1755 |
break
|
|
|
1756 |
if fid == 1:
|
|
|
1757 |
if ftype == TType.I64:
|
|
|
1758 |
self.id = iprot.readI64();
|
|
|
1759 |
else:
|
|
|
1760 |
iprot.skip(ftype)
|
|
|
1761 |
elif fid == 2:
|
|
|
1762 |
if ftype == TType.I64:
|
|
|
1763 |
self.user_id = iprot.readI64();
|
|
|
1764 |
else:
|
|
|
1765 |
iprot.skip(ftype)
|
|
|
1766 |
elif fid == 3:
|
|
|
1767 |
if ftype == TType.STRING:
|
|
|
1768 |
self.mobileNumber = iprot.readString();
|
|
|
1769 |
else:
|
|
|
1770 |
iprot.skip(ftype)
|
|
|
1771 |
elif fid == 4:
|
|
|
1772 |
if ftype == TType.STRING:
|
|
|
1773 |
self.smsText = iprot.readString();
|
|
|
1774 |
else:
|
|
|
1775 |
iprot.skip(ftype)
|
|
|
1776 |
elif fid == 5:
|
|
|
1777 |
if ftype == TType.I32:
|
|
|
1778 |
self.type = iprot.readI32();
|
|
|
1779 |
else:
|
|
|
1780 |
iprot.skip(ftype)
|
|
|
1781 |
elif fid == 6:
|
|
|
1782 |
if ftype == TType.I32:
|
|
|
1783 |
self.status = iprot.readI32();
|
|
|
1784 |
else:
|
|
|
1785 |
iprot.skip(ftype)
|
|
|
1786 |
elif fid == 7:
|
|
|
1787 |
if ftype == TType.I64:
|
|
|
1788 |
self.attempts = iprot.readI64();
|
|
|
1789 |
else:
|
|
|
1790 |
iprot.skip(ftype)
|
|
|
1791 |
elif fid == 8:
|
|
|
1792 |
if ftype == TType.I64:
|
|
|
1793 |
self.createdTimestamp = iprot.readI64();
|
|
|
1794 |
else:
|
|
|
1795 |
iprot.skip(ftype)
|
|
|
1796 |
elif fid == 9:
|
|
|
1797 |
if ftype == TType.STRING:
|
|
|
1798 |
self.responseId = iprot.readString();
|
|
|
1799 |
else:
|
|
|
1800 |
iprot.skip(ftype)
|
|
|
1801 |
elif fid == 10:
|
|
|
1802 |
if ftype == TType.STRING:
|
|
|
1803 |
self.responseText = iprot.readString();
|
|
|
1804 |
else:
|
|
|
1805 |
iprot.skip(ftype)
|
|
|
1806 |
elif fid == 11:
|
|
|
1807 |
if ftype == TType.I32:
|
|
|
1808 |
self.deliveryStatus = iprot.readI32();
|
|
|
1809 |
else:
|
|
|
1810 |
iprot.skip(ftype)
|
|
|
1811 |
else:
|
|
|
1812 |
iprot.skip(ftype)
|
|
|
1813 |
iprot.readFieldEnd()
|
|
|
1814 |
iprot.readStructEnd()
|
|
|
1815 |
|
|
|
1816 |
def write(self, oprot):
|
|
|
1817 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1818 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1819 |
return
|
|
|
1820 |
oprot.writeStructBegin('UserSms')
|
|
|
1821 |
if self.id is not None:
|
|
|
1822 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1823 |
oprot.writeI64(self.id)
|
|
|
1824 |
oprot.writeFieldEnd()
|
|
|
1825 |
if self.user_id is not None:
|
|
|
1826 |
oprot.writeFieldBegin('user_id', TType.I64, 2)
|
|
|
1827 |
oprot.writeI64(self.user_id)
|
|
|
1828 |
oprot.writeFieldEnd()
|
|
|
1829 |
if self.mobileNumber is not None:
|
|
|
1830 |
oprot.writeFieldBegin('mobileNumber', TType.STRING, 3)
|
|
|
1831 |
oprot.writeString(self.mobileNumber)
|
|
|
1832 |
oprot.writeFieldEnd()
|
|
|
1833 |
if self.smsText is not None:
|
|
|
1834 |
oprot.writeFieldBegin('smsText', TType.STRING, 4)
|
|
|
1835 |
oprot.writeString(self.smsText)
|
|
|
1836 |
oprot.writeFieldEnd()
|
|
|
1837 |
if self.type is not None:
|
|
|
1838 |
oprot.writeFieldBegin('type', TType.I32, 5)
|
|
|
1839 |
oprot.writeI32(self.type)
|
|
|
1840 |
oprot.writeFieldEnd()
|
|
|
1841 |
if self.status is not None:
|
|
|
1842 |
oprot.writeFieldBegin('status', TType.I32, 6)
|
|
|
1843 |
oprot.writeI32(self.status)
|
|
|
1844 |
oprot.writeFieldEnd()
|
|
|
1845 |
if self.attempts is not None:
|
|
|
1846 |
oprot.writeFieldBegin('attempts', TType.I64, 7)
|
|
|
1847 |
oprot.writeI64(self.attempts)
|
|
|
1848 |
oprot.writeFieldEnd()
|
|
|
1849 |
if self.createdTimestamp is not None:
|
|
|
1850 |
oprot.writeFieldBegin('createdTimestamp', TType.I64, 8)
|
|
|
1851 |
oprot.writeI64(self.createdTimestamp)
|
|
|
1852 |
oprot.writeFieldEnd()
|
|
|
1853 |
if self.responseId is not None:
|
|
|
1854 |
oprot.writeFieldBegin('responseId', TType.STRING, 9)
|
|
|
1855 |
oprot.writeString(self.responseId)
|
|
|
1856 |
oprot.writeFieldEnd()
|
|
|
1857 |
if self.responseText is not None:
|
|
|
1858 |
oprot.writeFieldBegin('responseText', TType.STRING, 10)
|
|
|
1859 |
oprot.writeString(self.responseText)
|
|
|
1860 |
oprot.writeFieldEnd()
|
|
|
1861 |
if self.deliveryStatus is not None:
|
|
|
1862 |
oprot.writeFieldBegin('deliveryStatus', TType.I32, 11)
|
|
|
1863 |
oprot.writeI32(self.deliveryStatus)
|
|
|
1864 |
oprot.writeFieldEnd()
|
|
|
1865 |
oprot.writeFieldStop()
|
|
|
1866 |
oprot.writeStructEnd()
|
|
|
1867 |
|
|
|
1868 |
def validate(self):
|
|
|
1869 |
return
|
|
|
1870 |
|
|
|
1871 |
|
|
|
1872 |
def __repr__(self):
|
|
|
1873 |
L = ['%s=%r' % (key, value)
|
|
|
1874 |
for key, value in self.__dict__.iteritems()]
|
|
|
1875 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1876 |
|
|
|
1877 |
def __eq__(self, other):
|
|
|
1878 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1879 |
|
|
|
1880 |
def __ne__(self, other):
|
|
|
1881 |
return not (self == other)
|
|
|
1882 |
|
|
|
1883 |
class UserSmsInfo:
|
|
|
1884 |
"""
|
|
|
1885 |
Attributes:
|
|
|
1886 |
- userId
|
|
|
1887 |
- mobileNo
|
|
|
1888 |
- dailyCount
|
|
|
1889 |
- weeklyCount
|
|
|
1890 |
- dndStatus
|
|
|
1891 |
- smsSubscribed
|
|
|
1892 |
- createdTimestamp
|
|
|
1893 |
- updateTimestamp
|
|
|
1894 |
"""
|
|
|
1895 |
|
|
|
1896 |
thrift_spec = (
|
|
|
1897 |
None, # 0
|
|
|
1898 |
(1, TType.I64, 'userId', None, None, ), # 1
|
|
|
1899 |
(2, TType.STRING, 'mobileNo', None, None, ), # 2
|
|
|
1900 |
(3, TType.I32, 'dailyCount', None, None, ), # 3
|
|
|
1901 |
(4, TType.I32, 'weeklyCount', None, None, ), # 4
|
|
|
1902 |
(5, TType.BOOL, 'dndStatus', None, None, ), # 5
|
|
|
1903 |
(6, TType.BOOL, 'smsSubscribed', None, None, ), # 6
|
|
|
1904 |
(7, TType.I64, 'createdTimestamp', None, None, ), # 7
|
|
|
1905 |
(8, TType.I64, 'updateTimestamp', None, None, ), # 8
|
|
|
1906 |
)
|
|
|
1907 |
|
|
|
1908 |
def __init__(self, userId=None, mobileNo=None, dailyCount=None, weeklyCount=None, dndStatus=None, smsSubscribed=None, createdTimestamp=None, updateTimestamp=None,):
|
|
|
1909 |
self.userId = userId
|
|
|
1910 |
self.mobileNo = mobileNo
|
|
|
1911 |
self.dailyCount = dailyCount
|
|
|
1912 |
self.weeklyCount = weeklyCount
|
|
|
1913 |
self.dndStatus = dndStatus
|
|
|
1914 |
self.smsSubscribed = smsSubscribed
|
|
|
1915 |
self.createdTimestamp = createdTimestamp
|
|
|
1916 |
self.updateTimestamp = updateTimestamp
|
|
|
1917 |
|
|
|
1918 |
def read(self, iprot):
|
|
|
1919 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1920 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1921 |
return
|
|
|
1922 |
iprot.readStructBegin()
|
|
|
1923 |
while True:
|
|
|
1924 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1925 |
if ftype == TType.STOP:
|
|
|
1926 |
break
|
|
|
1927 |
if fid == 1:
|
|
|
1928 |
if ftype == TType.I64:
|
|
|
1929 |
self.userId = iprot.readI64();
|
|
|
1930 |
else:
|
|
|
1931 |
iprot.skip(ftype)
|
|
|
1932 |
elif fid == 2:
|
|
|
1933 |
if ftype == TType.STRING:
|
|
|
1934 |
self.mobileNo = iprot.readString();
|
|
|
1935 |
else:
|
|
|
1936 |
iprot.skip(ftype)
|
|
|
1937 |
elif fid == 3:
|
|
|
1938 |
if ftype == TType.I32:
|
|
|
1939 |
self.dailyCount = iprot.readI32();
|
|
|
1940 |
else:
|
|
|
1941 |
iprot.skip(ftype)
|
|
|
1942 |
elif fid == 4:
|
|
|
1943 |
if ftype == TType.I32:
|
|
|
1944 |
self.weeklyCount = iprot.readI32();
|
|
|
1945 |
else:
|
|
|
1946 |
iprot.skip(ftype)
|
|
|
1947 |
elif fid == 5:
|
|
|
1948 |
if ftype == TType.BOOL:
|
|
|
1949 |
self.dndStatus = iprot.readBool();
|
|
|
1950 |
else:
|
|
|
1951 |
iprot.skip(ftype)
|
|
|
1952 |
elif fid == 6:
|
|
|
1953 |
if ftype == TType.BOOL:
|
|
|
1954 |
self.smsSubscribed = iprot.readBool();
|
|
|
1955 |
else:
|
|
|
1956 |
iprot.skip(ftype)
|
|
|
1957 |
elif fid == 7:
|
|
|
1958 |
if ftype == TType.I64:
|
|
|
1959 |
self.createdTimestamp = iprot.readI64();
|
|
|
1960 |
else:
|
|
|
1961 |
iprot.skip(ftype)
|
|
|
1962 |
elif fid == 8:
|
|
|
1963 |
if ftype == TType.I64:
|
|
|
1964 |
self.updateTimestamp = iprot.readI64();
|
|
|
1965 |
else:
|
|
|
1966 |
iprot.skip(ftype)
|
|
|
1967 |
else:
|
|
|
1968 |
iprot.skip(ftype)
|
|
|
1969 |
iprot.readFieldEnd()
|
|
|
1970 |
iprot.readStructEnd()
|
|
|
1971 |
|
|
|
1972 |
def write(self, oprot):
|
|
|
1973 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1974 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1975 |
return
|
|
|
1976 |
oprot.writeStructBegin('UserSmsInfo')
|
|
|
1977 |
if self.userId is not None:
|
|
|
1978 |
oprot.writeFieldBegin('userId', TType.I64, 1)
|
|
|
1979 |
oprot.writeI64(self.userId)
|
|
|
1980 |
oprot.writeFieldEnd()
|
|
|
1981 |
if self.mobileNo is not None:
|
|
|
1982 |
oprot.writeFieldBegin('mobileNo', TType.STRING, 2)
|
|
|
1983 |
oprot.writeString(self.mobileNo)
|
|
|
1984 |
oprot.writeFieldEnd()
|
|
|
1985 |
if self.dailyCount is not None:
|
|
|
1986 |
oprot.writeFieldBegin('dailyCount', TType.I32, 3)
|
|
|
1987 |
oprot.writeI32(self.dailyCount)
|
|
|
1988 |
oprot.writeFieldEnd()
|
|
|
1989 |
if self.weeklyCount is not None:
|
|
|
1990 |
oprot.writeFieldBegin('weeklyCount', TType.I32, 4)
|
|
|
1991 |
oprot.writeI32(self.weeklyCount)
|
|
|
1992 |
oprot.writeFieldEnd()
|
|
|
1993 |
if self.dndStatus is not None:
|
|
|
1994 |
oprot.writeFieldBegin('dndStatus', TType.BOOL, 5)
|
|
|
1995 |
oprot.writeBool(self.dndStatus)
|
|
|
1996 |
oprot.writeFieldEnd()
|
|
|
1997 |
if self.smsSubscribed is not None:
|
|
|
1998 |
oprot.writeFieldBegin('smsSubscribed', TType.BOOL, 6)
|
|
|
1999 |
oprot.writeBool(self.smsSubscribed)
|
|
|
2000 |
oprot.writeFieldEnd()
|
|
|
2001 |
if self.createdTimestamp is not None:
|
|
|
2002 |
oprot.writeFieldBegin('createdTimestamp', TType.I64, 7)
|
|
|
2003 |
oprot.writeI64(self.createdTimestamp)
|
|
|
2004 |
oprot.writeFieldEnd()
|
|
|
2005 |
if self.updateTimestamp is not None:
|
|
|
2006 |
oprot.writeFieldBegin('updateTimestamp', TType.I64, 8)
|
|
|
2007 |
oprot.writeI64(self.updateTimestamp)
|
|
|
2008 |
oprot.writeFieldEnd()
|
|
|
2009 |
oprot.writeFieldStop()
|
|
|
2010 |
oprot.writeStructEnd()
|
|
|
2011 |
|
|
|
2012 |
def validate(self):
|
|
|
2013 |
return
|
|
|
2014 |
|
|
|
2015 |
|
|
|
2016 |
def __repr__(self):
|
|
|
2017 |
L = ['%s=%r' % (key, value)
|
|
|
2018 |
for key, value in self.__dict__.iteritems()]
|
|
|
2019 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2020 |
|
|
|
2021 |
def __eq__(self, other):
|
|
|
2022 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2023 |
|
|
|
2024 |
def __ne__(self, other):
|
|
|
2025 |
return not (self == other)
|