Subversion Repositories SmartDukaan

Rev

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

Rev 5623 Rev 6389
Line 405... Line 405...
405
    Parameters:
405
    Parameters:
406
     - discounts
406
     - discounts
407
    """
407
    """
408
    pass
408
    pass
409
 
409
 
410
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
410
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId):
411
    """
411
    """
412
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
412
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
413
 
413
 
414
    Parameters:
414
    Parameters:
415
     - cartId
415
     - cartId
416
     - sessionSource
416
     - sessionSource
417
     - sessionStartTime
417
     - sessionStartTime
418
     - firstSource
418
     - firstSource
419
     - firstSourceTime
419
     - firstSourceTime
420
     - userId
420
     - userId
-
 
421
     - schemeId
421
    """
422
    """
422
    pass
423
    pass
423
 
424
 
424
  def validateCart(self, cartId, sourceId):
425
  def validateCart(self, cartId, sourceId):
425
    """
426
    """
Line 489... Line 490...
489
     - startDate
490
     - startDate
490
     - endDate
491
     - endDate
491
    """
492
    """
492
    pass
493
    pass
493
 
494
 
494
  def putUserNote(self, user_id, entity_id, slide, note):
-
 
495
    """
-
 
496
    Parameters:
-
 
497
     - user_id
-
 
498
     - entity_id
-
 
499
     - slide
-
 
500
     - note
-
 
501
    """
-
 
502
    pass
-
 
503
 
-
 
504
  def getUserNotes(self, user_id, entity_id):
-
 
505
    """
-
 
506
    Parameters:
-
 
507
     - user_id
-
 
508
     - entity_id
-
 
509
    """
-
 
510
    pass
-
 
511
 
-
 
512
  def getMyResearchItems(self, userId):
495
  def getMyResearchItems(self, userId):
513
    """
496
    """
514
    Returns list of item ids in myresearch for the user
497
    Returns list of item ids in myresearch for the user
515
 
498
 
516
    Parameters:
499
    Parameters:
Line 2272... Line 2255...
2272
    self._iprot.readMessageEnd()
2255
    self._iprot.readMessageEnd()
2273
    if result.scx is not None:
2256
    if result.scx is not None:
2274
      raise result.scx
2257
      raise result.scx
2275
    return
2258
    return
2276
 
2259
 
2277
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
2260
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId):
2278
    """
2261
    """
2279
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
2262
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
2280
 
2263
 
2281
    Parameters:
2264
    Parameters:
2282
     - cartId
2265
     - cartId
2283
     - sessionSource
2266
     - sessionSource
2284
     - sessionStartTime
2267
     - sessionStartTime
2285
     - firstSource
2268
     - firstSource
2286
     - firstSourceTime
2269
     - firstSourceTime
2287
     - userId
2270
     - userId
-
 
2271
     - schemeId
2288
    """
2272
    """
2289
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId)
2273
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId)
2290
    return self.recv_createOrders()
2274
    return self.recv_createOrders()
2291
 
2275
 
2292
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
2276
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId):
2293
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2277
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2294
    args = createOrders_args()
2278
    args = createOrders_args()
2295
    args.cartId = cartId
2279
    args.cartId = cartId
2296
    args.sessionSource = sessionSource
2280
    args.sessionSource = sessionSource
2297
    args.sessionStartTime = sessionStartTime
2281
    args.sessionStartTime = sessionStartTime
2298
    args.firstSource = firstSource
2282
    args.firstSource = firstSource
2299
    args.firstSourceTime = firstSourceTime
2283
    args.firstSourceTime = firstSourceTime
2300
    args.userId = userId
2284
    args.userId = userId
-
 
2285
    args.schemeId = schemeId
2301
    args.write(self._oprot)
2286
    args.write(self._oprot)
2302
    self._oprot.writeMessageEnd()
2287
    self._oprot.writeMessageEnd()
2303
    self._oprot.trans.flush()
2288
    self._oprot.trans.flush()
2304
 
2289
 
2305
  def recv_createOrders(self, ):
2290
  def recv_createOrders(self, ):
Line 2533... Line 2518...
2533
    self._iprot.readMessageEnd()
2518
    self._iprot.readMessageEnd()
2534
    if result.success is not None:
2519
    if result.success is not None:
2535
      return result.success
2520
      return result.success
2536
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
2521
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
2537
 
2522
 
2538
  def putUserNote(self, user_id, entity_id, slide, note):
-
 
2539
    """
-
 
2540
    Parameters:
-
 
2541
     - user_id
-
 
2542
     - entity_id
-
 
2543
     - slide
-
 
2544
     - note
-
 
2545
    """
-
 
2546
    self.send_putUserNote(user_id, entity_id, slide, note)
-
 
2547
    self.recv_putUserNote()
-
 
2548
 
-
 
2549
  def send_putUserNote(self, user_id, entity_id, slide, note):
-
 
2550
    self._oprot.writeMessageBegin('putUserNote', TMessageType.CALL, self._seqid)
-
 
2551
    args = putUserNote_args()
-
 
2552
    args.user_id = user_id
-
 
2553
    args.entity_id = entity_id
-
 
2554
    args.slide = slide
-
 
2555
    args.note = note
-
 
2556
    args.write(self._oprot)
-
 
2557
    self._oprot.writeMessageEnd()
-
 
2558
    self._oprot.trans.flush()
-
 
2559
 
-
 
2560
  def recv_putUserNote(self, ):
-
 
2561
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2562
    if mtype == TMessageType.EXCEPTION:
-
 
2563
      x = TApplicationException()
-
 
2564
      x.read(self._iprot)
-
 
2565
      self._iprot.readMessageEnd()
-
 
2566
      raise x
-
 
2567
    result = putUserNote_result()
-
 
2568
    result.read(self._iprot)
-
 
2569
    self._iprot.readMessageEnd()
-
 
2570
    return
-
 
2571
 
-
 
2572
  def getUserNotes(self, user_id, entity_id):
-
 
2573
    """
-
 
2574
    Parameters:
-
 
2575
     - user_id
-
 
2576
     - entity_id
-
 
2577
    """
-
 
2578
    self.send_getUserNotes(user_id, entity_id)
-
 
2579
    return self.recv_getUserNotes()
-
 
2580
 
-
 
2581
  def send_getUserNotes(self, user_id, entity_id):
-
 
2582
    self._oprot.writeMessageBegin('getUserNotes', TMessageType.CALL, self._seqid)
-
 
2583
    args = getUserNotes_args()
-
 
2584
    args.user_id = user_id
-
 
2585
    args.entity_id = entity_id
-
 
2586
    args.write(self._oprot)
-
 
2587
    self._oprot.writeMessageEnd()
-
 
2588
    self._oprot.trans.flush()
-
 
2589
 
-
 
2590
  def recv_getUserNotes(self, ):
-
 
2591
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2592
    if mtype == TMessageType.EXCEPTION:
-
 
2593
      x = TApplicationException()
-
 
2594
      x.read(self._iprot)
-
 
2595
      self._iprot.readMessageEnd()
-
 
2596
      raise x
-
 
2597
    result = getUserNotes_result()
-
 
2598
    result.read(self._iprot)
-
 
2599
    self._iprot.readMessageEnd()
-
 
2600
    if result.success is not None:
-
 
2601
      return result.success
-
 
2602
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
-
 
2603
 
-
 
2604
  def getMyResearchItems(self, userId):
2523
  def getMyResearchItems(self, userId):
2605
    """
2524
    """
2606
    Returns list of item ids in myresearch for the user
2525
    Returns list of item ids in myresearch for the user
2607
 
2526
 
2608
    Parameters:
2527
    Parameters:
Line 2982... Line 2901...
2982
    self._processMap["mergeCart"] = Processor.process_mergeCart
2901
    self._processMap["mergeCart"] = Processor.process_mergeCart
2983
    self._processMap["checkOut"] = Processor.process_checkOut
2902
    self._processMap["checkOut"] = Processor.process_checkOut
2984
    self._processMap["resetCart"] = Processor.process_resetCart
2903
    self._processMap["resetCart"] = Processor.process_resetCart
2985
    self._processMap["getUserCount"] = Processor.process_getUserCount
2904
    self._processMap["getUserCount"] = Processor.process_getUserCount
2986
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2905
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2987
    self._processMap["putUserNote"] = Processor.process_putUserNote
-
 
2988
    self._processMap["getUserNotes"] = Processor.process_getUserNotes
-
 
2989
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
2906
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
2990
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
2907
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
2991
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
2908
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
2992
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
2909
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
2993
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
2910
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
Line 3716... Line 3633...
3716
    args = createOrders_args()
3633
    args = createOrders_args()
3717
    args.read(iprot)
3634
    args.read(iprot)
3718
    iprot.readMessageEnd()
3635
    iprot.readMessageEnd()
3719
    result = createOrders_result()
3636
    result = createOrders_result()
3720
    try:
3637
    try:
3721
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId)
3638
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId, args.schemeId)
3722
    except ShoppingCartException, scx:
3639
    except ShoppingCartException, scx:
3723
      result.scx = scx
3640
      result.scx = scx
3724
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
3641
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
3725
    result.write(oprot)
3642
    result.write(oprot)
3726
    oprot.writeMessageEnd()
3643
    oprot.writeMessageEnd()
Line 3799... Line 3716...
3799
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
3716
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
3800
    result.write(oprot)
3717
    result.write(oprot)
3801
    oprot.writeMessageEnd()
3718
    oprot.writeMessageEnd()
3802
    oprot.trans.flush()
3719
    oprot.trans.flush()
3803
 
3720
 
3804
  def process_putUserNote(self, seqid, iprot, oprot):
-
 
3805
    args = putUserNote_args()
-
 
3806
    args.read(iprot)
-
 
3807
    iprot.readMessageEnd()
-
 
3808
    result = putUserNote_result()
-
 
3809
    self._handler.putUserNote(args.user_id, args.entity_id, args.slide, args.note)
-
 
3810
    oprot.writeMessageBegin("putUserNote", TMessageType.REPLY, seqid)
-
 
3811
    result.write(oprot)
-
 
3812
    oprot.writeMessageEnd()
-
 
3813
    oprot.trans.flush()
-
 
3814
 
-
 
3815
  def process_getUserNotes(self, seqid, iprot, oprot):
-
 
3816
    args = getUserNotes_args()
-
 
3817
    args.read(iprot)
-
 
3818
    iprot.readMessageEnd()
-
 
3819
    result = getUserNotes_result()
-
 
3820
    result.success = self._handler.getUserNotes(args.user_id, args.entity_id)
-
 
3821
    oprot.writeMessageBegin("getUserNotes", TMessageType.REPLY, seqid)
-
 
3822
    result.write(oprot)
-
 
3823
    oprot.writeMessageEnd()
-
 
3824
    oprot.trans.flush()
-
 
3825
 
-
 
3826
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3721
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3827
    args = getMyResearchItems_args()
3722
    args = getMyResearchItems_args()
3828
    args.read(iprot)
3723
    args.read(iprot)
3829
    iprot.readMessageEnd()
3724
    iprot.readMessageEnd()
3830
    result = getMyResearchItems_result()
3725
    result = getMyResearchItems_result()
Line 11032... Line 10927...
11032
   - sessionSource
10927
   - sessionSource
11033
   - sessionStartTime
10928
   - sessionStartTime
11034
   - firstSource
10929
   - firstSource
11035
   - firstSourceTime
10930
   - firstSourceTime
11036
   - userId
10931
   - userId
-
 
10932
   - schemeId
11037
  """
10933
  """
11038
 
10934
 
11039
  thrift_spec = (
10935
  thrift_spec = (
11040
    None, # 0
10936
    None, # 0
11041
    (1, TType.I64, 'cartId', None, None, ), # 1
10937
    (1, TType.I64, 'cartId', None, None, ), # 1
11042
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
10938
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11043
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
10939
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
11044
    (4, TType.STRING, 'firstSource', None, None, ), # 4
10940
    (4, TType.STRING, 'firstSource', None, None, ), # 4
11045
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
10941
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
11046
    (6, TType.I64, 'userId', None, None, ), # 6
10942
    (6, TType.I64, 'userId', None, None, ), # 6
-
 
10943
    (7, TType.I64, 'schemeId', None, None, ), # 7
11047
  )
10944
  )
11048
 
10945
 
11049
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None, userId=None,):
10946
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None, userId=None, schemeId=None,):
11050
    self.cartId = cartId
10947
    self.cartId = cartId
11051
    self.sessionSource = sessionSource
10948
    self.sessionSource = sessionSource
11052
    self.sessionStartTime = sessionStartTime
10949
    self.sessionStartTime = sessionStartTime
11053
    self.firstSource = firstSource
10950
    self.firstSource = firstSource
11054
    self.firstSourceTime = firstSourceTime
10951
    self.firstSourceTime = firstSourceTime
11055
    self.userId = userId
10952
    self.userId = userId
-
 
10953
    self.schemeId = schemeId
11056
 
10954
 
11057
  def read(self, iprot):
10955
  def read(self, iprot):
11058
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11059
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11060
      return
10958
      return
Line 11091... Line 10989...
11091
      elif fid == 6:
10989
      elif fid == 6:
11092
        if ftype == TType.I64:
10990
        if ftype == TType.I64:
11093
          self.userId = iprot.readI64();
10991
          self.userId = iprot.readI64();
11094
        else:
10992
        else:
11095
          iprot.skip(ftype)
10993
          iprot.skip(ftype)
-
 
10994
      elif fid == 7:
-
 
10995
        if ftype == TType.I64:
-
 
10996
          self.schemeId = iprot.readI64();
-
 
10997
        else:
-
 
10998
          iprot.skip(ftype)
11096
      else:
10999
      else:
11097
        iprot.skip(ftype)
11000
        iprot.skip(ftype)
11098
      iprot.readFieldEnd()
11001
      iprot.readFieldEnd()
11099
    iprot.readStructEnd()
11002
    iprot.readStructEnd()
11100
 
11003
 
Line 11125... Line 11028...
11125
      oprot.writeFieldEnd()
11028
      oprot.writeFieldEnd()
11126
    if self.userId is not None:
11029
    if self.userId is not None:
11127
      oprot.writeFieldBegin('userId', TType.I64, 6)
11030
      oprot.writeFieldBegin('userId', TType.I64, 6)
11128
      oprot.writeI64(self.userId)
11031
      oprot.writeI64(self.userId)
11129
      oprot.writeFieldEnd()
11032
      oprot.writeFieldEnd()
-
 
11033
    if self.schemeId is not None:
-
 
11034
      oprot.writeFieldBegin('schemeId', TType.I64, 7)
-
 
11035
      oprot.writeI64(self.schemeId)
-
 
11036
      oprot.writeFieldEnd()
11130
    oprot.writeFieldStop()
11037
    oprot.writeFieldStop()
11131
    oprot.writeStructEnd()
11038
    oprot.writeStructEnd()
11132
 
11039
 
11133
  def validate(self):
11040
  def validate(self):
11134
    return
11041
    return
Line 12030... Line 11937...
12030
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12031
 
11938
 
12032
  def __ne__(self, other):
11939
  def __ne__(self, other):
12033
    return not (self == other)
11940
    return not (self == other)
12034
 
11941
 
12035
class putUserNote_args:
-
 
12036
  """
-
 
12037
  Attributes:
-
 
12038
   - user_id
-
 
12039
   - entity_id
-
 
12040
   - slide
-
 
12041
   - note
-
 
12042
  """
-
 
12043
 
-
 
12044
  thrift_spec = (
-
 
12045
    None, # 0
-
 
12046
    (1, TType.I64, 'user_id', None, None, ), # 1
-
 
12047
    (2, TType.I64, 'entity_id', None, None, ), # 2
-
 
12048
    (3, TType.STRING, 'slide', None, None, ), # 3
-
 
12049
    (4, TType.STRING, 'note', None, None, ), # 4
-
 
12050
  )
-
 
12051
 
-
 
12052
  def __init__(self, user_id=None, entity_id=None, slide=None, note=None,):
-
 
12053
    self.user_id = user_id
-
 
12054
    self.entity_id = entity_id
-
 
12055
    self.slide = slide
-
 
12056
    self.note = note
-
 
12057
 
-
 
12058
  def read(self, iprot):
-
 
12059
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
12060
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
12061
      return
-
 
12062
    iprot.readStructBegin()
-
 
12063
    while True:
-
 
12064
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
12065
      if ftype == TType.STOP:
-
 
12066
        break
-
 
12067
      if fid == 1:
-
 
12068
        if ftype == TType.I64:
-
 
12069
          self.user_id = iprot.readI64();
-
 
12070
        else:
-
 
12071
          iprot.skip(ftype)
-
 
12072
      elif fid == 2:
-
 
12073
        if ftype == TType.I64:
-
 
12074
          self.entity_id = iprot.readI64();
-
 
12075
        else:
-
 
12076
          iprot.skip(ftype)
-
 
12077
      elif fid == 3:
-
 
12078
        if ftype == TType.STRING:
-
 
12079
          self.slide = iprot.readString();
-
 
12080
        else:
-
 
12081
          iprot.skip(ftype)
-
 
12082
      elif fid == 4:
-
 
12083
        if ftype == TType.STRING:
-
 
12084
          self.note = iprot.readString();
-
 
12085
        else:
-
 
12086
          iprot.skip(ftype)
-
 
12087
      else:
-
 
12088
        iprot.skip(ftype)
-
 
12089
      iprot.readFieldEnd()
-
 
12090
    iprot.readStructEnd()
-
 
12091
 
-
 
12092
  def write(self, oprot):
-
 
12093
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12094
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12095
      return
-
 
12096
    oprot.writeStructBegin('putUserNote_args')
-
 
12097
    if self.user_id is not None:
-
 
12098
      oprot.writeFieldBegin('user_id', TType.I64, 1)
-
 
12099
      oprot.writeI64(self.user_id)
-
 
12100
      oprot.writeFieldEnd()
-
 
12101
    if self.entity_id is not None:
-
 
12102
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
-
 
12103
      oprot.writeI64(self.entity_id)
-
 
12104
      oprot.writeFieldEnd()
-
 
12105
    if self.slide is not None:
-
 
12106
      oprot.writeFieldBegin('slide', TType.STRING, 3)
-
 
12107
      oprot.writeString(self.slide)
-
 
12108
      oprot.writeFieldEnd()
-
 
12109
    if self.note is not None:
-
 
12110
      oprot.writeFieldBegin('note', TType.STRING, 4)
-
 
12111
      oprot.writeString(self.note)
-
 
12112
      oprot.writeFieldEnd()
-
 
12113
    oprot.writeFieldStop()
-
 
12114
    oprot.writeStructEnd()
-
 
12115
 
-
 
12116
  def validate(self):
-
 
12117
    return
-
 
12118
 
-
 
12119
 
-
 
12120
  def __repr__(self):
-
 
12121
    L = ['%s=%r' % (key, value)
-
 
12122
      for key, value in self.__dict__.iteritems()]
-
 
12123
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12124
 
-
 
12125
  def __eq__(self, other):
-
 
12126
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12127
 
-
 
12128
  def __ne__(self, other):
-
 
12129
    return not (self == other)
-
 
12130
 
-
 
12131
class putUserNote_result:
-
 
12132
 
-
 
12133
  thrift_spec = (
-
 
12134
  )
-
 
12135
 
-
 
12136
  def read(self, iprot):
-
 
12137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
12138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
12139
      return
-
 
12140
    iprot.readStructBegin()
-
 
12141
    while True:
-
 
12142
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
12143
      if ftype == TType.STOP:
-
 
12144
        break
-
 
12145
      else:
-
 
12146
        iprot.skip(ftype)
-
 
12147
      iprot.readFieldEnd()
-
 
12148
    iprot.readStructEnd()
-
 
12149
 
-
 
12150
  def write(self, oprot):
-
 
12151
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12152
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12153
      return
-
 
12154
    oprot.writeStructBegin('putUserNote_result')
-
 
12155
    oprot.writeFieldStop()
-
 
12156
    oprot.writeStructEnd()
-
 
12157
 
-
 
12158
  def validate(self):
-
 
12159
    return
-
 
12160
 
-
 
12161
 
-
 
12162
  def __repr__(self):
-
 
12163
    L = ['%s=%r' % (key, value)
-
 
12164
      for key, value in self.__dict__.iteritems()]
-
 
12165
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12166
 
-
 
12167
  def __eq__(self, other):
-
 
12168
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12169
 
-
 
12170
  def __ne__(self, other):
-
 
12171
    return not (self == other)
-
 
12172
 
-
 
12173
class getUserNotes_args:
-
 
12174
  """
-
 
12175
  Attributes:
-
 
12176
   - user_id
-
 
12177
   - entity_id
-
 
12178
  """
-
 
12179
 
-
 
12180
  thrift_spec = (
-
 
12181
    None, # 0
-
 
12182
    (1, TType.I64, 'user_id', None, None, ), # 1
-
 
12183
    (2, TType.I64, 'entity_id', None, None, ), # 2
-
 
12184
  )
-
 
12185
 
-
 
12186
  def __init__(self, user_id=None, entity_id=None,):
-
 
12187
    self.user_id = user_id
-
 
12188
    self.entity_id = entity_id
-
 
12189
 
-
 
12190
  def read(self, iprot):
-
 
12191
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
12192
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
12193
      return
-
 
12194
    iprot.readStructBegin()
-
 
12195
    while True:
-
 
12196
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
12197
      if ftype == TType.STOP:
-
 
12198
        break
-
 
12199
      if fid == 1:
-
 
12200
        if ftype == TType.I64:
-
 
12201
          self.user_id = iprot.readI64();
-
 
12202
        else:
-
 
12203
          iprot.skip(ftype)
-
 
12204
      elif fid == 2:
-
 
12205
        if ftype == TType.I64:
-
 
12206
          self.entity_id = iprot.readI64();
-
 
12207
        else:
-
 
12208
          iprot.skip(ftype)
-
 
12209
      else:
-
 
12210
        iprot.skip(ftype)
-
 
12211
      iprot.readFieldEnd()
-
 
12212
    iprot.readStructEnd()
-
 
12213
 
-
 
12214
  def write(self, oprot):
-
 
12215
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12216
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12217
      return
-
 
12218
    oprot.writeStructBegin('getUserNotes_args')
-
 
12219
    if self.user_id is not None:
-
 
12220
      oprot.writeFieldBegin('user_id', TType.I64, 1)
-
 
12221
      oprot.writeI64(self.user_id)
-
 
12222
      oprot.writeFieldEnd()
-
 
12223
    if self.entity_id is not None:
-
 
12224
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
-
 
12225
      oprot.writeI64(self.entity_id)
-
 
12226
      oprot.writeFieldEnd()
-
 
12227
    oprot.writeFieldStop()
-
 
12228
    oprot.writeStructEnd()
-
 
12229
 
-
 
12230
  def validate(self):
-
 
12231
    return
-
 
12232
 
-
 
12233
 
-
 
12234
  def __repr__(self):
-
 
12235
    L = ['%s=%r' % (key, value)
-
 
12236
      for key, value in self.__dict__.iteritems()]
-
 
12237
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12238
 
-
 
12239
  def __eq__(self, other):
-
 
12240
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12241
 
-
 
12242
  def __ne__(self, other):
-
 
12243
    return not (self == other)
-
 
12244
 
-
 
12245
class getUserNotes_result:
-
 
12246
  """
-
 
12247
  Attributes:
-
 
12248
   - success
-
 
12249
  """
-
 
12250
 
-
 
12251
  thrift_spec = (
-
 
12252
    (0, TType.LIST, 'success', (TType.STRUCT,(UserNote, UserNote.thrift_spec)), None, ), # 0
-
 
12253
  )
-
 
12254
 
-
 
12255
  def __init__(self, success=None,):
-
 
12256
    self.success = success
-
 
12257
 
-
 
12258
  def read(self, iprot):
-
 
12259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
12260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
12261
      return
-
 
12262
    iprot.readStructBegin()
-
 
12263
    while True:
-
 
12264
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
12265
      if ftype == TType.STOP:
-
 
12266
        break
-
 
12267
      if fid == 0:
-
 
12268
        if ftype == TType.LIST:
-
 
12269
          self.success = []
-
 
12270
          (_etype147, _size144) = iprot.readListBegin()
-
 
12271
          for _i148 in xrange(_size144):
-
 
12272
            _elem149 = UserNote()
-
 
12273
            _elem149.read(iprot)
-
 
12274
            self.success.append(_elem149)
-
 
12275
          iprot.readListEnd()
-
 
12276
        else:
-
 
12277
          iprot.skip(ftype)
-
 
12278
      else:
-
 
12279
        iprot.skip(ftype)
-
 
12280
      iprot.readFieldEnd()
-
 
12281
    iprot.readStructEnd()
-
 
12282
 
-
 
12283
  def write(self, oprot):
-
 
12284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12286
      return
-
 
12287
    oprot.writeStructBegin('getUserNotes_result')
-
 
12288
    if self.success is not None:
-
 
12289
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
12290
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
12291
      for iter150 in self.success:
-
 
12292
        iter150.write(oprot)
-
 
12293
      oprot.writeListEnd()
-
 
12294
      oprot.writeFieldEnd()
-
 
12295
    oprot.writeFieldStop()
-
 
12296
    oprot.writeStructEnd()
-
 
12297
 
-
 
12298
  def validate(self):
-
 
12299
    return
-
 
12300
 
-
 
12301
 
-
 
12302
  def __repr__(self):
-
 
12303
    L = ['%s=%r' % (key, value)
-
 
12304
      for key, value in self.__dict__.iteritems()]
-
 
12305
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12306
 
-
 
12307
  def __eq__(self, other):
-
 
12308
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12309
 
-
 
12310
  def __ne__(self, other):
-
 
12311
    return not (self == other)
-
 
12312
 
-
 
12313
class getMyResearchItems_args:
11942
class getMyResearchItems_args:
12314
  """
11943
  """
12315
  Attributes:
11944
  Attributes:
12316
   - userId
11945
   - userId
12317
  """
11946
  """
Line 12396... Line 12025...
12396
      if ftype == TType.STOP:
12025
      if ftype == TType.STOP:
12397
        break
12026
        break
12398
      if fid == 0:
12027
      if fid == 0:
12399
        if ftype == TType.LIST:
12028
        if ftype == TType.LIST:
12400
          self.success = []
12029
          self.success = []
12401
          (_etype154, _size151) = iprot.readListBegin()
12030
          (_etype147, _size144) = iprot.readListBegin()
12402
          for _i155 in xrange(_size151):
12031
          for _i148 in xrange(_size144):
12403
            _elem156 = iprot.readI64();
12032
            _elem149 = iprot.readI64();
12404
            self.success.append(_elem156)
12033
            self.success.append(_elem149)
12405
          iprot.readListEnd()
12034
          iprot.readListEnd()
12406
        else:
12035
        else:
12407
          iprot.skip(ftype)
12036
          iprot.skip(ftype)
12408
      elif fid == 1:
12037
      elif fid == 1:
12409
        if ftype == TType.STRUCT:
12038
        if ftype == TType.STRUCT:
Line 12422... Line 12051...
12422
      return
12051
      return
12423
    oprot.writeStructBegin('getMyResearchItems_result')
12052
    oprot.writeStructBegin('getMyResearchItems_result')
12424
    if self.success is not None:
12053
    if self.success is not None:
12425
      oprot.writeFieldBegin('success', TType.LIST, 0)
12054
      oprot.writeFieldBegin('success', TType.LIST, 0)
12426
      oprot.writeListBegin(TType.I64, len(self.success))
12055
      oprot.writeListBegin(TType.I64, len(self.success))
12427
      for iter157 in self.success:
12056
      for iter150 in self.success:
12428
        oprot.writeI64(iter157)
12057
        oprot.writeI64(iter150)
12429
      oprot.writeListEnd()
12058
      oprot.writeListEnd()
12430
      oprot.writeFieldEnd()
12059
      oprot.writeFieldEnd()
12431
    if self.scx is not None:
12060
    if self.scx is not None:
12432
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12061
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12433
      self.scx.write(oprot)
12062
      self.scx.write(oprot)
Line 12813... Line 12442...
12813
      if ftype == TType.STOP:
12442
      if ftype == TType.STOP:
12814
        break
12443
        break
12815
      if fid == 0:
12444
      if fid == 0:
12816
        if ftype == TType.LIST:
12445
        if ftype == TType.LIST:
12817
          self.success = []
12446
          self.success = []
12818
          (_etype161, _size158) = iprot.readListBegin()
12447
          (_etype154, _size151) = iprot.readListBegin()
12819
          for _i162 in xrange(_size158):
12448
          for _i155 in xrange(_size151):
12820
            _elem163 = iprot.readI64();
12449
            _elem156 = iprot.readI64();
12821
            self.success.append(_elem163)
12450
            self.success.append(_elem156)
12822
          iprot.readListEnd()
12451
          iprot.readListEnd()
12823
        else:
12452
        else:
12824
          iprot.skip(ftype)
12453
          iprot.skip(ftype)
12825
      elif fid == 1:
12454
      elif fid == 1:
12826
        if ftype == TType.STRUCT:
12455
        if ftype == TType.STRUCT:
Line 12839... Line 12468...
12839
      return
12468
      return
12840
    oprot.writeStructBegin('getBrowseHistoryItems_result')
12469
    oprot.writeStructBegin('getBrowseHistoryItems_result')
12841
    if self.success is not None:
12470
    if self.success is not None:
12842
      oprot.writeFieldBegin('success', TType.LIST, 0)
12471
      oprot.writeFieldBegin('success', TType.LIST, 0)
12843
      oprot.writeListBegin(TType.I64, len(self.success))
12472
      oprot.writeListBegin(TType.I64, len(self.success))
12844
      for iter164 in self.success:
12473
      for iter157 in self.success:
12845
        oprot.writeI64(iter164)
12474
        oprot.writeI64(iter157)
12846
      oprot.writeListEnd()
12475
      oprot.writeListEnd()
12847
      oprot.writeFieldEnd()
12476
      oprot.writeFieldEnd()
12848
    if self.scx is not None:
12477
    if self.scx is not None:
12849
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12478
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12850
      self.scx.write(oprot)
12479
      self.scx.write(oprot)
Line 13529... Line 13158...
13529
      if ftype == TType.STOP:
13158
      if ftype == TType.STOP:
13530
        break
13159
        break
13531
      if fid == 0:
13160
      if fid == 0:
13532
        if ftype == TType.LIST:
13161
        if ftype == TType.LIST:
13533
          self.success = []
13162
          self.success = []
13534
          (_etype168, _size165) = iprot.readListBegin()
13163
          (_etype161, _size158) = iprot.readListBegin()
13535
          for _i169 in xrange(_size165):
13164
          for _i162 in xrange(_size158):
13536
            _elem170 = iprot.readString();
13165
            _elem163 = iprot.readString();
13537
            self.success.append(_elem170)
13166
            self.success.append(_elem163)
13538
          iprot.readListEnd()
13167
          iprot.readListEnd()
13539
        else:
13168
        else:
13540
          iprot.skip(ftype)
13169
          iprot.skip(ftype)
13541
      else:
13170
      else:
13542
        iprot.skip(ftype)
13171
        iprot.skip(ftype)
Line 13549... Line 13178...
13549
      return
13178
      return
13550
    oprot.writeStructBegin('getUserEmails_result')
13179
    oprot.writeStructBegin('getUserEmails_result')
13551
    if self.success is not None:
13180
    if self.success is not None:
13552
      oprot.writeFieldBegin('success', TType.LIST, 0)
13181
      oprot.writeFieldBegin('success', TType.LIST, 0)
13553
      oprot.writeListBegin(TType.STRING, len(self.success))
13182
      oprot.writeListBegin(TType.STRING, len(self.success))
13554
      for iter171 in self.success:
13183
      for iter164 in self.success:
13555
        oprot.writeString(iter171)
13184
        oprot.writeString(iter164)
13556
      oprot.writeListEnd()
13185
      oprot.writeListEnd()
13557
      oprot.writeFieldEnd()
13186
      oprot.writeFieldEnd()
13558
    oprot.writeFieldStop()
13187
    oprot.writeFieldStop()
13559
    oprot.writeStructEnd()
13188
    oprot.writeStructEnd()
13560
 
13189