Subversion Repositories SmartDukaan

Rev

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

Rev 921 Rev 999
Line 77... Line 77...
77
     - to_date
77
     - to_date
78
     - warehouse_id
78
     - warehouse_id
79
    """
79
    """
80
    pass
80
    pass
81
 
81
 
-
 
82
  def getOrdersByBillingDate(self, status, start_billing_date, end_billing_date, warehouse_id):
-
 
83
    """
-
 
84
    Parameters:
-
 
85
     - status
-
 
86
     - start_billing_date
-
 
87
     - end_billing_date
-
 
88
     - warehouse_id
-
 
89
    """
-
 
90
    pass
-
 
91
 
82
  def changeOrderStatus(self, orderId, status, description):
92
  def changeOrderStatus(self, orderId, status, description):
83
    """
93
    """
84
    Parameters:
94
    Parameters:
85
     - orderId
95
     - orderId
86
     - status
96
     - status
Line 450... Line 460...
450
      return result.success
460
      return result.success
451
    if result.ex != None:
461
    if result.ex != None:
452
      raise result.ex
462
      raise result.ex
453
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllOrders failed: unknown result");
463
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllOrders failed: unknown result");
454
 
464
 
-
 
465
  def getOrdersByBillingDate(self, status, start_billing_date, end_billing_date, warehouse_id):
-
 
466
    """
-
 
467
    Parameters:
-
 
468
     - status
-
 
469
     - start_billing_date
-
 
470
     - end_billing_date
-
 
471
     - warehouse_id
-
 
472
    """
-
 
473
    self.send_getOrdersByBillingDate(status, start_billing_date, end_billing_date, warehouse_id)
-
 
474
    return self.recv_getOrdersByBillingDate()
-
 
475
 
-
 
476
  def send_getOrdersByBillingDate(self, status, start_billing_date, end_billing_date, warehouse_id):
-
 
477
    self._oprot.writeMessageBegin('getOrdersByBillingDate', TMessageType.CALL, self._seqid)
-
 
478
    args = getOrdersByBillingDate_args()
-
 
479
    args.status = status
-
 
480
    args.start_billing_date = start_billing_date
-
 
481
    args.end_billing_date = end_billing_date
-
 
482
    args.warehouse_id = warehouse_id
-
 
483
    args.write(self._oprot)
-
 
484
    self._oprot.writeMessageEnd()
-
 
485
    self._oprot.trans.flush()
-
 
486
 
-
 
487
  def recv_getOrdersByBillingDate(self, ):
-
 
488
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
489
    if mtype == TMessageType.EXCEPTION:
-
 
490
      x = TApplicationException()
-
 
491
      x.read(self._iprot)
-
 
492
      self._iprot.readMessageEnd()
-
 
493
      raise x
-
 
494
    result = getOrdersByBillingDate_result()
-
 
495
    result.read(self._iprot)
-
 
496
    self._iprot.readMessageEnd()
-
 
497
    if result.success != None:
-
 
498
      return result.success
-
 
499
    if result.ex != None:
-
 
500
      raise result.ex
-
 
501
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersByBillingDate failed: unknown result");
-
 
502
 
455
  def changeOrderStatus(self, orderId, status, description):
503
  def changeOrderStatus(self, orderId, status, description):
456
    """
504
    """
457
    Parameters:
505
    Parameters:
458
     - orderId
506
     - orderId
459
     - status
507
     - status
Line 869... Line 917...
869
    self._processMap["getTransactionsForCustomer"] = Processor.process_getTransactionsForCustomer
917
    self._processMap["getTransactionsForCustomer"] = Processor.process_getTransactionsForCustomer
870
    self._processMap["getTransactionsForShoppingCartId"] = Processor.process_getTransactionsForShoppingCartId
918
    self._processMap["getTransactionsForShoppingCartId"] = Processor.process_getTransactionsForShoppingCartId
871
    self._processMap["getTransactionStatus"] = Processor.process_getTransactionStatus
919
    self._processMap["getTransactionStatus"] = Processor.process_getTransactionStatus
872
    self._processMap["changeTransactionStatus"] = Processor.process_changeTransactionStatus
920
    self._processMap["changeTransactionStatus"] = Processor.process_changeTransactionStatus
873
    self._processMap["getAllOrders"] = Processor.process_getAllOrders
921
    self._processMap["getAllOrders"] = Processor.process_getAllOrders
-
 
922
    self._processMap["getOrdersByBillingDate"] = Processor.process_getOrdersByBillingDate
874
    self._processMap["changeOrderStatus"] = Processor.process_changeOrderStatus
923
    self._processMap["changeOrderStatus"] = Processor.process_changeOrderStatus
875
    self._processMap["addBillingDetails"] = Processor.process_addBillingDetails
924
    self._processMap["addBillingDetails"] = Processor.process_addBillingDetails
876
    self._processMap["acceptOrder"] = Processor.process_acceptOrder
925
    self._processMap["acceptOrder"] = Processor.process_acceptOrder
877
    self._processMap["billOrder"] = Processor.process_billOrder
926
    self._processMap["billOrder"] = Processor.process_billOrder
878
    self._processMap["getOrdersForTransaction"] = Processor.process_getOrdersForTransaction
927
    self._processMap["getOrdersForTransaction"] = Processor.process_getOrdersForTransaction
Line 1006... Line 1055...
1006
    oprot.writeMessageBegin("getAllOrders", TMessageType.REPLY, seqid)
1055
    oprot.writeMessageBegin("getAllOrders", TMessageType.REPLY, seqid)
1007
    result.write(oprot)
1056
    result.write(oprot)
1008
    oprot.writeMessageEnd()
1057
    oprot.writeMessageEnd()
1009
    oprot.trans.flush()
1058
    oprot.trans.flush()
1010
 
1059
 
-
 
1060
  def process_getOrdersByBillingDate(self, seqid, iprot, oprot):
-
 
1061
    args = getOrdersByBillingDate_args()
-
 
1062
    args.read(iprot)
-
 
1063
    iprot.readMessageEnd()
-
 
1064
    result = getOrdersByBillingDate_result()
-
 
1065
    try:
-
 
1066
      result.success = self._handler.getOrdersByBillingDate(args.status, args.start_billing_date, args.end_billing_date, args.warehouse_id)
-
 
1067
    except TransactionServiceException, ex:
-
 
1068
      result.ex = ex
-
 
1069
    oprot.writeMessageBegin("getOrdersByBillingDate", TMessageType.REPLY, seqid)
-
 
1070
    result.write(oprot)
-
 
1071
    oprot.writeMessageEnd()
-
 
1072
    oprot.trans.flush()
-
 
1073
 
1011
  def process_changeOrderStatus(self, seqid, iprot, oprot):
1074
  def process_changeOrderStatus(self, seqid, iprot, oprot):
1012
    args = changeOrderStatus_args()
1075
    args = changeOrderStatus_args()
1013
    args.read(iprot)
1076
    args.read(iprot)
1014
    iprot.readMessageEnd()
1077
    iprot.readMessageEnd()
1015
    result = changeOrderStatus_result()
1078
    result = changeOrderStatus_result()
Line 2240... Line 2303...
2240
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2303
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2241
 
2304
 
2242
  def __ne__(self, other):
2305
  def __ne__(self, other):
2243
    return not (self == other)
2306
    return not (self == other)
2244
 
2307
 
-
 
2308
class getOrdersByBillingDate_args:
-
 
2309
  """
-
 
2310
  Attributes:
-
 
2311
   - status
-
 
2312
   - start_billing_date
-
 
2313
   - end_billing_date
-
 
2314
   - warehouse_id
-
 
2315
  """
-
 
2316
 
-
 
2317
  thrift_spec = (
-
 
2318
    None, # 0
-
 
2319
    (1, TType.I32, 'status', None, None, ), # 1
-
 
2320
    (2, TType.I64, 'start_billing_date', None, None, ), # 2
-
 
2321
    (3, TType.I64, 'end_billing_date', None, None, ), # 3
-
 
2322
    (4, TType.I64, 'warehouse_id', None, None, ), # 4
-
 
2323
  )
-
 
2324
 
-
 
2325
  def __init__(self, status=None, start_billing_date=None, end_billing_date=None, warehouse_id=None,):
-
 
2326
    self.status = status
-
 
2327
    self.start_billing_date = start_billing_date
-
 
2328
    self.end_billing_date = end_billing_date
-
 
2329
    self.warehouse_id = warehouse_id
-
 
2330
 
-
 
2331
  def read(self, iprot):
-
 
2332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2334
      return
-
 
2335
    iprot.readStructBegin()
-
 
2336
    while True:
-
 
2337
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2338
      if ftype == TType.STOP:
-
 
2339
        break
-
 
2340
      if fid == 1:
-
 
2341
        if ftype == TType.I32:
-
 
2342
          self.status = iprot.readI32();
-
 
2343
        else:
-
 
2344
          iprot.skip(ftype)
-
 
2345
      elif fid == 2:
-
 
2346
        if ftype == TType.I64:
-
 
2347
          self.start_billing_date = iprot.readI64();
-
 
2348
        else:
-
 
2349
          iprot.skip(ftype)
-
 
2350
      elif fid == 3:
-
 
2351
        if ftype == TType.I64:
-
 
2352
          self.end_billing_date = iprot.readI64();
-
 
2353
        else:
-
 
2354
          iprot.skip(ftype)
-
 
2355
      elif fid == 4:
-
 
2356
        if ftype == TType.I64:
-
 
2357
          self.warehouse_id = iprot.readI64();
-
 
2358
        else:
-
 
2359
          iprot.skip(ftype)
-
 
2360
      else:
-
 
2361
        iprot.skip(ftype)
-
 
2362
      iprot.readFieldEnd()
-
 
2363
    iprot.readStructEnd()
-
 
2364
 
-
 
2365
  def write(self, oprot):
-
 
2366
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2367
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2368
      return
-
 
2369
    oprot.writeStructBegin('getOrdersByBillingDate_args')
-
 
2370
    if self.status != None:
-
 
2371
      oprot.writeFieldBegin('status', TType.I32, 1)
-
 
2372
      oprot.writeI32(self.status)
-
 
2373
      oprot.writeFieldEnd()
-
 
2374
    if self.start_billing_date != None:
-
 
2375
      oprot.writeFieldBegin('start_billing_date', TType.I64, 2)
-
 
2376
      oprot.writeI64(self.start_billing_date)
-
 
2377
      oprot.writeFieldEnd()
-
 
2378
    if self.end_billing_date != None:
-
 
2379
      oprot.writeFieldBegin('end_billing_date', TType.I64, 3)
-
 
2380
      oprot.writeI64(self.end_billing_date)
-
 
2381
      oprot.writeFieldEnd()
-
 
2382
    if self.warehouse_id != None:
-
 
2383
      oprot.writeFieldBegin('warehouse_id', TType.I64, 4)
-
 
2384
      oprot.writeI64(self.warehouse_id)
-
 
2385
      oprot.writeFieldEnd()
-
 
2386
    oprot.writeFieldStop()
-
 
2387
    oprot.writeStructEnd()
-
 
2388
 
-
 
2389
  def __repr__(self):
-
 
2390
    L = ['%s=%r' % (key, value)
-
 
2391
      for key, value in self.__dict__.iteritems()]
-
 
2392
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2393
 
-
 
2394
  def __eq__(self, other):
-
 
2395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2396
 
-
 
2397
  def __ne__(self, other):
-
 
2398
    return not (self == other)
-
 
2399
 
-
 
2400
class getOrdersByBillingDate_result:
-
 
2401
  """
-
 
2402
  Attributes:
-
 
2403
   - success
-
 
2404
   - ex
-
 
2405
  """
-
 
2406
 
-
 
2407
  thrift_spec = (
-
 
2408
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
-
 
2409
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
2410
  )
-
 
2411
 
-
 
2412
  def __init__(self, success=None, ex=None,):
-
 
2413
    self.success = success
-
 
2414
    self.ex = ex
-
 
2415
 
-
 
2416
  def read(self, iprot):
-
 
2417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2419
      return
-
 
2420
    iprot.readStructBegin()
-
 
2421
    while True:
-
 
2422
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2423
      if ftype == TType.STOP:
-
 
2424
        break
-
 
2425
      if fid == 0:
-
 
2426
        if ftype == TType.LIST:
-
 
2427
          self.success = []
-
 
2428
          (_etype38, _size35) = iprot.readListBegin()
-
 
2429
          for _i39 in xrange(_size35):
-
 
2430
            _elem40 = Order()
-
 
2431
            _elem40.read(iprot)
-
 
2432
            self.success.append(_elem40)
-
 
2433
          iprot.readListEnd()
-
 
2434
        else:
-
 
2435
          iprot.skip(ftype)
-
 
2436
      elif fid == 1:
-
 
2437
        if ftype == TType.STRUCT:
-
 
2438
          self.ex = TransactionServiceException()
-
 
2439
          self.ex.read(iprot)
-
 
2440
        else:
-
 
2441
          iprot.skip(ftype)
-
 
2442
      else:
-
 
2443
        iprot.skip(ftype)
-
 
2444
      iprot.readFieldEnd()
-
 
2445
    iprot.readStructEnd()
-
 
2446
 
-
 
2447
  def write(self, oprot):
-
 
2448
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2449
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2450
      return
-
 
2451
    oprot.writeStructBegin('getOrdersByBillingDate_result')
-
 
2452
    if self.success != None:
-
 
2453
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
2454
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
2455
      for iter41 in self.success:
-
 
2456
        iter41.write(oprot)
-
 
2457
      oprot.writeListEnd()
-
 
2458
      oprot.writeFieldEnd()
-
 
2459
    if self.ex != None:
-
 
2460
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
2461
      self.ex.write(oprot)
-
 
2462
      oprot.writeFieldEnd()
-
 
2463
    oprot.writeFieldStop()
-
 
2464
    oprot.writeStructEnd()
-
 
2465
 
-
 
2466
  def __repr__(self):
-
 
2467
    L = ['%s=%r' % (key, value)
-
 
2468
      for key, value in self.__dict__.iteritems()]
-
 
2469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2470
 
-
 
2471
  def __eq__(self, other):
-
 
2472
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2473
 
-
 
2474
  def __ne__(self, other):
-
 
2475
    return not (self == other)
-
 
2476
 
2245
class changeOrderStatus_args:
2477
class changeOrderStatus_args:
2246
  """
2478
  """
2247
  Attributes:
2479
  Attributes:
2248
   - orderId
2480
   - orderId
2249
   - status
2481
   - status
Line 2880... Line 3112...
2880
      if ftype == TType.STOP:
3112
      if ftype == TType.STOP:
2881
        break
3113
        break
2882
      if fid == 0:
3114
      if fid == 0:
2883
        if ftype == TType.LIST:
3115
        if ftype == TType.LIST:
2884
          self.success = []
3116
          self.success = []
2885
          (_etype38, _size35) = iprot.readListBegin()
3117
          (_etype45, _size42) = iprot.readListBegin()
2886
          for _i39 in xrange(_size35):
3118
          for _i46 in xrange(_size42):
2887
            _elem40 = Order()
3119
            _elem47 = Order()
2888
            _elem40.read(iprot)
3120
            _elem47.read(iprot)
2889
            self.success.append(_elem40)
3121
            self.success.append(_elem47)
2890
          iprot.readListEnd()
3122
          iprot.readListEnd()
2891
        else:
3123
        else:
2892
          iprot.skip(ftype)
3124
          iprot.skip(ftype)
2893
      elif fid == 1:
3125
      elif fid == 1:
2894
        if ftype == TType.STRUCT:
3126
        if ftype == TType.STRUCT:
Line 2907... Line 3139...
2907
      return
3139
      return
2908
    oprot.writeStructBegin('getOrdersForTransaction_result')
3140
    oprot.writeStructBegin('getOrdersForTransaction_result')
2909
    if self.success != None:
3141
    if self.success != None:
2910
      oprot.writeFieldBegin('success', TType.LIST, 0)
3142
      oprot.writeFieldBegin('success', TType.LIST, 0)
2911
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3143
      oprot.writeListBegin(TType.STRUCT, len(self.success))
2912
      for iter41 in self.success:
3144
      for iter48 in self.success:
2913
        iter41.write(oprot)
3145
        iter48.write(oprot)
2914
      oprot.writeListEnd()
3146
      oprot.writeListEnd()
2915
      oprot.writeFieldEnd()
3147
      oprot.writeFieldEnd()
2916
    if self.ex != None:
3148
    if self.ex != None:
2917
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3149
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
2918
      self.ex.write(oprot)
3150
      self.ex.write(oprot)
Line 3049... Line 3281...
3049
      if ftype == TType.STOP:
3281
      if ftype == TType.STOP:
3050
        break
3282
        break
3051
      if fid == 0:
3283
      if fid == 0:
3052
        if ftype == TType.LIST:
3284
        if ftype == TType.LIST:
3053
          self.success = []
3285
          self.success = []
3054
          (_etype45, _size42) = iprot.readListBegin()
3286
          (_etype52, _size49) = iprot.readListBegin()
3055
          for _i46 in xrange(_size42):
3287
          for _i53 in xrange(_size49):
3056
            _elem47 = Order()
3288
            _elem54 = Order()
3057
            _elem47.read(iprot)
3289
            _elem54.read(iprot)
3058
            self.success.append(_elem47)
3290
            self.success.append(_elem54)
3059
          iprot.readListEnd()
3291
          iprot.readListEnd()
3060
        else:
3292
        else:
3061
          iprot.skip(ftype)
3293
          iprot.skip(ftype)
3062
      elif fid == 1:
3294
      elif fid == 1:
3063
        if ftype == TType.STRUCT:
3295
        if ftype == TType.STRUCT:
Line 3076... Line 3308...
3076
      return
3308
      return
3077
    oprot.writeStructBegin('getOrdersForCustomer_result')
3309
    oprot.writeStructBegin('getOrdersForCustomer_result')
3078
    if self.success != None:
3310
    if self.success != None:
3079
      oprot.writeFieldBegin('success', TType.LIST, 0)
3311
      oprot.writeFieldBegin('success', TType.LIST, 0)
3080
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3312
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3081
      for iter48 in self.success:
3313
      for iter55 in self.success:
3082
        iter48.write(oprot)
3314
        iter55.write(oprot)
3083
      oprot.writeListEnd()
3315
      oprot.writeListEnd()
3084
      oprot.writeFieldEnd()
3316
      oprot.writeFieldEnd()
3085
    if self.ex != None:
3317
    if self.ex != None:
3086
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3318
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3087
      self.ex.write(oprot)
3319
      self.ex.write(oprot)
Line 3432... Line 3664...
3432
      if ftype == TType.STOP:
3664
      if ftype == TType.STOP:
3433
        break
3665
        break
3434
      if fid == 0:
3666
      if fid == 0:
3435
        if ftype == TType.LIST:
3667
        if ftype == TType.LIST:
3436
          self.success = []
3668
          self.success = []
3437
          (_etype52, _size49) = iprot.readListBegin()
3669
          (_etype59, _size56) = iprot.readListBegin()
3438
          for _i53 in xrange(_size49):
3670
          for _i60 in xrange(_size56):
3439
            _elem54 = LineItem()
3671
            _elem61 = LineItem()
3440
            _elem54.read(iprot)
3672
            _elem61.read(iprot)
3441
            self.success.append(_elem54)
3673
            self.success.append(_elem61)
3442
          iprot.readListEnd()
3674
          iprot.readListEnd()
3443
        else:
3675
        else:
3444
          iprot.skip(ftype)
3676
          iprot.skip(ftype)
3445
      elif fid == 1:
3677
      elif fid == 1:
3446
        if ftype == TType.STRUCT:
3678
        if ftype == TType.STRUCT:
Line 3459... Line 3691...
3459
      return
3691
      return
3460
    oprot.writeStructBegin('getLineItemsForOrder_result')
3692
    oprot.writeStructBegin('getLineItemsForOrder_result')
3461
    if self.success != None:
3693
    if self.success != None:
3462
      oprot.writeFieldBegin('success', TType.LIST, 0)
3694
      oprot.writeFieldBegin('success', TType.LIST, 0)
3463
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3695
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3464
      for iter55 in self.success:
3696
      for iter62 in self.success:
3465
        iter55.write(oprot)
3697
        iter62.write(oprot)
3466
      oprot.writeListEnd()
3698
      oprot.writeListEnd()
3467
      oprot.writeFieldEnd()
3699
      oprot.writeFieldEnd()
3468
    if self.ex != None:
3700
    if self.ex != None:
3469
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3701
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3470
      self.ex.write(oprot)
3702
      self.ex.write(oprot)
Line 3710... Line 3942...
3710
      if ftype == TType.STOP:
3942
      if ftype == TType.STOP:
3711
        break
3943
        break
3712
      if fid == 0:
3944
      if fid == 0:
3713
        if ftype == TType.LIST:
3945
        if ftype == TType.LIST:
3714
          self.success = []
3946
          self.success = []
3715
          (_etype59, _size56) = iprot.readListBegin()
3947
          (_etype66, _size63) = iprot.readListBegin()
3716
          for _i60 in xrange(_size56):
3948
          for _i67 in xrange(_size63):
3717
            _elem61 = Alert()
3949
            _elem68 = Alert()
3718
            _elem61.read(iprot)
3950
            _elem68.read(iprot)
3719
            self.success.append(_elem61)
3951
            self.success.append(_elem68)
3720
          iprot.readListEnd()
3952
          iprot.readListEnd()
3721
        else:
3953
        else:
3722
          iprot.skip(ftype)
3954
          iprot.skip(ftype)
3723
      else:
3955
      else:
3724
        iprot.skip(ftype)
3956
        iprot.skip(ftype)
Line 3731... Line 3963...
3731
      return
3963
      return
3732
    oprot.writeStructBegin('getAlerts_result')
3964
    oprot.writeStructBegin('getAlerts_result')
3733
    if self.success != None:
3965
    if self.success != None:
3734
      oprot.writeFieldBegin('success', TType.LIST, 0)
3966
      oprot.writeFieldBegin('success', TType.LIST, 0)
3735
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3967
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3736
      for iter62 in self.success:
3968
      for iter69 in self.success:
3737
        iter62.write(oprot)
3969
        iter69.write(oprot)
3738
      oprot.writeListEnd()
3970
      oprot.writeListEnd()
3739
      oprot.writeFieldEnd()
3971
      oprot.writeFieldEnd()
3740
    oprot.writeFieldStop()
3972
    oprot.writeFieldStop()
3741
    oprot.writeStructEnd()
3973
    oprot.writeStructEnd()
3742
 
3974