Subversion Repositories SmartDukaan

Rev

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

Rev 3378 Rev 3385
Line 242... Line 242...
242
     * @param userId
242
     * @param userId
243
     * @param itemId
243
     * @param itemId
244
     */
244
     */
245
    public void updateBrowseHistory(long userId, long itemId) throws TException;
245
    public void updateBrowseHistory(long userId, long itemId) throws TException;
246
 
246
 
-
 
247
    /**
-
 
248
     * Returns count of Carts with given coupon applied
-
 
249
     * 
-
 
250
     * @param couponCode
-
 
251
     */
-
 
252
    public long getCartsWithCouponCount(String couponCode) throws TException;
-
 
253
 
247
  }
254
  }
248
 
255
 
249
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
256
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
250
    public Client(TProtocol prot)
257
    public Client(TProtocol prot)
251
    {
258
    {
Line 2672... Line 2679...
2672
      result.read(iprot_);
2679
      result.read(iprot_);
2673
      iprot_.readMessageEnd();
2680
      iprot_.readMessageEnd();
2674
      return;
2681
      return;
2675
    }
2682
    }
2676
 
2683
 
-
 
2684
    public long getCartsWithCouponCount(String couponCode) throws TException
-
 
2685
    {
-
 
2686
      send_getCartsWithCouponCount(couponCode);
-
 
2687
      return recv_getCartsWithCouponCount();
-
 
2688
    }
-
 
2689
 
-
 
2690
    public void send_getCartsWithCouponCount(String couponCode) throws TException
-
 
2691
    {
-
 
2692
      oprot_.writeMessageBegin(new TMessage("getCartsWithCouponCount", TMessageType.CALL, seqid_));
-
 
2693
      getCartsWithCouponCount_args args = new getCartsWithCouponCount_args();
-
 
2694
      args.couponCode = couponCode;
-
 
2695
      args.write(oprot_);
-
 
2696
      oprot_.writeMessageEnd();
-
 
2697
      oprot_.getTransport().flush();
-
 
2698
    }
-
 
2699
 
-
 
2700
    public long recv_getCartsWithCouponCount() throws TException
-
 
2701
    {
-
 
2702
      TMessage msg = iprot_.readMessageBegin();
-
 
2703
      if (msg.type == TMessageType.EXCEPTION) {
-
 
2704
        TApplicationException x = TApplicationException.read(iprot_);
-
 
2705
        iprot_.readMessageEnd();
-
 
2706
        throw x;
-
 
2707
      }
-
 
2708
      getCartsWithCouponCount_result result = new getCartsWithCouponCount_result();
-
 
2709
      result.read(iprot_);
-
 
2710
      iprot_.readMessageEnd();
-
 
2711
      if (result.isSetSuccess()) {
-
 
2712
        return result.success;
-
 
2713
      }
-
 
2714
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
-
 
2715
    }
-
 
2716
 
2677
  }
2717
  }
2678
  public static class Processor extends in.shop2020.generic.GenericService.Processor implements TProcessor {
2718
  public static class Processor extends in.shop2020.generic.GenericService.Processor implements TProcessor {
2679
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2719
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2680
    public Processor(Iface iface)
2720
    public Processor(Iface iface)
2681
    {
2721
    {
Line 2746... Line 2786...
2746
      processMap_.put("getMyResearchItems", new getMyResearchItems());
2786
      processMap_.put("getMyResearchItems", new getMyResearchItems());
2747
      processMap_.put("updateMyResearch", new updateMyResearch());
2787
      processMap_.put("updateMyResearch", new updateMyResearch());
2748
      processMap_.put("deleteItemFromMyResearch", new deleteItemFromMyResearch());
2788
      processMap_.put("deleteItemFromMyResearch", new deleteItemFromMyResearch());
2749
      processMap_.put("getBrowseHistoryItems", new getBrowseHistoryItems());
2789
      processMap_.put("getBrowseHistoryItems", new getBrowseHistoryItems());
2750
      processMap_.put("updateBrowseHistory", new updateBrowseHistory());
2790
      processMap_.put("updateBrowseHistory", new updateBrowseHistory());
-
 
2791
      processMap_.put("getCartsWithCouponCount", new getCartsWithCouponCount());
2751
    }
2792
    }
2752
 
2793
 
2753
    private Iface iface_;
2794
    private Iface iface_;
2754
 
2795
 
2755
    public boolean process(TProtocol iprot, TProtocol oprot) throws TException
2796
    public boolean process(TProtocol iprot, TProtocol oprot) throws TException
Line 4590... Line 4631...
4590
        oprot.getTransport().flush();
4631
        oprot.getTransport().flush();
4591
      }
4632
      }
4592
 
4633
 
4593
    }
4634
    }
4594
 
4635
 
-
 
4636
    private class getCartsWithCouponCount implements ProcessFunction {
-
 
4637
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
4638
      {
-
 
4639
        getCartsWithCouponCount_args args = new getCartsWithCouponCount_args();
-
 
4640
        args.read(iprot);
-
 
4641
        iprot.readMessageEnd();
-
 
4642
        getCartsWithCouponCount_result result = new getCartsWithCouponCount_result();
-
 
4643
        result.success = iface_.getCartsWithCouponCount(args.couponCode);
-
 
4644
        result.setSuccessIsSet(true);
-
 
4645
        oprot.writeMessageBegin(new TMessage("getCartsWithCouponCount", TMessageType.REPLY, seqid));
-
 
4646
        result.write(oprot);
-
 
4647
        oprot.writeMessageEnd();
-
 
4648
        oprot.getTransport().flush();
-
 
4649
      }
-
 
4650
 
-
 
4651
    }
-
 
4652
 
4595
  }
4653
  }
4596
 
4654
 
4597
  public static class createAnonymousUser_args implements TBase<createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<createAnonymousUser_args>   {
4655
  public static class createAnonymousUser_args implements TBase<createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<createAnonymousUser_args>   {
4598
    private static final TStruct STRUCT_DESC = new TStruct("createAnonymousUser_args");
4656
    private static final TStruct STRUCT_DESC = new TStruct("createAnonymousUser_args");
4599
 
4657
 
Line 16935... Line 16993...
16935
        } else {
16993
        } else {
16936
          switch (fieldId) {
16994
          switch (fieldId) {
16937
            case SUCCESS:
16995
            case SUCCESS:
16938
              if (field.type == TType.LIST) {
16996
              if (field.type == TType.LIST) {
16939
                {
16997
                {
16940
                  TList _list16 = iprot.readListBegin();
16998
                  TList _list20 = iprot.readListBegin();
16941
                  this.success = new ArrayList<Address>(_list16.size);
16999
                  this.success = new ArrayList<Address>(_list20.size);
16942
                  for (int _i17 = 0; _i17 < _list16.size; ++_i17)
17000
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
16943
                  {
17001
                  {
16944
                    Address _elem18;
17002
                    Address _elem22;
16945
                    _elem18 = new Address();
17003
                    _elem22 = new Address();
16946
                    _elem18.read(iprot);
17004
                    _elem22.read(iprot);
16947
                    this.success.add(_elem18);
17005
                    this.success.add(_elem22);
16948
                  }
17006
                  }
16949
                  iprot.readListEnd();
17007
                  iprot.readListEnd();
16950
                }
17008
                }
16951
              } else { 
17009
              } else { 
16952
                TProtocolUtil.skip(iprot, field.type);
17010
                TProtocolUtil.skip(iprot, field.type);
Line 16973... Line 17031...
16973
 
17031
 
16974
      if (this.isSetSuccess()) {
17032
      if (this.isSetSuccess()) {
16975
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17033
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16976
        {
17034
        {
16977
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
17035
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
16978
          for (Address _iter19 : this.success)
17036
          for (Address _iter23 : this.success)
16979
          {
17037
          {
16980
            _iter19.write(oprot);
17038
            _iter23.write(oprot);
16981
          }
17039
          }
16982
          oprot.writeListEnd();
17040
          oprot.writeListEnd();
16983
        }
17041
        }
16984
        oprot.writeFieldEnd();
17042
        oprot.writeFieldEnd();
16985
      } else if (this.isSetUcx()) {
17043
      } else if (this.isSetUcx()) {
Line 21401... Line 21459...
21401
        } else {
21459
        } else {
21402
          switch (fieldId) {
21460
          switch (fieldId) {
21403
            case SUCCESS:
21461
            case SUCCESS:
21404
              if (field.type == TType.LIST) {
21462
              if (field.type == TType.LIST) {
21405
                {
21463
                {
21406
                  TList _list20 = iprot.readListBegin();
21464
                  TList _list24 = iprot.readListBegin();
21407
                  this.success = new ArrayList<UserCommunication>(_list20.size);
21465
                  this.success = new ArrayList<UserCommunication>(_list24.size);
21408
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
21466
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
21409
                  {
21467
                  {
21410
                    UserCommunication _elem22;
21468
                    UserCommunication _elem26;
21411
                    _elem22 = new UserCommunication();
21469
                    _elem26 = new UserCommunication();
21412
                    _elem22.read(iprot);
21470
                    _elem26.read(iprot);
21413
                    this.success.add(_elem22);
21471
                    this.success.add(_elem26);
21414
                  }
21472
                  }
21415
                  iprot.readListEnd();
21473
                  iprot.readListEnd();
21416
                }
21474
                }
21417
              } else { 
21475
              } else { 
21418
                TProtocolUtil.skip(iprot, field.type);
21476
                TProtocolUtil.skip(iprot, field.type);
Line 21439... Line 21497...
21439
 
21497
 
21440
      if (this.isSetSuccess()) {
21498
      if (this.isSetSuccess()) {
21441
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21499
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21442
        {
21500
        {
21443
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
21501
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
21444
          for (UserCommunication _iter23 : this.success)
21502
          for (UserCommunication _iter27 : this.success)
21445
          {
21503
          {
21446
            _iter23.write(oprot);
21504
            _iter27.write(oprot);
21447
          }
21505
          }
21448
          oprot.writeListEnd();
21506
          oprot.writeListEnd();
21449
        }
21507
        }
21450
        oprot.writeFieldEnd();
21508
        oprot.writeFieldEnd();
21451
      } else if (this.isSetUcx()) {
21509
      } else if (this.isSetUcx()) {
Line 21994... Line 22052...
21994
        } else {
22052
        } else {
21995
          switch (fieldId) {
22053
          switch (fieldId) {
21996
            case SUCCESS:
22054
            case SUCCESS:
21997
              if (field.type == TType.LIST) {
22055
              if (field.type == TType.LIST) {
21998
                {
22056
                {
21999
                  TList _list24 = iprot.readListBegin();
22057
                  TList _list28 = iprot.readListBegin();
22000
                  this.success = new ArrayList<UserCommunication>(_list24.size);
22058
                  this.success = new ArrayList<UserCommunication>(_list28.size);
22001
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
22059
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
22002
                  {
22060
                  {
22003
                    UserCommunication _elem26;
22061
                    UserCommunication _elem30;
22004
                    _elem26 = new UserCommunication();
22062
                    _elem30 = new UserCommunication();
22005
                    _elem26.read(iprot);
22063
                    _elem30.read(iprot);
22006
                    this.success.add(_elem26);
22064
                    this.success.add(_elem30);
22007
                  }
22065
                  }
22008
                  iprot.readListEnd();
22066
                  iprot.readListEnd();
22009
                }
22067
                }
22010
              } else { 
22068
              } else { 
22011
                TProtocolUtil.skip(iprot, field.type);
22069
                TProtocolUtil.skip(iprot, field.type);
Line 22032... Line 22090...
22032
 
22090
 
22033
      if (this.isSetSuccess()) {
22091
      if (this.isSetSuccess()) {
22034
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22092
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22035
        {
22093
        {
22036
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
22094
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
22037
          for (UserCommunication _iter27 : this.success)
22095
          for (UserCommunication _iter31 : this.success)
22038
          {
22096
          {
22039
            _iter27.write(oprot);
22097
            _iter31.write(oprot);
22040
          }
22098
          }
22041
          oprot.writeListEnd();
22099
          oprot.writeListEnd();
22042
        }
22100
        }
22043
        oprot.writeFieldEnd();
22101
        oprot.writeFieldEnd();
22044
      } else if (this.isSetUcx()) {
22102
      } else if (this.isSetUcx()) {
Line 23314... Line 23372...
23314
        } else {
23372
        } else {
23315
          switch (fieldId) {
23373
          switch (fieldId) {
23316
            case SUCCESS:
23374
            case SUCCESS:
23317
              if (field.type == TType.LIST) {
23375
              if (field.type == TType.LIST) {
23318
                {
23376
                {
23319
                  TList _list28 = iprot.readListBegin();
23377
                  TList _list32 = iprot.readListBegin();
23320
                  this.success = new ArrayList<MasterAffiliate>(_list28.size);
23378
                  this.success = new ArrayList<MasterAffiliate>(_list32.size);
23321
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
23379
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
23322
                  {
23380
                  {
23323
                    MasterAffiliate _elem30;
23381
                    MasterAffiliate _elem34;
23324
                    _elem30 = new MasterAffiliate();
23382
                    _elem34 = new MasterAffiliate();
23325
                    _elem30.read(iprot);
23383
                    _elem34.read(iprot);
23326
                    this.success.add(_elem30);
23384
                    this.success.add(_elem34);
23327
                  }
23385
                  }
23328
                  iprot.readListEnd();
23386
                  iprot.readListEnd();
23329
                }
23387
                }
23330
              } else { 
23388
              } else { 
23331
                TProtocolUtil.skip(iprot, field.type);
23389
                TProtocolUtil.skip(iprot, field.type);
Line 23352... Line 23410...
23352
 
23410
 
23353
      if (this.isSetSuccess()) {
23411
      if (this.isSetSuccess()) {
23354
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23412
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23355
        {
23413
        {
23356
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
23414
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
23357
          for (MasterAffiliate _iter31 : this.success)
23415
          for (MasterAffiliate _iter35 : this.success)
23358
          {
23416
          {
23359
            _iter31.write(oprot);
23417
            _iter35.write(oprot);
23360
          }
23418
          }
23361
          oprot.writeListEnd();
23419
          oprot.writeListEnd();
23362
        }
23420
        }
23363
        oprot.writeFieldEnd();
23421
        oprot.writeFieldEnd();
23364
      } else if (this.isSetUtx()) {
23422
      } else if (this.isSetUtx()) {
Line 28104... Line 28162...
28104
        } else {
28162
        } else {
28105
          switch (fieldId) {
28163
          switch (fieldId) {
28106
            case SUCCESS:
28164
            case SUCCESS:
28107
              if (field.type == TType.LIST) {
28165
              if (field.type == TType.LIST) {
28108
                {
28166
                {
28109
                  TList _list32 = iprot.readListBegin();
28167
                  TList _list36 = iprot.readListBegin();
28110
                  this.success = new ArrayList<Affiliate>(_list32.size);
28168
                  this.success = new ArrayList<Affiliate>(_list36.size);
28111
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
28169
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
28112
                  {
28170
                  {
28113
                    Affiliate _elem34;
28171
                    Affiliate _elem38;
28114
                    _elem34 = new Affiliate();
28172
                    _elem38 = new Affiliate();
28115
                    _elem34.read(iprot);
28173
                    _elem38.read(iprot);
28116
                    this.success.add(_elem34);
28174
                    this.success.add(_elem38);
28117
                  }
28175
                  }
28118
                  iprot.readListEnd();
28176
                  iprot.readListEnd();
28119
                }
28177
                }
28120
              } else { 
28178
              } else { 
28121
                TProtocolUtil.skip(iprot, field.type);
28179
                TProtocolUtil.skip(iprot, field.type);
Line 28142... Line 28200...
28142
 
28200
 
28143
      if (this.isSetSuccess()) {
28201
      if (this.isSetSuccess()) {
28144
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28202
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28145
        {
28203
        {
28146
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
28204
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
28147
          for (Affiliate _iter35 : this.success)
28205
          for (Affiliate _iter39 : this.success)
28148
          {
28206
          {
28149
            _iter35.write(oprot);
28207
            _iter39.write(oprot);
28150
          }
28208
          }
28151
          oprot.writeListEnd();
28209
          oprot.writeListEnd();
28152
        }
28210
        }
28153
        oprot.writeFieldEnd();
28211
        oprot.writeFieldEnd();
28154
      } else if (this.isSetUtx()) {
28212
      } else if (this.isSetUtx()) {
Line 30652... Line 30710...
30652
        } else {
30710
        } else {
30653
          switch (fieldId) {
30711
          switch (fieldId) {
30654
            case SUCCESS:
30712
            case SUCCESS:
30655
              if (field.type == TType.LIST) {
30713
              if (field.type == TType.LIST) {
30656
                {
30714
                {
30657
                  TList _list36 = iprot.readListBegin();
30715
                  TList _list40 = iprot.readListBegin();
30658
                  this.success = new ArrayList<TrackLog>(_list36.size);
30716
                  this.success = new ArrayList<TrackLog>(_list40.size);
30659
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
30717
                  for (int _i41 = 0; _i41 < _list40.size; ++_i41)
30660
                  {
30718
                  {
30661
                    TrackLog _elem38;
30719
                    TrackLog _elem42;
30662
                    _elem38 = new TrackLog();
30720
                    _elem42 = new TrackLog();
30663
                    _elem38.read(iprot);
30721
                    _elem42.read(iprot);
30664
                    this.success.add(_elem38);
30722
                    this.success.add(_elem42);
30665
                  }
30723
                  }
30666
                  iprot.readListEnd();
30724
                  iprot.readListEnd();
30667
                }
30725
                }
30668
              } else { 
30726
              } else { 
30669
                TProtocolUtil.skip(iprot, field.type);
30727
                TProtocolUtil.skip(iprot, field.type);
Line 30690... Line 30748...
30690
 
30748
 
30691
      if (this.isSetSuccess()) {
30749
      if (this.isSetSuccess()) {
30692
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30750
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30693
        {
30751
        {
30694
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
30752
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
30695
          for (TrackLog _iter39 : this.success)
30753
          for (TrackLog _iter43 : this.success)
30696
          {
30754
          {
30697
            _iter39.write(oprot);
30755
            _iter43.write(oprot);
30698
          }
30756
          }
30699
          oprot.writeListEnd();
30757
          oprot.writeListEnd();
30700
        }
30758
        }
30701
        oprot.writeFieldEnd();
30759
        oprot.writeFieldEnd();
30702
      } else if (this.isSetUtx()) {
30760
      } else if (this.isSetUtx()) {
Line 31332... Line 31390...
31332
        } else {
31390
        } else {
31333
          switch (fieldId) {
31391
          switch (fieldId) {
31334
            case SUCCESS:
31392
            case SUCCESS:
31335
              if (field.type == TType.LIST) {
31393
              if (field.type == TType.LIST) {
31336
                {
31394
                {
31337
                  TList _list40 = iprot.readListBegin();
31395
                  TList _list44 = iprot.readListBegin();
31338
                  this.success = new ArrayList<TrackLog>(_list40.size);
31396
                  this.success = new ArrayList<TrackLog>(_list44.size);
31339
                  for (int _i41 = 0; _i41 < _list40.size; ++_i41)
31397
                  for (int _i45 = 0; _i45 < _list44.size; ++_i45)
31340
                  {
31398
                  {
31341
                    TrackLog _elem42;
31399
                    TrackLog _elem46;
31342
                    _elem42 = new TrackLog();
31400
                    _elem46 = new TrackLog();
31343
                    _elem42.read(iprot);
31401
                    _elem46.read(iprot);
31344
                    this.success.add(_elem42);
31402
                    this.success.add(_elem46);
31345
                  }
31403
                  }
31346
                  iprot.readListEnd();
31404
                  iprot.readListEnd();
31347
                }
31405
                }
31348
              } else { 
31406
              } else { 
31349
                TProtocolUtil.skip(iprot, field.type);
31407
                TProtocolUtil.skip(iprot, field.type);
Line 31370... Line 31428...
31370
 
31428
 
31371
      if (this.isSetSuccess()) {
31429
      if (this.isSetSuccess()) {
31372
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31430
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31373
        {
31431
        {
31374
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
31432
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
31375
          for (TrackLog _iter43 : this.success)
31433
          for (TrackLog _iter47 : this.success)
31376
          {
31434
          {
31377
            _iter43.write(oprot);
31435
            _iter47.write(oprot);
31378
          }
31436
          }
31379
          oprot.writeListEnd();
31437
          oprot.writeListEnd();
31380
        }
31438
        }
31381
        oprot.writeFieldEnd();
31439
        oprot.writeFieldEnd();
31382
      } else if (this.isSetUtx()) {
31440
      } else if (this.isSetUtx()) {
Line 32180... Line 32238...
32180
        } else {
32238
        } else {
32181
          switch (fieldId) {
32239
          switch (fieldId) {
32182
            case SUCCESS:
32240
            case SUCCESS:
32183
              if (field.type == TType.LIST) {
32241
              if (field.type == TType.LIST) {
32184
                {
32242
                {
32185
                  TList _list44 = iprot.readListBegin();
32243
                  TList _list48 = iprot.readListBegin();
32186
                  this.success = new ArrayList<TrackLog>(_list44.size);
32244
                  this.success = new ArrayList<TrackLog>(_list48.size);
32187
                  for (int _i45 = 0; _i45 < _list44.size; ++_i45)
32245
                  for (int _i49 = 0; _i49 < _list48.size; ++_i49)
32188
                  {
32246
                  {
32189
                    TrackLog _elem46;
32247
                    TrackLog _elem50;
32190
                    _elem46 = new TrackLog();
32248
                    _elem50 = new TrackLog();
32191
                    _elem46.read(iprot);
32249
                    _elem50.read(iprot);
32192
                    this.success.add(_elem46);
32250
                    this.success.add(_elem50);
32193
                  }
32251
                  }
32194
                  iprot.readListEnd();
32252
                  iprot.readListEnd();
32195
                }
32253
                }
32196
              } else { 
32254
              } else { 
32197
                TProtocolUtil.skip(iprot, field.type);
32255
                TProtocolUtil.skip(iprot, field.type);
Line 32218... Line 32276...
32218
 
32276
 
32219
      if (this.isSetSuccess()) {
32277
      if (this.isSetSuccess()) {
32220
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32278
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32221
        {
32279
        {
32222
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
32280
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
32223
          for (TrackLog _iter47 : this.success)
32281
          for (TrackLog _iter51 : this.success)
32224
          {
32282
          {
32225
            _iter47.write(oprot);
32283
            _iter51.write(oprot);
32226
          }
32284
          }
32227
          oprot.writeListEnd();
32285
          oprot.writeListEnd();
32228
        }
32286
        }
32229
        oprot.writeFieldEnd();
32287
        oprot.writeFieldEnd();
32230
      } else if (this.isSetUtx()) {
32288
      } else if (this.isSetUtx()) {
Line 34891... Line 34949...
34891
        } else {
34949
        } else {
34892
          switch (fieldId) {
34950
          switch (fieldId) {
34893
            case SUCCESS:
34951
            case SUCCESS:
34894
              if (field.type == TType.LIST) {
34952
              if (field.type == TType.LIST) {
34895
                {
34953
                {
34896
                  TList _list48 = iprot.readListBegin();
34954
                  TList _list52 = iprot.readListBegin();
34897
                  this.success = new ArrayList<Cart>(_list48.size);
34955
                  this.success = new ArrayList<Cart>(_list52.size);
34898
                  for (int _i49 = 0; _i49 < _list48.size; ++_i49)
34956
                  for (int _i53 = 0; _i53 < _list52.size; ++_i53)
34899
                  {
34957
                  {
34900
                    Cart _elem50;
34958
                    Cart _elem54;
34901
                    _elem50 = new Cart();
34959
                    _elem54 = new Cart();
34902
                    _elem50.read(iprot);
34960
                    _elem54.read(iprot);
34903
                    this.success.add(_elem50);
34961
                    this.success.add(_elem54);
34904
                  }
34962
                  }
34905
                  iprot.readListEnd();
34963
                  iprot.readListEnd();
34906
                }
34964
                }
34907
              } else { 
34965
              } else { 
34908
                TProtocolUtil.skip(iprot, field.type);
34966
                TProtocolUtil.skip(iprot, field.type);
Line 34929... Line 34987...
34929
 
34987
 
34930
      if (this.isSetSuccess()) {
34988
      if (this.isSetSuccess()) {
34931
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34989
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34932
        {
34990
        {
34933
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
34991
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
34934
          for (Cart _iter51 : this.success)
34992
          for (Cart _iter55 : this.success)
34935
          {
34993
          {
34936
            _iter51.write(oprot);
34994
            _iter55.write(oprot);
34937
          }
34995
          }
34938
          oprot.writeListEnd();
34996
          oprot.writeListEnd();
34939
        }
34997
        }
34940
        oprot.writeFieldEnd();
34998
        oprot.writeFieldEnd();
34941
      } else if (this.isSetScx()) {
34999
      } else if (this.isSetScx()) {
Line 35594... Line 35652...
35594
        } else {
35652
        } else {
35595
          switch (fieldId) {
35653
          switch (fieldId) {
35596
            case SUCCESS:
35654
            case SUCCESS:
35597
              if (field.type == TType.LIST) {
35655
              if (field.type == TType.LIST) {
35598
                {
35656
                {
35599
                  TList _list52 = iprot.readListBegin();
35657
                  TList _list56 = iprot.readListBegin();
35600
                  this.success = new ArrayList<Cart>(_list52.size);
35658
                  this.success = new ArrayList<Cart>(_list56.size);
35601
                  for (int _i53 = 0; _i53 < _list52.size; ++_i53)
35659
                  for (int _i57 = 0; _i57 < _list56.size; ++_i57)
35602
                  {
35660
                  {
35603
                    Cart _elem54;
35661
                    Cart _elem58;
35604
                    _elem54 = new Cart();
35662
                    _elem58 = new Cart();
35605
                    _elem54.read(iprot);
35663
                    _elem58.read(iprot);
35606
                    this.success.add(_elem54);
35664
                    this.success.add(_elem58);
35607
                  }
35665
                  }
35608
                  iprot.readListEnd();
35666
                  iprot.readListEnd();
35609
                }
35667
                }
35610
              } else { 
35668
              } else { 
35611
                TProtocolUtil.skip(iprot, field.type);
35669
                TProtocolUtil.skip(iprot, field.type);
Line 35632... Line 35690...
35632
 
35690
 
35633
      if (this.isSetSuccess()) {
35691
      if (this.isSetSuccess()) {
35634
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35692
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35635
        {
35693
        {
35636
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
35694
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
35637
          for (Cart _iter55 : this.success)
35695
          for (Cart _iter59 : this.success)
35638
          {
35696
          {
35639
            _iter55.write(oprot);
35697
            _iter59.write(oprot);
35640
          }
35698
          }
35641
          oprot.writeListEnd();
35699
          oprot.writeListEnd();
35642
        }
35700
        }
35643
        oprot.writeFieldEnd();
35701
        oprot.writeFieldEnd();
35644
      } else if (this.isSetScx()) {
35702
      } else if (this.isSetScx()) {
Line 36456... Line 36514...
36456
        } else {
36514
        } else {
36457
          switch (fieldId) {
36515
          switch (fieldId) {
36458
            case SUCCESS:
36516
            case SUCCESS:
36459
              if (field.type == TType.LIST) {
36517
              if (field.type == TType.LIST) {
36460
                {
36518
                {
36461
                  TList _list56 = iprot.readListBegin();
36519
                  TList _list60 = iprot.readListBegin();
36462
                  this.success = new ArrayList<Cart>(_list56.size);
36520
                  this.success = new ArrayList<Cart>(_list60.size);
36463
                  for (int _i57 = 0; _i57 < _list56.size; ++_i57)
36521
                  for (int _i61 = 0; _i61 < _list60.size; ++_i61)
36464
                  {
36522
                  {
36465
                    Cart _elem58;
36523
                    Cart _elem62;
36466
                    _elem58 = new Cart();
36524
                    _elem62 = new Cart();
36467
                    _elem58.read(iprot);
36525
                    _elem62.read(iprot);
36468
                    this.success.add(_elem58);
36526
                    this.success.add(_elem62);
36469
                  }
36527
                  }
36470
                  iprot.readListEnd();
36528
                  iprot.readListEnd();
36471
                }
36529
                }
36472
              } else { 
36530
              } else { 
36473
                TProtocolUtil.skip(iprot, field.type);
36531
                TProtocolUtil.skip(iprot, field.type);
Line 36494... Line 36552...
36494
 
36552
 
36495
      if (this.isSetSuccess()) {
36553
      if (this.isSetSuccess()) {
36496
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36554
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36497
        {
36555
        {
36498
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
36556
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
36499
          for (Cart _iter59 : this.success)
36557
          for (Cart _iter63 : this.success)
36500
          {
36558
          {
36501
            _iter59.write(oprot);
36559
            _iter63.write(oprot);
36502
          }
36560
          }
36503
          oprot.writeListEnd();
36561
          oprot.writeListEnd();
36504
        }
36562
        }
36505
        oprot.writeFieldEnd();
36563
        oprot.writeFieldEnd();
36506
      } else if (this.isSetScx()) {
36564
      } else if (this.isSetScx()) {
Line 45027... Line 45085...
45027
              }
45085
              }
45028
              break;
45086
              break;
45029
            case ITEMS:
45087
            case ITEMS:
45030
              if (field.type == TType.MAP) {
45088
              if (field.type == TType.MAP) {
45031
                {
45089
                {
45032
                  TMap _map60 = iprot.readMapBegin();
45090
                  TMap _map64 = iprot.readMapBegin();
45033
                  this.items = new HashMap<Long,Double>(2*_map60.size);
45091
                  this.items = new HashMap<Long,Double>(2*_map64.size);
45034
                  for (int _i61 = 0; _i61 < _map60.size; ++_i61)
45092
                  for (int _i65 = 0; _i65 < _map64.size; ++_i65)
45035
                  {
45093
                  {
45036
                    long _key62;
45094
                    long _key66;
45037
                    double _val63;
45095
                    double _val67;
45038
                    _key62 = iprot.readI64();
45096
                    _key66 = iprot.readI64();
45039
                    _val63 = iprot.readDouble();
45097
                    _val67 = iprot.readDouble();
45040
                    this.items.put(_key62, _val63);
45098
                    this.items.put(_key66, _val67);
45041
                  }
45099
                  }
45042
                  iprot.readMapEnd();
45100
                  iprot.readMapEnd();
45043
                }
45101
                }
45044
              } else { 
45102
              } else { 
45045
                TProtocolUtil.skip(iprot, field.type);
45103
                TProtocolUtil.skip(iprot, field.type);
Line 45062... Line 45120...
45062
      oprot.writeFieldEnd();
45120
      oprot.writeFieldEnd();
45063
      if (this.items != null) {
45121
      if (this.items != null) {
45064
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
45122
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
45065
        {
45123
        {
45066
          oprot.writeMapBegin(new TMap(TType.I64, TType.DOUBLE, this.items.size()));
45124
          oprot.writeMapBegin(new TMap(TType.I64, TType.DOUBLE, this.items.size()));
45067
          for (Map.Entry<Long, Double> _iter64 : this.items.entrySet())
45125
          for (Map.Entry<Long, Double> _iter68 : this.items.entrySet())
45068
          {
45126
          {
45069
            oprot.writeI64(_iter64.getKey());
45127
            oprot.writeI64(_iter68.getKey());
45070
            oprot.writeDouble(_iter64.getValue());
45128
            oprot.writeDouble(_iter68.getValue());
45071
          }
45129
          }
45072
          oprot.writeMapEnd();
45130
          oprot.writeMapEnd();
45073
        }
45131
        }
45074
        oprot.writeFieldEnd();
45132
        oprot.writeFieldEnd();
45075
      }
45133
      }
Line 46758... Line 46816...
46758
        } else {
46816
        } else {
46759
          switch (fieldId) {
46817
          switch (fieldId) {
46760
            case SUCCESS:
46818
            case SUCCESS:
46761
              if (field.type == TType.LIST) {
46819
              if (field.type == TType.LIST) {
46762
                {
46820
                {
46763
                  TList _list65 = iprot.readListBegin();
46821
                  TList _list69 = iprot.readListBegin();
46764
                  this.success = new ArrayList<User>(_list65.size);
46822
                  this.success = new ArrayList<User>(_list69.size);
46765
                  for (int _i66 = 0; _i66 < _list65.size; ++_i66)
46823
                  for (int _i70 = 0; _i70 < _list69.size; ++_i70)
46766
                  {
46824
                  {
46767
                    User _elem67;
46825
                    User _elem71;
46768
                    _elem67 = new User();
46826
                    _elem71 = new User();
46769
                    _elem67.read(iprot);
46827
                    _elem71.read(iprot);
46770
                    this.success.add(_elem67);
46828
                    this.success.add(_elem71);
46771
                  }
46829
                  }
46772
                  iprot.readListEnd();
46830
                  iprot.readListEnd();
46773
                }
46831
                }
46774
              } else { 
46832
              } else { 
46775
                TProtocolUtil.skip(iprot, field.type);
46833
                TProtocolUtil.skip(iprot, field.type);
Line 46788... Line 46846...
46788
 
46846
 
46789
      if (this.isSetSuccess()) {
46847
      if (this.isSetSuccess()) {
46790
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
46848
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
46791
        {
46849
        {
46792
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
46850
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
46793
          for (User _iter68 : this.success)
46851
          for (User _iter72 : this.success)
46794
          {
46852
          {
46795
            _iter68.write(oprot);
46853
            _iter72.write(oprot);
46796
          }
46854
          }
46797
          oprot.writeListEnd();
46855
          oprot.writeListEnd();
46798
        }
46856
        }
46799
        oprot.writeFieldEnd();
46857
        oprot.writeFieldEnd();
46800
      }
46858
      }
Line 48146... Line 48204...
48146
        } else {
48204
        } else {
48147
          switch (fieldId) {
48205
          switch (fieldId) {
48148
            case SUCCESS:
48206
            case SUCCESS:
48149
              if (field.type == TType.LIST) {
48207
              if (field.type == TType.LIST) {
48150
                {
48208
                {
48151
                  TList _list69 = iprot.readListBegin();
48209
                  TList _list73 = iprot.readListBegin();
48152
                  this.success = new ArrayList<UserNote>(_list69.size);
48210
                  this.success = new ArrayList<UserNote>(_list73.size);
48153
                  for (int _i70 = 0; _i70 < _list69.size; ++_i70)
48211
                  for (int _i74 = 0; _i74 < _list73.size; ++_i74)
48154
                  {
48212
                  {
48155
                    UserNote _elem71;
48213
                    UserNote _elem75;
48156
                    _elem71 = new UserNote();
48214
                    _elem75 = new UserNote();
48157
                    _elem71.read(iprot);
48215
                    _elem75.read(iprot);
48158
                    this.success.add(_elem71);
48216
                    this.success.add(_elem75);
48159
                  }
48217
                  }
48160
                  iprot.readListEnd();
48218
                  iprot.readListEnd();
48161
                }
48219
                }
48162
              } else { 
48220
              } else { 
48163
                TProtocolUtil.skip(iprot, field.type);
48221
                TProtocolUtil.skip(iprot, field.type);
Line 48176... Line 48234...
48176
 
48234
 
48177
      if (this.isSetSuccess()) {
48235
      if (this.isSetSuccess()) {
48178
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48236
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48179
        {
48237
        {
48180
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
48238
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
48181
          for (UserNote _iter72 : this.success)
48239
          for (UserNote _iter76 : this.success)
48182
          {
48240
          {
48183
            _iter72.write(oprot);
48241
            _iter76.write(oprot);
48184
          }
48242
          }
48185
          oprot.writeListEnd();
48243
          oprot.writeListEnd();
48186
        }
48244
        }
48187
        oprot.writeFieldEnd();
48245
        oprot.writeFieldEnd();
48188
      }
48246
      }
Line 48806... Line 48864...
48806
        } else {
48864
        } else {
48807
          switch (fieldId) {
48865
          switch (fieldId) {
48808
            case SUCCESS:
48866
            case SUCCESS:
48809
              if (field.type == TType.LIST) {
48867
              if (field.type == TType.LIST) {
48810
                {
48868
                {
48811
                  TList _list73 = iprot.readListBegin();
48869
                  TList _list77 = iprot.readListBegin();
48812
                  this.success = new ArrayList<Long>(_list73.size);
48870
                  this.success = new ArrayList<Long>(_list77.size);
48813
                  for (int _i74 = 0; _i74 < _list73.size; ++_i74)
48871
                  for (int _i78 = 0; _i78 < _list77.size; ++_i78)
48814
                  {
48872
                  {
48815
                    long _elem75;
48873
                    long _elem79;
48816
                    _elem75 = iprot.readI64();
48874
                    _elem79 = iprot.readI64();
48817
                    this.success.add(_elem75);
48875
                    this.success.add(_elem79);
48818
                  }
48876
                  }
48819
                  iprot.readListEnd();
48877
                  iprot.readListEnd();
48820
                }
48878
                }
48821
              } else { 
48879
              } else { 
48822
                TProtocolUtil.skip(iprot, field.type);
48880
                TProtocolUtil.skip(iprot, field.type);
Line 48843... Line 48901...
48843
 
48901
 
48844
      if (this.isSetSuccess()) {
48902
      if (this.isSetSuccess()) {
48845
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48903
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48846
        {
48904
        {
48847
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
48905
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
48848
          for (long _iter76 : this.success)
48906
          for (long _iter80 : this.success)
48849
          {
48907
          {
48850
            oprot.writeI64(_iter76);
48908
            oprot.writeI64(_iter80);
48851
          }
48909
          }
48852
          oprot.writeListEnd();
48910
          oprot.writeListEnd();
48853
        }
48911
        }
48854
        oprot.writeFieldEnd();
48912
        oprot.writeFieldEnd();
48855
      } else if (this.isSetScx()) {
48913
      } else if (this.isSetScx()) {
Line 50841... Line 50899...
50841
        } else {
50899
        } else {
50842
          switch (fieldId) {
50900
          switch (fieldId) {
50843
            case SUCCESS:
50901
            case SUCCESS:
50844
              if (field.type == TType.LIST) {
50902
              if (field.type == TType.LIST) {
50845
                {
50903
                {
50846
                  TList _list77 = iprot.readListBegin();
50904
                  TList _list81 = iprot.readListBegin();
50847
                  this.success = new ArrayList<Long>(_list77.size);
50905
                  this.success = new ArrayList<Long>(_list81.size);
50848
                  for (int _i78 = 0; _i78 < _list77.size; ++_i78)
50906
                  for (int _i82 = 0; _i82 < _list81.size; ++_i82)
50849
                  {
50907
                  {
50850
                    long _elem79;
50908
                    long _elem83;
50851
                    _elem79 = iprot.readI64();
50909
                    _elem83 = iprot.readI64();
50852
                    this.success.add(_elem79);
50910
                    this.success.add(_elem83);
50853
                  }
50911
                  }
50854
                  iprot.readListEnd();
50912
                  iprot.readListEnd();
50855
                }
50913
                }
50856
              } else { 
50914
              } else { 
50857
                TProtocolUtil.skip(iprot, field.type);
50915
                TProtocolUtil.skip(iprot, field.type);
Line 50878... Line 50936...
50878
 
50936
 
50879
      if (this.isSetSuccess()) {
50937
      if (this.isSetSuccess()) {
50880
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50938
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50881
        {
50939
        {
50882
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
50940
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
50883
          for (long _iter80 : this.success)
50941
          for (long _iter84 : this.success)
50884
          {
50942
          {
50885
            oprot.writeI64(_iter80);
50943
            oprot.writeI64(_iter84);
50886
          }
50944
          }
50887
          oprot.writeListEnd();
50945
          oprot.writeListEnd();
50888
        }
50946
        }
50889
        oprot.writeFieldEnd();
50947
        oprot.writeFieldEnd();
50890
      } else if (this.isSetScx()) {
50948
      } else if (this.isSetScx()) {
Line 51465... Line 51523...
51465
      sb.append(")");
51523
      sb.append(")");
51466
      return sb.toString();
51524
      return sb.toString();
51467
    }
51525
    }
51468
 
51526
 
51469
    public void validate() throws TException {
51527
    public void validate() throws TException {
-
 
51528
      // check for required fields
-
 
51529
    }
-
 
51530
 
-
 
51531
  }
-
 
51532
 
-
 
51533
  public static class getCartsWithCouponCount_args implements TBase<getCartsWithCouponCount_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCartsWithCouponCount_args>   {
-
 
51534
    private static final TStruct STRUCT_DESC = new TStruct("getCartsWithCouponCount_args");
-
 
51535
 
-
 
51536
    private static final TField COUPON_CODE_FIELD_DESC = new TField("couponCode", TType.STRING, (short)1);
-
 
51537
 
-
 
51538
    private String couponCode;
-
 
51539
 
-
 
51540
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
51541
    public enum _Fields implements TFieldIdEnum {
-
 
51542
      COUPON_CODE((short)1, "couponCode");
-
 
51543
 
-
 
51544
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
51545
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
51546
 
-
 
51547
      static {
-
 
51548
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
51549
          byId.put((int)field._thriftId, field);
-
 
51550
          byName.put(field.getFieldName(), field);
-
 
51551
        }
-
 
51552
      }
-
 
51553
 
-
 
51554
      /**
-
 
51555
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
51556
       */
-
 
51557
      public static _Fields findByThriftId(int fieldId) {
-
 
51558
        return byId.get(fieldId);
-
 
51559
      }
-
 
51560
 
-
 
51561
      /**
-
 
51562
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
51563
       * if it is not found.
-
 
51564
       */
-
 
51565
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
51566
        _Fields fields = findByThriftId(fieldId);
-
 
51567
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
51568
        return fields;
-
 
51569
      }
-
 
51570
 
-
 
51571
      /**
-
 
51572
       * Find the _Fields constant that matches name, or null if its not found.
-
 
51573
       */
-
 
51574
      public static _Fields findByName(String name) {
-
 
51575
        return byName.get(name);
-
 
51576
      }
-
 
51577
 
-
 
51578
      private final short _thriftId;
-
 
51579
      private final String _fieldName;
-
 
51580
 
-
 
51581
      _Fields(short thriftId, String fieldName) {
-
 
51582
        _thriftId = thriftId;
-
 
51583
        _fieldName = fieldName;
-
 
51584
      }
-
 
51585
 
-
 
51586
      public short getThriftFieldId() {
-
 
51587
        return _thriftId;
-
 
51588
      }
-
 
51589
 
-
 
51590
      public String getFieldName() {
-
 
51591
        return _fieldName;
-
 
51592
      }
-
 
51593
    }
-
 
51594
 
-
 
51595
    // isset id assignments
-
 
51596
 
-
 
51597
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
51598
      put(_Fields.COUPON_CODE, new FieldMetaData("couponCode", TFieldRequirementType.DEFAULT, 
-
 
51599
          new FieldValueMetaData(TType.STRING)));
-
 
51600
    }});
-
 
51601
 
-
 
51602
    static {
-
 
51603
      FieldMetaData.addStructMetaDataMap(getCartsWithCouponCount_args.class, metaDataMap);
-
 
51604
    }
-
 
51605
 
-
 
51606
    public getCartsWithCouponCount_args() {
-
 
51607
    }
-
 
51608
 
-
 
51609
    public getCartsWithCouponCount_args(
-
 
51610
      String couponCode)
-
 
51611
    {
-
 
51612
      this();
-
 
51613
      this.couponCode = couponCode;
-
 
51614
    }
-
 
51615
 
-
 
51616
    /**
-
 
51617
     * Performs a deep copy on <i>other</i>.
-
 
51618
     */
-
 
51619
    public getCartsWithCouponCount_args(getCartsWithCouponCount_args other) {
-
 
51620
      if (other.isSetCouponCode()) {
-
 
51621
        this.couponCode = other.couponCode;
-
 
51622
      }
-
 
51623
    }
-
 
51624
 
-
 
51625
    public getCartsWithCouponCount_args deepCopy() {
-
 
51626
      return new getCartsWithCouponCount_args(this);
-
 
51627
    }
-
 
51628
 
-
 
51629
    @Deprecated
-
 
51630
    public getCartsWithCouponCount_args clone() {
-
 
51631
      return new getCartsWithCouponCount_args(this);
-
 
51632
    }
-
 
51633
 
-
 
51634
    public String getCouponCode() {
-
 
51635
      return this.couponCode;
-
 
51636
    }
-
 
51637
 
-
 
51638
    public getCartsWithCouponCount_args setCouponCode(String couponCode) {
-
 
51639
      this.couponCode = couponCode;
-
 
51640
      return this;
-
 
51641
    }
-
 
51642
 
-
 
51643
    public void unsetCouponCode() {
-
 
51644
      this.couponCode = null;
-
 
51645
    }
-
 
51646
 
-
 
51647
    /** Returns true if field couponCode is set (has been asigned a value) and false otherwise */
-
 
51648
    public boolean isSetCouponCode() {
-
 
51649
      return this.couponCode != null;
-
 
51650
    }
-
 
51651
 
-
 
51652
    public void setCouponCodeIsSet(boolean value) {
-
 
51653
      if (!value) {
-
 
51654
        this.couponCode = null;
-
 
51655
      }
-
 
51656
    }
-
 
51657
 
-
 
51658
    public void setFieldValue(_Fields field, Object value) {
-
 
51659
      switch (field) {
-
 
51660
      case COUPON_CODE:
-
 
51661
        if (value == null) {
-
 
51662
          unsetCouponCode();
-
 
51663
        } else {
-
 
51664
          setCouponCode((String)value);
-
 
51665
        }
-
 
51666
        break;
-
 
51667
 
-
 
51668
      }
-
 
51669
    }
-
 
51670
 
-
 
51671
    public void setFieldValue(int fieldID, Object value) {
-
 
51672
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
51673
    }
-
 
51674
 
-
 
51675
    public Object getFieldValue(_Fields field) {
-
 
51676
      switch (field) {
-
 
51677
      case COUPON_CODE:
-
 
51678
        return getCouponCode();
-
 
51679
 
-
 
51680
      }
-
 
51681
      throw new IllegalStateException();
-
 
51682
    }
-
 
51683
 
-
 
51684
    public Object getFieldValue(int fieldId) {
-
 
51685
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
51686
    }
-
 
51687
 
-
 
51688
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
51689
    public boolean isSet(_Fields field) {
-
 
51690
      switch (field) {
-
 
51691
      case COUPON_CODE:
-
 
51692
        return isSetCouponCode();
-
 
51693
      }
-
 
51694
      throw new IllegalStateException();
-
 
51695
    }
-
 
51696
 
-
 
51697
    public boolean isSet(int fieldID) {
-
 
51698
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
51699
    }
-
 
51700
 
-
 
51701
    @Override
-
 
51702
    public boolean equals(Object that) {
-
 
51703
      if (that == null)
-
 
51704
        return false;
-
 
51705
      if (that instanceof getCartsWithCouponCount_args)
-
 
51706
        return this.equals((getCartsWithCouponCount_args)that);
-
 
51707
      return false;
-
 
51708
    }
-
 
51709
 
-
 
51710
    public boolean equals(getCartsWithCouponCount_args that) {
-
 
51711
      if (that == null)
-
 
51712
        return false;
-
 
51713
 
-
 
51714
      boolean this_present_couponCode = true && this.isSetCouponCode();
-
 
51715
      boolean that_present_couponCode = true && that.isSetCouponCode();
-
 
51716
      if (this_present_couponCode || that_present_couponCode) {
-
 
51717
        if (!(this_present_couponCode && that_present_couponCode))
-
 
51718
          return false;
-
 
51719
        if (!this.couponCode.equals(that.couponCode))
-
 
51720
          return false;
-
 
51721
      }
-
 
51722
 
-
 
51723
      return true;
-
 
51724
    }
-
 
51725
 
-
 
51726
    @Override
-
 
51727
    public int hashCode() {
-
 
51728
      return 0;
-
 
51729
    }
-
 
51730
 
-
 
51731
    public int compareTo(getCartsWithCouponCount_args other) {
-
 
51732
      if (!getClass().equals(other.getClass())) {
-
 
51733
        return getClass().getName().compareTo(other.getClass().getName());
-
 
51734
      }
-
 
51735
 
-
 
51736
      int lastComparison = 0;
-
 
51737
      getCartsWithCouponCount_args typedOther = (getCartsWithCouponCount_args)other;
-
 
51738
 
-
 
51739
      lastComparison = Boolean.valueOf(isSetCouponCode()).compareTo(isSetCouponCode());
-
 
51740
      if (lastComparison != 0) {
-
 
51741
        return lastComparison;
-
 
51742
      }
-
 
51743
      lastComparison = TBaseHelper.compareTo(couponCode, typedOther.couponCode);
-
 
51744
      if (lastComparison != 0) {
-
 
51745
        return lastComparison;
-
 
51746
      }
-
 
51747
      return 0;
-
 
51748
    }
-
 
51749
 
-
 
51750
    public void read(TProtocol iprot) throws TException {
-
 
51751
      TField field;
-
 
51752
      iprot.readStructBegin();
-
 
51753
      while (true)
-
 
51754
      {
-
 
51755
        field = iprot.readFieldBegin();
-
 
51756
        if (field.type == TType.STOP) { 
-
 
51757
          break;
-
 
51758
        }
-
 
51759
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
51760
        if (fieldId == null) {
-
 
51761
          TProtocolUtil.skip(iprot, field.type);
-
 
51762
        } else {
-
 
51763
          switch (fieldId) {
-
 
51764
            case COUPON_CODE:
-
 
51765
              if (field.type == TType.STRING) {
-
 
51766
                this.couponCode = iprot.readString();
-
 
51767
              } else { 
-
 
51768
                TProtocolUtil.skip(iprot, field.type);
-
 
51769
              }
-
 
51770
              break;
-
 
51771
          }
-
 
51772
          iprot.readFieldEnd();
-
 
51773
        }
-
 
51774
      }
-
 
51775
      iprot.readStructEnd();
-
 
51776
      validate();
-
 
51777
    }
-
 
51778
 
-
 
51779
    public void write(TProtocol oprot) throws TException {
-
 
51780
      validate();
-
 
51781
 
-
 
51782
      oprot.writeStructBegin(STRUCT_DESC);
-
 
51783
      if (this.couponCode != null) {
-
 
51784
        oprot.writeFieldBegin(COUPON_CODE_FIELD_DESC);
-
 
51785
        oprot.writeString(this.couponCode);
-
 
51786
        oprot.writeFieldEnd();
-
 
51787
      }
-
 
51788
      oprot.writeFieldStop();
-
 
51789
      oprot.writeStructEnd();
-
 
51790
    }
-
 
51791
 
-
 
51792
    @Override
-
 
51793
    public String toString() {
-
 
51794
      StringBuilder sb = new StringBuilder("getCartsWithCouponCount_args(");
-
 
51795
      boolean first = true;
-
 
51796
 
-
 
51797
      sb.append("couponCode:");
-
 
51798
      if (this.couponCode == null) {
-
 
51799
        sb.append("null");
-
 
51800
      } else {
-
 
51801
        sb.append(this.couponCode);
-
 
51802
      }
-
 
51803
      first = false;
-
 
51804
      sb.append(")");
-
 
51805
      return sb.toString();
-
 
51806
    }
-
 
51807
 
-
 
51808
    public void validate() throws TException {
-
 
51809
      // check for required fields
-
 
51810
    }
-
 
51811
 
-
 
51812
  }
-
 
51813
 
-
 
51814
  public static class getCartsWithCouponCount_result implements TBase<getCartsWithCouponCount_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCartsWithCouponCount_result>   {
-
 
51815
    private static final TStruct STRUCT_DESC = new TStruct("getCartsWithCouponCount_result");
-
 
51816
 
-
 
51817
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
-
 
51818
 
-
 
51819
    private long success;
-
 
51820
 
-
 
51821
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
51822
    public enum _Fields implements TFieldIdEnum {
-
 
51823
      SUCCESS((short)0, "success");
-
 
51824
 
-
 
51825
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
51826
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
51827
 
-
 
51828
      static {
-
 
51829
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
51830
          byId.put((int)field._thriftId, field);
-
 
51831
          byName.put(field.getFieldName(), field);
-
 
51832
        }
-
 
51833
      }
-
 
51834
 
-
 
51835
      /**
-
 
51836
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
51837
       */
-
 
51838
      public static _Fields findByThriftId(int fieldId) {
-
 
51839
        return byId.get(fieldId);
-
 
51840
      }
-
 
51841
 
-
 
51842
      /**
-
 
51843
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
51844
       * if it is not found.
-
 
51845
       */
-
 
51846
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
51847
        _Fields fields = findByThriftId(fieldId);
-
 
51848
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
51849
        return fields;
-
 
51850
      }
-
 
51851
 
-
 
51852
      /**
-
 
51853
       * Find the _Fields constant that matches name, or null if its not found.
-
 
51854
       */
-
 
51855
      public static _Fields findByName(String name) {
-
 
51856
        return byName.get(name);
-
 
51857
      }
-
 
51858
 
-
 
51859
      private final short _thriftId;
-
 
51860
      private final String _fieldName;
-
 
51861
 
-
 
51862
      _Fields(short thriftId, String fieldName) {
-
 
51863
        _thriftId = thriftId;
-
 
51864
        _fieldName = fieldName;
-
 
51865
      }
-
 
51866
 
-
 
51867
      public short getThriftFieldId() {
-
 
51868
        return _thriftId;
-
 
51869
      }
-
 
51870
 
-
 
51871
      public String getFieldName() {
-
 
51872
        return _fieldName;
-
 
51873
      }
-
 
51874
    }
-
 
51875
 
-
 
51876
    // isset id assignments
-
 
51877
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
51878
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
51879
 
-
 
51880
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
51881
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
51882
          new FieldValueMetaData(TType.I64)));
-
 
51883
    }});
-
 
51884
 
-
 
51885
    static {
-
 
51886
      FieldMetaData.addStructMetaDataMap(getCartsWithCouponCount_result.class, metaDataMap);
-
 
51887
    }
-
 
51888
 
-
 
51889
    public getCartsWithCouponCount_result() {
-
 
51890
    }
-
 
51891
 
-
 
51892
    public getCartsWithCouponCount_result(
-
 
51893
      long success)
-
 
51894
    {
-
 
51895
      this();
-
 
51896
      this.success = success;
-
 
51897
      setSuccessIsSet(true);
-
 
51898
    }
-
 
51899
 
-
 
51900
    /**
-
 
51901
     * Performs a deep copy on <i>other</i>.
-
 
51902
     */
-
 
51903
    public getCartsWithCouponCount_result(getCartsWithCouponCount_result other) {
-
 
51904
      __isset_bit_vector.clear();
-
 
51905
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
51906
      this.success = other.success;
-
 
51907
    }
-
 
51908
 
-
 
51909
    public getCartsWithCouponCount_result deepCopy() {
-
 
51910
      return new getCartsWithCouponCount_result(this);
-
 
51911
    }
-
 
51912
 
-
 
51913
    @Deprecated
-
 
51914
    public getCartsWithCouponCount_result clone() {
-
 
51915
      return new getCartsWithCouponCount_result(this);
-
 
51916
    }
-
 
51917
 
-
 
51918
    public long getSuccess() {
-
 
51919
      return this.success;
-
 
51920
    }
-
 
51921
 
-
 
51922
    public getCartsWithCouponCount_result setSuccess(long success) {
-
 
51923
      this.success = success;
-
 
51924
      setSuccessIsSet(true);
-
 
51925
      return this;
-
 
51926
    }
-
 
51927
 
-
 
51928
    public void unsetSuccess() {
-
 
51929
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
51930
    }
-
 
51931
 
-
 
51932
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
51933
    public boolean isSetSuccess() {
-
 
51934
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
51935
    }
-
 
51936
 
-
 
51937
    public void setSuccessIsSet(boolean value) {
-
 
51938
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
51939
    }
-
 
51940
 
-
 
51941
    public void setFieldValue(_Fields field, Object value) {
-
 
51942
      switch (field) {
-
 
51943
      case SUCCESS:
-
 
51944
        if (value == null) {
-
 
51945
          unsetSuccess();
-
 
51946
        } else {
-
 
51947
          setSuccess((Long)value);
-
 
51948
        }
-
 
51949
        break;
-
 
51950
 
-
 
51951
      }
-
 
51952
    }
-
 
51953
 
-
 
51954
    public void setFieldValue(int fieldID, Object value) {
-
 
51955
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
51956
    }
-
 
51957
 
-
 
51958
    public Object getFieldValue(_Fields field) {
-
 
51959
      switch (field) {
-
 
51960
      case SUCCESS:
-
 
51961
        return new Long(getSuccess());
-
 
51962
 
-
 
51963
      }
-
 
51964
      throw new IllegalStateException();
-
 
51965
    }
-
 
51966
 
-
 
51967
    public Object getFieldValue(int fieldId) {
-
 
51968
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
51969
    }
-
 
51970
 
-
 
51971
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
51972
    public boolean isSet(_Fields field) {
-
 
51973
      switch (field) {
-
 
51974
      case SUCCESS:
-
 
51975
        return isSetSuccess();
-
 
51976
      }
-
 
51977
      throw new IllegalStateException();
-
 
51978
    }
-
 
51979
 
-
 
51980
    public boolean isSet(int fieldID) {
-
 
51981
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
51982
    }
-
 
51983
 
-
 
51984
    @Override
-
 
51985
    public boolean equals(Object that) {
-
 
51986
      if (that == null)
-
 
51987
        return false;
-
 
51988
      if (that instanceof getCartsWithCouponCount_result)
-
 
51989
        return this.equals((getCartsWithCouponCount_result)that);
-
 
51990
      return false;
-
 
51991
    }
-
 
51992
 
-
 
51993
    public boolean equals(getCartsWithCouponCount_result that) {
-
 
51994
      if (that == null)
-
 
51995
        return false;
-
 
51996
 
-
 
51997
      boolean this_present_success = true;
-
 
51998
      boolean that_present_success = true;
-
 
51999
      if (this_present_success || that_present_success) {
-
 
52000
        if (!(this_present_success && that_present_success))
-
 
52001
          return false;
-
 
52002
        if (this.success != that.success)
-
 
52003
          return false;
-
 
52004
      }
-
 
52005
 
-
 
52006
      return true;
-
 
52007
    }
-
 
52008
 
-
 
52009
    @Override
-
 
52010
    public int hashCode() {
-
 
52011
      return 0;
-
 
52012
    }
-
 
52013
 
-
 
52014
    public int compareTo(getCartsWithCouponCount_result other) {
-
 
52015
      if (!getClass().equals(other.getClass())) {
-
 
52016
        return getClass().getName().compareTo(other.getClass().getName());
-
 
52017
      }
-
 
52018
 
-
 
52019
      int lastComparison = 0;
-
 
52020
      getCartsWithCouponCount_result typedOther = (getCartsWithCouponCount_result)other;
-
 
52021
 
-
 
52022
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
52023
      if (lastComparison != 0) {
-
 
52024
        return lastComparison;
-
 
52025
      }
-
 
52026
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
52027
      if (lastComparison != 0) {
-
 
52028
        return lastComparison;
-
 
52029
      }
-
 
52030
      return 0;
-
 
52031
    }
-
 
52032
 
-
 
52033
    public void read(TProtocol iprot) throws TException {
-
 
52034
      TField field;
-
 
52035
      iprot.readStructBegin();
-
 
52036
      while (true)
-
 
52037
      {
-
 
52038
        field = iprot.readFieldBegin();
-
 
52039
        if (field.type == TType.STOP) { 
-
 
52040
          break;
-
 
52041
        }
-
 
52042
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
52043
        if (fieldId == null) {
-
 
52044
          TProtocolUtil.skip(iprot, field.type);
-
 
52045
        } else {
-
 
52046
          switch (fieldId) {
-
 
52047
            case SUCCESS:
-
 
52048
              if (field.type == TType.I64) {
-
 
52049
                this.success = iprot.readI64();
-
 
52050
                setSuccessIsSet(true);
-
 
52051
              } else { 
-
 
52052
                TProtocolUtil.skip(iprot, field.type);
-
 
52053
              }
-
 
52054
              break;
-
 
52055
          }
-
 
52056
          iprot.readFieldEnd();
-
 
52057
        }
-
 
52058
      }
-
 
52059
      iprot.readStructEnd();
-
 
52060
      validate();
-
 
52061
    }
-
 
52062
 
-
 
52063
    public void write(TProtocol oprot) throws TException {
-
 
52064
      oprot.writeStructBegin(STRUCT_DESC);
-
 
52065
 
-
 
52066
      if (this.isSetSuccess()) {
-
 
52067
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
52068
        oprot.writeI64(this.success);
-
 
52069
        oprot.writeFieldEnd();
-
 
52070
      }
-
 
52071
      oprot.writeFieldStop();
-
 
52072
      oprot.writeStructEnd();
-
 
52073
    }
-
 
52074
 
-
 
52075
    @Override
-
 
52076
    public String toString() {
-
 
52077
      StringBuilder sb = new StringBuilder("getCartsWithCouponCount_result(");
-
 
52078
      boolean first = true;
-
 
52079
 
-
 
52080
      sb.append("success:");
-
 
52081
      sb.append(this.success);
-
 
52082
      first = false;
-
 
52083
      sb.append(")");
-
 
52084
      return sb.toString();
-
 
52085
    }
-
 
52086
 
-
 
52087
    public void validate() throws TException {
51470
      // check for required fields
52088
      // check for required fields
51471
    }
52089
    }
51472
 
52090
 
51473
  }
52091
  }
51474
 
52092