Subversion Repositories SmartDukaan

Rev

Rev 8020 | Rev 12696 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8020 Rev 12691
Line 276... Line 276...
276
    Parameters:
276
    Parameters:
277
     - agentEmailId
277
     - agentEmailId
278
    """
278
    """
279
    pass
279
    pass
280
 
280
 
-
 
281
  def saveUserSmsForSending(self, userId, mobileNo, text, type):
-
 
282
    """
-
 
283
    Parameters:
-
 
284
     - userId
-
 
285
     - mobileNo
-
 
286
     - text
-
 
287
     - type
-
 
288
    """
-
 
289
    pass
-
 
290
 
-
 
291
  def getSmsToBeSent(self, ):
-
 
292
    pass
-
 
293
 
-
 
294
  def addUserSmsInfo(self, userSmsInfo):
-
 
295
    """
-
 
296
    Parameters:
-
 
297
     - userSmsInfo
-
 
298
    """
-
 
299
    pass
-
 
300
 
-
 
301
  def updateUserSmsInfo(self, userSmsInfo):
-
 
302
    """
-
 
303
    Parameters:
-
 
304
     - userSmsInfo
-
 
305
    """
-
 
306
    pass
-
 
307
 
-
 
308
  def getUserSmsInfo(self, userId):
-
 
309
    """
-
 
310
    Parameters:
-
 
311
     - userId
-
 
312
    """
-
 
313
    pass
-
 
314
 
-
 
315
  def getAllUsersSmsInfo(self, dndStatus, smsSubscribed):
-
 
316
    """
-
 
317
    Parameters:
-
 
318
     - dndStatus
-
 
319
     - smsSubscribed
-
 
320
    """
-
 
321
    pass
-
 
322
 
-
 
323
  def listSmsToGetDeliveryInfo(self, ):
-
 
324
    pass
-
 
325
 
-
 
326
  def markMessagesAsSentToOperator(self, userSmsList):
-
 
327
    """
-
 
328
    Parameters:
-
 
329
     - userSmsList
-
 
330
    """
-
 
331
    pass
-
 
332
 
-
 
333
  def markMessagesAsSubmittedToSmsc(self, userSmsList):
-
 
334
    """
-
 
335
    Parameters:
-
 
336
     - userSmsList
-
 
337
    """
-
 
338
    pass
-
 
339
 
-
 
340
  def markMessagesAsSent(self, userSmsList):
-
 
341
    """
-
 
342
    Parameters:
-
 
343
     - userSmsList
-
 
344
    """
-
 
345
    pass
-
 
346
 
-
 
347
  def markMessagesAsRetry(self, userSmsList):
-
 
348
    """
-
 
349
    Parameters:
-
 
350
     - userSmsList
-
 
351
    """
-
 
352
    pass
-
 
353
 
281
 
354
 
282
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
355
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
283
  def __init__(self, iprot, oprot=None):
356
  def __init__(self, iprot, oprot=None):
284
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
357
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
285
 
358
 
Line 1304... Line 1377...
1304
    self._iprot.readMessageEnd()
1377
    self._iprot.readMessageEnd()
1305
    if result.success is not None:
1378
    if result.success is not None:
1306
      return result.success
1379
      return result.success
1307
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseIdsForAgent failed: unknown result");
1380
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseIdsForAgent failed: unknown result");
1308
 
1381
 
-
 
1382
  def saveUserSmsForSending(self, userId, mobileNo, text, type):
-
 
1383
    """
-
 
1384
    Parameters:
-
 
1385
     - userId
-
 
1386
     - mobileNo
-
 
1387
     - text
-
 
1388
     - type
-
 
1389
    """
-
 
1390
    self.send_saveUserSmsForSending(userId, mobileNo, text, type)
-
 
1391
    return self.recv_saveUserSmsForSending()
-
 
1392
 
-
 
1393
  def send_saveUserSmsForSending(self, userId, mobileNo, text, type):
-
 
1394
    self._oprot.writeMessageBegin('saveUserSmsForSending', TMessageType.CALL, self._seqid)
-
 
1395
    args = saveUserSmsForSending_args()
-
 
1396
    args.userId = userId
-
 
1397
    args.mobileNo = mobileNo
-
 
1398
    args.text = text
-
 
1399
    args.type = type
-
 
1400
    args.write(self._oprot)
-
 
1401
    self._oprot.writeMessageEnd()
-
 
1402
    self._oprot.trans.flush()
-
 
1403
 
-
 
1404
  def recv_saveUserSmsForSending(self, ):
-
 
1405
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1406
    if mtype == TMessageType.EXCEPTION:
-
 
1407
      x = TApplicationException()
-
 
1408
      x.read(self._iprot)
-
 
1409
      self._iprot.readMessageEnd()
-
 
1410
      raise x
-
 
1411
    result = saveUserSmsForSending_result()
-
 
1412
    result.read(self._iprot)
-
 
1413
    self._iprot.readMessageEnd()
-
 
1414
    if result.success is not None:
-
 
1415
      return result.success
-
 
1416
    if result.se is not None:
-
 
1417
      raise result.se
-
 
1418
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserSmsForSending failed: unknown result");
-
 
1419
 
-
 
1420
  def getSmsToBeSent(self, ):
-
 
1421
    self.send_getSmsToBeSent()
-
 
1422
    return self.recv_getSmsToBeSent()
-
 
1423
 
-
 
1424
  def send_getSmsToBeSent(self, ):
-
 
1425
    self._oprot.writeMessageBegin('getSmsToBeSent', TMessageType.CALL, self._seqid)
-
 
1426
    args = getSmsToBeSent_args()
-
 
1427
    args.write(self._oprot)
-
 
1428
    self._oprot.writeMessageEnd()
-
 
1429
    self._oprot.trans.flush()
-
 
1430
 
-
 
1431
  def recv_getSmsToBeSent(self, ):
-
 
1432
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1433
    if mtype == TMessageType.EXCEPTION:
-
 
1434
      x = TApplicationException()
-
 
1435
      x.read(self._iprot)
-
 
1436
      self._iprot.readMessageEnd()
-
 
1437
      raise x
-
 
1438
    result = getSmsToBeSent_result()
-
 
1439
    result.read(self._iprot)
-
 
1440
    self._iprot.readMessageEnd()
-
 
1441
    if result.success is not None:
-
 
1442
      return result.success
-
 
1443
    if result.se is not None:
-
 
1444
      raise result.se
-
 
1445
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSmsToBeSent failed: unknown result");
-
 
1446
 
-
 
1447
  def addUserSmsInfo(self, userSmsInfo):
-
 
1448
    """
-
 
1449
    Parameters:
-
 
1450
     - userSmsInfo
-
 
1451
    """
-
 
1452
    self.send_addUserSmsInfo(userSmsInfo)
-
 
1453
    self.recv_addUserSmsInfo()
-
 
1454
 
-
 
1455
  def send_addUserSmsInfo(self, userSmsInfo):
-
 
1456
    self._oprot.writeMessageBegin('addUserSmsInfo', TMessageType.CALL, self._seqid)
-
 
1457
    args = addUserSmsInfo_args()
-
 
1458
    args.userSmsInfo = userSmsInfo
-
 
1459
    args.write(self._oprot)
-
 
1460
    self._oprot.writeMessageEnd()
-
 
1461
    self._oprot.trans.flush()
-
 
1462
 
-
 
1463
  def recv_addUserSmsInfo(self, ):
-
 
1464
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1465
    if mtype == TMessageType.EXCEPTION:
-
 
1466
      x = TApplicationException()
-
 
1467
      x.read(self._iprot)
-
 
1468
      self._iprot.readMessageEnd()
-
 
1469
      raise x
-
 
1470
    result = addUserSmsInfo_result()
-
 
1471
    result.read(self._iprot)
-
 
1472
    self._iprot.readMessageEnd()
-
 
1473
    if result.se is not None:
-
 
1474
      raise result.se
-
 
1475
    return
-
 
1476
 
-
 
1477
  def updateUserSmsInfo(self, userSmsInfo):
-
 
1478
    """
-
 
1479
    Parameters:
-
 
1480
     - userSmsInfo
-
 
1481
    """
-
 
1482
    self.send_updateUserSmsInfo(userSmsInfo)
-
 
1483
    return self.recv_updateUserSmsInfo()
-
 
1484
 
-
 
1485
  def send_updateUserSmsInfo(self, userSmsInfo):
-
 
1486
    self._oprot.writeMessageBegin('updateUserSmsInfo', TMessageType.CALL, self._seqid)
-
 
1487
    args = updateUserSmsInfo_args()
-
 
1488
    args.userSmsInfo = userSmsInfo
-
 
1489
    args.write(self._oprot)
-
 
1490
    self._oprot.writeMessageEnd()
-
 
1491
    self._oprot.trans.flush()
-
 
1492
 
-
 
1493
  def recv_updateUserSmsInfo(self, ):
-
 
1494
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1495
    if mtype == TMessageType.EXCEPTION:
-
 
1496
      x = TApplicationException()
-
 
1497
      x.read(self._iprot)
-
 
1498
      self._iprot.readMessageEnd()
-
 
1499
      raise x
-
 
1500
    result = updateUserSmsInfo_result()
-
 
1501
    result.read(self._iprot)
-
 
1502
    self._iprot.readMessageEnd()
-
 
1503
    if result.success is not None:
-
 
1504
      return result.success
-
 
1505
    if result.se is not None:
-
 
1506
      raise result.se
-
 
1507
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUserSmsInfo failed: unknown result");
-
 
1508
 
-
 
1509
  def getUserSmsInfo(self, userId):
-
 
1510
    """
-
 
1511
    Parameters:
-
 
1512
     - userId
-
 
1513
    """
-
 
1514
    self.send_getUserSmsInfo(userId)
-
 
1515
    return self.recv_getUserSmsInfo()
-
 
1516
 
-
 
1517
  def send_getUserSmsInfo(self, userId):
-
 
1518
    self._oprot.writeMessageBegin('getUserSmsInfo', TMessageType.CALL, self._seqid)
-
 
1519
    args = getUserSmsInfo_args()
-
 
1520
    args.userId = userId
-
 
1521
    args.write(self._oprot)
-
 
1522
    self._oprot.writeMessageEnd()
-
 
1523
    self._oprot.trans.flush()
-
 
1524
 
-
 
1525
  def recv_getUserSmsInfo(self, ):
-
 
1526
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1527
    if mtype == TMessageType.EXCEPTION:
-
 
1528
      x = TApplicationException()
-
 
1529
      x.read(self._iprot)
-
 
1530
      self._iprot.readMessageEnd()
-
 
1531
      raise x
-
 
1532
    result = getUserSmsInfo_result()
-
 
1533
    result.read(self._iprot)
-
 
1534
    self._iprot.readMessageEnd()
-
 
1535
    if result.success is not None:
-
 
1536
      return result.success
-
 
1537
    if result.se is not None:
-
 
1538
      raise result.se
-
 
1539
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserSmsInfo failed: unknown result");
-
 
1540
 
-
 
1541
  def getAllUsersSmsInfo(self, dndStatus, smsSubscribed):
-
 
1542
    """
-
 
1543
    Parameters:
-
 
1544
     - dndStatus
-
 
1545
     - smsSubscribed
-
 
1546
    """
-
 
1547
    self.send_getAllUsersSmsInfo(dndStatus, smsSubscribed)
-
 
1548
    return self.recv_getAllUsersSmsInfo()
-
 
1549
 
-
 
1550
  def send_getAllUsersSmsInfo(self, dndStatus, smsSubscribed):
-
 
1551
    self._oprot.writeMessageBegin('getAllUsersSmsInfo', TMessageType.CALL, self._seqid)
-
 
1552
    args = getAllUsersSmsInfo_args()
-
 
1553
    args.dndStatus = dndStatus
-
 
1554
    args.smsSubscribed = smsSubscribed
-
 
1555
    args.write(self._oprot)
-
 
1556
    self._oprot.writeMessageEnd()
-
 
1557
    self._oprot.trans.flush()
-
 
1558
 
-
 
1559
  def recv_getAllUsersSmsInfo(self, ):
-
 
1560
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1561
    if mtype == TMessageType.EXCEPTION:
-
 
1562
      x = TApplicationException()
-
 
1563
      x.read(self._iprot)
-
 
1564
      self._iprot.readMessageEnd()
-
 
1565
      raise x
-
 
1566
    result = getAllUsersSmsInfo_result()
-
 
1567
    result.read(self._iprot)
-
 
1568
    self._iprot.readMessageEnd()
-
 
1569
    if result.success is not None:
-
 
1570
      return result.success
-
 
1571
    if result.se is not None:
-
 
1572
      raise result.se
-
 
1573
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsersSmsInfo failed: unknown result");
-
 
1574
 
-
 
1575
  def listSmsToGetDeliveryInfo(self, ):
-
 
1576
    self.send_listSmsToGetDeliveryInfo()
-
 
1577
    return self.recv_listSmsToGetDeliveryInfo()
-
 
1578
 
-
 
1579
  def send_listSmsToGetDeliveryInfo(self, ):
-
 
1580
    self._oprot.writeMessageBegin('listSmsToGetDeliveryInfo', TMessageType.CALL, self._seqid)
-
 
1581
    args = listSmsToGetDeliveryInfo_args()
-
 
1582
    args.write(self._oprot)
-
 
1583
    self._oprot.writeMessageEnd()
-
 
1584
    self._oprot.trans.flush()
-
 
1585
 
-
 
1586
  def recv_listSmsToGetDeliveryInfo(self, ):
-
 
1587
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1588
    if mtype == TMessageType.EXCEPTION:
-
 
1589
      x = TApplicationException()
-
 
1590
      x.read(self._iprot)
-
 
1591
      self._iprot.readMessageEnd()
-
 
1592
      raise x
-
 
1593
    result = listSmsToGetDeliveryInfo_result()
-
 
1594
    result.read(self._iprot)
-
 
1595
    self._iprot.readMessageEnd()
-
 
1596
    if result.success is not None:
-
 
1597
      return result.success
-
 
1598
    if result.se is not None:
-
 
1599
      raise result.se
-
 
1600
    raise TApplicationException(TApplicationException.MISSING_RESULT, "listSmsToGetDeliveryInfo failed: unknown result");
-
 
1601
 
-
 
1602
  def markMessagesAsSentToOperator(self, userSmsList):
-
 
1603
    """
-
 
1604
    Parameters:
-
 
1605
     - userSmsList
-
 
1606
    """
-
 
1607
    self.send_markMessagesAsSentToOperator(userSmsList)
-
 
1608
    return self.recv_markMessagesAsSentToOperator()
-
 
1609
 
-
 
1610
  def send_markMessagesAsSentToOperator(self, userSmsList):
-
 
1611
    self._oprot.writeMessageBegin('markMessagesAsSentToOperator', TMessageType.CALL, self._seqid)
-
 
1612
    args = markMessagesAsSentToOperator_args()
-
 
1613
    args.userSmsList = userSmsList
-
 
1614
    args.write(self._oprot)
-
 
1615
    self._oprot.writeMessageEnd()
-
 
1616
    self._oprot.trans.flush()
-
 
1617
 
-
 
1618
  def recv_markMessagesAsSentToOperator(self, ):
-
 
1619
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1620
    if mtype == TMessageType.EXCEPTION:
-
 
1621
      x = TApplicationException()
-
 
1622
      x.read(self._iprot)
-
 
1623
      self._iprot.readMessageEnd()
-
 
1624
      raise x
-
 
1625
    result = markMessagesAsSentToOperator_result()
-
 
1626
    result.read(self._iprot)
-
 
1627
    self._iprot.readMessageEnd()
-
 
1628
    if result.success is not None:
-
 
1629
      return result.success
-
 
1630
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markMessagesAsSentToOperator failed: unknown result");
-
 
1631
 
-
 
1632
  def markMessagesAsSubmittedToSmsc(self, userSmsList):
-
 
1633
    """
-
 
1634
    Parameters:
-
 
1635
     - userSmsList
-
 
1636
    """
-
 
1637
    self.send_markMessagesAsSubmittedToSmsc(userSmsList)
-
 
1638
    return self.recv_markMessagesAsSubmittedToSmsc()
-
 
1639
 
-
 
1640
  def send_markMessagesAsSubmittedToSmsc(self, userSmsList):
-
 
1641
    self._oprot.writeMessageBegin('markMessagesAsSubmittedToSmsc', TMessageType.CALL, self._seqid)
-
 
1642
    args = markMessagesAsSubmittedToSmsc_args()
-
 
1643
    args.userSmsList = userSmsList
-
 
1644
    args.write(self._oprot)
-
 
1645
    self._oprot.writeMessageEnd()
-
 
1646
    self._oprot.trans.flush()
-
 
1647
 
-
 
1648
  def recv_markMessagesAsSubmittedToSmsc(self, ):
-
 
1649
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1650
    if mtype == TMessageType.EXCEPTION:
-
 
1651
      x = TApplicationException()
-
 
1652
      x.read(self._iprot)
-
 
1653
      self._iprot.readMessageEnd()
-
 
1654
      raise x
-
 
1655
    result = markMessagesAsSubmittedToSmsc_result()
-
 
1656
    result.read(self._iprot)
-
 
1657
    self._iprot.readMessageEnd()
-
 
1658
    if result.success is not None:
-
 
1659
      return result.success
-
 
1660
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markMessagesAsSubmittedToSmsc failed: unknown result");
-
 
1661
 
-
 
1662
  def markMessagesAsSent(self, userSmsList):
-
 
1663
    """
-
 
1664
    Parameters:
-
 
1665
     - userSmsList
-
 
1666
    """
-
 
1667
    self.send_markMessagesAsSent(userSmsList)
-
 
1668
    return self.recv_markMessagesAsSent()
-
 
1669
 
-
 
1670
  def send_markMessagesAsSent(self, userSmsList):
-
 
1671
    self._oprot.writeMessageBegin('markMessagesAsSent', TMessageType.CALL, self._seqid)
-
 
1672
    args = markMessagesAsSent_args()
-
 
1673
    args.userSmsList = userSmsList
-
 
1674
    args.write(self._oprot)
-
 
1675
    self._oprot.writeMessageEnd()
-
 
1676
    self._oprot.trans.flush()
-
 
1677
 
-
 
1678
  def recv_markMessagesAsSent(self, ):
-
 
1679
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1680
    if mtype == TMessageType.EXCEPTION:
-
 
1681
      x = TApplicationException()
-
 
1682
      x.read(self._iprot)
-
 
1683
      self._iprot.readMessageEnd()
-
 
1684
      raise x
-
 
1685
    result = markMessagesAsSent_result()
-
 
1686
    result.read(self._iprot)
-
 
1687
    self._iprot.readMessageEnd()
-
 
1688
    if result.success is not None:
-
 
1689
      return result.success
-
 
1690
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markMessagesAsSent failed: unknown result");
-
 
1691
 
-
 
1692
  def markMessagesAsRetry(self, userSmsList):
-
 
1693
    """
-
 
1694
    Parameters:
-
 
1695
     - userSmsList
-
 
1696
    """
-
 
1697
    self.send_markMessagesAsRetry(userSmsList)
-
 
1698
    return self.recv_markMessagesAsRetry()
-
 
1699
 
-
 
1700
  def send_markMessagesAsRetry(self, userSmsList):
-
 
1701
    self._oprot.writeMessageBegin('markMessagesAsRetry', TMessageType.CALL, self._seqid)
-
 
1702
    args = markMessagesAsRetry_args()
-
 
1703
    args.userSmsList = userSmsList
-
 
1704
    args.write(self._oprot)
-
 
1705
    self._oprot.writeMessageEnd()
-
 
1706
    self._oprot.trans.flush()
-
 
1707
 
-
 
1708
  def recv_markMessagesAsRetry(self, ):
-
 
1709
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1710
    if mtype == TMessageType.EXCEPTION:
-
 
1711
      x = TApplicationException()
-
 
1712
      x.read(self._iprot)
-
 
1713
      self._iprot.readMessageEnd()
-
 
1714
      raise x
-
 
1715
    result = markMessagesAsRetry_result()
-
 
1716
    result.read(self._iprot)
-
 
1717
    self._iprot.readMessageEnd()
-
 
1718
    if result.success is not None:
-
 
1719
      return result.success
-
 
1720
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markMessagesAsRetry failed: unknown result");
-
 
1721
 
1309
 
1722
 
1310
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1723
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1311
  def __init__(self, handler):
1724
  def __init__(self, handler):
1312
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1725
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1313
    self._processMap["saveUserEmailForSending"] = Processor.process_saveUserEmailForSending
1726
    self._processMap["saveUserEmailForSending"] = Processor.process_saveUserEmailForSending
Line 1339... Line 1752...
1339
    self._processMap["updateQuickLink"] = Processor.process_updateQuickLink
1752
    self._processMap["updateQuickLink"] = Processor.process_updateQuickLink
1340
    self._processMap["getEmailsForNotificationsSent"] = Processor.process_getEmailsForNotificationsSent
1753
    self._processMap["getEmailsForNotificationsSent"] = Processor.process_getEmailsForNotificationsSent
1341
    self._processMap["getOrderConfirmationMail"] = Processor.process_getOrderConfirmationMail
1754
    self._processMap["getOrderConfirmationMail"] = Processor.process_getOrderConfirmationMail
1342
    self._processMap["getOrderDeliveryMail"] = Processor.process_getOrderDeliveryMail
1755
    self._processMap["getOrderDeliveryMail"] = Processor.process_getOrderDeliveryMail
1343
    self._processMap["getWarehouseIdsForAgent"] = Processor.process_getWarehouseIdsForAgent
1756
    self._processMap["getWarehouseIdsForAgent"] = Processor.process_getWarehouseIdsForAgent
-
 
1757
    self._processMap["saveUserSmsForSending"] = Processor.process_saveUserSmsForSending
-
 
1758
    self._processMap["getSmsToBeSent"] = Processor.process_getSmsToBeSent
-
 
1759
    self._processMap["addUserSmsInfo"] = Processor.process_addUserSmsInfo
-
 
1760
    self._processMap["updateUserSmsInfo"] = Processor.process_updateUserSmsInfo
-
 
1761
    self._processMap["getUserSmsInfo"] = Processor.process_getUserSmsInfo
-
 
1762
    self._processMap["getAllUsersSmsInfo"] = Processor.process_getAllUsersSmsInfo
-
 
1763
    self._processMap["listSmsToGetDeliveryInfo"] = Processor.process_listSmsToGetDeliveryInfo
-
 
1764
    self._processMap["markMessagesAsSentToOperator"] = Processor.process_markMessagesAsSentToOperator
-
 
1765
    self._processMap["markMessagesAsSubmittedToSmsc"] = Processor.process_markMessagesAsSubmittedToSmsc
-
 
1766
    self._processMap["markMessagesAsSent"] = Processor.process_markMessagesAsSent
-
 
1767
    self._processMap["markMessagesAsRetry"] = Processor.process_markMessagesAsRetry
1344
 
1768
 
1345
  def process(self, iprot, oprot):
1769
  def process(self, iprot, oprot):
1346
    (name, type, seqid) = iprot.readMessageBegin()
1770
    (name, type, seqid) = iprot.readMessageBegin()
1347
    if name not in self._processMap:
1771
    if name not in self._processMap:
1348
      iprot.skip(TType.STRUCT)
1772
      iprot.skip(TType.STRUCT)
Line 1762... Line 2186...
1762
    oprot.writeMessageBegin("getWarehouseIdsForAgent", TMessageType.REPLY, seqid)
2186
    oprot.writeMessageBegin("getWarehouseIdsForAgent", TMessageType.REPLY, seqid)
1763
    result.write(oprot)
2187
    result.write(oprot)
1764
    oprot.writeMessageEnd()
2188
    oprot.writeMessageEnd()
1765
    oprot.trans.flush()
2189
    oprot.trans.flush()
1766
 
2190
 
-
 
2191
  def process_saveUserSmsForSending(self, seqid, iprot, oprot):
-
 
2192
    args = saveUserSmsForSending_args()
-
 
2193
    args.read(iprot)
-
 
2194
    iprot.readMessageEnd()
-
 
2195
    result = saveUserSmsForSending_result()
-
 
2196
    try:
-
 
2197
      result.success = self._handler.saveUserSmsForSending(args.userId, args.mobileNo, args.text, args.type)
-
 
2198
    except HelperServiceException, se:
-
 
2199
      result.se = se
-
 
2200
    oprot.writeMessageBegin("saveUserSmsForSending", TMessageType.REPLY, seqid)
-
 
2201
    result.write(oprot)
-
 
2202
    oprot.writeMessageEnd()
-
 
2203
    oprot.trans.flush()
-
 
2204
 
-
 
2205
  def process_getSmsToBeSent(self, seqid, iprot, oprot):
-
 
2206
    args = getSmsToBeSent_args()
-
 
2207
    args.read(iprot)
-
 
2208
    iprot.readMessageEnd()
-
 
2209
    result = getSmsToBeSent_result()
-
 
2210
    try:
-
 
2211
      result.success = self._handler.getSmsToBeSent()
-
 
2212
    except HelperServiceException, se:
-
 
2213
      result.se = se
-
 
2214
    oprot.writeMessageBegin("getSmsToBeSent", TMessageType.REPLY, seqid)
-
 
2215
    result.write(oprot)
-
 
2216
    oprot.writeMessageEnd()
-
 
2217
    oprot.trans.flush()
-
 
2218
 
-
 
2219
  def process_addUserSmsInfo(self, seqid, iprot, oprot):
-
 
2220
    args = addUserSmsInfo_args()
-
 
2221
    args.read(iprot)
-
 
2222
    iprot.readMessageEnd()
-
 
2223
    result = addUserSmsInfo_result()
-
 
2224
    try:
-
 
2225
      self._handler.addUserSmsInfo(args.userSmsInfo)
-
 
2226
    except HelperServiceException, se:
-
 
2227
      result.se = se
-
 
2228
    oprot.writeMessageBegin("addUserSmsInfo", TMessageType.REPLY, seqid)
-
 
2229
    result.write(oprot)
-
 
2230
    oprot.writeMessageEnd()
-
 
2231
    oprot.trans.flush()
-
 
2232
 
-
 
2233
  def process_updateUserSmsInfo(self, seqid, iprot, oprot):
-
 
2234
    args = updateUserSmsInfo_args()
-
 
2235
    args.read(iprot)
-
 
2236
    iprot.readMessageEnd()
-
 
2237
    result = updateUserSmsInfo_result()
-
 
2238
    try:
-
 
2239
      result.success = self._handler.updateUserSmsInfo(args.userSmsInfo)
-
 
2240
    except HelperServiceException, se:
-
 
2241
      result.se = se
-
 
2242
    oprot.writeMessageBegin("updateUserSmsInfo", TMessageType.REPLY, seqid)
-
 
2243
    result.write(oprot)
-
 
2244
    oprot.writeMessageEnd()
-
 
2245
    oprot.trans.flush()
-
 
2246
 
-
 
2247
  def process_getUserSmsInfo(self, seqid, iprot, oprot):
-
 
2248
    args = getUserSmsInfo_args()
-
 
2249
    args.read(iprot)
-
 
2250
    iprot.readMessageEnd()
-
 
2251
    result = getUserSmsInfo_result()
-
 
2252
    try:
-
 
2253
      result.success = self._handler.getUserSmsInfo(args.userId)
-
 
2254
    except HelperServiceException, se:
-
 
2255
      result.se = se
-
 
2256
    oprot.writeMessageBegin("getUserSmsInfo", TMessageType.REPLY, seqid)
-
 
2257
    result.write(oprot)
-
 
2258
    oprot.writeMessageEnd()
-
 
2259
    oprot.trans.flush()
-
 
2260
 
-
 
2261
  def process_getAllUsersSmsInfo(self, seqid, iprot, oprot):
-
 
2262
    args = getAllUsersSmsInfo_args()
-
 
2263
    args.read(iprot)
-
 
2264
    iprot.readMessageEnd()
-
 
2265
    result = getAllUsersSmsInfo_result()
-
 
2266
    try:
-
 
2267
      result.success = self._handler.getAllUsersSmsInfo(args.dndStatus, args.smsSubscribed)
-
 
2268
    except HelperServiceException, se:
-
 
2269
      result.se = se
-
 
2270
    oprot.writeMessageBegin("getAllUsersSmsInfo", TMessageType.REPLY, seqid)
-
 
2271
    result.write(oprot)
-
 
2272
    oprot.writeMessageEnd()
-
 
2273
    oprot.trans.flush()
-
 
2274
 
-
 
2275
  def process_listSmsToGetDeliveryInfo(self, seqid, iprot, oprot):
-
 
2276
    args = listSmsToGetDeliveryInfo_args()
-
 
2277
    args.read(iprot)
-
 
2278
    iprot.readMessageEnd()
-
 
2279
    result = listSmsToGetDeliveryInfo_result()
-
 
2280
    try:
-
 
2281
      result.success = self._handler.listSmsToGetDeliveryInfo()
-
 
2282
    except HelperServiceException, se:
-
 
2283
      result.se = se
-
 
2284
    oprot.writeMessageBegin("listSmsToGetDeliveryInfo", TMessageType.REPLY, seqid)
-
 
2285
    result.write(oprot)
-
 
2286
    oprot.writeMessageEnd()
-
 
2287
    oprot.trans.flush()
-
 
2288
 
-
 
2289
  def process_markMessagesAsSentToOperator(self, seqid, iprot, oprot):
-
 
2290
    args = markMessagesAsSentToOperator_args()
-
 
2291
    args.read(iprot)
-
 
2292
    iprot.readMessageEnd()
-
 
2293
    result = markMessagesAsSentToOperator_result()
-
 
2294
    result.success = self._handler.markMessagesAsSentToOperator(args.userSmsList)
-
 
2295
    oprot.writeMessageBegin("markMessagesAsSentToOperator", TMessageType.REPLY, seqid)
-
 
2296
    result.write(oprot)
-
 
2297
    oprot.writeMessageEnd()
-
 
2298
    oprot.trans.flush()
-
 
2299
 
-
 
2300
  def process_markMessagesAsSubmittedToSmsc(self, seqid, iprot, oprot):
-
 
2301
    args = markMessagesAsSubmittedToSmsc_args()
-
 
2302
    args.read(iprot)
-
 
2303
    iprot.readMessageEnd()
-
 
2304
    result = markMessagesAsSubmittedToSmsc_result()
-
 
2305
    result.success = self._handler.markMessagesAsSubmittedToSmsc(args.userSmsList)
-
 
2306
    oprot.writeMessageBegin("markMessagesAsSubmittedToSmsc", TMessageType.REPLY, seqid)
-
 
2307
    result.write(oprot)
-
 
2308
    oprot.writeMessageEnd()
-
 
2309
    oprot.trans.flush()
-
 
2310
 
-
 
2311
  def process_markMessagesAsSent(self, seqid, iprot, oprot):
-
 
2312
    args = markMessagesAsSent_args()
-
 
2313
    args.read(iprot)
-
 
2314
    iprot.readMessageEnd()
-
 
2315
    result = markMessagesAsSent_result()
-
 
2316
    result.success = self._handler.markMessagesAsSent(args.userSmsList)
-
 
2317
    oprot.writeMessageBegin("markMessagesAsSent", TMessageType.REPLY, seqid)
-
 
2318
    result.write(oprot)
-
 
2319
    oprot.writeMessageEnd()
-
 
2320
    oprot.trans.flush()
-
 
2321
 
-
 
2322
  def process_markMessagesAsRetry(self, seqid, iprot, oprot):
-
 
2323
    args = markMessagesAsRetry_args()
-
 
2324
    args.read(iprot)
-
 
2325
    iprot.readMessageEnd()
-
 
2326
    result = markMessagesAsRetry_result()
-
 
2327
    result.success = self._handler.markMessagesAsRetry(args.userSmsList)
-
 
2328
    oprot.writeMessageBegin("markMessagesAsRetry", TMessageType.REPLY, seqid)
-
 
2329
    result.write(oprot)
-
 
2330
    oprot.writeMessageEnd()
-
 
2331
    oprot.trans.flush()
-
 
2332
 
1767
 
2333
 
1768
# HELPER FUNCTIONS AND STRUCTURES
2334
# HELPER FUNCTIONS AND STRUCTURES
1769
 
2335
 
1770
class saveUserEmailForSending_args:
2336
class saveUserEmailForSending_args:
1771
  """
2337
  """
Line 5999... Line 6565...
5999
      oprot.writeFieldEnd()
6565
      oprot.writeFieldEnd()
6000
    oprot.writeFieldStop()
6566
    oprot.writeFieldStop()
6001
    oprot.writeStructEnd()
6567
    oprot.writeStructEnd()
6002
 
6568
 
6003
  def validate(self):
6569
  def validate(self):
-
 
6570
    return
-
 
6571
 
-
 
6572
 
-
 
6573
  def __repr__(self):
-
 
6574
    L = ['%s=%r' % (key, value)
-
 
6575
      for key, value in self.__dict__.iteritems()]
-
 
6576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6577
 
-
 
6578
  def __eq__(self, other):
-
 
6579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6580
 
-
 
6581
  def __ne__(self, other):
-
 
6582
    return not (self == other)
-
 
6583
 
-
 
6584
class saveUserSmsForSending_args:
-
 
6585
  """
-
 
6586
  Attributes:
-
 
6587
   - userId
-
 
6588
   - mobileNo
-
 
6589
   - text
-
 
6590
   - type
-
 
6591
  """
-
 
6592
 
-
 
6593
  thrift_spec = (
-
 
6594
    None, # 0
-
 
6595
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
6596
    (2, TType.STRING, 'mobileNo', None, None, ), # 2
-
 
6597
    (3, TType.STRING, 'text', None, None, ), # 3
-
 
6598
    (4, TType.I32, 'type', None, None, ), # 4
-
 
6599
  )
-
 
6600
 
-
 
6601
  def __init__(self, userId=None, mobileNo=None, text=None, type=None,):
-
 
6602
    self.userId = userId
-
 
6603
    self.mobileNo = mobileNo
-
 
6604
    self.text = text
-
 
6605
    self.type = type
-
 
6606
 
-
 
6607
  def read(self, iprot):
-
 
6608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6610
      return
-
 
6611
    iprot.readStructBegin()
-
 
6612
    while True:
-
 
6613
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6614
      if ftype == TType.STOP:
-
 
6615
        break
-
 
6616
      if fid == 1:
-
 
6617
        if ftype == TType.I64:
-
 
6618
          self.userId = iprot.readI64();
-
 
6619
        else:
-
 
6620
          iprot.skip(ftype)
-
 
6621
      elif fid == 2:
-
 
6622
        if ftype == TType.STRING:
-
 
6623
          self.mobileNo = iprot.readString();
-
 
6624
        else:
-
 
6625
          iprot.skip(ftype)
-
 
6626
      elif fid == 3:
-
 
6627
        if ftype == TType.STRING:
-
 
6628
          self.text = iprot.readString();
-
 
6629
        else:
-
 
6630
          iprot.skip(ftype)
-
 
6631
      elif fid == 4:
-
 
6632
        if ftype == TType.I32:
-
 
6633
          self.type = iprot.readI32();
-
 
6634
        else:
-
 
6635
          iprot.skip(ftype)
-
 
6636
      else:
-
 
6637
        iprot.skip(ftype)
-
 
6638
      iprot.readFieldEnd()
-
 
6639
    iprot.readStructEnd()
-
 
6640
 
-
 
6641
  def write(self, oprot):
-
 
6642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6644
      return
-
 
6645
    oprot.writeStructBegin('saveUserSmsForSending_args')
-
 
6646
    if self.userId is not None:
-
 
6647
      oprot.writeFieldBegin('userId', TType.I64, 1)
-
 
6648
      oprot.writeI64(self.userId)
-
 
6649
      oprot.writeFieldEnd()
-
 
6650
    if self.mobileNo is not None:
-
 
6651
      oprot.writeFieldBegin('mobileNo', TType.STRING, 2)
-
 
6652
      oprot.writeString(self.mobileNo)
-
 
6653
      oprot.writeFieldEnd()
-
 
6654
    if self.text is not None:
-
 
6655
      oprot.writeFieldBegin('text', TType.STRING, 3)
-
 
6656
      oprot.writeString(self.text)
-
 
6657
      oprot.writeFieldEnd()
-
 
6658
    if self.type is not None:
-
 
6659
      oprot.writeFieldBegin('type', TType.I32, 4)
-
 
6660
      oprot.writeI32(self.type)
-
 
6661
      oprot.writeFieldEnd()
-
 
6662
    oprot.writeFieldStop()
-
 
6663
    oprot.writeStructEnd()
-
 
6664
 
-
 
6665
  def validate(self):
-
 
6666
    return
-
 
6667
 
-
 
6668
 
-
 
6669
  def __repr__(self):
-
 
6670
    L = ['%s=%r' % (key, value)
-
 
6671
      for key, value in self.__dict__.iteritems()]
-
 
6672
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6673
 
-
 
6674
  def __eq__(self, other):
-
 
6675
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6676
 
-
 
6677
  def __ne__(self, other):
-
 
6678
    return not (self == other)
-
 
6679
 
-
 
6680
class saveUserSmsForSending_result:
-
 
6681
  """
-
 
6682
  Attributes:
-
 
6683
   - success
-
 
6684
   - se
-
 
6685
  """
-
 
6686
 
-
 
6687
  thrift_spec = (
-
 
6688
    (0, TType.I64, 'success', None, None, ), # 0
-
 
6689
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
-
 
6690
  )
-
 
6691
 
-
 
6692
  def __init__(self, success=None, se=None,):
-
 
6693
    self.success = success
-
 
6694
    self.se = se
-
 
6695
 
-
 
6696
  def read(self, iprot):
-
 
6697
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6698
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6699
      return
-
 
6700
    iprot.readStructBegin()
-
 
6701
    while True:
-
 
6702
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6703
      if ftype == TType.STOP:
-
 
6704
        break
-
 
6705
      if fid == 0:
-
 
6706
        if ftype == TType.I64:
-
 
6707
          self.success = iprot.readI64();
-
 
6708
        else:
-
 
6709
          iprot.skip(ftype)
-
 
6710
      elif fid == 1:
-
 
6711
        if ftype == TType.STRUCT:
-
 
6712
          self.se = HelperServiceException()
-
 
6713
          self.se.read(iprot)
-
 
6714
        else:
-
 
6715
          iprot.skip(ftype)
-
 
6716
      else:
-
 
6717
        iprot.skip(ftype)
-
 
6718
      iprot.readFieldEnd()
-
 
6719
    iprot.readStructEnd()
-
 
6720
 
-
 
6721
  def write(self, oprot):
-
 
6722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6724
      return
-
 
6725
    oprot.writeStructBegin('saveUserSmsForSending_result')
-
 
6726
    if self.success is not None:
-
 
6727
      oprot.writeFieldBegin('success', TType.I64, 0)
-
 
6728
      oprot.writeI64(self.success)
-
 
6729
      oprot.writeFieldEnd()
-
 
6730
    if self.se is not None:
-
 
6731
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
-
 
6732
      self.se.write(oprot)
-
 
6733
      oprot.writeFieldEnd()
-
 
6734
    oprot.writeFieldStop()
-
 
6735
    oprot.writeStructEnd()
-
 
6736
 
-
 
6737
  def validate(self):
-
 
6738
    return
-
 
6739
 
-
 
6740
 
-
 
6741
  def __repr__(self):
-
 
6742
    L = ['%s=%r' % (key, value)
-
 
6743
      for key, value in self.__dict__.iteritems()]
-
 
6744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6745
 
-
 
6746
  def __eq__(self, other):
-
 
6747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6748
 
-
 
6749
  def __ne__(self, other):
-
 
6750
    return not (self == other)
-
 
6751
 
-
 
6752
class getSmsToBeSent_args:
-
 
6753
 
-
 
6754
  thrift_spec = (
-
 
6755
  )
-
 
6756
 
-
 
6757
  def read(self, iprot):
-
 
6758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6760
      return
-
 
6761
    iprot.readStructBegin()
-
 
6762
    while True:
-
 
6763
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6764
      if ftype == TType.STOP:
-
 
6765
        break
-
 
6766
      else:
-
 
6767
        iprot.skip(ftype)
-
 
6768
      iprot.readFieldEnd()
-
 
6769
    iprot.readStructEnd()
-
 
6770
 
-
 
6771
  def write(self, oprot):
-
 
6772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6774
      return
-
 
6775
    oprot.writeStructBegin('getSmsToBeSent_args')
-
 
6776
    oprot.writeFieldStop()
-
 
6777
    oprot.writeStructEnd()
-
 
6778
 
-
 
6779
  def validate(self):
-
 
6780
    return
-
 
6781
 
-
 
6782
 
-
 
6783
  def __repr__(self):
-
 
6784
    L = ['%s=%r' % (key, value)
-
 
6785
      for key, value in self.__dict__.iteritems()]
-
 
6786
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6787
 
-
 
6788
  def __eq__(self, other):
-
 
6789
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6790
 
-
 
6791
  def __ne__(self, other):
-
 
6792
    return not (self == other)
-
 
6793
 
-
 
6794
class getSmsToBeSent_result:
-
 
6795
  """
-
 
6796
  Attributes:
-
 
6797
   - success
-
 
6798
   - se
-
 
6799
  """
-
 
6800
 
-
 
6801
  thrift_spec = (
-
 
6802
    (0, TType.LIST, 'success', (TType.STRUCT,(UserSms, UserSms.thrift_spec)), None, ), # 0
-
 
6803
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
-
 
6804
  )
-
 
6805
 
-
 
6806
  def __init__(self, success=None, se=None,):
-
 
6807
    self.success = success
-
 
6808
    self.se = se
-
 
6809
 
-
 
6810
  def read(self, iprot):
-
 
6811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6813
      return
-
 
6814
    iprot.readStructBegin()
-
 
6815
    while True:
-
 
6816
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6817
      if ftype == TType.STOP:
-
 
6818
        break
-
 
6819
      if fid == 0:
-
 
6820
        if ftype == TType.LIST:
-
 
6821
          self.success = []
-
 
6822
          (_etype131, _size128) = iprot.readListBegin()
-
 
6823
          for _i132 in xrange(_size128):
-
 
6824
            _elem133 = UserSms()
-
 
6825
            _elem133.read(iprot)
-
 
6826
            self.success.append(_elem133)
-
 
6827
          iprot.readListEnd()
-
 
6828
        else:
-
 
6829
          iprot.skip(ftype)
-
 
6830
      elif fid == 1:
-
 
6831
        if ftype == TType.STRUCT:
-
 
6832
          self.se = HelperServiceException()
-
 
6833
          self.se.read(iprot)
-
 
6834
        else:
-
 
6835
          iprot.skip(ftype)
-
 
6836
      else:
-
 
6837
        iprot.skip(ftype)
-
 
6838
      iprot.readFieldEnd()
-
 
6839
    iprot.readStructEnd()
-
 
6840
 
-
 
6841
  def write(self, oprot):
-
 
6842
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6843
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6844
      return
-
 
6845
    oprot.writeStructBegin('getSmsToBeSent_result')
-
 
6846
    if self.success is not None:
-
 
6847
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
6848
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
6849
      for iter134 in self.success:
-
 
6850
        iter134.write(oprot)
-
 
6851
      oprot.writeListEnd()
-
 
6852
      oprot.writeFieldEnd()
-
 
6853
    if self.se is not None:
-
 
6854
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
-
 
6855
      self.se.write(oprot)
-
 
6856
      oprot.writeFieldEnd()
-
 
6857
    oprot.writeFieldStop()
-
 
6858
    oprot.writeStructEnd()
-
 
6859
 
-
 
6860
  def validate(self):
-
 
6861
    return
-
 
6862
 
-
 
6863
 
-
 
6864
  def __repr__(self):
-
 
6865
    L = ['%s=%r' % (key, value)
-
 
6866
      for key, value in self.__dict__.iteritems()]
-
 
6867
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6868
 
-
 
6869
  def __eq__(self, other):
-
 
6870
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6871
 
-
 
6872
  def __ne__(self, other):
-
 
6873
    return not (self == other)
-
 
6874
 
-
 
6875
class addUserSmsInfo_args:
-
 
6876
  """
-
 
6877
  Attributes:
-
 
6878
   - userSmsInfo
-
 
6879
  """
-
 
6880
 
-
 
6881
  thrift_spec = (
-
 
6882
    None, # 0
-
 
6883
    (1, TType.STRUCT, 'userSmsInfo', (UserSmsInfo, UserSmsInfo.thrift_spec), None, ), # 1
-
 
6884
  )
-
 
6885
 
-
 
6886
  def __init__(self, userSmsInfo=None,):
-
 
6887
    self.userSmsInfo = userSmsInfo
-
 
6888
 
-
 
6889
  def read(self, iprot):
-
 
6890
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6891
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6892
      return
-
 
6893
    iprot.readStructBegin()
-
 
6894
    while True:
-
 
6895
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6896
      if ftype == TType.STOP:
-
 
6897
        break
-
 
6898
      if fid == 1:
-
 
6899
        if ftype == TType.STRUCT:
-
 
6900
          self.userSmsInfo = UserSmsInfo()
-
 
6901
          self.userSmsInfo.read(iprot)
-
 
6902
        else:
-
 
6903
          iprot.skip(ftype)
-
 
6904
      else:
-
 
6905
        iprot.skip(ftype)
-
 
6906
      iprot.readFieldEnd()
-
 
6907
    iprot.readStructEnd()
-
 
6908
 
-
 
6909
  def write(self, oprot):
-
 
6910
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6911
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6912
      return
-
 
6913
    oprot.writeStructBegin('addUserSmsInfo_args')
-
 
6914
    if self.userSmsInfo is not None:
-
 
6915
      oprot.writeFieldBegin('userSmsInfo', TType.STRUCT, 1)
-
 
6916
      self.userSmsInfo.write(oprot)
-
 
6917
      oprot.writeFieldEnd()
-
 
6918
    oprot.writeFieldStop()
-
 
6919
    oprot.writeStructEnd()
-
 
6920
 
-
 
6921
  def validate(self):
-
 
6922
    return
-
 
6923
 
-
 
6924
 
-
 
6925
  def __repr__(self):
-
 
6926
    L = ['%s=%r' % (key, value)
-
 
6927
      for key, value in self.__dict__.iteritems()]
-
 
6928
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6929
 
-
 
6930
  def __eq__(self, other):
-
 
6931
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6932
 
-
 
6933
  def __ne__(self, other):
-
 
6934
    return not (self == other)
-
 
6935
 
-
 
6936
class addUserSmsInfo_result:
-
 
6937
  """
-
 
6938
  Attributes:
-
 
6939
   - se
-
 
6940
  """
-
 
6941
 
-
 
6942
  thrift_spec = (
-
 
6943
    None, # 0
-
 
6944
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
-
 
6945
  )
-
 
6946
 
-
 
6947
  def __init__(self, se=None,):
-
 
6948
    self.se = se
-
 
6949
 
-
 
6950
  def read(self, iprot):
-
 
6951
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6952
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6953
      return
-
 
6954
    iprot.readStructBegin()
-
 
6955
    while True:
-
 
6956
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6957
      if ftype == TType.STOP:
-
 
6958
        break
-
 
6959
      if fid == 1:
-
 
6960
        if ftype == TType.STRUCT:
-
 
6961
          self.se = HelperServiceException()
-
 
6962
          self.se.read(iprot)
-
 
6963
        else:
-
 
6964
          iprot.skip(ftype)
-
 
6965
      else:
-
 
6966
        iprot.skip(ftype)
-
 
6967
      iprot.readFieldEnd()
-
 
6968
    iprot.readStructEnd()
-
 
6969
 
-
 
6970
  def write(self, oprot):
-
 
6971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6973
      return
-
 
6974
    oprot.writeStructBegin('addUserSmsInfo_result')
-
 
6975
    if self.se is not None:
-
 
6976
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
-
 
6977
      self.se.write(oprot)
-
 
6978
      oprot.writeFieldEnd()
-
 
6979
    oprot.writeFieldStop()
-
 
6980
    oprot.writeStructEnd()
-
 
6981
 
-
 
6982
  def validate(self):
-
 
6983
    return
-
 
6984
 
-
 
6985
 
-
 
6986
  def __repr__(self):
-
 
6987
    L = ['%s=%r' % (key, value)
-
 
6988
      for key, value in self.__dict__.iteritems()]
-
 
6989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6990
 
-
 
6991
  def __eq__(self, other):
-
 
6992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6993
 
-
 
6994
  def __ne__(self, other):
-
 
6995
    return not (self == other)
-
 
6996
 
-
 
6997
class updateUserSmsInfo_args:
-
 
6998
  """
-
 
6999
  Attributes:
-
 
7000
   - userSmsInfo
-
 
7001
  """
-
 
7002
 
-
 
7003
  thrift_spec = (
-
 
7004
    None, # 0
-
 
7005
    (1, TType.STRUCT, 'userSmsInfo', (UserSmsInfo, UserSmsInfo.thrift_spec), None, ), # 1
-
 
7006
  )
-
 
7007
 
-
 
7008
  def __init__(self, userSmsInfo=None,):
-
 
7009
    self.userSmsInfo = userSmsInfo
-
 
7010
 
-
 
7011
  def read(self, iprot):
-
 
7012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7014
      return
-
 
7015
    iprot.readStructBegin()
-
 
7016
    while True:
-
 
7017
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7018
      if ftype == TType.STOP:
-
 
7019
        break
-
 
7020
      if fid == 1:
-
 
7021
        if ftype == TType.STRUCT:
-
 
7022
          self.userSmsInfo = UserSmsInfo()
-
 
7023
          self.userSmsInfo.read(iprot)
-
 
7024
        else:
-
 
7025
          iprot.skip(ftype)
-
 
7026
      else:
-
 
7027
        iprot.skip(ftype)
-
 
7028
      iprot.readFieldEnd()
-
 
7029
    iprot.readStructEnd()
-
 
7030
 
-
 
7031
  def write(self, oprot):
-
 
7032
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7033
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7034
      return
-
 
7035
    oprot.writeStructBegin('updateUserSmsInfo_args')
-
 
7036
    if self.userSmsInfo is not None:
-
 
7037
      oprot.writeFieldBegin('userSmsInfo', TType.STRUCT, 1)
-
 
7038
      self.userSmsInfo.write(oprot)
-
 
7039
      oprot.writeFieldEnd()
-
 
7040
    oprot.writeFieldStop()
-
 
7041
    oprot.writeStructEnd()
-
 
7042
 
-
 
7043
  def validate(self):
-
 
7044
    return
-
 
7045
 
-
 
7046
 
-
 
7047
  def __repr__(self):
-
 
7048
    L = ['%s=%r' % (key, value)
-
 
7049
      for key, value in self.__dict__.iteritems()]
-
 
7050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7051
 
-
 
7052
  def __eq__(self, other):
-
 
7053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7054
 
-
 
7055
  def __ne__(self, other):
-
 
7056
    return not (self == other)
-
 
7057
 
-
 
7058
class updateUserSmsInfo_result:
-
 
7059
  """
-
 
7060
  Attributes:
-
 
7061
   - success
-
 
7062
   - se
-
 
7063
  """
-
 
7064
 
-
 
7065
  thrift_spec = (
-
 
7066
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
7067
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
-
 
7068
  )
-
 
7069
 
-
 
7070
  def __init__(self, success=None, se=None,):
-
 
7071
    self.success = success
-
 
7072
    self.se = se
-
 
7073
 
-
 
7074
  def read(self, iprot):
-
 
7075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7077
      return
-
 
7078
    iprot.readStructBegin()
-
 
7079
    while True:
-
 
7080
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7081
      if ftype == TType.STOP:
-
 
7082
        break
-
 
7083
      if fid == 0:
-
 
7084
        if ftype == TType.BOOL:
-
 
7085
          self.success = iprot.readBool();
-
 
7086
        else:
-
 
7087
          iprot.skip(ftype)
-
 
7088
      elif fid == 1:
-
 
7089
        if ftype == TType.STRUCT:
-
 
7090
          self.se = HelperServiceException()
-
 
7091
          self.se.read(iprot)
-
 
7092
        else:
-
 
7093
          iprot.skip(ftype)
-
 
7094
      else:
-
 
7095
        iprot.skip(ftype)
-
 
7096
      iprot.readFieldEnd()
-
 
7097
    iprot.readStructEnd()
-
 
7098
 
-
 
7099
  def write(self, oprot):
-
 
7100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7102
      return
-
 
7103
    oprot.writeStructBegin('updateUserSmsInfo_result')
-
 
7104
    if self.success is not None:
-
 
7105
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
7106
      oprot.writeBool(self.success)
-
 
7107
      oprot.writeFieldEnd()
-
 
7108
    if self.se is not None:
-
 
7109
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
-
 
7110
      self.se.write(oprot)
-
 
7111
      oprot.writeFieldEnd()
-
 
7112
    oprot.writeFieldStop()
-
 
7113
    oprot.writeStructEnd()
-
 
7114
 
-
 
7115
  def validate(self):
-
 
7116
    return
-
 
7117
 
-
 
7118
 
-
 
7119
  def __repr__(self):
-
 
7120
    L = ['%s=%r' % (key, value)
-
 
7121
      for key, value in self.__dict__.iteritems()]
-
 
7122
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7123
 
-
 
7124
  def __eq__(self, other):
-
 
7125
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7126
 
-
 
7127
  def __ne__(self, other):
-
 
7128
    return not (self == other)
-
 
7129
 
-
 
7130
class getUserSmsInfo_args:
-
 
7131
  """
-
 
7132
  Attributes:
-
 
7133
   - userId
-
 
7134
  """
-
 
7135
 
-
 
7136
  thrift_spec = (
-
 
7137
    None, # 0
-
 
7138
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
7139
  )
-
 
7140
 
-
 
7141
  def __init__(self, userId=None,):
-
 
7142
    self.userId = userId
-
 
7143
 
-
 
7144
  def read(self, iprot):
-
 
7145
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7146
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7147
      return
-
 
7148
    iprot.readStructBegin()
-
 
7149
    while True:
-
 
7150
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7151
      if ftype == TType.STOP:
-
 
7152
        break
-
 
7153
      if fid == 1:
-
 
7154
        if ftype == TType.I64:
-
 
7155
          self.userId = iprot.readI64();
-
 
7156
        else:
-
 
7157
          iprot.skip(ftype)
-
 
7158
      else:
-
 
7159
        iprot.skip(ftype)
-
 
7160
      iprot.readFieldEnd()
-
 
7161
    iprot.readStructEnd()
-
 
7162
 
-
 
7163
  def write(self, oprot):
-
 
7164
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7165
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7166
      return
-
 
7167
    oprot.writeStructBegin('getUserSmsInfo_args')
-
 
7168
    if self.userId is not None:
-
 
7169
      oprot.writeFieldBegin('userId', TType.I64, 1)
-
 
7170
      oprot.writeI64(self.userId)
-
 
7171
      oprot.writeFieldEnd()
-
 
7172
    oprot.writeFieldStop()
-
 
7173
    oprot.writeStructEnd()
-
 
7174
 
-
 
7175
  def validate(self):
-
 
7176
    return
-
 
7177
 
-
 
7178
 
-
 
7179
  def __repr__(self):
-
 
7180
    L = ['%s=%r' % (key, value)
-
 
7181
      for key, value in self.__dict__.iteritems()]
-
 
7182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7183
 
-
 
7184
  def __eq__(self, other):
-
 
7185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7186
 
-
 
7187
  def __ne__(self, other):
-
 
7188
    return not (self == other)
-
 
7189
 
-
 
7190
class getUserSmsInfo_result:
-
 
7191
  """
-
 
7192
  Attributes:
-
 
7193
   - success
-
 
7194
   - se
-
 
7195
  """
-
 
7196
 
-
 
7197
  thrift_spec = (
-
 
7198
    (0, TType.STRUCT, 'success', (UserSmsInfo, UserSmsInfo.thrift_spec), None, ), # 0
-
 
7199
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
-
 
7200
  )
-
 
7201
 
-
 
7202
  def __init__(self, success=None, se=None,):
-
 
7203
    self.success = success
-
 
7204
    self.se = se
-
 
7205
 
-
 
7206
  def read(self, iprot):
-
 
7207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7209
      return
-
 
7210
    iprot.readStructBegin()
-
 
7211
    while True:
-
 
7212
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7213
      if ftype == TType.STOP:
-
 
7214
        break
-
 
7215
      if fid == 0:
-
 
7216
        if ftype == TType.STRUCT:
-
 
7217
          self.success = UserSmsInfo()
-
 
7218
          self.success.read(iprot)
-
 
7219
        else:
-
 
7220
          iprot.skip(ftype)
-
 
7221
      elif fid == 1:
-
 
7222
        if ftype == TType.STRUCT:
-
 
7223
          self.se = HelperServiceException()
-
 
7224
          self.se.read(iprot)
-
 
7225
        else:
-
 
7226
          iprot.skip(ftype)
-
 
7227
      else:
-
 
7228
        iprot.skip(ftype)
-
 
7229
      iprot.readFieldEnd()
-
 
7230
    iprot.readStructEnd()
-
 
7231
 
-
 
7232
  def write(self, oprot):
-
 
7233
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7234
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7235
      return
-
 
7236
    oprot.writeStructBegin('getUserSmsInfo_result')
-
 
7237
    if self.success is not None:
-
 
7238
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
7239
      self.success.write(oprot)
-
 
7240
      oprot.writeFieldEnd()
-
 
7241
    if self.se is not None:
-
 
7242
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
-
 
7243
      self.se.write(oprot)
-
 
7244
      oprot.writeFieldEnd()
-
 
7245
    oprot.writeFieldStop()
-
 
7246
    oprot.writeStructEnd()
-
 
7247
 
-
 
7248
  def validate(self):
-
 
7249
    return
-
 
7250
 
-
 
7251
 
-
 
7252
  def __repr__(self):
-
 
7253
    L = ['%s=%r' % (key, value)
-
 
7254
      for key, value in self.__dict__.iteritems()]
-
 
7255
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7256
 
-
 
7257
  def __eq__(self, other):
-
 
7258
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7259
 
-
 
7260
  def __ne__(self, other):
-
 
7261
    return not (self == other)
-
 
7262
 
-
 
7263
class getAllUsersSmsInfo_args:
-
 
7264
  """
-
 
7265
  Attributes:
-
 
7266
   - dndStatus
-
 
7267
   - smsSubscribed
-
 
7268
  """
-
 
7269
 
-
 
7270
  thrift_spec = (
-
 
7271
    None, # 0
-
 
7272
    (1, TType.BOOL, 'dndStatus', None, None, ), # 1
-
 
7273
    (2, TType.BOOL, 'smsSubscribed', None, None, ), # 2
-
 
7274
  )
-
 
7275
 
-
 
7276
  def __init__(self, dndStatus=None, smsSubscribed=None,):
-
 
7277
    self.dndStatus = dndStatus
-
 
7278
    self.smsSubscribed = smsSubscribed
-
 
7279
 
-
 
7280
  def read(self, iprot):
-
 
7281
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7282
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7283
      return
-
 
7284
    iprot.readStructBegin()
-
 
7285
    while True:
-
 
7286
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7287
      if ftype == TType.STOP:
-
 
7288
        break
-
 
7289
      if fid == 1:
-
 
7290
        if ftype == TType.BOOL:
-
 
7291
          self.dndStatus = iprot.readBool();
-
 
7292
        else:
-
 
7293
          iprot.skip(ftype)
-
 
7294
      elif fid == 2:
-
 
7295
        if ftype == TType.BOOL:
-
 
7296
          self.smsSubscribed = iprot.readBool();
-
 
7297
        else:
-
 
7298
          iprot.skip(ftype)
-
 
7299
      else:
-
 
7300
        iprot.skip(ftype)
-
 
7301
      iprot.readFieldEnd()
-
 
7302
    iprot.readStructEnd()
-
 
7303
 
-
 
7304
  def write(self, oprot):
-
 
7305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7307
      return
-
 
7308
    oprot.writeStructBegin('getAllUsersSmsInfo_args')
-
 
7309
    if self.dndStatus is not None:
-
 
7310
      oprot.writeFieldBegin('dndStatus', TType.BOOL, 1)
-
 
7311
      oprot.writeBool(self.dndStatus)
-
 
7312
      oprot.writeFieldEnd()
-
 
7313
    if self.smsSubscribed is not None:
-
 
7314
      oprot.writeFieldBegin('smsSubscribed', TType.BOOL, 2)
-
 
7315
      oprot.writeBool(self.smsSubscribed)
-
 
7316
      oprot.writeFieldEnd()
-
 
7317
    oprot.writeFieldStop()
-
 
7318
    oprot.writeStructEnd()
-
 
7319
 
-
 
7320
  def validate(self):
-
 
7321
    return
-
 
7322
 
-
 
7323
 
-
 
7324
  def __repr__(self):
-
 
7325
    L = ['%s=%r' % (key, value)
-
 
7326
      for key, value in self.__dict__.iteritems()]
-
 
7327
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7328
 
-
 
7329
  def __eq__(self, other):
-
 
7330
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7331
 
-
 
7332
  def __ne__(self, other):
-
 
7333
    return not (self == other)
-
 
7334
 
-
 
7335
class getAllUsersSmsInfo_result:
-
 
7336
  """
-
 
7337
  Attributes:
-
 
7338
   - success
-
 
7339
   - se
-
 
7340
  """
-
 
7341
 
-
 
7342
  thrift_spec = (
-
 
7343
    (0, TType.LIST, 'success', (TType.STRUCT,(UserSmsInfo, UserSmsInfo.thrift_spec)), None, ), # 0
-
 
7344
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
-
 
7345
  )
-
 
7346
 
-
 
7347
  def __init__(self, success=None, se=None,):
-
 
7348
    self.success = success
-
 
7349
    self.se = se
-
 
7350
 
-
 
7351
  def read(self, iprot):
-
 
7352
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7353
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7354
      return
-
 
7355
    iprot.readStructBegin()
-
 
7356
    while True:
-
 
7357
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7358
      if ftype == TType.STOP:
-
 
7359
        break
-
 
7360
      if fid == 0:
-
 
7361
        if ftype == TType.LIST:
-
 
7362
          self.success = []
-
 
7363
          (_etype138, _size135) = iprot.readListBegin()
-
 
7364
          for _i139 in xrange(_size135):
-
 
7365
            _elem140 = UserSmsInfo()
-
 
7366
            _elem140.read(iprot)
-
 
7367
            self.success.append(_elem140)
-
 
7368
          iprot.readListEnd()
-
 
7369
        else:
-
 
7370
          iprot.skip(ftype)
-
 
7371
      elif fid == 1:
-
 
7372
        if ftype == TType.STRUCT:
-
 
7373
          self.se = HelperServiceException()
-
 
7374
          self.se.read(iprot)
-
 
7375
        else:
-
 
7376
          iprot.skip(ftype)
-
 
7377
      else:
-
 
7378
        iprot.skip(ftype)
-
 
7379
      iprot.readFieldEnd()
-
 
7380
    iprot.readStructEnd()
-
 
7381
 
-
 
7382
  def write(self, oprot):
-
 
7383
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7384
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7385
      return
-
 
7386
    oprot.writeStructBegin('getAllUsersSmsInfo_result')
-
 
7387
    if self.success is not None:
-
 
7388
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
7389
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
7390
      for iter141 in self.success:
-
 
7391
        iter141.write(oprot)
-
 
7392
      oprot.writeListEnd()
-
 
7393
      oprot.writeFieldEnd()
-
 
7394
    if self.se is not None:
-
 
7395
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
-
 
7396
      self.se.write(oprot)
-
 
7397
      oprot.writeFieldEnd()
-
 
7398
    oprot.writeFieldStop()
-
 
7399
    oprot.writeStructEnd()
-
 
7400
 
-
 
7401
  def validate(self):
-
 
7402
    return
-
 
7403
 
-
 
7404
 
-
 
7405
  def __repr__(self):
-
 
7406
    L = ['%s=%r' % (key, value)
-
 
7407
      for key, value in self.__dict__.iteritems()]
-
 
7408
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7409
 
-
 
7410
  def __eq__(self, other):
-
 
7411
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7412
 
-
 
7413
  def __ne__(self, other):
-
 
7414
    return not (self == other)
-
 
7415
 
-
 
7416
class listSmsToGetDeliveryInfo_args:
-
 
7417
 
-
 
7418
  thrift_spec = (
-
 
7419
  )
-
 
7420
 
-
 
7421
  def read(self, iprot):
-
 
7422
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7423
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7424
      return
-
 
7425
    iprot.readStructBegin()
-
 
7426
    while True:
-
 
7427
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7428
      if ftype == TType.STOP:
-
 
7429
        break
-
 
7430
      else:
-
 
7431
        iprot.skip(ftype)
-
 
7432
      iprot.readFieldEnd()
-
 
7433
    iprot.readStructEnd()
-
 
7434
 
-
 
7435
  def write(self, oprot):
-
 
7436
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7437
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7438
      return
-
 
7439
    oprot.writeStructBegin('listSmsToGetDeliveryInfo_args')
-
 
7440
    oprot.writeFieldStop()
-
 
7441
    oprot.writeStructEnd()
-
 
7442
 
-
 
7443
  def validate(self):
-
 
7444
    return
-
 
7445
 
-
 
7446
 
-
 
7447
  def __repr__(self):
-
 
7448
    L = ['%s=%r' % (key, value)
-
 
7449
      for key, value in self.__dict__.iteritems()]
-
 
7450
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7451
 
-
 
7452
  def __eq__(self, other):
-
 
7453
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7454
 
-
 
7455
  def __ne__(self, other):
-
 
7456
    return not (self == other)
-
 
7457
 
-
 
7458
class listSmsToGetDeliveryInfo_result:
-
 
7459
  """
-
 
7460
  Attributes:
-
 
7461
   - success
-
 
7462
   - se
-
 
7463
  """
-
 
7464
 
-
 
7465
  thrift_spec = (
-
 
7466
    (0, TType.LIST, 'success', (TType.STRUCT,(UserSms, UserSms.thrift_spec)), None, ), # 0
-
 
7467
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
-
 
7468
  )
-
 
7469
 
-
 
7470
  def __init__(self, success=None, se=None,):
-
 
7471
    self.success = success
-
 
7472
    self.se = se
-
 
7473
 
-
 
7474
  def read(self, iprot):
-
 
7475
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7476
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7477
      return
-
 
7478
    iprot.readStructBegin()
-
 
7479
    while True:
-
 
7480
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7481
      if ftype == TType.STOP:
-
 
7482
        break
-
 
7483
      if fid == 0:
-
 
7484
        if ftype == TType.LIST:
-
 
7485
          self.success = []
-
 
7486
          (_etype145, _size142) = iprot.readListBegin()
-
 
7487
          for _i146 in xrange(_size142):
-
 
7488
            _elem147 = UserSms()
-
 
7489
            _elem147.read(iprot)
-
 
7490
            self.success.append(_elem147)
-
 
7491
          iprot.readListEnd()
-
 
7492
        else:
-
 
7493
          iprot.skip(ftype)
-
 
7494
      elif fid == 1:
-
 
7495
        if ftype == TType.STRUCT:
-
 
7496
          self.se = HelperServiceException()
-
 
7497
          self.se.read(iprot)
-
 
7498
        else:
-
 
7499
          iprot.skip(ftype)
-
 
7500
      else:
-
 
7501
        iprot.skip(ftype)
-
 
7502
      iprot.readFieldEnd()
-
 
7503
    iprot.readStructEnd()
-
 
7504
 
-
 
7505
  def write(self, oprot):
-
 
7506
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7507
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7508
      return
-
 
7509
    oprot.writeStructBegin('listSmsToGetDeliveryInfo_result')
-
 
7510
    if self.success is not None:
-
 
7511
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
7512
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
7513
      for iter148 in self.success:
-
 
7514
        iter148.write(oprot)
-
 
7515
      oprot.writeListEnd()
-
 
7516
      oprot.writeFieldEnd()
-
 
7517
    if self.se is not None:
-
 
7518
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
-
 
7519
      self.se.write(oprot)
-
 
7520
      oprot.writeFieldEnd()
-
 
7521
    oprot.writeFieldStop()
-
 
7522
    oprot.writeStructEnd()
-
 
7523
 
-
 
7524
  def validate(self):
-
 
7525
    return
-
 
7526
 
-
 
7527
 
-
 
7528
  def __repr__(self):
-
 
7529
    L = ['%s=%r' % (key, value)
-
 
7530
      for key, value in self.__dict__.iteritems()]
-
 
7531
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7532
 
-
 
7533
  def __eq__(self, other):
-
 
7534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7535
 
-
 
7536
  def __ne__(self, other):
-
 
7537
    return not (self == other)
-
 
7538
 
-
 
7539
class markMessagesAsSentToOperator_args:
-
 
7540
  """
-
 
7541
  Attributes:
-
 
7542
   - userSmsList
-
 
7543
  """
-
 
7544
 
-
 
7545
  thrift_spec = None
-
 
7546
  def __init__(self, userSmsList=None,):
-
 
7547
    self.userSmsList = userSmsList
-
 
7548
 
-
 
7549
  def read(self, iprot):
-
 
7550
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7551
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7552
      return
-
 
7553
    iprot.readStructBegin()
-
 
7554
    while True:
-
 
7555
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7556
      if ftype == TType.STOP:
-
 
7557
        break
-
 
7558
      if fid == -1:
-
 
7559
        if ftype == TType.LIST:
-
 
7560
          self.userSmsList = []
-
 
7561
          (_etype152, _size149) = iprot.readListBegin()
-
 
7562
          for _i153 in xrange(_size149):
-
 
7563
            _elem154 = UserSms()
-
 
7564
            _elem154.read(iprot)
-
 
7565
            self.userSmsList.append(_elem154)
-
 
7566
          iprot.readListEnd()
-
 
7567
        else:
-
 
7568
          iprot.skip(ftype)
-
 
7569
      else:
-
 
7570
        iprot.skip(ftype)
-
 
7571
      iprot.readFieldEnd()
-
 
7572
    iprot.readStructEnd()
-
 
7573
 
-
 
7574
  def write(self, oprot):
-
 
7575
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7576
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7577
      return
-
 
7578
    oprot.writeStructBegin('markMessagesAsSentToOperator_args')
-
 
7579
    if self.userSmsList is not None:
-
 
7580
      oprot.writeFieldBegin('userSmsList', TType.LIST, -1)
-
 
7581
      oprot.writeListBegin(TType.STRUCT, len(self.userSmsList))
-
 
7582
      for iter155 in self.userSmsList:
-
 
7583
        iter155.write(oprot)
-
 
7584
      oprot.writeListEnd()
-
 
7585
      oprot.writeFieldEnd()
-
 
7586
    oprot.writeFieldStop()
-
 
7587
    oprot.writeStructEnd()
-
 
7588
 
-
 
7589
  def validate(self):
-
 
7590
    return
-
 
7591
 
-
 
7592
 
-
 
7593
  def __repr__(self):
-
 
7594
    L = ['%s=%r' % (key, value)
-
 
7595
      for key, value in self.__dict__.iteritems()]
-
 
7596
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7597
 
-
 
7598
  def __eq__(self, other):
-
 
7599
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7600
 
-
 
7601
  def __ne__(self, other):
-
 
7602
    return not (self == other)
-
 
7603
 
-
 
7604
class markMessagesAsSentToOperator_result:
-
 
7605
  """
-
 
7606
  Attributes:
-
 
7607
   - success
-
 
7608
  """
-
 
7609
 
-
 
7610
  thrift_spec = (
-
 
7611
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
7612
  )
-
 
7613
 
-
 
7614
  def __init__(self, success=None,):
-
 
7615
    self.success = success
-
 
7616
 
-
 
7617
  def read(self, iprot):
-
 
7618
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7619
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7620
      return
-
 
7621
    iprot.readStructBegin()
-
 
7622
    while True:
-
 
7623
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7624
      if ftype == TType.STOP:
-
 
7625
        break
-
 
7626
      if fid == 0:
-
 
7627
        if ftype == TType.BOOL:
-
 
7628
          self.success = iprot.readBool();
-
 
7629
        else:
-
 
7630
          iprot.skip(ftype)
-
 
7631
      else:
-
 
7632
        iprot.skip(ftype)
-
 
7633
      iprot.readFieldEnd()
-
 
7634
    iprot.readStructEnd()
-
 
7635
 
-
 
7636
  def write(self, oprot):
-
 
7637
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7638
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7639
      return
-
 
7640
    oprot.writeStructBegin('markMessagesAsSentToOperator_result')
-
 
7641
    if self.success is not None:
-
 
7642
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
7643
      oprot.writeBool(self.success)
-
 
7644
      oprot.writeFieldEnd()
-
 
7645
    oprot.writeFieldStop()
-
 
7646
    oprot.writeStructEnd()
-
 
7647
 
-
 
7648
  def validate(self):
-
 
7649
    return
-
 
7650
 
-
 
7651
 
-
 
7652
  def __repr__(self):
-
 
7653
    L = ['%s=%r' % (key, value)
-
 
7654
      for key, value in self.__dict__.iteritems()]
-
 
7655
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7656
 
-
 
7657
  def __eq__(self, other):
-
 
7658
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7659
 
-
 
7660
  def __ne__(self, other):
-
 
7661
    return not (self == other)
-
 
7662
 
-
 
7663
class markMessagesAsSubmittedToSmsc_args:
-
 
7664
  """
-
 
7665
  Attributes:
-
 
7666
   - userSmsList
-
 
7667
  """
-
 
7668
 
-
 
7669
  thrift_spec = None
-
 
7670
  def __init__(self, userSmsList=None,):
-
 
7671
    self.userSmsList = userSmsList
-
 
7672
 
-
 
7673
  def read(self, iprot):
-
 
7674
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7675
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7676
      return
-
 
7677
    iprot.readStructBegin()
-
 
7678
    while True:
-
 
7679
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7680
      if ftype == TType.STOP:
-
 
7681
        break
-
 
7682
      if fid == -1:
-
 
7683
        if ftype == TType.LIST:
-
 
7684
          self.userSmsList = []
-
 
7685
          (_etype159, _size156) = iprot.readListBegin()
-
 
7686
          for _i160 in xrange(_size156):
-
 
7687
            _elem161 = UserSms()
-
 
7688
            _elem161.read(iprot)
-
 
7689
            self.userSmsList.append(_elem161)
-
 
7690
          iprot.readListEnd()
-
 
7691
        else:
-
 
7692
          iprot.skip(ftype)
-
 
7693
      else:
-
 
7694
        iprot.skip(ftype)
-
 
7695
      iprot.readFieldEnd()
-
 
7696
    iprot.readStructEnd()
-
 
7697
 
-
 
7698
  def write(self, oprot):
-
 
7699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7701
      return
-
 
7702
    oprot.writeStructBegin('markMessagesAsSubmittedToSmsc_args')
-
 
7703
    if self.userSmsList is not None:
-
 
7704
      oprot.writeFieldBegin('userSmsList', TType.LIST, -1)
-
 
7705
      oprot.writeListBegin(TType.STRUCT, len(self.userSmsList))
-
 
7706
      for iter162 in self.userSmsList:
-
 
7707
        iter162.write(oprot)
-
 
7708
      oprot.writeListEnd()
-
 
7709
      oprot.writeFieldEnd()
-
 
7710
    oprot.writeFieldStop()
-
 
7711
    oprot.writeStructEnd()
-
 
7712
 
-
 
7713
  def validate(self):
-
 
7714
    return
-
 
7715
 
-
 
7716
 
-
 
7717
  def __repr__(self):
-
 
7718
    L = ['%s=%r' % (key, value)
-
 
7719
      for key, value in self.__dict__.iteritems()]
-
 
7720
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7721
 
-
 
7722
  def __eq__(self, other):
-
 
7723
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7724
 
-
 
7725
  def __ne__(self, other):
-
 
7726
    return not (self == other)
-
 
7727
 
-
 
7728
class markMessagesAsSubmittedToSmsc_result:
-
 
7729
  """
-
 
7730
  Attributes:
-
 
7731
   - success
-
 
7732
  """
-
 
7733
 
-
 
7734
  thrift_spec = (
-
 
7735
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
7736
  )
-
 
7737
 
-
 
7738
  def __init__(self, success=None,):
-
 
7739
    self.success = success
-
 
7740
 
-
 
7741
  def read(self, iprot):
-
 
7742
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7743
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7744
      return
-
 
7745
    iprot.readStructBegin()
-
 
7746
    while True:
-
 
7747
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7748
      if ftype == TType.STOP:
-
 
7749
        break
-
 
7750
      if fid == 0:
-
 
7751
        if ftype == TType.BOOL:
-
 
7752
          self.success = iprot.readBool();
-
 
7753
        else:
-
 
7754
          iprot.skip(ftype)
-
 
7755
      else:
-
 
7756
        iprot.skip(ftype)
-
 
7757
      iprot.readFieldEnd()
-
 
7758
    iprot.readStructEnd()
-
 
7759
 
-
 
7760
  def write(self, oprot):
-
 
7761
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7762
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7763
      return
-
 
7764
    oprot.writeStructBegin('markMessagesAsSubmittedToSmsc_result')
-
 
7765
    if self.success is not None:
-
 
7766
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
7767
      oprot.writeBool(self.success)
-
 
7768
      oprot.writeFieldEnd()
-
 
7769
    oprot.writeFieldStop()
-
 
7770
    oprot.writeStructEnd()
-
 
7771
 
-
 
7772
  def validate(self):
-
 
7773
    return
-
 
7774
 
-
 
7775
 
-
 
7776
  def __repr__(self):
-
 
7777
    L = ['%s=%r' % (key, value)
-
 
7778
      for key, value in self.__dict__.iteritems()]
-
 
7779
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7780
 
-
 
7781
  def __eq__(self, other):
-
 
7782
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7783
 
-
 
7784
  def __ne__(self, other):
-
 
7785
    return not (self == other)
-
 
7786
 
-
 
7787
class markMessagesAsSent_args:
-
 
7788
  """
-
 
7789
  Attributes:
-
 
7790
   - userSmsList
-
 
7791
  """
-
 
7792
 
-
 
7793
  thrift_spec = None
-
 
7794
  def __init__(self, userSmsList=None,):
-
 
7795
    self.userSmsList = userSmsList
-
 
7796
 
-
 
7797
  def read(self, iprot):
-
 
7798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7800
      return
-
 
7801
    iprot.readStructBegin()
-
 
7802
    while True:
-
 
7803
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7804
      if ftype == TType.STOP:
-
 
7805
        break
-
 
7806
      if fid == -1:
-
 
7807
        if ftype == TType.LIST:
-
 
7808
          self.userSmsList = []
-
 
7809
          (_etype166, _size163) = iprot.readListBegin()
-
 
7810
          for _i167 in xrange(_size163):
-
 
7811
            _elem168 = UserSms()
-
 
7812
            _elem168.read(iprot)
-
 
7813
            self.userSmsList.append(_elem168)
-
 
7814
          iprot.readListEnd()
-
 
7815
        else:
-
 
7816
          iprot.skip(ftype)
-
 
7817
      else:
-
 
7818
        iprot.skip(ftype)
-
 
7819
      iprot.readFieldEnd()
-
 
7820
    iprot.readStructEnd()
-
 
7821
 
-
 
7822
  def write(self, oprot):
-
 
7823
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7824
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7825
      return
-
 
7826
    oprot.writeStructBegin('markMessagesAsSent_args')
-
 
7827
    if self.userSmsList is not None:
-
 
7828
      oprot.writeFieldBegin('userSmsList', TType.LIST, -1)
-
 
7829
      oprot.writeListBegin(TType.STRUCT, len(self.userSmsList))
-
 
7830
      for iter169 in self.userSmsList:
-
 
7831
        iter169.write(oprot)
-
 
7832
      oprot.writeListEnd()
-
 
7833
      oprot.writeFieldEnd()
-
 
7834
    oprot.writeFieldStop()
-
 
7835
    oprot.writeStructEnd()
-
 
7836
 
-
 
7837
  def validate(self):
-
 
7838
    return
-
 
7839
 
-
 
7840
 
-
 
7841
  def __repr__(self):
-
 
7842
    L = ['%s=%r' % (key, value)
-
 
7843
      for key, value in self.__dict__.iteritems()]
-
 
7844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7845
 
-
 
7846
  def __eq__(self, other):
-
 
7847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7848
 
-
 
7849
  def __ne__(self, other):
-
 
7850
    return not (self == other)
-
 
7851
 
-
 
7852
class markMessagesAsSent_result:
-
 
7853
  """
-
 
7854
  Attributes:
-
 
7855
   - success
-
 
7856
  """
-
 
7857
 
-
 
7858
  thrift_spec = (
-
 
7859
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
7860
  )
-
 
7861
 
-
 
7862
  def __init__(self, success=None,):
-
 
7863
    self.success = success
-
 
7864
 
-
 
7865
  def read(self, iprot):
-
 
7866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7868
      return
-
 
7869
    iprot.readStructBegin()
-
 
7870
    while True:
-
 
7871
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7872
      if ftype == TType.STOP:
-
 
7873
        break
-
 
7874
      if fid == 0:
-
 
7875
        if ftype == TType.BOOL:
-
 
7876
          self.success = iprot.readBool();
-
 
7877
        else:
-
 
7878
          iprot.skip(ftype)
-
 
7879
      else:
-
 
7880
        iprot.skip(ftype)
-
 
7881
      iprot.readFieldEnd()
-
 
7882
    iprot.readStructEnd()
-
 
7883
 
-
 
7884
  def write(self, oprot):
-
 
7885
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7886
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7887
      return
-
 
7888
    oprot.writeStructBegin('markMessagesAsSent_result')
-
 
7889
    if self.success is not None:
-
 
7890
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
7891
      oprot.writeBool(self.success)
-
 
7892
      oprot.writeFieldEnd()
-
 
7893
    oprot.writeFieldStop()
-
 
7894
    oprot.writeStructEnd()
-
 
7895
 
-
 
7896
  def validate(self):
-
 
7897
    return
-
 
7898
 
-
 
7899
 
-
 
7900
  def __repr__(self):
-
 
7901
    L = ['%s=%r' % (key, value)
-
 
7902
      for key, value in self.__dict__.iteritems()]
-
 
7903
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7904
 
-
 
7905
  def __eq__(self, other):
-
 
7906
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7907
 
-
 
7908
  def __ne__(self, other):
-
 
7909
    return not (self == other)
-
 
7910
 
-
 
7911
class markMessagesAsRetry_args:
-
 
7912
  """
-
 
7913
  Attributes:
-
 
7914
   - userSmsList
-
 
7915
  """
-
 
7916
 
-
 
7917
  thrift_spec = None
-
 
7918
  def __init__(self, userSmsList=None,):
-
 
7919
    self.userSmsList = userSmsList
-
 
7920
 
-
 
7921
  def read(self, iprot):
-
 
7922
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7923
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7924
      return
-
 
7925
    iprot.readStructBegin()
-
 
7926
    while True:
-
 
7927
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7928
      if ftype == TType.STOP:
-
 
7929
        break
-
 
7930
      if fid == -1:
-
 
7931
        if ftype == TType.LIST:
-
 
7932
          self.userSmsList = []
-
 
7933
          (_etype173, _size170) = iprot.readListBegin()
-
 
7934
          for _i174 in xrange(_size170):
-
 
7935
            _elem175 = UserSms()
-
 
7936
            _elem175.read(iprot)
-
 
7937
            self.userSmsList.append(_elem175)
-
 
7938
          iprot.readListEnd()
-
 
7939
        else:
-
 
7940
          iprot.skip(ftype)
-
 
7941
      else:
-
 
7942
        iprot.skip(ftype)
-
 
7943
      iprot.readFieldEnd()
-
 
7944
    iprot.readStructEnd()
-
 
7945
 
-
 
7946
  def write(self, oprot):
-
 
7947
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7948
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7949
      return
-
 
7950
    oprot.writeStructBegin('markMessagesAsRetry_args')
-
 
7951
    if self.userSmsList is not None:
-
 
7952
      oprot.writeFieldBegin('userSmsList', TType.LIST, -1)
-
 
7953
      oprot.writeListBegin(TType.STRUCT, len(self.userSmsList))
-
 
7954
      for iter176 in self.userSmsList:
-
 
7955
        iter176.write(oprot)
-
 
7956
      oprot.writeListEnd()
-
 
7957
      oprot.writeFieldEnd()
-
 
7958
    oprot.writeFieldStop()
-
 
7959
    oprot.writeStructEnd()
-
 
7960
 
-
 
7961
  def validate(self):
-
 
7962
    return
-
 
7963
 
-
 
7964
 
-
 
7965
  def __repr__(self):
-
 
7966
    L = ['%s=%r' % (key, value)
-
 
7967
      for key, value in self.__dict__.iteritems()]
-
 
7968
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7969
 
-
 
7970
  def __eq__(self, other):
-
 
7971
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7972
 
-
 
7973
  def __ne__(self, other):
-
 
7974
    return not (self == other)
-
 
7975
 
-
 
7976
class markMessagesAsRetry_result:
-
 
7977
  """
-
 
7978
  Attributes:
-
 
7979
   - success
-
 
7980
  """
-
 
7981
 
-
 
7982
  thrift_spec = (
-
 
7983
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
7984
  )
-
 
7985
 
-
 
7986
  def __init__(self, success=None,):
-
 
7987
    self.success = success
-
 
7988
 
-
 
7989
  def read(self, iprot):
-
 
7990
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7991
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7992
      return
-
 
7993
    iprot.readStructBegin()
-
 
7994
    while True:
-
 
7995
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7996
      if ftype == TType.STOP:
-
 
7997
        break
-
 
7998
      if fid == 0:
-
 
7999
        if ftype == TType.BOOL:
-
 
8000
          self.success = iprot.readBool();
-
 
8001
        else:
-
 
8002
          iprot.skip(ftype)
-
 
8003
      else:
-
 
8004
        iprot.skip(ftype)
-
 
8005
      iprot.readFieldEnd()
-
 
8006
    iprot.readStructEnd()
-
 
8007
 
-
 
8008
  def write(self, oprot):
-
 
8009
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8010
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8011
      return
-
 
8012
    oprot.writeStructBegin('markMessagesAsRetry_result')
-
 
8013
    if self.success is not None:
-
 
8014
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
8015
      oprot.writeBool(self.success)
-
 
8016
      oprot.writeFieldEnd()
-
 
8017
    oprot.writeFieldStop()
-
 
8018
    oprot.writeStructEnd()
-
 
8019
 
-
 
8020
  def validate(self):
6004
    return
8021
    return
6005
 
8022
 
6006
 
8023
 
6007
  def __repr__(self):
8024
  def __repr__(self):
6008
    L = ['%s=%r' % (key, value)
8025
    L = ['%s=%r' % (key, value)