| 3131 |
rajveer |
1 |
#
|
| 3431 |
rajveer |
2 |
# Autogenerated by Thrift Compiler (0.7.0)
|
| 3131 |
rajveer |
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
|
| 3131 |
rajveer |
9 |
|
| 3376 |
rajveer |
10 |
|
| 3131 |
rajveer |
11 |
from thrift.transport import TTransport
|
| 3431 |
rajveer |
12 |
from thrift.protocol import TBinaryProtocol, TProtocol
|
| 3131 |
rajveer |
13 |
try:
|
|
|
14 |
from thrift.protocol import fastbinary
|
|
|
15 |
except:
|
|
|
16 |
fastbinary = None
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
class TicketPriority:
|
|
|
20 |
LOW = 0
|
|
|
21 |
HIGH = 1
|
|
|
22 |
MEDIUM = 2
|
|
|
23 |
|
|
|
24 |
_VALUES_TO_NAMES = {
|
|
|
25 |
0: "LOW",
|
|
|
26 |
1: "HIGH",
|
|
|
27 |
2: "MEDIUM",
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
_NAMES_TO_VALUES = {
|
|
|
31 |
"LOW": 0,
|
|
|
32 |
"HIGH": 1,
|
|
|
33 |
"MEDIUM": 2,
|
|
|
34 |
}
|
|
|
35 |
|
|
|
36 |
class TicketStatus:
|
|
|
37 |
OPEN = 0
|
|
|
38 |
CLOSED = 1
|
|
|
39 |
REOPEN = 2
|
|
|
40 |
|
|
|
41 |
_VALUES_TO_NAMES = {
|
|
|
42 |
0: "OPEN",
|
|
|
43 |
1: "CLOSED",
|
|
|
44 |
2: "REOPEN",
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
_NAMES_TO_VALUES = {
|
|
|
48 |
"OPEN": 0,
|
|
|
49 |
"CLOSED": 1,
|
|
|
50 |
"REOPEN": 2,
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
class TicketCategory:
|
|
|
54 |
RETURN_FORM = 1
|
|
|
55 |
ORDER_CANCELLATION = 2
|
|
|
56 |
DELIVERY_PROBLEM = 3
|
|
|
57 |
PAYMENT_STATUS = 4
|
|
|
58 |
ORDER_STATUS = 5
|
|
|
59 |
PRODUCT_REQUEST = 6
|
| 6176 |
amit.gupta |
60 |
RECHARGE_RELATED = 7
|
| 3131 |
rajveer |
61 |
OTHER = 8
|
| 3499 |
mandeep.dh |
62 |
COD_VERIFICATION = 9
|
| 3578 |
mandeep.dh |
63 |
FAILED_PAYMENTS = 10
|
| 4008 |
mandeep.dh |
64 |
DELAYED_DELIVERY = 11
|
| 4267 |
anupam.sin |
65 |
PAYMENT_FLAGGED = 12
|
| 4332 |
anupam.sin |
66 |
DOA_RECEIVED = 13
|
| 4681 |
amar.kumar |
67 |
PRODUCT_PROCUREMENT = 14
|
| 4948 |
phani.kuma |
68 |
UNDELIVERED = 15
|
| 5407 |
amar.kumar |
69 |
CATEGORY = 16
|
| 5791 |
anupam.sin |
70 |
STORE_PICKUP = 17
|
| 6880 |
amar.kumar |
71 |
ON_TIME_GUARANTEE = 18
|
| 7372 |
kshitij.so |
72 |
LOW_INVENTORY_CANCELLED_ORDERS = 19
|
| 7597 |
kshitij.so |
73 |
RTO_REFUND = 20
|
| 11890 |
kshitij.so |
74 |
Bulk_Order_ENQUIRY = 21
|
| 14882 |
manish.sha |
75 |
PROFITMANDI_FEEDBACK = 22
|
|
|
76 |
PROFITMANDI_ORDER_NOT_SEEN = 23
|
|
|
77 |
PROFITMANDI_CASHBACK = 24
|
|
|
78 |
PROFITMANDI_RECHARGE_ISSUE = 25
|
|
|
79 |
PROFITMANDI_OTHER = 26
|
| 17274 |
manish.sha |
80 |
PROFITMANDI_ORDER_TRACKING_ISSUE = 27
|
| 18709 |
manas |
81 |
PROFITMANDI_REFUND_PROBLEM = 28
|
|
|
82 |
PROFITMANDI_TECHNICAL_PROBLEM = 29
|
|
|
83 |
PROFITMANDI_PRODUCT_ISSUE = 30
|
|
|
84 |
PROFITMANDI_DELAYED_DELIVERY = 31
|
| 20172 |
aman.kumar |
85 |
DELIVERY_ATTEMPT_FAILED = 32
|
| 3131 |
rajveer |
86 |
|
|
|
87 |
_VALUES_TO_NAMES = {
|
|
|
88 |
1: "RETURN_FORM",
|
|
|
89 |
2: "ORDER_CANCELLATION",
|
|
|
90 |
3: "DELIVERY_PROBLEM",
|
|
|
91 |
4: "PAYMENT_STATUS",
|
|
|
92 |
5: "ORDER_STATUS",
|
|
|
93 |
6: "PRODUCT_REQUEST",
|
| 6176 |
amit.gupta |
94 |
7: "RECHARGE_RELATED",
|
| 3131 |
rajveer |
95 |
8: "OTHER",
|
| 3499 |
mandeep.dh |
96 |
9: "COD_VERIFICATION",
|
| 3578 |
mandeep.dh |
97 |
10: "FAILED_PAYMENTS",
|
| 4008 |
mandeep.dh |
98 |
11: "DELAYED_DELIVERY",
|
| 4267 |
anupam.sin |
99 |
12: "PAYMENT_FLAGGED",
|
| 4332 |
anupam.sin |
100 |
13: "DOA_RECEIVED",
|
| 4681 |
amar.kumar |
101 |
14: "PRODUCT_PROCUREMENT",
|
| 4948 |
phani.kuma |
102 |
15: "UNDELIVERED",
|
| 5407 |
amar.kumar |
103 |
16: "CATEGORY",
|
| 5791 |
anupam.sin |
104 |
17: "STORE_PICKUP",
|
| 6880 |
amar.kumar |
105 |
18: "ON_TIME_GUARANTEE",
|
| 7372 |
kshitij.so |
106 |
19: "LOW_INVENTORY_CANCELLED_ORDERS",
|
| 11890 |
kshitij.so |
107 |
20: "RTO_REFUND",
|
|
|
108 |
21: "Bulk_Order_ENQUIRY",
|
| 14882 |
manish.sha |
109 |
22: "PROFITMANDI_FEEDBACK",
|
|
|
110 |
23: "PROFITMANDI_ORDER_NOT_SEEN",
|
|
|
111 |
24: "PROFITMANDI_CASHBACK",
|
|
|
112 |
25: "PROFITMANDI_RECHARGE_ISSUE",
|
|
|
113 |
26: "PROFITMANDI_OTHER",
|
| 17274 |
manish.sha |
114 |
27: "PROFITMANDI_ORDER_TRACKING_ISSUE",
|
| 18709 |
manas |
115 |
28: "PROFITMANDI_REFUND_PROBLEM",
|
|
|
116 |
29: "PROFITMANDI_TECHNICAL_PROBLEM",
|
|
|
117 |
30: "PROFITMANDI_PRODUCT_ISSUE",
|
|
|
118 |
31: "PROFITMANDI_DELAYED_DELIVERY",
|
| 20172 |
aman.kumar |
119 |
32: "DELIVERY_ATTEMPT_FAILED",
|
| 3131 |
rajveer |
120 |
}
|
|
|
121 |
|
|
|
122 |
_NAMES_TO_VALUES = {
|
|
|
123 |
"RETURN_FORM": 1,
|
|
|
124 |
"ORDER_CANCELLATION": 2,
|
|
|
125 |
"DELIVERY_PROBLEM": 3,
|
|
|
126 |
"PAYMENT_STATUS": 4,
|
|
|
127 |
"ORDER_STATUS": 5,
|
|
|
128 |
"PRODUCT_REQUEST": 6,
|
| 6176 |
amit.gupta |
129 |
"RECHARGE_RELATED": 7,
|
| 3131 |
rajveer |
130 |
"OTHER": 8,
|
| 3499 |
mandeep.dh |
131 |
"COD_VERIFICATION": 9,
|
| 3578 |
mandeep.dh |
132 |
"FAILED_PAYMENTS": 10,
|
| 4008 |
mandeep.dh |
133 |
"DELAYED_DELIVERY": 11,
|
| 4267 |
anupam.sin |
134 |
"PAYMENT_FLAGGED": 12,
|
| 4332 |
anupam.sin |
135 |
"DOA_RECEIVED": 13,
|
| 4681 |
amar.kumar |
136 |
"PRODUCT_PROCUREMENT": 14,
|
| 4948 |
phani.kuma |
137 |
"UNDELIVERED": 15,
|
| 5407 |
amar.kumar |
138 |
"CATEGORY": 16,
|
| 5791 |
anupam.sin |
139 |
"STORE_PICKUP": 17,
|
| 6880 |
amar.kumar |
140 |
"ON_TIME_GUARANTEE": 18,
|
| 7372 |
kshitij.so |
141 |
"LOW_INVENTORY_CANCELLED_ORDERS": 19,
|
| 11890 |
kshitij.so |
142 |
"RTO_REFUND": 20,
|
|
|
143 |
"Bulk_Order_ENQUIRY": 21,
|
| 14882 |
manish.sha |
144 |
"PROFITMANDI_FEEDBACK": 22,
|
|
|
145 |
"PROFITMANDI_ORDER_NOT_SEEN": 23,
|
|
|
146 |
"PROFITMANDI_CASHBACK": 24,
|
|
|
147 |
"PROFITMANDI_RECHARGE_ISSUE": 25,
|
|
|
148 |
"PROFITMANDI_OTHER": 26,
|
| 17274 |
manish.sha |
149 |
"PROFITMANDI_ORDER_TRACKING_ISSUE": 27,
|
| 18709 |
manas |
150 |
"PROFITMANDI_REFUND_PROBLEM": 28,
|
|
|
151 |
"PROFITMANDI_TECHNICAL_PROBLEM": 29,
|
|
|
152 |
"PROFITMANDI_PRODUCT_ISSUE": 30,
|
|
|
153 |
"PROFITMANDI_DELAYED_DELIVERY": 31,
|
| 20172 |
aman.kumar |
154 |
"DELIVERY_ATTEMPT_FAILED": 32,
|
| 3131 |
rajveer |
155 |
}
|
|
|
156 |
|
| 3376 |
rajveer |
157 |
class ActivityType:
|
|
|
158 |
SEND_EMAIL_TO_CUSTOMER = 1
|
|
|
159 |
RECEIVED_EMAIL_FROM_CUSTOMER = 2
|
|
|
160 |
CALLED_CUSTOMER = 3
|
|
|
161 |
RECEIVED_CALL_FROM_CUSTOMER = 4
|
|
|
162 |
OTHER = 5
|
| 4020 |
mandeep.dh |
163 |
ESCALATE_TICKET = 6
|
| 18709 |
manas |
164 |
PROFITMANDI_CRM_APP_TICKET = 7
|
| 3376 |
rajveer |
165 |
|
|
|
166 |
_VALUES_TO_NAMES = {
|
|
|
167 |
1: "SEND_EMAIL_TO_CUSTOMER",
|
|
|
168 |
2: "RECEIVED_EMAIL_FROM_CUSTOMER",
|
|
|
169 |
3: "CALLED_CUSTOMER",
|
|
|
170 |
4: "RECEIVED_CALL_FROM_CUSTOMER",
|
|
|
171 |
5: "OTHER",
|
| 4020 |
mandeep.dh |
172 |
6: "ESCALATE_TICKET",
|
| 18709 |
manas |
173 |
7: "PROFITMANDI_CRM_APP_TICKET",
|
| 3376 |
rajveer |
174 |
}
|
|
|
175 |
|
|
|
176 |
_NAMES_TO_VALUES = {
|
|
|
177 |
"SEND_EMAIL_TO_CUSTOMER": 1,
|
|
|
178 |
"RECEIVED_EMAIL_FROM_CUSTOMER": 2,
|
|
|
179 |
"CALLED_CUSTOMER": 3,
|
|
|
180 |
"RECEIVED_CALL_FROM_CUSTOMER": 4,
|
|
|
181 |
"OTHER": 5,
|
| 4020 |
mandeep.dh |
182 |
"ESCALATE_TICKET": 6,
|
| 18709 |
manas |
183 |
"PROFITMANDI_CRM_APP_TICKET": 7,
|
| 3376 |
rajveer |
184 |
}
|
|
|
185 |
|
| 3431 |
rajveer |
186 |
|
|
|
187 |
class Agent:
|
|
|
188 |
"""
|
|
|
189 |
Attributes:
|
|
|
190 |
- id
|
|
|
191 |
- name
|
|
|
192 |
- emailId
|
|
|
193 |
- managerId
|
|
|
194 |
- password
|
| 4948 |
phani.kuma |
195 |
- is_active
|
| 16244 |
manish.sha |
196 |
- is_pmCrmUser
|
|
|
197 |
- is_allAssignable
|
| 3431 |
rajveer |
198 |
"""
|
|
|
199 |
|
|
|
200 |
thrift_spec = (
|
|
|
201 |
None, # 0
|
|
|
202 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
203 |
(2, TType.STRING, 'name', None, None, ), # 2
|
|
|
204 |
(3, TType.STRING, 'emailId', None, None, ), # 3
|
|
|
205 |
(4, TType.I64, 'managerId', None, None, ), # 4
|
|
|
206 |
(5, TType.STRING, 'password', None, None, ), # 5
|
| 4948 |
phani.kuma |
207 |
(6, TType.BOOL, 'is_active', None, None, ), # 6
|
| 16244 |
manish.sha |
208 |
(7, TType.BOOL, 'is_pmCrmUser', None, None, ), # 7
|
|
|
209 |
(8, TType.BOOL, 'is_allAssignable', None, None, ), # 8
|
| 3431 |
rajveer |
210 |
)
|
|
|
211 |
|
| 16244 |
manish.sha |
212 |
def __init__(self, id=None, name=None, emailId=None, managerId=None, password=None, is_active=None, is_pmCrmUser=None, is_allAssignable=None,):
|
| 3431 |
rajveer |
213 |
self.id = id
|
|
|
214 |
self.name = name
|
|
|
215 |
self.emailId = emailId
|
|
|
216 |
self.managerId = managerId
|
|
|
217 |
self.password = password
|
| 4948 |
phani.kuma |
218 |
self.is_active = is_active
|
| 16244 |
manish.sha |
219 |
self.is_pmCrmUser = is_pmCrmUser
|
|
|
220 |
self.is_allAssignable = is_allAssignable
|
| 3431 |
rajveer |
221 |
|
|
|
222 |
def read(self, iprot):
|
|
|
223 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
224 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
225 |
return
|
|
|
226 |
iprot.readStructBegin()
|
|
|
227 |
while True:
|
|
|
228 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
229 |
if ftype == TType.STOP:
|
|
|
230 |
break
|
|
|
231 |
if fid == 1:
|
|
|
232 |
if ftype == TType.I64:
|
|
|
233 |
self.id = iprot.readI64();
|
|
|
234 |
else:
|
|
|
235 |
iprot.skip(ftype)
|
|
|
236 |
elif fid == 2:
|
|
|
237 |
if ftype == TType.STRING:
|
|
|
238 |
self.name = iprot.readString();
|
|
|
239 |
else:
|
|
|
240 |
iprot.skip(ftype)
|
|
|
241 |
elif fid == 3:
|
|
|
242 |
if ftype == TType.STRING:
|
|
|
243 |
self.emailId = iprot.readString();
|
|
|
244 |
else:
|
|
|
245 |
iprot.skip(ftype)
|
|
|
246 |
elif fid == 4:
|
|
|
247 |
if ftype == TType.I64:
|
|
|
248 |
self.managerId = iprot.readI64();
|
|
|
249 |
else:
|
|
|
250 |
iprot.skip(ftype)
|
|
|
251 |
elif fid == 5:
|
|
|
252 |
if ftype == TType.STRING:
|
|
|
253 |
self.password = iprot.readString();
|
|
|
254 |
else:
|
|
|
255 |
iprot.skip(ftype)
|
| 4948 |
phani.kuma |
256 |
elif fid == 6:
|
|
|
257 |
if ftype == TType.BOOL:
|
|
|
258 |
self.is_active = iprot.readBool();
|
|
|
259 |
else:
|
|
|
260 |
iprot.skip(ftype)
|
| 16244 |
manish.sha |
261 |
elif fid == 7:
|
|
|
262 |
if ftype == TType.BOOL:
|
|
|
263 |
self.is_pmCrmUser = iprot.readBool();
|
|
|
264 |
else:
|
|
|
265 |
iprot.skip(ftype)
|
|
|
266 |
elif fid == 8:
|
|
|
267 |
if ftype == TType.BOOL:
|
|
|
268 |
self.is_allAssignable = iprot.readBool();
|
|
|
269 |
else:
|
|
|
270 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
271 |
else:
|
|
|
272 |
iprot.skip(ftype)
|
|
|
273 |
iprot.readFieldEnd()
|
|
|
274 |
iprot.readStructEnd()
|
|
|
275 |
|
|
|
276 |
def write(self, oprot):
|
|
|
277 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
278 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
279 |
return
|
|
|
280 |
oprot.writeStructBegin('Agent')
|
|
|
281 |
if self.id is not None:
|
|
|
282 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
283 |
oprot.writeI64(self.id)
|
|
|
284 |
oprot.writeFieldEnd()
|
|
|
285 |
if self.name is not None:
|
|
|
286 |
oprot.writeFieldBegin('name', TType.STRING, 2)
|
|
|
287 |
oprot.writeString(self.name)
|
|
|
288 |
oprot.writeFieldEnd()
|
|
|
289 |
if self.emailId is not None:
|
|
|
290 |
oprot.writeFieldBegin('emailId', TType.STRING, 3)
|
|
|
291 |
oprot.writeString(self.emailId)
|
|
|
292 |
oprot.writeFieldEnd()
|
|
|
293 |
if self.managerId is not None:
|
|
|
294 |
oprot.writeFieldBegin('managerId', TType.I64, 4)
|
|
|
295 |
oprot.writeI64(self.managerId)
|
|
|
296 |
oprot.writeFieldEnd()
|
|
|
297 |
if self.password is not None:
|
|
|
298 |
oprot.writeFieldBegin('password', TType.STRING, 5)
|
|
|
299 |
oprot.writeString(self.password)
|
|
|
300 |
oprot.writeFieldEnd()
|
| 4948 |
phani.kuma |
301 |
if self.is_active is not None:
|
|
|
302 |
oprot.writeFieldBegin('is_active', TType.BOOL, 6)
|
|
|
303 |
oprot.writeBool(self.is_active)
|
|
|
304 |
oprot.writeFieldEnd()
|
| 16244 |
manish.sha |
305 |
if self.is_pmCrmUser is not None:
|
|
|
306 |
oprot.writeFieldBegin('is_pmCrmUser', TType.BOOL, 7)
|
|
|
307 |
oprot.writeBool(self.is_pmCrmUser)
|
|
|
308 |
oprot.writeFieldEnd()
|
|
|
309 |
if self.is_allAssignable is not None:
|
|
|
310 |
oprot.writeFieldBegin('is_allAssignable', TType.BOOL, 8)
|
|
|
311 |
oprot.writeBool(self.is_allAssignable)
|
|
|
312 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
313 |
oprot.writeFieldStop()
|
|
|
314 |
oprot.writeStructEnd()
|
|
|
315 |
|
|
|
316 |
def validate(self):
|
|
|
317 |
return
|
|
|
318 |
|
|
|
319 |
|
|
|
320 |
def __repr__(self):
|
|
|
321 |
L = ['%s=%r' % (key, value)
|
|
|
322 |
for key, value in self.__dict__.iteritems()]
|
|
|
323 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
324 |
|
|
|
325 |
def __eq__(self, other):
|
|
|
326 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
327 |
|
|
|
328 |
def __ne__(self, other):
|
|
|
329 |
return not (self == other)
|
|
|
330 |
|
| 3131 |
rajveer |
331 |
class Ticket:
|
|
|
332 |
"""
|
|
|
333 |
Attributes:
|
|
|
334 |
- id
|
|
|
335 |
- customerId
|
|
|
336 |
- openDate
|
|
|
337 |
- closeDate
|
| 3376 |
rajveer |
338 |
- description
|
|
|
339 |
- priority
|
|
|
340 |
- category
|
|
|
341 |
- status
|
|
|
342 |
- assigneeId
|
| 3131 |
rajveer |
343 |
- creatorId
|
|
|
344 |
- orderId
|
|
|
345 |
- airwayBillNo
|
|
|
346 |
- productName
|
| 3431 |
rajveer |
347 |
- customerMobileNumber
|
|
|
348 |
- customerEmailId
|
|
|
349 |
- customerName
|
| 3131 |
rajveer |
350 |
"""
|
|
|
351 |
|
|
|
352 |
thrift_spec = (
|
|
|
353 |
None, # 0
|
|
|
354 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
355 |
(2, TType.I64, 'customerId', None, None, ), # 2
|
| 3431 |
rajveer |
356 |
(3, TType.I64, 'openDate', None, None, ), # 3
|
|
|
357 |
(4, TType.I64, 'closeDate', None, None, ), # 4
|
|
|
358 |
(5, TType.STRING, 'description', None, None, ), # 5
|
|
|
359 |
(6, TType.I32, 'priority', None, None, ), # 6
|
|
|
360 |
(7, TType.I32, 'category', None, None, ), # 7
|
|
|
361 |
(8, TType.I32, 'status', None, None, ), # 8
|
|
|
362 |
(9, TType.I64, 'assigneeId', None, None, ), # 9
|
|
|
363 |
(10, TType.I64, 'creatorId', None, None, ), # 10
|
|
|
364 |
(11, TType.I64, 'orderId', None, None, ), # 11
|
|
|
365 |
(12, TType.STRING, 'airwayBillNo', None, None, ), # 12
|
|
|
366 |
(13, TType.STRING, 'productName', None, None, ), # 13
|
|
|
367 |
(14, TType.STRING, 'customerMobileNumber', None, None, ), # 14
|
|
|
368 |
(15, TType.STRING, 'customerEmailId', None, None, ), # 15
|
|
|
369 |
(16, TType.STRING, 'customerName', None, None, ), # 16
|
| 3131 |
rajveer |
370 |
)
|
|
|
371 |
|
| 3546 |
mandeep.dh |
372 |
def __init__(self, id=None, customerId=None, openDate=None, closeDate=None, description=None, priority=None, category=None, status=None, assigneeId=None, creatorId=None, orderId=None, airwayBillNo=None, productName=None, customerMobileNumber=None, customerEmailId=None, customerName=None,):
|
| 3131 |
rajveer |
373 |
self.id = id
|
|
|
374 |
self.customerId = customerId
|
|
|
375 |
self.openDate = openDate
|
|
|
376 |
self.closeDate = closeDate
|
| 3376 |
rajveer |
377 |
self.description = description
|
|
|
378 |
self.priority = priority
|
|
|
379 |
self.category = category
|
|
|
380 |
self.status = status
|
|
|
381 |
self.assigneeId = assigneeId
|
| 3131 |
rajveer |
382 |
self.creatorId = creatorId
|
|
|
383 |
self.orderId = orderId
|
|
|
384 |
self.airwayBillNo = airwayBillNo
|
|
|
385 |
self.productName = productName
|
| 3431 |
rajveer |
386 |
self.customerMobileNumber = customerMobileNumber
|
|
|
387 |
self.customerEmailId = customerEmailId
|
|
|
388 |
self.customerName = customerName
|
| 3131 |
rajveer |
389 |
|
|
|
390 |
def read(self, iprot):
|
|
|
391 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
392 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
393 |
return
|
|
|
394 |
iprot.readStructBegin()
|
|
|
395 |
while True:
|
|
|
396 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
397 |
if ftype == TType.STOP:
|
|
|
398 |
break
|
|
|
399 |
if fid == 1:
|
|
|
400 |
if ftype == TType.I64:
|
|
|
401 |
self.id = iprot.readI64();
|
|
|
402 |
else:
|
|
|
403 |
iprot.skip(ftype)
|
|
|
404 |
elif fid == 2:
|
|
|
405 |
if ftype == TType.I64:
|
|
|
406 |
self.customerId = iprot.readI64();
|
|
|
407 |
else:
|
|
|
408 |
iprot.skip(ftype)
|
|
|
409 |
elif fid == 3:
|
|
|
410 |
if ftype == TType.I64:
|
|
|
411 |
self.openDate = iprot.readI64();
|
|
|
412 |
else:
|
|
|
413 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
414 |
elif fid == 4:
|
| 3131 |
rajveer |
415 |
if ftype == TType.I64:
|
|
|
416 |
self.closeDate = iprot.readI64();
|
|
|
417 |
else:
|
|
|
418 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
419 |
elif fid == 5:
|
| 3131 |
rajveer |
420 |
if ftype == TType.STRING:
|
| 3376 |
rajveer |
421 |
self.description = iprot.readString();
|
| 3131 |
rajveer |
422 |
else:
|
|
|
423 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
424 |
elif fid == 6:
|
| 3376 |
rajveer |
425 |
if ftype == TType.I32:
|
|
|
426 |
self.priority = iprot.readI32();
|
|
|
427 |
else:
|
|
|
428 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
429 |
elif fid == 7:
|
| 3376 |
rajveer |
430 |
if ftype == TType.I32:
|
|
|
431 |
self.category = iprot.readI32();
|
|
|
432 |
else:
|
|
|
433 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
434 |
elif fid == 8:
|
| 3376 |
rajveer |
435 |
if ftype == TType.I32:
|
|
|
436 |
self.status = iprot.readI32();
|
|
|
437 |
else:
|
|
|
438 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
439 |
elif fid == 9:
|
| 3131 |
rajveer |
440 |
if ftype == TType.I64:
|
| 3376 |
rajveer |
441 |
self.assigneeId = iprot.readI64();
|
| 3131 |
rajveer |
442 |
else:
|
|
|
443 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
444 |
elif fid == 10:
|
| 3131 |
rajveer |
445 |
if ftype == TType.I64:
|
| 3376 |
rajveer |
446 |
self.creatorId = iprot.readI64();
|
| 3131 |
rajveer |
447 |
else:
|
|
|
448 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
449 |
elif fid == 11:
|
| 3131 |
rajveer |
450 |
if ftype == TType.I64:
|
|
|
451 |
self.orderId = iprot.readI64();
|
|
|
452 |
else:
|
|
|
453 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
454 |
elif fid == 12:
|
| 3131 |
rajveer |
455 |
if ftype == TType.STRING:
|
|
|
456 |
self.airwayBillNo = iprot.readString();
|
|
|
457 |
else:
|
|
|
458 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
459 |
elif fid == 13:
|
| 3131 |
rajveer |
460 |
if ftype == TType.STRING:
|
|
|
461 |
self.productName = iprot.readString();
|
|
|
462 |
else:
|
|
|
463 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
464 |
elif fid == 14:
|
|
|
465 |
if ftype == TType.STRING:
|
|
|
466 |
self.customerMobileNumber = iprot.readString();
|
|
|
467 |
else:
|
|
|
468 |
iprot.skip(ftype)
|
|
|
469 |
elif fid == 15:
|
|
|
470 |
if ftype == TType.STRING:
|
|
|
471 |
self.customerEmailId = iprot.readString();
|
|
|
472 |
else:
|
|
|
473 |
iprot.skip(ftype)
|
|
|
474 |
elif fid == 16:
|
|
|
475 |
if ftype == TType.STRING:
|
|
|
476 |
self.customerName = iprot.readString();
|
|
|
477 |
else:
|
|
|
478 |
iprot.skip(ftype)
|
| 3131 |
rajveer |
479 |
else:
|
|
|
480 |
iprot.skip(ftype)
|
|
|
481 |
iprot.readFieldEnd()
|
|
|
482 |
iprot.readStructEnd()
|
|
|
483 |
|
|
|
484 |
def write(self, oprot):
|
|
|
485 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
486 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
487 |
return
|
|
|
488 |
oprot.writeStructBegin('Ticket')
|
| 3431 |
rajveer |
489 |
if self.id is not None:
|
| 3131 |
rajveer |
490 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
491 |
oprot.writeI64(self.id)
|
|
|
492 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
493 |
if self.customerId is not None:
|
| 3131 |
rajveer |
494 |
oprot.writeFieldBegin('customerId', TType.I64, 2)
|
|
|
495 |
oprot.writeI64(self.customerId)
|
|
|
496 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
497 |
if self.openDate is not None:
|
|
|
498 |
oprot.writeFieldBegin('openDate', TType.I64, 3)
|
| 3131 |
rajveer |
499 |
oprot.writeI64(self.openDate)
|
|
|
500 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
501 |
if self.closeDate is not None:
|
|
|
502 |
oprot.writeFieldBegin('closeDate', TType.I64, 4)
|
| 3131 |
rajveer |
503 |
oprot.writeI64(self.closeDate)
|
|
|
504 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
505 |
if self.description is not None:
|
|
|
506 |
oprot.writeFieldBegin('description', TType.STRING, 5)
|
| 3376 |
rajveer |
507 |
oprot.writeString(self.description)
|
| 3131 |
rajveer |
508 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
509 |
if self.priority is not None:
|
|
|
510 |
oprot.writeFieldBegin('priority', TType.I32, 6)
|
| 3376 |
rajveer |
511 |
oprot.writeI32(self.priority)
|
|
|
512 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
513 |
if self.category is not None:
|
|
|
514 |
oprot.writeFieldBegin('category', TType.I32, 7)
|
| 3376 |
rajveer |
515 |
oprot.writeI32(self.category)
|
|
|
516 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
517 |
if self.status is not None:
|
|
|
518 |
oprot.writeFieldBegin('status', TType.I32, 8)
|
| 3376 |
rajveer |
519 |
oprot.writeI32(self.status)
|
|
|
520 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
521 |
if self.assigneeId is not None:
|
|
|
522 |
oprot.writeFieldBegin('assigneeId', TType.I64, 9)
|
| 3376 |
rajveer |
523 |
oprot.writeI64(self.assigneeId)
|
|
|
524 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
525 |
if self.creatorId is not None:
|
|
|
526 |
oprot.writeFieldBegin('creatorId', TType.I64, 10)
|
| 3131 |
rajveer |
527 |
oprot.writeI64(self.creatorId)
|
|
|
528 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
529 |
if self.orderId is not None:
|
|
|
530 |
oprot.writeFieldBegin('orderId', TType.I64, 11)
|
| 3131 |
rajveer |
531 |
oprot.writeI64(self.orderId)
|
|
|
532 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
533 |
if self.airwayBillNo is not None:
|
|
|
534 |
oprot.writeFieldBegin('airwayBillNo', TType.STRING, 12)
|
| 3131 |
rajveer |
535 |
oprot.writeString(self.airwayBillNo)
|
|
|
536 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
537 |
if self.productName is not None:
|
|
|
538 |
oprot.writeFieldBegin('productName', TType.STRING, 13)
|
| 3131 |
rajveer |
539 |
oprot.writeString(self.productName)
|
|
|
540 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
541 |
if self.customerMobileNumber is not None:
|
|
|
542 |
oprot.writeFieldBegin('customerMobileNumber', TType.STRING, 14)
|
|
|
543 |
oprot.writeString(self.customerMobileNumber)
|
|
|
544 |
oprot.writeFieldEnd()
|
|
|
545 |
if self.customerEmailId is not None:
|
|
|
546 |
oprot.writeFieldBegin('customerEmailId', TType.STRING, 15)
|
|
|
547 |
oprot.writeString(self.customerEmailId)
|
|
|
548 |
oprot.writeFieldEnd()
|
|
|
549 |
if self.customerName is not None:
|
|
|
550 |
oprot.writeFieldBegin('customerName', TType.STRING, 16)
|
|
|
551 |
oprot.writeString(self.customerName)
|
|
|
552 |
oprot.writeFieldEnd()
|
| 3131 |
rajveer |
553 |
oprot.writeFieldStop()
|
|
|
554 |
oprot.writeStructEnd()
|
|
|
555 |
|
| 3431 |
rajveer |
556 |
def validate(self):
|
|
|
557 |
return
|
|
|
558 |
|
|
|
559 |
|
| 3131 |
rajveer |
560 |
def __repr__(self):
|
|
|
561 |
L = ['%s=%r' % (key, value)
|
|
|
562 |
for key, value in self.__dict__.iteritems()]
|
|
|
563 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
564 |
|
|
|
565 |
def __eq__(self, other):
|
|
|
566 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
567 |
|
|
|
568 |
def __ne__(self, other):
|
|
|
569 |
return not (self == other)
|
|
|
570 |
|
|
|
571 |
class Activity:
|
|
|
572 |
"""
|
|
|
573 |
Attributes:
|
|
|
574 |
- id
|
|
|
575 |
- description
|
| 3376 |
rajveer |
576 |
- creationTimestamp
|
|
|
577 |
- type
|
| 3131 |
rajveer |
578 |
- customerId
|
|
|
579 |
- creatorId
|
| 3431 |
rajveer |
580 |
- userEmailId
|
| 3131 |
rajveer |
581 |
- ticketId
|
|
|
582 |
- ticketPriority
|
|
|
583 |
- ticketAssigneeId
|
|
|
584 |
- ticketStatus
|
|
|
585 |
- ticketCategory
|
| 3376 |
rajveer |
586 |
- ticketDescription
|
| 3431 |
rajveer |
587 |
- isRead
|
|
|
588 |
- customerMobileNumber
|
|
|
589 |
- customerEmailId
|
|
|
590 |
- customerName
|
| 4267 |
anupam.sin |
591 |
- attachments
|
| 3131 |
rajveer |
592 |
"""
|
|
|
593 |
|
|
|
594 |
thrift_spec = (
|
|
|
595 |
None, # 0
|
|
|
596 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
597 |
(2, TType.STRING, 'description', None, None, ), # 2
|
| 3376 |
rajveer |
598 |
(3, TType.I64, 'creationTimestamp', None, None, ), # 3
|
|
|
599 |
(4, TType.I32, 'type', None, None, ), # 4
|
| 3131 |
rajveer |
600 |
(5, TType.I64, 'customerId', None, None, ), # 5
|
| 3431 |
rajveer |
601 |
(6, TType.I64, 'creatorId', None, None, ), # 6
|
|
|
602 |
(7, TType.I64, 'userEmailId', None, None, ), # 7
|
|
|
603 |
(8, TType.I64, 'ticketId', None, None, ), # 8
|
|
|
604 |
(9, TType.I32, 'ticketPriority', None, None, ), # 9
|
|
|
605 |
(10, TType.I64, 'ticketAssigneeId', None, None, ), # 10
|
|
|
606 |
(11, TType.I32, 'ticketStatus', None, None, ), # 11
|
|
|
607 |
(12, TType.I32, 'ticketCategory', None, None, ), # 12
|
|
|
608 |
(13, TType.STRING, 'ticketDescription', None, None, ), # 13
|
|
|
609 |
(14, TType.BOOL, 'isRead', None, None, ), # 14
|
|
|
610 |
(15, TType.STRING, 'customerMobileNumber', None, None, ), # 15
|
|
|
611 |
(16, TType.STRING, 'customerEmailId', None, None, ), # 16
|
|
|
612 |
(17, TType.STRING, 'customerName', None, None, ), # 17
|
| 4267 |
anupam.sin |
613 |
(18, TType.STRING, 'attachments', None, None, ), # 18
|
| 3131 |
rajveer |
614 |
)
|
|
|
615 |
|
| 4267 |
anupam.sin |
616 |
def __init__(self, id=None, description=None, creationTimestamp=None, type=None, customerId=None, creatorId=None, userEmailId=None, ticketId=None, ticketPriority=None, ticketAssigneeId=None, ticketStatus=None, ticketCategory=None, ticketDescription=None, isRead=None, customerMobileNumber=None, customerEmailId=None, customerName=None, attachments=None,):
|
| 3131 |
rajveer |
617 |
self.id = id
|
|
|
618 |
self.description = description
|
| 3376 |
rajveer |
619 |
self.creationTimestamp = creationTimestamp
|
|
|
620 |
self.type = type
|
| 3131 |
rajveer |
621 |
self.customerId = customerId
|
|
|
622 |
self.creatorId = creatorId
|
| 3431 |
rajveer |
623 |
self.userEmailId = userEmailId
|
| 3131 |
rajveer |
624 |
self.ticketId = ticketId
|
|
|
625 |
self.ticketPriority = ticketPriority
|
|
|
626 |
self.ticketAssigneeId = ticketAssigneeId
|
|
|
627 |
self.ticketStatus = ticketStatus
|
|
|
628 |
self.ticketCategory = ticketCategory
|
| 3376 |
rajveer |
629 |
self.ticketDescription = ticketDescription
|
| 3431 |
rajveer |
630 |
self.isRead = isRead
|
|
|
631 |
self.customerMobileNumber = customerMobileNumber
|
|
|
632 |
self.customerEmailId = customerEmailId
|
|
|
633 |
self.customerName = customerName
|
| 4267 |
anupam.sin |
634 |
self.attachments = attachments
|
| 3131 |
rajveer |
635 |
|
|
|
636 |
def read(self, iprot):
|
|
|
637 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
638 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
639 |
return
|
|
|
640 |
iprot.readStructBegin()
|
|
|
641 |
while True:
|
|
|
642 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
643 |
if ftype == TType.STOP:
|
|
|
644 |
break
|
|
|
645 |
if fid == 1:
|
|
|
646 |
if ftype == TType.I64:
|
|
|
647 |
self.id = iprot.readI64();
|
|
|
648 |
else:
|
|
|
649 |
iprot.skip(ftype)
|
|
|
650 |
elif fid == 2:
|
|
|
651 |
if ftype == TType.STRING:
|
|
|
652 |
self.description = iprot.readString();
|
|
|
653 |
else:
|
|
|
654 |
iprot.skip(ftype)
|
|
|
655 |
elif fid == 3:
|
|
|
656 |
if ftype == TType.I64:
|
| 3376 |
rajveer |
657 |
self.creationTimestamp = iprot.readI64();
|
| 3131 |
rajveer |
658 |
else:
|
|
|
659 |
iprot.skip(ftype)
|
|
|
660 |
elif fid == 4:
|
|
|
661 |
if ftype == TType.I32:
|
| 3376 |
rajveer |
662 |
self.type = iprot.readI32();
|
| 3131 |
rajveer |
663 |
else:
|
|
|
664 |
iprot.skip(ftype)
|
|
|
665 |
elif fid == 5:
|
|
|
666 |
if ftype == TType.I64:
|
|
|
667 |
self.customerId = iprot.readI64();
|
|
|
668 |
else:
|
|
|
669 |
iprot.skip(ftype)
|
|
|
670 |
elif fid == 6:
|
| 3431 |
rajveer |
671 |
if ftype == TType.I64:
|
|
|
672 |
self.creatorId = iprot.readI64();
|
| 3131 |
rajveer |
673 |
else:
|
|
|
674 |
iprot.skip(ftype)
|
|
|
675 |
elif fid == 7:
|
|
|
676 |
if ftype == TType.I64:
|
| 3431 |
rajveer |
677 |
self.userEmailId = iprot.readI64();
|
| 3131 |
rajveer |
678 |
else:
|
|
|
679 |
iprot.skip(ftype)
|
|
|
680 |
elif fid == 8:
|
|
|
681 |
if ftype == TType.I64:
|
| 3431 |
rajveer |
682 |
self.ticketId = iprot.readI64();
|
| 3376 |
rajveer |
683 |
else:
|
|
|
684 |
iprot.skip(ftype)
|
|
|
685 |
elif fid == 9:
|
| 3131 |
rajveer |
686 |
if ftype == TType.I32:
|
|
|
687 |
self.ticketPriority = iprot.readI32();
|
|
|
688 |
else:
|
|
|
689 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
690 |
elif fid == 10:
|
| 3131 |
rajveer |
691 |
if ftype == TType.I64:
|
|
|
692 |
self.ticketAssigneeId = iprot.readI64();
|
|
|
693 |
else:
|
|
|
694 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
695 |
elif fid == 11:
|
| 3131 |
rajveer |
696 |
if ftype == TType.I32:
|
|
|
697 |
self.ticketStatus = iprot.readI32();
|
|
|
698 |
else:
|
|
|
699 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
700 |
elif fid == 12:
|
| 3131 |
rajveer |
701 |
if ftype == TType.I32:
|
|
|
702 |
self.ticketCategory = iprot.readI32();
|
|
|
703 |
else:
|
|
|
704 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
705 |
elif fid == 13:
|
| 3376 |
rajveer |
706 |
if ftype == TType.STRING:
|
|
|
707 |
self.ticketDescription = iprot.readString();
|
|
|
708 |
else:
|
|
|
709 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
710 |
elif fid == 14:
|
|
|
711 |
if ftype == TType.BOOL:
|
|
|
712 |
self.isRead = iprot.readBool();
|
|
|
713 |
else:
|
|
|
714 |
iprot.skip(ftype)
|
|
|
715 |
elif fid == 15:
|
|
|
716 |
if ftype == TType.STRING:
|
|
|
717 |
self.customerMobileNumber = iprot.readString();
|
|
|
718 |
else:
|
|
|
719 |
iprot.skip(ftype)
|
|
|
720 |
elif fid == 16:
|
|
|
721 |
if ftype == TType.STRING:
|
|
|
722 |
self.customerEmailId = iprot.readString();
|
|
|
723 |
else:
|
|
|
724 |
iprot.skip(ftype)
|
|
|
725 |
elif fid == 17:
|
|
|
726 |
if ftype == TType.STRING:
|
|
|
727 |
self.customerName = iprot.readString();
|
|
|
728 |
else:
|
|
|
729 |
iprot.skip(ftype)
|
| 4267 |
anupam.sin |
730 |
elif fid == 18:
|
|
|
731 |
if ftype == TType.STRING:
|
|
|
732 |
self.attachments = iprot.readString();
|
|
|
733 |
else:
|
|
|
734 |
iprot.skip(ftype)
|
| 3131 |
rajveer |
735 |
else:
|
|
|
736 |
iprot.skip(ftype)
|
|
|
737 |
iprot.readFieldEnd()
|
|
|
738 |
iprot.readStructEnd()
|
|
|
739 |
|
|
|
740 |
def write(self, oprot):
|
|
|
741 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
742 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
743 |
return
|
|
|
744 |
oprot.writeStructBegin('Activity')
|
| 3431 |
rajveer |
745 |
if self.id is not None:
|
| 3131 |
rajveer |
746 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
747 |
oprot.writeI64(self.id)
|
|
|
748 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
749 |
if self.description is not None:
|
| 3131 |
rajveer |
750 |
oprot.writeFieldBegin('description', TType.STRING, 2)
|
|
|
751 |
oprot.writeString(self.description)
|
|
|
752 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
753 |
if self.creationTimestamp is not None:
|
| 3376 |
rajveer |
754 |
oprot.writeFieldBegin('creationTimestamp', TType.I64, 3)
|
|
|
755 |
oprot.writeI64(self.creationTimestamp)
|
| 3131 |
rajveer |
756 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
757 |
if self.type is not None:
|
| 3376 |
rajveer |
758 |
oprot.writeFieldBegin('type', TType.I32, 4)
|
|
|
759 |
oprot.writeI32(self.type)
|
| 3131 |
rajveer |
760 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
761 |
if self.customerId is not None:
|
| 3131 |
rajveer |
762 |
oprot.writeFieldBegin('customerId', TType.I64, 5)
|
|
|
763 |
oprot.writeI64(self.customerId)
|
|
|
764 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
765 |
if self.creatorId is not None:
|
|
|
766 |
oprot.writeFieldBegin('creatorId', TType.I64, 6)
|
| 3131 |
rajveer |
767 |
oprot.writeI64(self.creatorId)
|
|
|
768 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
769 |
if self.userEmailId is not None:
|
|
|
770 |
oprot.writeFieldBegin('userEmailId', TType.I64, 7)
|
|
|
771 |
oprot.writeI64(self.userEmailId)
|
| 3131 |
rajveer |
772 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
773 |
if self.ticketId is not None:
|
|
|
774 |
oprot.writeFieldBegin('ticketId', TType.I64, 8)
|
| 3131 |
rajveer |
775 |
oprot.writeI64(self.ticketId)
|
|
|
776 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
777 |
if self.ticketPriority is not None:
|
|
|
778 |
oprot.writeFieldBegin('ticketPriority', TType.I32, 9)
|
| 3131 |
rajveer |
779 |
oprot.writeI32(self.ticketPriority)
|
|
|
780 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
781 |
if self.ticketAssigneeId is not None:
|
|
|
782 |
oprot.writeFieldBegin('ticketAssigneeId', TType.I64, 10)
|
| 3131 |
rajveer |
783 |
oprot.writeI64(self.ticketAssigneeId)
|
|
|
784 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
785 |
if self.ticketStatus is not None:
|
|
|
786 |
oprot.writeFieldBegin('ticketStatus', TType.I32, 11)
|
| 3131 |
rajveer |
787 |
oprot.writeI32(self.ticketStatus)
|
|
|
788 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
789 |
if self.ticketCategory is not None:
|
|
|
790 |
oprot.writeFieldBegin('ticketCategory', TType.I32, 12)
|
| 3131 |
rajveer |
791 |
oprot.writeI32(self.ticketCategory)
|
|
|
792 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
793 |
if self.ticketDescription is not None:
|
|
|
794 |
oprot.writeFieldBegin('ticketDescription', TType.STRING, 13)
|
| 3376 |
rajveer |
795 |
oprot.writeString(self.ticketDescription)
|
|
|
796 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
797 |
if self.isRead is not None:
|
|
|
798 |
oprot.writeFieldBegin('isRead', TType.BOOL, 14)
|
|
|
799 |
oprot.writeBool(self.isRead)
|
|
|
800 |
oprot.writeFieldEnd()
|
|
|
801 |
if self.customerMobileNumber is not None:
|
|
|
802 |
oprot.writeFieldBegin('customerMobileNumber', TType.STRING, 15)
|
|
|
803 |
oprot.writeString(self.customerMobileNumber)
|
|
|
804 |
oprot.writeFieldEnd()
|
|
|
805 |
if self.customerEmailId is not None:
|
|
|
806 |
oprot.writeFieldBegin('customerEmailId', TType.STRING, 16)
|
|
|
807 |
oprot.writeString(self.customerEmailId)
|
|
|
808 |
oprot.writeFieldEnd()
|
|
|
809 |
if self.customerName is not None:
|
|
|
810 |
oprot.writeFieldBegin('customerName', TType.STRING, 17)
|
|
|
811 |
oprot.writeString(self.customerName)
|
|
|
812 |
oprot.writeFieldEnd()
|
| 4267 |
anupam.sin |
813 |
if self.attachments is not None:
|
|
|
814 |
oprot.writeFieldBegin('attachments', TType.STRING, 18)
|
|
|
815 |
oprot.writeString(self.attachments)
|
|
|
816 |
oprot.writeFieldEnd()
|
| 3131 |
rajveer |
817 |
oprot.writeFieldStop()
|
|
|
818 |
oprot.writeStructEnd()
|
|
|
819 |
|
| 3431 |
rajveer |
820 |
def validate(self):
|
|
|
821 |
return
|
|
|
822 |
|
|
|
823 |
|
| 3131 |
rajveer |
824 |
def __repr__(self):
|
|
|
825 |
L = ['%s=%r' % (key, value)
|
|
|
826 |
for key, value in self.__dict__.iteritems()]
|
|
|
827 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
828 |
|
|
|
829 |
def __eq__(self, other):
|
|
|
830 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
831 |
|
|
|
832 |
def __ne__(self, other):
|
|
|
833 |
return not (self == other)
|
|
|
834 |
|
| 3431 |
rajveer |
835 |
class SearchFilter:
|
| 3131 |
rajveer |
836 |
"""
|
|
|
837 |
Attributes:
|
| 3431 |
rajveer |
838 |
- ticketId
|
|
|
839 |
- activityId
|
|
|
840 |
- ticketAssigneeIds
|
|
|
841 |
- activityCreatorIds
|
|
|
842 |
- agentId
|
|
|
843 |
- customerId
|
|
|
844 |
- startTimestamp
|
|
|
845 |
- endTimestamp
|
|
|
846 |
- isActivityRead
|
|
|
847 |
- agentEmailId
|
|
|
848 |
- customerEmailId
|
|
|
849 |
- customerMobileNumber
|
| 3546 |
mandeep.dh |
850 |
- ticketStatuses
|
| 3499 |
mandeep.dh |
851 |
- ticketCategory
|
|
|
852 |
- ticketPriority
|
| 3546 |
mandeep.dh |
853 |
- activityType
|
| 14882 |
manish.sha |
854 |
- ticketCategoryList
|
| 14898 |
manish.sha |
855 |
- notShowPmTickets
|
| 3131 |
rajveer |
856 |
"""
|
|
|
857 |
|
|
|
858 |
thrift_spec = (
|
|
|
859 |
None, # 0
|
| 3431 |
rajveer |
860 |
(1, TType.I64, 'ticketId', None, None, ), # 1
|
|
|
861 |
(2, TType.I64, 'activityId', None, None, ), # 2
|
|
|
862 |
(3, TType.LIST, 'ticketAssigneeIds', (TType.I64,None), None, ), # 3
|
|
|
863 |
(4, TType.LIST, 'activityCreatorIds', (TType.I64,None), None, ), # 4
|
|
|
864 |
(5, TType.I64, 'agentId', None, None, ), # 5
|
|
|
865 |
(6, TType.I64, 'customerId', None, None, ), # 6
|
|
|
866 |
(7, TType.I64, 'startTimestamp', None, None, ), # 7
|
|
|
867 |
(8, TType.I64, 'endTimestamp', None, None, ), # 8
|
|
|
868 |
(9, TType.BOOL, 'isActivityRead', None, None, ), # 9
|
|
|
869 |
(10, TType.STRING, 'agentEmailId', None, None, ), # 10
|
|
|
870 |
(11, TType.STRING, 'customerEmailId', None, None, ), # 11
|
|
|
871 |
(12, TType.STRING, 'customerMobileNumber', None, None, ), # 12
|
| 3546 |
mandeep.dh |
872 |
(13, TType.LIST, 'ticketStatuses', (TType.I32,None), None, ), # 13
|
| 3499 |
mandeep.dh |
873 |
(14, TType.I32, 'ticketCategory', None, None, ), # 14
|
|
|
874 |
(15, TType.I32, 'ticketPriority', None, None, ), # 15
|
| 3546 |
mandeep.dh |
875 |
(16, TType.I32, 'activityType', None, None, ), # 16
|
| 14882 |
manish.sha |
876 |
(17, TType.LIST, 'ticketCategoryList', (TType.I32,None), None, ), # 17
|
| 14898 |
manish.sha |
877 |
(18, TType.BOOL, 'notShowPmTickets', None, None, ), # 18
|
| 3131 |
rajveer |
878 |
)
|
|
|
879 |
|
| 14898 |
manish.sha |
880 |
def __init__(self, ticketId=None, activityId=None, ticketAssigneeIds=None, activityCreatorIds=None, agentId=None, customerId=None, startTimestamp=None, endTimestamp=None, isActivityRead=None, agentEmailId=None, customerEmailId=None, customerMobileNumber=None, ticketStatuses=None, ticketCategory=None, ticketPriority=None, activityType=None, ticketCategoryList=None, notShowPmTickets=None,):
|
| 3431 |
rajveer |
881 |
self.ticketId = ticketId
|
|
|
882 |
self.activityId = activityId
|
|
|
883 |
self.ticketAssigneeIds = ticketAssigneeIds
|
|
|
884 |
self.activityCreatorIds = activityCreatorIds
|
|
|
885 |
self.agentId = agentId
|
|
|
886 |
self.customerId = customerId
|
|
|
887 |
self.startTimestamp = startTimestamp
|
|
|
888 |
self.endTimestamp = endTimestamp
|
|
|
889 |
self.isActivityRead = isActivityRead
|
|
|
890 |
self.agentEmailId = agentEmailId
|
|
|
891 |
self.customerEmailId = customerEmailId
|
|
|
892 |
self.customerMobileNumber = customerMobileNumber
|
| 3546 |
mandeep.dh |
893 |
self.ticketStatuses = ticketStatuses
|
| 3499 |
mandeep.dh |
894 |
self.ticketCategory = ticketCategory
|
|
|
895 |
self.ticketPriority = ticketPriority
|
| 3546 |
mandeep.dh |
896 |
self.activityType = activityType
|
| 14882 |
manish.sha |
897 |
self.ticketCategoryList = ticketCategoryList
|
| 14898 |
manish.sha |
898 |
self.notShowPmTickets = notShowPmTickets
|
| 3131 |
rajveer |
899 |
|
|
|
900 |
def read(self, iprot):
|
|
|
901 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
902 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
903 |
return
|
|
|
904 |
iprot.readStructBegin()
|
|
|
905 |
while True:
|
|
|
906 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
907 |
if ftype == TType.STOP:
|
|
|
908 |
break
|
|
|
909 |
if fid == 1:
|
|
|
910 |
if ftype == TType.I64:
|
| 3431 |
rajveer |
911 |
self.ticketId = iprot.readI64();
|
| 3131 |
rajveer |
912 |
else:
|
|
|
913 |
iprot.skip(ftype)
|
|
|
914 |
elif fid == 2:
|
| 3431 |
rajveer |
915 |
if ftype == TType.I64:
|
|
|
916 |
self.activityId = iprot.readI64();
|
| 3131 |
rajveer |
917 |
else:
|
|
|
918 |
iprot.skip(ftype)
|
|
|
919 |
elif fid == 3:
|
| 3431 |
rajveer |
920 |
if ftype == TType.LIST:
|
|
|
921 |
self.ticketAssigneeIds = []
|
|
|
922 |
(_etype3, _size0) = iprot.readListBegin()
|
|
|
923 |
for _i4 in xrange(_size0):
|
|
|
924 |
_elem5 = iprot.readI64();
|
|
|
925 |
self.ticketAssigneeIds.append(_elem5)
|
|
|
926 |
iprot.readListEnd()
|
| 3131 |
rajveer |
927 |
else:
|
|
|
928 |
iprot.skip(ftype)
|
|
|
929 |
elif fid == 4:
|
| 3431 |
rajveer |
930 |
if ftype == TType.LIST:
|
|
|
931 |
self.activityCreatorIds = []
|
|
|
932 |
(_etype9, _size6) = iprot.readListBegin()
|
|
|
933 |
for _i10 in xrange(_size6):
|
|
|
934 |
_elem11 = iprot.readI64();
|
|
|
935 |
self.activityCreatorIds.append(_elem11)
|
|
|
936 |
iprot.readListEnd()
|
|
|
937 |
else:
|
|
|
938 |
iprot.skip(ftype)
|
|
|
939 |
elif fid == 5:
|
| 3131 |
rajveer |
940 |
if ftype == TType.I64:
|
| 3431 |
rajveer |
941 |
self.agentId = iprot.readI64();
|
| 3131 |
rajveer |
942 |
else:
|
|
|
943 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
944 |
elif fid == 6:
|
|
|
945 |
if ftype == TType.I64:
|
|
|
946 |
self.customerId = iprot.readI64();
|
|
|
947 |
else:
|
|
|
948 |
iprot.skip(ftype)
|
|
|
949 |
elif fid == 7:
|
|
|
950 |
if ftype == TType.I64:
|
|
|
951 |
self.startTimestamp = iprot.readI64();
|
|
|
952 |
else:
|
|
|
953 |
iprot.skip(ftype)
|
|
|
954 |
elif fid == 8:
|
|
|
955 |
if ftype == TType.I64:
|
|
|
956 |
self.endTimestamp = iprot.readI64();
|
|
|
957 |
else:
|
|
|
958 |
iprot.skip(ftype)
|
|
|
959 |
elif fid == 9:
|
|
|
960 |
if ftype == TType.BOOL:
|
|
|
961 |
self.isActivityRead = iprot.readBool();
|
|
|
962 |
else:
|
|
|
963 |
iprot.skip(ftype)
|
|
|
964 |
elif fid == 10:
|
| 3131 |
rajveer |
965 |
if ftype == TType.STRING:
|
| 3431 |
rajveer |
966 |
self.agentEmailId = iprot.readString();
|
| 3131 |
rajveer |
967 |
else:
|
|
|
968 |
iprot.skip(ftype)
|
| 3431 |
rajveer |
969 |
elif fid == 11:
|
|
|
970 |
if ftype == TType.STRING:
|
|
|
971 |
self.customerEmailId = iprot.readString();
|
|
|
972 |
else:
|
|
|
973 |
iprot.skip(ftype)
|
|
|
974 |
elif fid == 12:
|
|
|
975 |
if ftype == TType.STRING:
|
|
|
976 |
self.customerMobileNumber = iprot.readString();
|
|
|
977 |
else:
|
|
|
978 |
iprot.skip(ftype)
|
| 3499 |
mandeep.dh |
979 |
elif fid == 13:
|
| 3546 |
mandeep.dh |
980 |
if ftype == TType.LIST:
|
|
|
981 |
self.ticketStatuses = []
|
|
|
982 |
(_etype15, _size12) = iprot.readListBegin()
|
|
|
983 |
for _i16 in xrange(_size12):
|
|
|
984 |
_elem17 = iprot.readI32();
|
|
|
985 |
self.ticketStatuses.append(_elem17)
|
|
|
986 |
iprot.readListEnd()
|
| 3499 |
mandeep.dh |
987 |
else:
|
|
|
988 |
iprot.skip(ftype)
|
|
|
989 |
elif fid == 14:
|
|
|
990 |
if ftype == TType.I32:
|
|
|
991 |
self.ticketCategory = iprot.readI32();
|
|
|
992 |
else:
|
|
|
993 |
iprot.skip(ftype)
|
|
|
994 |
elif fid == 15:
|
|
|
995 |
if ftype == TType.I32:
|
|
|
996 |
self.ticketPriority = iprot.readI32();
|
|
|
997 |
else:
|
|
|
998 |
iprot.skip(ftype)
|
| 3546 |
mandeep.dh |
999 |
elif fid == 16:
|
|
|
1000 |
if ftype == TType.I32:
|
|
|
1001 |
self.activityType = iprot.readI32();
|
|
|
1002 |
else:
|
|
|
1003 |
iprot.skip(ftype)
|
| 14882 |
manish.sha |
1004 |
elif fid == 17:
|
|
|
1005 |
if ftype == TType.LIST:
|
|
|
1006 |
self.ticketCategoryList = []
|
|
|
1007 |
(_etype21, _size18) = iprot.readListBegin()
|
|
|
1008 |
for _i22 in xrange(_size18):
|
|
|
1009 |
_elem23 = iprot.readI32();
|
|
|
1010 |
self.ticketCategoryList.append(_elem23)
|
|
|
1011 |
iprot.readListEnd()
|
|
|
1012 |
else:
|
|
|
1013 |
iprot.skip(ftype)
|
| 14898 |
manish.sha |
1014 |
elif fid == 18:
|
|
|
1015 |
if ftype == TType.BOOL:
|
|
|
1016 |
self.notShowPmTickets = iprot.readBool();
|
|
|
1017 |
else:
|
|
|
1018 |
iprot.skip(ftype)
|
| 3131 |
rajveer |
1019 |
else:
|
|
|
1020 |
iprot.skip(ftype)
|
|
|
1021 |
iprot.readFieldEnd()
|
|
|
1022 |
iprot.readStructEnd()
|
|
|
1023 |
|
|
|
1024 |
def write(self, oprot):
|
|
|
1025 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1026 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1027 |
return
|
| 3431 |
rajveer |
1028 |
oprot.writeStructBegin('SearchFilter')
|
|
|
1029 |
if self.ticketId is not None:
|
|
|
1030 |
oprot.writeFieldBegin('ticketId', TType.I64, 1)
|
|
|
1031 |
oprot.writeI64(self.ticketId)
|
| 3131 |
rajveer |
1032 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1033 |
if self.activityId is not None:
|
|
|
1034 |
oprot.writeFieldBegin('activityId', TType.I64, 2)
|
|
|
1035 |
oprot.writeI64(self.activityId)
|
| 3131 |
rajveer |
1036 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1037 |
if self.ticketAssigneeIds is not None:
|
|
|
1038 |
oprot.writeFieldBegin('ticketAssigneeIds', TType.LIST, 3)
|
|
|
1039 |
oprot.writeListBegin(TType.I64, len(self.ticketAssigneeIds))
|
| 14882 |
manish.sha |
1040 |
for iter24 in self.ticketAssigneeIds:
|
|
|
1041 |
oprot.writeI64(iter24)
|
| 3431 |
rajveer |
1042 |
oprot.writeListEnd()
|
| 3131 |
rajveer |
1043 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1044 |
if self.activityCreatorIds is not None:
|
|
|
1045 |
oprot.writeFieldBegin('activityCreatorIds', TType.LIST, 4)
|
|
|
1046 |
oprot.writeListBegin(TType.I64, len(self.activityCreatorIds))
|
| 14882 |
manish.sha |
1047 |
for iter25 in self.activityCreatorIds:
|
|
|
1048 |
oprot.writeI64(iter25)
|
| 3431 |
rajveer |
1049 |
oprot.writeListEnd()
|
| 3131 |
rajveer |
1050 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1051 |
if self.agentId is not None:
|
|
|
1052 |
oprot.writeFieldBegin('agentId', TType.I64, 5)
|
|
|
1053 |
oprot.writeI64(self.agentId)
|
| 3131 |
rajveer |
1054 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1055 |
if self.customerId is not None:
|
|
|
1056 |
oprot.writeFieldBegin('customerId', TType.I64, 6)
|
|
|
1057 |
oprot.writeI64(self.customerId)
|
|
|
1058 |
oprot.writeFieldEnd()
|
|
|
1059 |
if self.startTimestamp is not None:
|
|
|
1060 |
oprot.writeFieldBegin('startTimestamp', TType.I64, 7)
|
|
|
1061 |
oprot.writeI64(self.startTimestamp)
|
|
|
1062 |
oprot.writeFieldEnd()
|
|
|
1063 |
if self.endTimestamp is not None:
|
|
|
1064 |
oprot.writeFieldBegin('endTimestamp', TType.I64, 8)
|
|
|
1065 |
oprot.writeI64(self.endTimestamp)
|
|
|
1066 |
oprot.writeFieldEnd()
|
|
|
1067 |
if self.isActivityRead is not None:
|
|
|
1068 |
oprot.writeFieldBegin('isActivityRead', TType.BOOL, 9)
|
|
|
1069 |
oprot.writeBool(self.isActivityRead)
|
|
|
1070 |
oprot.writeFieldEnd()
|
|
|
1071 |
if self.agentEmailId is not None:
|
|
|
1072 |
oprot.writeFieldBegin('agentEmailId', TType.STRING, 10)
|
|
|
1073 |
oprot.writeString(self.agentEmailId)
|
|
|
1074 |
oprot.writeFieldEnd()
|
|
|
1075 |
if self.customerEmailId is not None:
|
|
|
1076 |
oprot.writeFieldBegin('customerEmailId', TType.STRING, 11)
|
|
|
1077 |
oprot.writeString(self.customerEmailId)
|
|
|
1078 |
oprot.writeFieldEnd()
|
|
|
1079 |
if self.customerMobileNumber is not None:
|
|
|
1080 |
oprot.writeFieldBegin('customerMobileNumber', TType.STRING, 12)
|
|
|
1081 |
oprot.writeString(self.customerMobileNumber)
|
|
|
1082 |
oprot.writeFieldEnd()
|
| 3546 |
mandeep.dh |
1083 |
if self.ticketStatuses is not None:
|
|
|
1084 |
oprot.writeFieldBegin('ticketStatuses', TType.LIST, 13)
|
|
|
1085 |
oprot.writeListBegin(TType.I32, len(self.ticketStatuses))
|
| 14882 |
manish.sha |
1086 |
for iter26 in self.ticketStatuses:
|
|
|
1087 |
oprot.writeI32(iter26)
|
| 3546 |
mandeep.dh |
1088 |
oprot.writeListEnd()
|
| 3499 |
mandeep.dh |
1089 |
oprot.writeFieldEnd()
|
|
|
1090 |
if self.ticketCategory is not None:
|
|
|
1091 |
oprot.writeFieldBegin('ticketCategory', TType.I32, 14)
|
|
|
1092 |
oprot.writeI32(self.ticketCategory)
|
|
|
1093 |
oprot.writeFieldEnd()
|
|
|
1094 |
if self.ticketPriority is not None:
|
|
|
1095 |
oprot.writeFieldBegin('ticketPriority', TType.I32, 15)
|
|
|
1096 |
oprot.writeI32(self.ticketPriority)
|
|
|
1097 |
oprot.writeFieldEnd()
|
| 3546 |
mandeep.dh |
1098 |
if self.activityType is not None:
|
|
|
1099 |
oprot.writeFieldBegin('activityType', TType.I32, 16)
|
|
|
1100 |
oprot.writeI32(self.activityType)
|
|
|
1101 |
oprot.writeFieldEnd()
|
| 14882 |
manish.sha |
1102 |
if self.ticketCategoryList is not None:
|
|
|
1103 |
oprot.writeFieldBegin('ticketCategoryList', TType.LIST, 17)
|
|
|
1104 |
oprot.writeListBegin(TType.I32, len(self.ticketCategoryList))
|
|
|
1105 |
for iter27 in self.ticketCategoryList:
|
|
|
1106 |
oprot.writeI32(iter27)
|
|
|
1107 |
oprot.writeListEnd()
|
|
|
1108 |
oprot.writeFieldEnd()
|
| 14898 |
manish.sha |
1109 |
if self.notShowPmTickets is not None:
|
|
|
1110 |
oprot.writeFieldBegin('notShowPmTickets', TType.BOOL, 18)
|
|
|
1111 |
oprot.writeBool(self.notShowPmTickets)
|
|
|
1112 |
oprot.writeFieldEnd()
|
| 3131 |
rajveer |
1113 |
oprot.writeFieldStop()
|
|
|
1114 |
oprot.writeStructEnd()
|
|
|
1115 |
|
| 3431 |
rajveer |
1116 |
def validate(self):
|
|
|
1117 |
return
|
|
|
1118 |
|
|
|
1119 |
|
| 3131 |
rajveer |
1120 |
def __repr__(self):
|
|
|
1121 |
L = ['%s=%r' % (key, value)
|
|
|
1122 |
for key, value in self.__dict__.iteritems()]
|
|
|
1123 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1124 |
|
|
|
1125 |
def __eq__(self, other):
|
|
|
1126 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1127 |
|
|
|
1128 |
def __ne__(self, other):
|
|
|
1129 |
return not (self == other)
|
| 7410 |
amar.kumar |
1130 |
|
|
|
1131 |
class CRMServiceException(Exception):
|
|
|
1132 |
"""
|
|
|
1133 |
Attributes:
|
|
|
1134 |
- exceptionType
|
|
|
1135 |
- message
|
|
|
1136 |
"""
|
|
|
1137 |
|
|
|
1138 |
thrift_spec = (
|
|
|
1139 |
None, # 0
|
|
|
1140 |
(1, TType.I32, 'exceptionType', None, None, ), # 1
|
|
|
1141 |
(2, TType.STRING, 'message', None, None, ), # 2
|
|
|
1142 |
)
|
|
|
1143 |
|
|
|
1144 |
def __init__(self, exceptionType=None, message=None,):
|
|
|
1145 |
self.exceptionType = exceptionType
|
|
|
1146 |
self.message = message
|
|
|
1147 |
|
|
|
1148 |
def read(self, iprot):
|
|
|
1149 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1150 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1151 |
return
|
|
|
1152 |
iprot.readStructBegin()
|
|
|
1153 |
while True:
|
|
|
1154 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1155 |
if ftype == TType.STOP:
|
|
|
1156 |
break
|
|
|
1157 |
if fid == 1:
|
|
|
1158 |
if ftype == TType.I32:
|
|
|
1159 |
self.exceptionType = iprot.readI32();
|
|
|
1160 |
else:
|
|
|
1161 |
iprot.skip(ftype)
|
|
|
1162 |
elif fid == 2:
|
|
|
1163 |
if ftype == TType.STRING:
|
|
|
1164 |
self.message = iprot.readString();
|
|
|
1165 |
else:
|
|
|
1166 |
iprot.skip(ftype)
|
|
|
1167 |
else:
|
|
|
1168 |
iprot.skip(ftype)
|
|
|
1169 |
iprot.readFieldEnd()
|
|
|
1170 |
iprot.readStructEnd()
|
|
|
1171 |
|
|
|
1172 |
def write(self, oprot):
|
|
|
1173 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1174 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1175 |
return
|
|
|
1176 |
oprot.writeStructBegin('CRMServiceException')
|
|
|
1177 |
if self.exceptionType is not None:
|
|
|
1178 |
oprot.writeFieldBegin('exceptionType', TType.I32, 1)
|
|
|
1179 |
oprot.writeI32(self.exceptionType)
|
|
|
1180 |
oprot.writeFieldEnd()
|
|
|
1181 |
if self.message is not None:
|
|
|
1182 |
oprot.writeFieldBegin('message', TType.STRING, 2)
|
|
|
1183 |
oprot.writeString(self.message)
|
|
|
1184 |
oprot.writeFieldEnd()
|
|
|
1185 |
oprot.writeFieldStop()
|
|
|
1186 |
oprot.writeStructEnd()
|
|
|
1187 |
|
|
|
1188 |
def validate(self):
|
|
|
1189 |
return
|
|
|
1190 |
|
|
|
1191 |
|
|
|
1192 |
def __str__(self):
|
|
|
1193 |
return repr(self)
|
|
|
1194 |
|
|
|
1195 |
def __repr__(self):
|
|
|
1196 |
L = ['%s=%r' % (key, value)
|
|
|
1197 |
for key, value in self.__dict__.iteritems()]
|
|
|
1198 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1199 |
|
|
|
1200 |
def __eq__(self, other):
|
|
|
1201 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1202 |
|
|
|
1203 |
def __ne__(self, other):
|
|
|
1204 |
return not (self == other)
|