Subversion Repositories SmartDukaan

Rev

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

Rev 4410 Rev 4444
Line 214... Line 214...
214
     - orderId
214
     - orderId
215
     - customerId
215
     - customerId
216
    """
216
    """
217
    pass
217
    pass
218
 
218
 
219
  def getAlerts(self, type, status, timestamp):
219
  def getAlerts(self, type, warehouseId, status, timestamp):
220
    """
220
    """
221
    Parameters:
221
    Parameters:
222
     - type
222
     - type
-
 
223
     - warehouseId
223
     - status
224
     - status
224
     - timestamp
225
     - timestamp
225
    """
226
    """
226
    pass
227
    pass
227
 
228
 
228
  def addAlert(self, type, description):
229
  def addAlert(self, type, warehouseId, description):
229
    """
230
    """
230
    Parameters:
231
    Parameters:
231
     - type
232
     - type
-
 
233
     - warehouseId
232
     - description
234
     - description
233
    """
235
    """
234
    pass
236
    pass
235
 
237
 
-
 
238
  def markAlertsAsSeen(self, warehouseId):
-
 
239
    """
-
 
240
    Parameters:
-
 
241
     - warehouseId
-
 
242
    """
-
 
243
    pass
-
 
244
 
236
  def getValidOrderCount(self, ):
245
  def getValidOrderCount(self, ):
237
    """
246
    """
238
    Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
247
    Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
239
    """
248
    """
240
    pass
249
    pass
Line 1559... Line 1568...
1559
      return result.success
1568
      return result.success
1560
    if result.ex is not None:
1569
    if result.ex is not None:
1561
      raise result.ex
1570
      raise result.ex
1562
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderForCustomer failed: unknown result");
1571
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderForCustomer failed: unknown result");
1563
 
1572
 
1564
  def getAlerts(self, type, status, timestamp):
1573
  def getAlerts(self, type, warehouseId, status, timestamp):
1565
    """
1574
    """
1566
    Parameters:
1575
    Parameters:
1567
     - type
1576
     - type
-
 
1577
     - warehouseId
1568
     - status
1578
     - status
1569
     - timestamp
1579
     - timestamp
1570
    """
1580
    """
1571
    self.send_getAlerts(type, status, timestamp)
1581
    self.send_getAlerts(type, warehouseId, status, timestamp)
1572
    return self.recv_getAlerts()
1582
    return self.recv_getAlerts()
1573
 
1583
 
1574
  def send_getAlerts(self, type, status, timestamp):
1584
  def send_getAlerts(self, type, warehouseId, status, timestamp):
1575
    self._oprot.writeMessageBegin('getAlerts', TMessageType.CALL, self._seqid)
1585
    self._oprot.writeMessageBegin('getAlerts', TMessageType.CALL, self._seqid)
1576
    args = getAlerts_args()
1586
    args = getAlerts_args()
1577
    args.type = type
1587
    args.type = type
-
 
1588
    args.warehouseId = warehouseId
1578
    args.status = status
1589
    args.status = status
1579
    args.timestamp = timestamp
1590
    args.timestamp = timestamp
1580
    args.write(self._oprot)
1591
    args.write(self._oprot)
1581
    self._oprot.writeMessageEnd()
1592
    self._oprot.writeMessageEnd()
1582
    self._oprot.trans.flush()
1593
    self._oprot.trans.flush()
Line 1593... Line 1604...
1593
    self._iprot.readMessageEnd()
1604
    self._iprot.readMessageEnd()
1594
    if result.success is not None:
1605
    if result.success is not None:
1595
      return result.success
1606
      return result.success
1596
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
1607
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
1597
 
1608
 
1598
  def addAlert(self, type, description):
1609
  def addAlert(self, type, warehouseId, description):
1599
    """
1610
    """
1600
    Parameters:
1611
    Parameters:
1601
     - type
1612
     - type
-
 
1613
     - warehouseId
1602
     - description
1614
     - description
1603
    """
1615
    """
1604
    self.send_addAlert(type, description)
1616
    self.send_addAlert(type, warehouseId, description)
1605
    self.recv_addAlert()
1617
    self.recv_addAlert()
1606
 
1618
 
1607
  def send_addAlert(self, type, description):
1619
  def send_addAlert(self, type, warehouseId, description):
1608
    self._oprot.writeMessageBegin('addAlert', TMessageType.CALL, self._seqid)
1620
    self._oprot.writeMessageBegin('addAlert', TMessageType.CALL, self._seqid)
1609
    args = addAlert_args()
1621
    args = addAlert_args()
1610
    args.type = type
1622
    args.type = type
-
 
1623
    args.warehouseId = warehouseId
1611
    args.description = description
1624
    args.description = description
1612
    args.write(self._oprot)
1625
    args.write(self._oprot)
1613
    self._oprot.writeMessageEnd()
1626
    self._oprot.writeMessageEnd()
1614
    self._oprot.trans.flush()
1627
    self._oprot.trans.flush()
1615
 
1628
 
Line 1623... Line 1636...
1623
    result = addAlert_result()
1636
    result = addAlert_result()
1624
    result.read(self._iprot)
1637
    result.read(self._iprot)
1625
    self._iprot.readMessageEnd()
1638
    self._iprot.readMessageEnd()
1626
    return
1639
    return
1627
 
1640
 
-
 
1641
  def markAlertsAsSeen(self, warehouseId):
-
 
1642
    """
-
 
1643
    Parameters:
-
 
1644
     - warehouseId
-
 
1645
    """
-
 
1646
    self.send_markAlertsAsSeen(warehouseId)
-
 
1647
    self.recv_markAlertsAsSeen()
-
 
1648
 
-
 
1649
  def send_markAlertsAsSeen(self, warehouseId):
-
 
1650
    self._oprot.writeMessageBegin('markAlertsAsSeen', TMessageType.CALL, self._seqid)
-
 
1651
    args = markAlertsAsSeen_args()
-
 
1652
    args.warehouseId = warehouseId
-
 
1653
    args.write(self._oprot)
-
 
1654
    self._oprot.writeMessageEnd()
-
 
1655
    self._oprot.trans.flush()
-
 
1656
 
-
 
1657
  def recv_markAlertsAsSeen(self, ):
-
 
1658
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1659
    if mtype == TMessageType.EXCEPTION:
-
 
1660
      x = TApplicationException()
-
 
1661
      x.read(self._iprot)
-
 
1662
      self._iprot.readMessageEnd()
-
 
1663
      raise x
-
 
1664
    result = markAlertsAsSeen_result()
-
 
1665
    result.read(self._iprot)
-
 
1666
    self._iprot.readMessageEnd()
-
 
1667
    return
-
 
1668
 
1628
  def getValidOrderCount(self, ):
1669
  def getValidOrderCount(self, ):
1629
    """
1670
    """
1630
    Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
1671
    Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
1631
    """
1672
    """
1632
    self.send_getValidOrderCount()
1673
    self.send_getValidOrderCount()
Line 3440... Line 3481...
3440
    self._processMap["getOrder"] = Processor.process_getOrder
3481
    self._processMap["getOrder"] = Processor.process_getOrder
3441
    self._processMap["getLineItemsForOrder"] = Processor.process_getLineItemsForOrder
3482
    self._processMap["getLineItemsForOrder"] = Processor.process_getLineItemsForOrder
3442
    self._processMap["getOrderForCustomer"] = Processor.process_getOrderForCustomer
3483
    self._processMap["getOrderForCustomer"] = Processor.process_getOrderForCustomer
3443
    self._processMap["getAlerts"] = Processor.process_getAlerts
3484
    self._processMap["getAlerts"] = Processor.process_getAlerts
3444
    self._processMap["addAlert"] = Processor.process_addAlert
3485
    self._processMap["addAlert"] = Processor.process_addAlert
-
 
3486
    self._processMap["markAlertsAsSeen"] = Processor.process_markAlertsAsSeen
3445
    self._processMap["getValidOrderCount"] = Processor.process_getValidOrderCount
3487
    self._processMap["getValidOrderCount"] = Processor.process_getValidOrderCount
3446
    self._processMap["getNoOfCustomersWithSuccessfulTransaction"] = Processor.process_getNoOfCustomersWithSuccessfulTransaction
3488
    self._processMap["getNoOfCustomersWithSuccessfulTransaction"] = Processor.process_getNoOfCustomersWithSuccessfulTransaction
3447
    self._processMap["getValidOrdersAmountRange"] = Processor.process_getValidOrdersAmountRange
3489
    self._processMap["getValidOrdersAmountRange"] = Processor.process_getValidOrdersAmountRange
3448
    self._processMap["getValidOrders"] = Processor.process_getValidOrders
3490
    self._processMap["getValidOrders"] = Processor.process_getValidOrders
3449
    self._processMap["batchOrders"] = Processor.process_batchOrders
3491
    self._processMap["batchOrders"] = Processor.process_batchOrders
Line 3804... Line 3846...
3804
  def process_getAlerts(self, seqid, iprot, oprot):
3846
  def process_getAlerts(self, seqid, iprot, oprot):
3805
    args = getAlerts_args()
3847
    args = getAlerts_args()
3806
    args.read(iprot)
3848
    args.read(iprot)
3807
    iprot.readMessageEnd()
3849
    iprot.readMessageEnd()
3808
    result = getAlerts_result()
3850
    result = getAlerts_result()
3809
    result.success = self._handler.getAlerts(args.type, args.status, args.timestamp)
3851
    result.success = self._handler.getAlerts(args.type, args.warehouseId, args.status, args.timestamp)
3810
    oprot.writeMessageBegin("getAlerts", TMessageType.REPLY, seqid)
3852
    oprot.writeMessageBegin("getAlerts", TMessageType.REPLY, seqid)
3811
    result.write(oprot)
3853
    result.write(oprot)
3812
    oprot.writeMessageEnd()
3854
    oprot.writeMessageEnd()
3813
    oprot.trans.flush()
3855
    oprot.trans.flush()
3814
 
3856
 
3815
  def process_addAlert(self, seqid, iprot, oprot):
3857
  def process_addAlert(self, seqid, iprot, oprot):
3816
    args = addAlert_args()
3858
    args = addAlert_args()
3817
    args.read(iprot)
3859
    args.read(iprot)
3818
    iprot.readMessageEnd()
3860
    iprot.readMessageEnd()
3819
    result = addAlert_result()
3861
    result = addAlert_result()
3820
    self._handler.addAlert(args.type, args.description)
3862
    self._handler.addAlert(args.type, args.warehouseId, args.description)
3821
    oprot.writeMessageBegin("addAlert", TMessageType.REPLY, seqid)
3863
    oprot.writeMessageBegin("addAlert", TMessageType.REPLY, seqid)
3822
    result.write(oprot)
3864
    result.write(oprot)
3823
    oprot.writeMessageEnd()
3865
    oprot.writeMessageEnd()
3824
    oprot.trans.flush()
3866
    oprot.trans.flush()
3825
 
3867
 
-
 
3868
  def process_markAlertsAsSeen(self, seqid, iprot, oprot):
-
 
3869
    args = markAlertsAsSeen_args()
-
 
3870
    args.read(iprot)
-
 
3871
    iprot.readMessageEnd()
-
 
3872
    result = markAlertsAsSeen_result()
-
 
3873
    self._handler.markAlertsAsSeen(args.warehouseId)
-
 
3874
    oprot.writeMessageBegin("markAlertsAsSeen", TMessageType.REPLY, seqid)
-
 
3875
    result.write(oprot)
-
 
3876
    oprot.writeMessageEnd()
-
 
3877
    oprot.trans.flush()
-
 
3878
 
3826
  def process_getValidOrderCount(self, seqid, iprot, oprot):
3879
  def process_getValidOrderCount(self, seqid, iprot, oprot):
3827
    args = getValidOrderCount_args()
3880
    args = getValidOrderCount_args()
3828
    args.read(iprot)
3881
    args.read(iprot)
3829
    iprot.readMessageEnd()
3882
    iprot.readMessageEnd()
3830
    result = getValidOrderCount_result()
3883
    result = getValidOrderCount_result()
Line 7715... Line 7768...
7715
 
7768
 
7716
class getAlerts_args:
7769
class getAlerts_args:
7717
  """
7770
  """
7718
  Attributes:
7771
  Attributes:
7719
   - type
7772
   - type
-
 
7773
   - warehouseId
7720
   - status
7774
   - status
7721
   - timestamp
7775
   - timestamp
7722
  """
7776
  """
7723
 
7777
 
7724
  thrift_spec = (
7778
  thrift_spec = (
7725
    None, # 0
7779
    None, # 0
7726
    (1, TType.I64, 'type', None, None, ), # 1
7780
    (1, TType.I64, 'type', None, None, ), # 1
-
 
7781
    (2, TType.I64, 'warehouseId', None, None, ), # 2
7727
    (2, TType.I64, 'status', None, None, ), # 2
7782
    (3, TType.I64, 'status', None, None, ), # 3
7728
    (3, TType.I64, 'timestamp', None, None, ), # 3
7783
    (4, TType.I64, 'timestamp', None, None, ), # 4
7729
  )
7784
  )
7730
 
7785
 
7731
  def __init__(self, type=None, status=None, timestamp=None,):
7786
  def __init__(self, type=None, warehouseId=None, status=None, timestamp=None,):
7732
    self.type = type
7787
    self.type = type
-
 
7788
    self.warehouseId = warehouseId
7733
    self.status = status
7789
    self.status = status
7734
    self.timestamp = timestamp
7790
    self.timestamp = timestamp
7735
 
7791
 
7736
  def read(self, iprot):
7792
  def read(self, iprot):
7737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7793
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
Line 7747... Line 7803...
7747
          self.type = iprot.readI64();
7803
          self.type = iprot.readI64();
7748
        else:
7804
        else:
7749
          iprot.skip(ftype)
7805
          iprot.skip(ftype)
7750
      elif fid == 2:
7806
      elif fid == 2:
7751
        if ftype == TType.I64:
7807
        if ftype == TType.I64:
7752
          self.status = iprot.readI64();
7808
          self.warehouseId = iprot.readI64();
7753
        else:
7809
        else:
7754
          iprot.skip(ftype)
7810
          iprot.skip(ftype)
7755
      elif fid == 3:
7811
      elif fid == 3:
7756
        if ftype == TType.I64:
7812
        if ftype == TType.I64:
-
 
7813
          self.status = iprot.readI64();
-
 
7814
        else:
-
 
7815
          iprot.skip(ftype)
-
 
7816
      elif fid == 4:
-
 
7817
        if ftype == TType.I64:
7757
          self.timestamp = iprot.readI64();
7818
          self.timestamp = iprot.readI64();
7758
        else:
7819
        else:
7759
          iprot.skip(ftype)
7820
          iprot.skip(ftype)
7760
      else:
7821
      else:
7761
        iprot.skip(ftype)
7822
        iprot.skip(ftype)
Line 7769... Line 7830...
7769
    oprot.writeStructBegin('getAlerts_args')
7830
    oprot.writeStructBegin('getAlerts_args')
7770
    if self.type is not None:
7831
    if self.type is not None:
7771
      oprot.writeFieldBegin('type', TType.I64, 1)
7832
      oprot.writeFieldBegin('type', TType.I64, 1)
7772
      oprot.writeI64(self.type)
7833
      oprot.writeI64(self.type)
7773
      oprot.writeFieldEnd()
7834
      oprot.writeFieldEnd()
-
 
7835
    if self.warehouseId is not None:
-
 
7836
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
-
 
7837
      oprot.writeI64(self.warehouseId)
-
 
7838
      oprot.writeFieldEnd()
7774
    if self.status is not None:
7839
    if self.status is not None:
7775
      oprot.writeFieldBegin('status', TType.I64, 2)
7840
      oprot.writeFieldBegin('status', TType.I64, 3)
7776
      oprot.writeI64(self.status)
7841
      oprot.writeI64(self.status)
7777
      oprot.writeFieldEnd()
7842
      oprot.writeFieldEnd()
7778
    if self.timestamp is not None:
7843
    if self.timestamp is not None:
7779
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
7844
      oprot.writeFieldBegin('timestamp', TType.I64, 4)
7780
      oprot.writeI64(self.timestamp)
7845
      oprot.writeI64(self.timestamp)
7781
      oprot.writeFieldEnd()
7846
      oprot.writeFieldEnd()
7782
    oprot.writeFieldStop()
7847
    oprot.writeFieldStop()
7783
    oprot.writeStructEnd()
7848
    oprot.writeStructEnd()
7784
 
7849
 
Line 7867... Line 7932...
7867
 
7932
 
7868
class addAlert_args:
7933
class addAlert_args:
7869
  """
7934
  """
7870
  Attributes:
7935
  Attributes:
7871
   - type
7936
   - type
-
 
7937
   - warehouseId
7872
   - description
7938
   - description
7873
  """
7939
  """
7874
 
7940
 
7875
  thrift_spec = (
7941
  thrift_spec = (
7876
    None, # 0
7942
    None, # 0
7877
    (1, TType.I64, 'type', None, None, ), # 1
7943
    (1, TType.I64, 'type', None, None, ), # 1
-
 
7944
    (2, TType.I64, 'warehouseId', None, None, ), # 2
7878
    (2, TType.STRING, 'description', None, None, ), # 2
7945
    (3, TType.STRING, 'description', None, None, ), # 3
7879
  )
7946
  )
7880
 
7947
 
7881
  def __init__(self, type=None, description=None,):
7948
  def __init__(self, type=None, warehouseId=None, description=None,):
7882
    self.type = type
7949
    self.type = type
-
 
7950
    self.warehouseId = warehouseId
7883
    self.description = description
7951
    self.description = description
7884
 
7952
 
7885
  def read(self, iprot):
7953
  def read(self, iprot):
7886
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7887
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
Line 7895... Line 7963...
7895
        if ftype == TType.I64:
7963
        if ftype == TType.I64:
7896
          self.type = iprot.readI64();
7964
          self.type = iprot.readI64();
7897
        else:
7965
        else:
7898
          iprot.skip(ftype)
7966
          iprot.skip(ftype)
7899
      elif fid == 2:
7967
      elif fid == 2:
-
 
7968
        if ftype == TType.I64:
-
 
7969
          self.warehouseId = iprot.readI64();
-
 
7970
        else:
-
 
7971
          iprot.skip(ftype)
-
 
7972
      elif fid == 3:
7900
        if ftype == TType.STRING:
7973
        if ftype == TType.STRING:
7901
          self.description = iprot.readString();
7974
          self.description = iprot.readString();
7902
        else:
7975
        else:
7903
          iprot.skip(ftype)
7976
          iprot.skip(ftype)
7904
      else:
7977
      else:
Line 7913... Line 7986...
7913
    oprot.writeStructBegin('addAlert_args')
7986
    oprot.writeStructBegin('addAlert_args')
7914
    if self.type is not None:
7987
    if self.type is not None:
7915
      oprot.writeFieldBegin('type', TType.I64, 1)
7988
      oprot.writeFieldBegin('type', TType.I64, 1)
7916
      oprot.writeI64(self.type)
7989
      oprot.writeI64(self.type)
7917
      oprot.writeFieldEnd()
7990
      oprot.writeFieldEnd()
-
 
7991
    if self.warehouseId is not None:
-
 
7992
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
-
 
7993
      oprot.writeI64(self.warehouseId)
-
 
7994
      oprot.writeFieldEnd()
7918
    if self.description is not None:
7995
    if self.description is not None:
7919
      oprot.writeFieldBegin('description', TType.STRING, 2)
7996
      oprot.writeFieldBegin('description', TType.STRING, 3)
7920
      oprot.writeString(self.description)
7997
      oprot.writeString(self.description)
7921
      oprot.writeFieldEnd()
7998
      oprot.writeFieldEnd()
7922
    oprot.writeFieldStop()
7999
    oprot.writeFieldStop()
7923
    oprot.writeStructEnd()
8000
    oprot.writeStructEnd()
7924
 
8001
 
Line 7964... Line 8041...
7964
    oprot.writeFieldStop()
8041
    oprot.writeFieldStop()
7965
    oprot.writeStructEnd()
8042
    oprot.writeStructEnd()
7966
 
8043
 
7967
  def validate(self):
8044
  def validate(self):
7968
    return
8045
    return
-
 
8046
 
-
 
8047
 
-
 
8048
  def __repr__(self):
-
 
8049
    L = ['%s=%r' % (key, value)
-
 
8050
      for key, value in self.__dict__.iteritems()]
-
 
8051
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
8052
 
-
 
8053
  def __eq__(self, other):
-
 
8054
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
8055
 
-
 
8056
  def __ne__(self, other):
-
 
8057
    return not (self == other)
-
 
8058
 
-
 
8059
class markAlertsAsSeen_args:
-
 
8060
  """
-
 
8061
  Attributes:
-
 
8062
   - warehouseId
-
 
8063
  """
-
 
8064
 
-
 
8065
  thrift_spec = (
-
 
8066
    None, # 0
-
 
8067
    (1, TType.I64, 'warehouseId', None, None, ), # 1
-
 
8068
  )
-
 
8069
 
-
 
8070
  def __init__(self, warehouseId=None,):
-
 
8071
    self.warehouseId = warehouseId
-
 
8072
 
-
 
8073
  def read(self, iprot):
-
 
8074
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
8075
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
8076
      return
-
 
8077
    iprot.readStructBegin()
-
 
8078
    while True:
-
 
8079
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
8080
      if ftype == TType.STOP:
-
 
8081
        break
-
 
8082
      if fid == 1:
-
 
8083
        if ftype == TType.I64:
-
 
8084
          self.warehouseId = iprot.readI64();
-
 
8085
        else:
-
 
8086
          iprot.skip(ftype)
-
 
8087
      else:
-
 
8088
        iprot.skip(ftype)
-
 
8089
      iprot.readFieldEnd()
-
 
8090
    iprot.readStructEnd()
-
 
8091
 
-
 
8092
  def write(self, oprot):
-
 
8093
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8094
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8095
      return
-
 
8096
    oprot.writeStructBegin('markAlertsAsSeen_args')
-
 
8097
    if self.warehouseId is not None:
-
 
8098
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
-
 
8099
      oprot.writeI64(self.warehouseId)
-
 
8100
      oprot.writeFieldEnd()
-
 
8101
    oprot.writeFieldStop()
-
 
8102
    oprot.writeStructEnd()
-
 
8103
 
-
 
8104
  def validate(self):
-
 
8105
    return
-
 
8106
 
-
 
8107
 
-
 
8108
  def __repr__(self):
-
 
8109
    L = ['%s=%r' % (key, value)
-
 
8110
      for key, value in self.__dict__.iteritems()]
-
 
8111
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
8112
 
-
 
8113
  def __eq__(self, other):
-
 
8114
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
8115
 
-
 
8116
  def __ne__(self, other):
-
 
8117
    return not (self == other)
-
 
8118
 
-
 
8119
class markAlertsAsSeen_result:
-
 
8120
 
-
 
8121
  thrift_spec = (
-
 
8122
  )
-
 
8123
 
-
 
8124
  def read(self, iprot):
-
 
8125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
8126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
8127
      return
-
 
8128
    iprot.readStructBegin()
-
 
8129
    while True:
-
 
8130
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
8131
      if ftype == TType.STOP:
-
 
8132
        break
-
 
8133
      else:
-
 
8134
        iprot.skip(ftype)
-
 
8135
      iprot.readFieldEnd()
-
 
8136
    iprot.readStructEnd()
-
 
8137
 
-
 
8138
  def write(self, oprot):
-
 
8139
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8140
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8141
      return
-
 
8142
    oprot.writeStructBegin('markAlertsAsSeen_result')
-
 
8143
    oprot.writeFieldStop()
-
 
8144
    oprot.writeStructEnd()
-
 
8145
 
-
 
8146
  def validate(self):
-
 
8147
    return
7969
 
8148
 
7970
 
8149
 
7971
  def __repr__(self):
8150
  def __repr__(self):
7972
    L = ['%s=%r' % (key, value)
8151
    L = ['%s=%r' % (key, value)
7973
      for key, value in self.__dict__.iteritems()]
8152
      for key, value in self.__dict__.iteritems()]