Subversion Repositories SmartDukaan

Rev

Rev 553 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 553 Rev 571
Line 44... Line 44...
44
 
44
 
45
    public User authenticateUser(String email, String password) throws AuthenticationException, TException;
45
    public User authenticateUser(String email, String password) throws AuthenticationException, TException;
46
 
46
 
47
    public boolean userExists(String email) throws UserContextException, TException;
47
    public boolean userExists(String email) throws UserContextException, TException;
48
 
48
 
49
    public boolean addAddressForUser(long userId, Address address, long timestamp, boolean setDefault) throws UserContextException, TException;
49
    public long addAddressForUser(long userId, Address address, boolean setDefault) throws UserContextException, TException;
50
 
50
 
51
    public boolean removeAddressForUser(long userid, long addressId) throws UserContextException, TException;
51
    public boolean removeAddressForUser(long userid, long addressId) throws UserContextException, TException;
52
 
52
 
53
    public boolean setUserAsLoggedIn(long userId, long timestamp) throws UserContextException, TException;
53
    public boolean setUserAsLoggedIn(long userId, long timestamp) throws UserContextException, TException;
54
 
54
 
Line 430... Line 430...
430
        throw result.ucx;
430
        throw result.ucx;
431
      }
431
      }
432
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
432
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
433
    }
433
    }
434
 
434
 
435
    public boolean addAddressForUser(long userId, Address address, long timestamp, boolean setDefault) throws UserContextException, TException
435
    public long addAddressForUser(long userId, Address address, boolean setDefault) throws UserContextException, TException
436
    {
436
    {
437
      send_addAddressForUser(userId, address, timestamp, setDefault);
437
      send_addAddressForUser(userId, address, setDefault);
438
      return recv_addAddressForUser();
438
      return recv_addAddressForUser();
439
    }
439
    }
440
 
440
 
441
    public void send_addAddressForUser(long userId, Address address, long timestamp, boolean setDefault) throws TException
441
    public void send_addAddressForUser(long userId, Address address, boolean setDefault) throws TException
442
    {
442
    {
443
      oprot_.writeMessageBegin(new TMessage("addAddressForUser", TMessageType.CALL, seqid_));
443
      oprot_.writeMessageBegin(new TMessage("addAddressForUser", TMessageType.CALL, seqid_));
444
      addAddressForUser_args args = new addAddressForUser_args();
444
      addAddressForUser_args args = new addAddressForUser_args();
445
      args.userId = userId;
445
      args.userId = userId;
446
      args.address = address;
446
      args.address = address;
447
      args.timestamp = timestamp;
-
 
448
      args.setDefault = setDefault;
447
      args.setDefault = setDefault;
449
      args.write(oprot_);
448
      args.write(oprot_);
450
      oprot_.writeMessageEnd();
449
      oprot_.writeMessageEnd();
451
      oprot_.getTransport().flush();
450
      oprot_.getTransport().flush();
452
    }
451
    }
453
 
452
 
454
    public boolean recv_addAddressForUser() throws UserContextException, TException
453
    public long recv_addAddressForUser() throws UserContextException, TException
455
    {
454
    {
456
      TMessage msg = iprot_.readMessageBegin();
455
      TMessage msg = iprot_.readMessageBegin();
457
      if (msg.type == TMessageType.EXCEPTION) {
456
      if (msg.type == TMessageType.EXCEPTION) {
458
        TApplicationException x = TApplicationException.read(iprot_);
457
        TApplicationException x = TApplicationException.read(iprot_);
459
        iprot_.readMessageEnd();
458
        iprot_.readMessageEnd();
Line 1939... Line 1938...
1939
        addAddressForUser_args args = new addAddressForUser_args();
1938
        addAddressForUser_args args = new addAddressForUser_args();
1940
        args.read(iprot);
1939
        args.read(iprot);
1941
        iprot.readMessageEnd();
1940
        iprot.readMessageEnd();
1942
        addAddressForUser_result result = new addAddressForUser_result();
1941
        addAddressForUser_result result = new addAddressForUser_result();
1943
        try {
1942
        try {
1944
          result.success = iface_.addAddressForUser(args.userId, args.address, args.timestamp, args.setDefault);
1943
          result.success = iface_.addAddressForUser(args.userId, args.address, args.setDefault);
1945
          result.setSuccessIsSet(true);
1944
          result.setSuccessIsSet(true);
1946
        } catch (UserContextException ucx) {
1945
        } catch (UserContextException ucx) {
1947
          result.ucx = ucx;
1946
          result.ucx = ucx;
1948
        } catch (Throwable th) {
1947
        } catch (Throwable th) {
1949
          LOGGER.error("Internal error processing addAddressForUser", th);
1948
          LOGGER.error("Internal error processing addAddressForUser", th);
Line 3116... Line 3115...
3116
      // check for required fields
3115
      // check for required fields
3117
    }
3116
    }
3118
 
3117
 
3119
  }
3118
  }
3120
 
3119
 
3121
  public static class createAnonymousUser_result implements TBase<createAnonymousUser_result._Fields>, java.io.Serializable, Cloneable   {
3120
  public static class createAnonymousUser_result implements TBase<createAnonymousUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<createAnonymousUser_result>   {
3122
    private static final TStruct STRUCT_DESC = new TStruct("createAnonymousUser_result");
3121
    private static final TStruct STRUCT_DESC = new TStruct("createAnonymousUser_result");
3123
 
3122
 
3124
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
3123
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
3125
    private static final TField UCEX_FIELD_DESC = new TField("ucex", TType.STRUCT, (short)1);
3124
    private static final TField UCEX_FIELD_DESC = new TField("ucex", TType.STRUCT, (short)1);
3126
 
3125
 
Line 3370... Line 3369...
3370
    @Override
3369
    @Override
3371
    public int hashCode() {
3370
    public int hashCode() {
3372
      return 0;
3371
      return 0;
3373
    }
3372
    }
3374
 
3373
 
-
 
3374
    public int compareTo(createAnonymousUser_result other) {
-
 
3375
      if (!getClass().equals(other.getClass())) {
-
 
3376
        return getClass().getName().compareTo(other.getClass().getName());
-
 
3377
      }
-
 
3378
 
-
 
3379
      int lastComparison = 0;
-
 
3380
      createAnonymousUser_result typedOther = (createAnonymousUser_result)other;
-
 
3381
 
-
 
3382
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
3383
      if (lastComparison != 0) {
-
 
3384
        return lastComparison;
-
 
3385
      }
-
 
3386
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
3387
      if (lastComparison != 0) {
-
 
3388
        return lastComparison;
-
 
3389
      }
-
 
3390
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(isSetUcex());
-
 
3391
      if (lastComparison != 0) {
-
 
3392
        return lastComparison;
-
 
3393
      }
-
 
3394
      lastComparison = TBaseHelper.compareTo(ucex, typedOther.ucex);
-
 
3395
      if (lastComparison != 0) {
-
 
3396
        return lastComparison;
-
 
3397
      }
-
 
3398
      return 0;
-
 
3399
    }
-
 
3400
 
3375
    public void read(TProtocol iprot) throws TException {
3401
    public void read(TProtocol iprot) throws TException {
3376
      TField field;
3402
      TField field;
3377
      iprot.readStructBegin();
3403
      iprot.readStructBegin();
3378
      while (true)
3404
      while (true)
3379
      {
3405
      {
Line 3732... Line 3758...
3732
      // check for required fields
3758
      // check for required fields
3733
    }
3759
    }
3734
 
3760
 
3735
  }
3761
  }
3736
 
3762
 
3737
  public static class getUserById_result implements TBase<getUserById_result._Fields>, java.io.Serializable, Cloneable   {
3763
  public static class getUserById_result implements TBase<getUserById_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUserById_result>   {
3738
    private static final TStruct STRUCT_DESC = new TStruct("getUserById_result");
3764
    private static final TStruct STRUCT_DESC = new TStruct("getUserById_result");
3739
 
3765
 
3740
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
3766
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
3741
    private static final TField UCEX_FIELD_DESC = new TField("ucex", TType.STRUCT, (short)1);
3767
    private static final TField UCEX_FIELD_DESC = new TField("ucex", TType.STRUCT, (short)1);
3742
 
3768
 
Line 3986... Line 4012...
3986
    @Override
4012
    @Override
3987
    public int hashCode() {
4013
    public int hashCode() {
3988
      return 0;
4014
      return 0;
3989
    }
4015
    }
3990
 
4016
 
-
 
4017
    public int compareTo(getUserById_result other) {
-
 
4018
      if (!getClass().equals(other.getClass())) {
-
 
4019
        return getClass().getName().compareTo(other.getClass().getName());
-
 
4020
      }
-
 
4021
 
-
 
4022
      int lastComparison = 0;
-
 
4023
      getUserById_result typedOther = (getUserById_result)other;
-
 
4024
 
-
 
4025
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
4026
      if (lastComparison != 0) {
-
 
4027
        return lastComparison;
-
 
4028
      }
-
 
4029
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
4030
      if (lastComparison != 0) {
-
 
4031
        return lastComparison;
-
 
4032
      }
-
 
4033
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(isSetUcex());
-
 
4034
      if (lastComparison != 0) {
-
 
4035
        return lastComparison;
-
 
4036
      }
-
 
4037
      lastComparison = TBaseHelper.compareTo(ucex, typedOther.ucex);
-
 
4038
      if (lastComparison != 0) {
-
 
4039
        return lastComparison;
-
 
4040
      }
-
 
4041
      return 0;
-
 
4042
    }
-
 
4043
 
3991
    public void read(TProtocol iprot) throws TException {
4044
    public void read(TProtocol iprot) throws TException {
3992
      TField field;
4045
      TField field;
3993
      iprot.readStructBegin();
4046
      iprot.readStructBegin();
3994
      while (true)
4047
      while (true)
3995
      {
4048
      {
Line 4070... Line 4123...
4070
      // check for required fields
4123
      // check for required fields
4071
    }
4124
    }
4072
 
4125
 
4073
  }
4126
  }
4074
 
4127
 
4075
  public static class createUser_args implements TBase<createUser_args._Fields>, java.io.Serializable, Cloneable   {
4128
  public static class createUser_args implements TBase<createUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<createUser_args>   {
4076
    private static final TStruct STRUCT_DESC = new TStruct("createUser_args");
4129
    private static final TStruct STRUCT_DESC = new TStruct("createUser_args");
4077
 
4130
 
4078
    private static final TField USER_FIELD_DESC = new TField("user", TType.STRUCT, (short)1);
4131
    private static final TField USER_FIELD_DESC = new TField("user", TType.STRUCT, (short)1);
4079
 
4132
 
4080
    private User user;
4133
    private User user;
Line 4268... Line 4321...
4268
    @Override
4321
    @Override
4269
    public int hashCode() {
4322
    public int hashCode() {
4270
      return 0;
4323
      return 0;
4271
    }
4324
    }
4272
 
4325
 
-
 
4326
    public int compareTo(createUser_args other) {
-
 
4327
      if (!getClass().equals(other.getClass())) {
-
 
4328
        return getClass().getName().compareTo(other.getClass().getName());
-
 
4329
      }
-
 
4330
 
-
 
4331
      int lastComparison = 0;
-
 
4332
      createUser_args typedOther = (createUser_args)other;
-
 
4333
 
-
 
4334
      lastComparison = Boolean.valueOf(isSetUser()).compareTo(isSetUser());
-
 
4335
      if (lastComparison != 0) {
-
 
4336
        return lastComparison;
-
 
4337
      }
-
 
4338
      lastComparison = TBaseHelper.compareTo(user, typedOther.user);
-
 
4339
      if (lastComparison != 0) {
-
 
4340
        return lastComparison;
-
 
4341
      }
-
 
4342
      return 0;
-
 
4343
    }
-
 
4344
 
4273
    public void read(TProtocol iprot) throws TException {
4345
    public void read(TProtocol iprot) throws TException {
4274
      TField field;
4346
      TField field;
4275
      iprot.readStructBegin();
4347
      iprot.readStructBegin();
4276
      while (true)
4348
      while (true)
4277
      {
4349
      {
Line 4333... Line 4405...
4333
      // check for required fields
4405
      // check for required fields
4334
    }
4406
    }
4335
 
4407
 
4336
  }
4408
  }
4337
 
4409
 
4338
  public static class createUser_result implements TBase<createUser_result._Fields>, java.io.Serializable, Cloneable   {
4410
  public static class createUser_result implements TBase<createUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<createUser_result>   {
4339
    private static final TStruct STRUCT_DESC = new TStruct("createUser_result");
4411
    private static final TStruct STRUCT_DESC = new TStruct("createUser_result");
4340
 
4412
 
4341
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
4413
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
4342
    private static final TField UCEX_FIELD_DESC = new TField("ucex", TType.STRUCT, (short)1);
4414
    private static final TField UCEX_FIELD_DESC = new TField("ucex", TType.STRUCT, (short)1);
4343
 
4415
 
Line 4587... Line 4659...
4587
    @Override
4659
    @Override
4588
    public int hashCode() {
4660
    public int hashCode() {
4589
      return 0;
4661
      return 0;
4590
    }
4662
    }
4591
 
4663
 
-
 
4664
    public int compareTo(createUser_result other) {
-
 
4665
      if (!getClass().equals(other.getClass())) {
-
 
4666
        return getClass().getName().compareTo(other.getClass().getName());
-
 
4667
      }
-
 
4668
 
-
 
4669
      int lastComparison = 0;
-
 
4670
      createUser_result typedOther = (createUser_result)other;
-
 
4671
 
-
 
4672
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
4673
      if (lastComparison != 0) {
-
 
4674
        return lastComparison;
-
 
4675
      }
-
 
4676
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
4677
      if (lastComparison != 0) {
-
 
4678
        return lastComparison;
-
 
4679
      }
-
 
4680
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(isSetUcex());
-
 
4681
      if (lastComparison != 0) {
-
 
4682
        return lastComparison;
-
 
4683
      }
-
 
4684
      lastComparison = TBaseHelper.compareTo(ucex, typedOther.ucex);
-
 
4685
      if (lastComparison != 0) {
-
 
4686
        return lastComparison;
-
 
4687
      }
-
 
4688
      return 0;
-
 
4689
    }
-
 
4690
 
4592
    public void read(TProtocol iprot) throws TException {
4691
    public void read(TProtocol iprot) throws TException {
4593
      TField field;
4692
      TField field;
4594
      iprot.readStructBegin();
4693
      iprot.readStructBegin();
4595
      while (true)
4694
      while (true)
4596
      {
4695
      {
Line 4671... Line 4770...
4671
      // check for required fields
4770
      // check for required fields
4672
    }
4771
    }
4673
 
4772
 
4674
  }
4773
  }
4675
 
4774
 
4676
  public static class updateUser_args implements TBase<updateUser_args._Fields>, java.io.Serializable, Cloneable   {
4775
  public static class updateUser_args implements TBase<updateUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateUser_args>   {
4677
    private static final TStruct STRUCT_DESC = new TStruct("updateUser_args");
4776
    private static final TStruct STRUCT_DESC = new TStruct("updateUser_args");
4678
 
4777
 
4679
    private static final TField USER_FIELD_DESC = new TField("user", TType.STRUCT, (short)1);
4778
    private static final TField USER_FIELD_DESC = new TField("user", TType.STRUCT, (short)1);
4680
 
4779
 
4681
    private User user;
4780
    private User user;
Line 4869... Line 4968...
4869
    @Override
4968
    @Override
4870
    public int hashCode() {
4969
    public int hashCode() {
4871
      return 0;
4970
      return 0;
4872
    }
4971
    }
4873
 
4972
 
-
 
4973
    public int compareTo(updateUser_args other) {
-
 
4974
      if (!getClass().equals(other.getClass())) {
-
 
4975
        return getClass().getName().compareTo(other.getClass().getName());
-
 
4976
      }
-
 
4977
 
-
 
4978
      int lastComparison = 0;
-
 
4979
      updateUser_args typedOther = (updateUser_args)other;
-
 
4980
 
-
 
4981
      lastComparison = Boolean.valueOf(isSetUser()).compareTo(isSetUser());
-
 
4982
      if (lastComparison != 0) {
-
 
4983
        return lastComparison;
-
 
4984
      }
-
 
4985
      lastComparison = TBaseHelper.compareTo(user, typedOther.user);
-
 
4986
      if (lastComparison != 0) {
-
 
4987
        return lastComparison;
-
 
4988
      }
-
 
4989
      return 0;
-
 
4990
    }
-
 
4991
 
4874
    public void read(TProtocol iprot) throws TException {
4992
    public void read(TProtocol iprot) throws TException {
4875
      TField field;
4993
      TField field;
4876
      iprot.readStructBegin();
4994
      iprot.readStructBegin();
4877
      while (true)
4995
      while (true)
4878
      {
4996
      {
Line 4934... Line 5052...
4934
      // check for required fields
5052
      // check for required fields
4935
    }
5053
    }
4936
 
5054
 
4937
  }
5055
  }
4938
 
5056
 
4939
  public static class updateUser_result implements TBase<updateUser_result._Fields>, java.io.Serializable, Cloneable   {
5057
  public static class updateUser_result implements TBase<updateUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateUser_result>   {
4940
    private static final TStruct STRUCT_DESC = new TStruct("updateUser_result");
5058
    private static final TStruct STRUCT_DESC = new TStruct("updateUser_result");
4941
 
5059
 
4942
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
5060
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
4943
    private static final TField UCEX_FIELD_DESC = new TField("ucex", TType.STRUCT, (short)1);
5061
    private static final TField UCEX_FIELD_DESC = new TField("ucex", TType.STRUCT, (short)1);
4944
 
5062
 
Line 5188... Line 5306...
5188
    @Override
5306
    @Override
5189
    public int hashCode() {
5307
    public int hashCode() {
5190
      return 0;
5308
      return 0;
5191
    }
5309
    }
5192
 
5310
 
-
 
5311
    public int compareTo(updateUser_result other) {
-
 
5312
      if (!getClass().equals(other.getClass())) {
-
 
5313
        return getClass().getName().compareTo(other.getClass().getName());
-
 
5314
      }
-
 
5315
 
-
 
5316
      int lastComparison = 0;
-
 
5317
      updateUser_result typedOther = (updateUser_result)other;
-
 
5318
 
-
 
5319
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
5320
      if (lastComparison != 0) {
-
 
5321
        return lastComparison;
-
 
5322
      }
-
 
5323
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
5324
      if (lastComparison != 0) {
-
 
5325
        return lastComparison;
-
 
5326
      }
-
 
5327
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(isSetUcex());
-
 
5328
      if (lastComparison != 0) {
-
 
5329
        return lastComparison;
-
 
5330
      }
-
 
5331
      lastComparison = TBaseHelper.compareTo(ucex, typedOther.ucex);
-
 
5332
      if (lastComparison != 0) {
-
 
5333
        return lastComparison;
-
 
5334
      }
-
 
5335
      return 0;
-
 
5336
    }
-
 
5337
 
5193
    public void read(TProtocol iprot) throws TException {
5338
    public void read(TProtocol iprot) throws TException {
5194
      TField field;
5339
      TField field;
5195
      iprot.readStructBegin();
5340
      iprot.readStructBegin();
5196
      while (true)
5341
      while (true)
5197
      {
5342
      {
Line 6921... Line 7066...
6921
      // check for required fields
7066
      // check for required fields
6922
    }
7067
    }
6923
 
7068
 
6924
  }
7069
  }
6925
 
7070
 
6926
  public static class authenticateUser_result implements TBase<authenticateUser_result._Fields>, java.io.Serializable, Cloneable   {
7071
  public static class authenticateUser_result implements TBase<authenticateUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateUser_result>   {
6927
    private static final TStruct STRUCT_DESC = new TStruct("authenticateUser_result");
7072
    private static final TStruct STRUCT_DESC = new TStruct("authenticateUser_result");
6928
 
7073
 
6929
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
7074
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
6930
    private static final TField AUEX_FIELD_DESC = new TField("auex", TType.STRUCT, (short)1);
7075
    private static final TField AUEX_FIELD_DESC = new TField("auex", TType.STRUCT, (short)1);
6931
 
7076
 
Line 7175... Line 7320...
7175
    @Override
7320
    @Override
7176
    public int hashCode() {
7321
    public int hashCode() {
7177
      return 0;
7322
      return 0;
7178
    }
7323
    }
7179
 
7324
 
-
 
7325
    public int compareTo(authenticateUser_result other) {
-
 
7326
      if (!getClass().equals(other.getClass())) {
-
 
7327
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7328
      }
-
 
7329
 
-
 
7330
      int lastComparison = 0;
-
 
7331
      authenticateUser_result typedOther = (authenticateUser_result)other;
-
 
7332
 
-
 
7333
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
7334
      if (lastComparison != 0) {
-
 
7335
        return lastComparison;
-
 
7336
      }
-
 
7337
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
7338
      if (lastComparison != 0) {
-
 
7339
        return lastComparison;
-
 
7340
      }
-
 
7341
      lastComparison = Boolean.valueOf(isSetAuex()).compareTo(isSetAuex());
-
 
7342
      if (lastComparison != 0) {
-
 
7343
        return lastComparison;
-
 
7344
      }
-
 
7345
      lastComparison = TBaseHelper.compareTo(auex, typedOther.auex);
-
 
7346
      if (lastComparison != 0) {
-
 
7347
        return lastComparison;
-
 
7348
      }
-
 
7349
      return 0;
-
 
7350
    }
-
 
7351
 
7180
    public void read(TProtocol iprot) throws TException {
7352
    public void read(TProtocol iprot) throws TException {
7181
      TField field;
7353
      TField field;
7182
      iprot.readStructBegin();
7354
      iprot.readStructBegin();
7183
      while (true)
7355
      while (true)
7184
      {
7356
      {
Line 7908... Line 8080...
7908
  public static class addAddressForUser_args implements TBase<addAddressForUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<addAddressForUser_args>   {
8080
  public static class addAddressForUser_args implements TBase<addAddressForUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<addAddressForUser_args>   {
7909
    private static final TStruct STRUCT_DESC = new TStruct("addAddressForUser_args");
8081
    private static final TStruct STRUCT_DESC = new TStruct("addAddressForUser_args");
7910
 
8082
 
7911
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
8083
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
7912
    private static final TField ADDRESS_FIELD_DESC = new TField("address", TType.STRUCT, (short)2);
8084
    private static final TField ADDRESS_FIELD_DESC = new TField("address", TType.STRUCT, (short)2);
7913
    private static final TField TIMESTAMP_FIELD_DESC = new TField("timestamp", TType.I64, (short)3);
-
 
7914
    private static final TField SET_DEFAULT_FIELD_DESC = new TField("setDefault", TType.BOOL, (short)4);
8085
    private static final TField SET_DEFAULT_FIELD_DESC = new TField("setDefault", TType.BOOL, (short)3);
7915
 
8086
 
7916
    private long userId;
8087
    private long userId;
7917
    private Address address;
8088
    private Address address;
7918
    private long timestamp;
-
 
7919
    private boolean setDefault;
8089
    private boolean setDefault;
7920
 
8090
 
7921
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8091
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7922
    public enum _Fields implements TFieldIdEnum {
8092
    public enum _Fields implements TFieldIdEnum {
7923
      USER_ID((short)1, "userId"),
8093
      USER_ID((short)1, "userId"),
7924
      ADDRESS((short)2, "address"),
8094
      ADDRESS((short)2, "address"),
7925
      TIMESTAMP((short)3, "timestamp"),
-
 
7926
      SET_DEFAULT((short)4, "setDefault");
8095
      SET_DEFAULT((short)3, "setDefault");
7927
 
8096
 
7928
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
8097
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
7929
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8098
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7930
 
8099
 
7931
      static {
8100
      static {
Line 7976... Line 8145...
7976
      }
8145
      }
7977
    }
8146
    }
7978
 
8147
 
7979
    // isset id assignments
8148
    // isset id assignments
7980
    private static final int __USERID_ISSET_ID = 0;
8149
    private static final int __USERID_ISSET_ID = 0;
7981
    private static final int __TIMESTAMP_ISSET_ID = 1;
-
 
7982
    private static final int __SETDEFAULT_ISSET_ID = 2;
8150
    private static final int __SETDEFAULT_ISSET_ID = 1;
7983
    private BitSet __isset_bit_vector = new BitSet(3);
8151
    private BitSet __isset_bit_vector = new BitSet(2);
7984
 
8152
 
7985
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8153
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7986
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
8154
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
7987
          new FieldValueMetaData(TType.I64)));
8155
          new FieldValueMetaData(TType.I64)));
7988
      put(_Fields.ADDRESS, new FieldMetaData("address", TFieldRequirementType.DEFAULT, 
8156
      put(_Fields.ADDRESS, new FieldMetaData("address", TFieldRequirementType.DEFAULT, 
7989
          new StructMetaData(TType.STRUCT, Address.class)));
8157
          new StructMetaData(TType.STRUCT, Address.class)));
7990
      put(_Fields.TIMESTAMP, new FieldMetaData("timestamp", TFieldRequirementType.DEFAULT, 
-
 
7991
          new FieldValueMetaData(TType.I64)));
-
 
7992
      put(_Fields.SET_DEFAULT, new FieldMetaData("setDefault", TFieldRequirementType.DEFAULT, 
8158
      put(_Fields.SET_DEFAULT, new FieldMetaData("setDefault", TFieldRequirementType.DEFAULT, 
7993
          new FieldValueMetaData(TType.BOOL)));
8159
          new FieldValueMetaData(TType.BOOL)));
7994
    }});
8160
    }});
7995
 
8161
 
7996
    static {
8162
    static {
Line 8001... Line 8167...
8001
    }
8167
    }
8002
 
8168
 
8003
    public addAddressForUser_args(
8169
    public addAddressForUser_args(
8004
      long userId,
8170
      long userId,
8005
      Address address,
8171
      Address address,
8006
      long timestamp,
-
 
8007
      boolean setDefault)
8172
      boolean setDefault)
8008
    {
8173
    {
8009
      this();
8174
      this();
8010
      this.userId = userId;
8175
      this.userId = userId;
8011
      setUserIdIsSet(true);
8176
      setUserIdIsSet(true);
8012
      this.address = address;
8177
      this.address = address;
8013
      this.timestamp = timestamp;
-
 
8014
      setTimestampIsSet(true);
-
 
8015
      this.setDefault = setDefault;
8178
      this.setDefault = setDefault;
8016
      setSetDefaultIsSet(true);
8179
      setSetDefaultIsSet(true);
8017
    }
8180
    }
8018
 
8181
 
8019
    /**
8182
    /**
Line 8024... Line 8187...
8024
      __isset_bit_vector.or(other.__isset_bit_vector);
8187
      __isset_bit_vector.or(other.__isset_bit_vector);
8025
      this.userId = other.userId;
8188
      this.userId = other.userId;
8026
      if (other.isSetAddress()) {
8189
      if (other.isSetAddress()) {
8027
        this.address = new Address(other.address);
8190
        this.address = new Address(other.address);
8028
      }
8191
      }
8029
      this.timestamp = other.timestamp;
-
 
8030
      this.setDefault = other.setDefault;
8192
      this.setDefault = other.setDefault;
8031
    }
8193
    }
8032
 
8194
 
8033
    public addAddressForUser_args deepCopy() {
8195
    public addAddressForUser_args deepCopy() {
8034
      return new addAddressForUser_args(this);
8196
      return new addAddressForUser_args(this);
Line 8084... Line 8246...
8084
      if (!value) {
8246
      if (!value) {
8085
        this.address = null;
8247
        this.address = null;
8086
      }
8248
      }
8087
    }
8249
    }
8088
 
8250
 
8089
    public long getTimestamp() {
-
 
8090
      return this.timestamp;
-
 
8091
    }
-
 
8092
 
-
 
8093
    public addAddressForUser_args setTimestamp(long timestamp) {
-
 
8094
      this.timestamp = timestamp;
-
 
8095
      setTimestampIsSet(true);
-
 
8096
      return this;
-
 
8097
    }
-
 
8098
 
-
 
8099
    public void unsetTimestamp() {
-
 
8100
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
-
 
8101
    }
-
 
8102
 
-
 
8103
    /** Returns true if field timestamp is set (has been asigned a value) and false otherwise */
-
 
8104
    public boolean isSetTimestamp() {
-
 
8105
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
-
 
8106
    }
-
 
8107
 
-
 
8108
    public void setTimestampIsSet(boolean value) {
-
 
8109
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
-
 
8110
    }
-
 
8111
 
-
 
8112
    public boolean isSetDefault() {
8251
    public boolean isSetDefault() {
8113
      return this.setDefault;
8252
      return this.setDefault;
8114
    }
8253
    }
8115
 
8254
 
8116
    public addAddressForUser_args setSetDefault(boolean setDefault) {
8255
    public addAddressForUser_args setSetDefault(boolean setDefault) {
Line 8148... Line 8287...
8148
        } else {
8287
        } else {
8149
          setAddress((Address)value);
8288
          setAddress((Address)value);
8150
        }
8289
        }
8151
        break;
8290
        break;
8152
 
8291
 
8153
      case TIMESTAMP:
-
 
8154
        if (value == null) {
-
 
8155
          unsetTimestamp();
-
 
8156
        } else {
-
 
8157
          setTimestamp((Long)value);
-
 
8158
        }
-
 
8159
        break;
-
 
8160
 
-
 
8161
      case SET_DEFAULT:
8292
      case SET_DEFAULT:
8162
        if (value == null) {
8293
        if (value == null) {
8163
          unsetSetDefault();
8294
          unsetSetDefault();
8164
        } else {
8295
        } else {
8165
          setSetDefault((Boolean)value);
8296
          setSetDefault((Boolean)value);
Line 8179... Line 8310...
8179
        return new Long(getUserId());
8310
        return new Long(getUserId());
8180
 
8311
 
8181
      case ADDRESS:
8312
      case ADDRESS:
8182
        return getAddress();
8313
        return getAddress();
8183
 
8314
 
8184
      case TIMESTAMP:
-
 
8185
        return new Long(getTimestamp());
-
 
8186
 
-
 
8187
      case SET_DEFAULT:
8315
      case SET_DEFAULT:
8188
        return new Boolean(isSetDefault());
8316
        return new Boolean(isSetDefault());
8189
 
8317
 
8190
      }
8318
      }
8191
      throw new IllegalStateException();
8319
      throw new IllegalStateException();
Line 8200... Line 8328...
8200
      switch (field) {
8328
      switch (field) {
8201
      case USER_ID:
8329
      case USER_ID:
8202
        return isSetUserId();
8330
        return isSetUserId();
8203
      case ADDRESS:
8331
      case ADDRESS:
8204
        return isSetAddress();
8332
        return isSetAddress();
8205
      case TIMESTAMP:
-
 
8206
        return isSetTimestamp();
-
 
8207
      case SET_DEFAULT:
8333
      case SET_DEFAULT:
8208
        return isSetSetDefault();
8334
        return isSetSetDefault();
8209
      }
8335
      }
8210
      throw new IllegalStateException();
8336
      throw new IllegalStateException();
8211
    }
8337
    }
Line 8243... Line 8369...
8243
          return false;
8369
          return false;
8244
        if (!this.address.equals(that.address))
8370
        if (!this.address.equals(that.address))
8245
          return false;
8371
          return false;
8246
      }
8372
      }
8247
 
8373
 
8248
      boolean this_present_timestamp = true;
-
 
8249
      boolean that_present_timestamp = true;
-
 
8250
      if (this_present_timestamp || that_present_timestamp) {
-
 
8251
        if (!(this_present_timestamp && that_present_timestamp))
-
 
8252
          return false;
-
 
8253
        if (this.timestamp != that.timestamp)
-
 
8254
          return false;
-
 
8255
      }
-
 
8256
 
-
 
8257
      boolean this_present_setDefault = true;
8374
      boolean this_present_setDefault = true;
8258
      boolean that_present_setDefault = true;
8375
      boolean that_present_setDefault = true;
8259
      if (this_present_setDefault || that_present_setDefault) {
8376
      if (this_present_setDefault || that_present_setDefault) {
8260
        if (!(this_present_setDefault && that_present_setDefault))
8377
        if (!(this_present_setDefault && that_present_setDefault))
8261
          return false;
8378
          return false;
Line 8293... Line 8410...
8293
      }
8410
      }
8294
      lastComparison = TBaseHelper.compareTo(address, typedOther.address);
8411
      lastComparison = TBaseHelper.compareTo(address, typedOther.address);
8295
      if (lastComparison != 0) {
8412
      if (lastComparison != 0) {
8296
        return lastComparison;
8413
        return lastComparison;
8297
      }
8414
      }
8298
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(isSetTimestamp());
-
 
8299
      if (lastComparison != 0) {
-
 
8300
        return lastComparison;
-
 
8301
      }
-
 
8302
      lastComparison = TBaseHelper.compareTo(timestamp, typedOther.timestamp);
-
 
8303
      if (lastComparison != 0) {
-
 
8304
        return lastComparison;
-
 
8305
      }
-
 
8306
      lastComparison = Boolean.valueOf(isSetSetDefault()).compareTo(isSetSetDefault());
8415
      lastComparison = Boolean.valueOf(isSetSetDefault()).compareTo(isSetSetDefault());
8307
      if (lastComparison != 0) {
8416
      if (lastComparison != 0) {
8308
        return lastComparison;
8417
        return lastComparison;
8309
      }
8418
      }
8310
      lastComparison = TBaseHelper.compareTo(setDefault, typedOther.setDefault);
8419
      lastComparison = TBaseHelper.compareTo(setDefault, typedOther.setDefault);
Line 8342... Line 8451...
8342
                this.address.read(iprot);
8451
                this.address.read(iprot);
8343
              } else { 
8452
              } else { 
8344
                TProtocolUtil.skip(iprot, field.type);
8453
                TProtocolUtil.skip(iprot, field.type);
8345
              }
8454
              }
8346
              break;
8455
              break;
8347
            case TIMESTAMP:
-
 
8348
              if (field.type == TType.I64) {
-
 
8349
                this.timestamp = iprot.readI64();
-
 
8350
                setTimestampIsSet(true);
-
 
8351
              } else { 
-
 
8352
                TProtocolUtil.skip(iprot, field.type);
-
 
8353
              }
-
 
8354
              break;
-
 
8355
            case SET_DEFAULT:
8456
            case SET_DEFAULT:
8356
              if (field.type == TType.BOOL) {
8457
              if (field.type == TType.BOOL) {
8357
                this.setDefault = iprot.readBool();
8458
                this.setDefault = iprot.readBool();
8358
                setSetDefaultIsSet(true);
8459
                setSetDefaultIsSet(true);
8359
              } else { 
8460
              } else { 
Line 8378... Line 8479...
8378
      if (this.address != null) {
8479
      if (this.address != null) {
8379
        oprot.writeFieldBegin(ADDRESS_FIELD_DESC);
8480
        oprot.writeFieldBegin(ADDRESS_FIELD_DESC);
8380
        this.address.write(oprot);
8481
        this.address.write(oprot);
8381
        oprot.writeFieldEnd();
8482
        oprot.writeFieldEnd();
8382
      }
8483
      }
8383
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
-
 
8384
      oprot.writeI64(this.timestamp);
-
 
8385
      oprot.writeFieldEnd();
-
 
8386
      oprot.writeFieldBegin(SET_DEFAULT_FIELD_DESC);
8484
      oprot.writeFieldBegin(SET_DEFAULT_FIELD_DESC);
8387
      oprot.writeBool(this.setDefault);
8485
      oprot.writeBool(this.setDefault);
8388
      oprot.writeFieldEnd();
8486
      oprot.writeFieldEnd();
8389
      oprot.writeFieldStop();
8487
      oprot.writeFieldStop();
8390
      oprot.writeStructEnd();
8488
      oprot.writeStructEnd();
Line 8405... Line 8503...
8405
      } else {
8503
      } else {
8406
        sb.append(this.address);
8504
        sb.append(this.address);
8407
      }
8505
      }
8408
      first = false;
8506
      first = false;
8409
      if (!first) sb.append(", ");
8507
      if (!first) sb.append(", ");
8410
      sb.append("timestamp:");
-
 
8411
      sb.append(this.timestamp);
-
 
8412
      first = false;
-
 
8413
      if (!first) sb.append(", ");
-
 
8414
      sb.append("setDefault:");
8508
      sb.append("setDefault:");
8415
      sb.append(this.setDefault);
8509
      sb.append(this.setDefault);
8416
      first = false;
8510
      first = false;
8417
      sb.append(")");
8511
      sb.append(")");
8418
      return sb.toString();
8512
      return sb.toString();
Line 8425... Line 8519...
8425
  }
8519
  }
8426
 
8520
 
8427
  public static class addAddressForUser_result implements TBase<addAddressForUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<addAddressForUser_result>   {
8521
  public static class addAddressForUser_result implements TBase<addAddressForUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<addAddressForUser_result>   {
8428
    private static final TStruct STRUCT_DESC = new TStruct("addAddressForUser_result");
8522
    private static final TStruct STRUCT_DESC = new TStruct("addAddressForUser_result");
8429
 
8523
 
8430
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
8524
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
8431
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
8525
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
8432
 
8526
 
8433
    private boolean success;
8527
    private long success;
8434
    private UserContextException ucx;
8528
    private UserContextException ucx;
8435
 
8529
 
8436
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8530
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8437
    public enum _Fields implements TFieldIdEnum {
8531
    public enum _Fields implements TFieldIdEnum {
8438
      SUCCESS((short)0, "success"),
8532
      SUCCESS((short)0, "success"),
Line 8493... Line 8587...
8493
    private static final int __SUCCESS_ISSET_ID = 0;
8587
    private static final int __SUCCESS_ISSET_ID = 0;
8494
    private BitSet __isset_bit_vector = new BitSet(1);
8588
    private BitSet __isset_bit_vector = new BitSet(1);
8495
 
8589
 
8496
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8590
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8497
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
8591
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
8498
          new FieldValueMetaData(TType.BOOL)));
8592
          new FieldValueMetaData(TType.I64)));
8499
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
8593
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
8500
          new FieldValueMetaData(TType.STRUCT)));
8594
          new FieldValueMetaData(TType.STRUCT)));
8501
    }});
8595
    }});
8502
 
8596
 
8503
    static {
8597
    static {
Line 8506... Line 8600...
8506
 
8600
 
8507
    public addAddressForUser_result() {
8601
    public addAddressForUser_result() {
8508
    }
8602
    }
8509
 
8603
 
8510
    public addAddressForUser_result(
8604
    public addAddressForUser_result(
8511
      boolean success,
8605
      long success,
8512
      UserContextException ucx)
8606
      UserContextException ucx)
8513
    {
8607
    {
8514
      this();
8608
      this();
8515
      this.success = success;
8609
      this.success = success;
8516
      setSuccessIsSet(true);
8610
      setSuccessIsSet(true);
Line 8536... Line 8630...
8536
    @Deprecated
8630
    @Deprecated
8537
    public addAddressForUser_result clone() {
8631
    public addAddressForUser_result clone() {
8538
      return new addAddressForUser_result(this);
8632
      return new addAddressForUser_result(this);
8539
    }
8633
    }
8540
 
8634
 
8541
    public boolean isSuccess() {
8635
    public long getSuccess() {
8542
      return this.success;
8636
      return this.success;
8543
    }
8637
    }
8544
 
8638
 
8545
    public addAddressForUser_result setSuccess(boolean success) {
8639
    public addAddressForUser_result setSuccess(long success) {
8546
      this.success = success;
8640
      this.success = success;
8547
      setSuccessIsSet(true);
8641
      setSuccessIsSet(true);
8548
      return this;
8642
      return this;
8549
    }
8643
    }
8550
 
8644
 
Line 8589... Line 8683...
8589
      switch (field) {
8683
      switch (field) {
8590
      case SUCCESS:
8684
      case SUCCESS:
8591
        if (value == null) {
8685
        if (value == null) {
8592
          unsetSuccess();
8686
          unsetSuccess();
8593
        } else {
8687
        } else {
8594
          setSuccess((Boolean)value);
8688
          setSuccess((Long)value);
8595
        }
8689
        }
8596
        break;
8690
        break;
8597
 
8691
 
8598
      case UCX:
8692
      case UCX:
8599
        if (value == null) {
8693
        if (value == null) {
Line 8611... Line 8705...
8611
    }
8705
    }
8612
 
8706
 
8613
    public Object getFieldValue(_Fields field) {
8707
    public Object getFieldValue(_Fields field) {
8614
      switch (field) {
8708
      switch (field) {
8615
      case SUCCESS:
8709
      case SUCCESS:
8616
        return new Boolean(isSuccess());
8710
        return new Long(getSuccess());
8617
 
8711
 
8618
      case UCX:
8712
      case UCX:
8619
        return getUcx();
8713
        return getUcx();
8620
 
8714
 
8621
      }
8715
      }
Line 8720... Line 8814...
8720
        if (fieldId == null) {
8814
        if (fieldId == null) {
8721
          TProtocolUtil.skip(iprot, field.type);
8815
          TProtocolUtil.skip(iprot, field.type);
8722
        } else {
8816
        } else {
8723
          switch (fieldId) {
8817
          switch (fieldId) {
8724
            case SUCCESS:
8818
            case SUCCESS:
8725
              if (field.type == TType.BOOL) {
8819
              if (field.type == TType.I64) {
8726
                this.success = iprot.readBool();
8820
                this.success = iprot.readI64();
8727
                setSuccessIsSet(true);
8821
                setSuccessIsSet(true);
8728
              } else { 
8822
              } else { 
8729
                TProtocolUtil.skip(iprot, field.type);
8823
                TProtocolUtil.skip(iprot, field.type);
8730
              }
8824
              }
8731
              break;
8825
              break;
Line 8748... Line 8842...
8748
    public void write(TProtocol oprot) throws TException {
8842
    public void write(TProtocol oprot) throws TException {
8749
      oprot.writeStructBegin(STRUCT_DESC);
8843
      oprot.writeStructBegin(STRUCT_DESC);
8750
 
8844
 
8751
      if (this.isSetSuccess()) {
8845
      if (this.isSetSuccess()) {
8752
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8846
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8753
        oprot.writeBool(this.success);
8847
        oprot.writeI64(this.success);
8754
        oprot.writeFieldEnd();
8848
        oprot.writeFieldEnd();
8755
      } else if (this.isSetUcx()) {
8849
      } else if (this.isSetUcx()) {
8756
        oprot.writeFieldBegin(UCX_FIELD_DESC);
8850
        oprot.writeFieldBegin(UCX_FIELD_DESC);
8757
        this.ucx.write(oprot);
8851
        this.ucx.write(oprot);
8758
        oprot.writeFieldEnd();
8852
        oprot.writeFieldEnd();
Line 15013... Line 15107...
15013
        } else {
15107
        } else {
15014
          switch (fieldId) {
15108
          switch (fieldId) {
15015
            case SUCCESS:
15109
            case SUCCESS:
15016
              if (field.type == TType.LIST) {
15110
              if (field.type == TType.LIST) {
15017
                {
15111
                {
15018
                  TList _list25 = iprot.readListBegin();
15112
                  TList _list21 = iprot.readListBegin();
15019
                  this.success = new ArrayList<Cart>(_list25.size);
15113
                  this.success = new ArrayList<Cart>(_list21.size);
15020
                  for (int _i26 = 0; _i26 < _list25.size; ++_i26)
15114
                  for (int _i22 = 0; _i22 < _list21.size; ++_i22)
15021
                  {
15115
                  {
15022
                    Cart _elem27;
15116
                    Cart _elem23;
15023
                    _elem27 = new Cart();
15117
                    _elem23 = new Cart();
15024
                    _elem27.read(iprot);
15118
                    _elem23.read(iprot);
15025
                    this.success.add(_elem27);
15119
                    this.success.add(_elem23);
15026
                  }
15120
                  }
15027
                  iprot.readListEnd();
15121
                  iprot.readListEnd();
15028
                }
15122
                }
15029
              } else { 
15123
              } else { 
15030
                TProtocolUtil.skip(iprot, field.type);
15124
                TProtocolUtil.skip(iprot, field.type);
Line 15051... Line 15145...
15051
 
15145
 
15052
      if (this.isSetSuccess()) {
15146
      if (this.isSetSuccess()) {
15053
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15147
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15054
        {
15148
        {
15055
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
15149
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
15056
          for (Cart _iter28 : this.success)
15150
          for (Cart _iter24 : this.success)
15057
          {
15151
          {
15058
            _iter28.write(oprot);
15152
            _iter24.write(oprot);
15059
          }
15153
          }
15060
          oprot.writeListEnd();
15154
          oprot.writeListEnd();
15061
        }
15155
        }
15062
        oprot.writeFieldEnd();
15156
        oprot.writeFieldEnd();
15063
      } else if (this.isSetScx()) {
15157
      } else if (this.isSetScx()) {
Line 15716... Line 15810...
15716
        } else {
15810
        } else {
15717
          switch (fieldId) {
15811
          switch (fieldId) {
15718
            case SUCCESS:
15812
            case SUCCESS:
15719
              if (field.type == TType.LIST) {
15813
              if (field.type == TType.LIST) {
15720
                {
15814
                {
15721
                  TList _list29 = iprot.readListBegin();
15815
                  TList _list25 = iprot.readListBegin();
15722
                  this.success = new ArrayList<Cart>(_list29.size);
15816
                  this.success = new ArrayList<Cart>(_list25.size);
15723
                  for (int _i30 = 0; _i30 < _list29.size; ++_i30)
15817
                  for (int _i26 = 0; _i26 < _list25.size; ++_i26)
15724
                  {
15818
                  {
15725
                    Cart _elem31;
15819
                    Cart _elem27;
15726
                    _elem31 = new Cart();
15820
                    _elem27 = new Cart();
15727
                    _elem31.read(iprot);
15821
                    _elem27.read(iprot);
15728
                    this.success.add(_elem31);
15822
                    this.success.add(_elem27);
15729
                  }
15823
                  }
15730
                  iprot.readListEnd();
15824
                  iprot.readListEnd();
15731
                }
15825
                }
15732
              } else { 
15826
              } else { 
15733
                TProtocolUtil.skip(iprot, field.type);
15827
                TProtocolUtil.skip(iprot, field.type);
Line 15754... Line 15848...
15754
 
15848
 
15755
      if (this.isSetSuccess()) {
15849
      if (this.isSetSuccess()) {
15756
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15850
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15757
        {
15851
        {
15758
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
15852
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
15759
          for (Cart _iter32 : this.success)
15853
          for (Cart _iter28 : this.success)
15760
          {
15854
          {
15761
            _iter32.write(oprot);
15855
            _iter28.write(oprot);
15762
          }
15856
          }
15763
          oprot.writeListEnd();
15857
          oprot.writeListEnd();
15764
        }
15858
        }
15765
        oprot.writeFieldEnd();
15859
        oprot.writeFieldEnd();
15766
      } else if (this.isSetScx()) {
15860
      } else if (this.isSetScx()) {
Line 16578... Line 16672...
16578
        } else {
16672
        } else {
16579
          switch (fieldId) {
16673
          switch (fieldId) {
16580
            case SUCCESS:
16674
            case SUCCESS:
16581
              if (field.type == TType.LIST) {
16675
              if (field.type == TType.LIST) {
16582
                {
16676
                {
16583
                  TList _list33 = iprot.readListBegin();
16677
                  TList _list29 = iprot.readListBegin();
16584
                  this.success = new ArrayList<Cart>(_list33.size);
16678
                  this.success = new ArrayList<Cart>(_list29.size);
16585
                  for (int _i34 = 0; _i34 < _list33.size; ++_i34)
16679
                  for (int _i30 = 0; _i30 < _list29.size; ++_i30)
16586
                  {
16680
                  {
16587
                    Cart _elem35;
16681
                    Cart _elem31;
16588
                    _elem35 = new Cart();
16682
                    _elem31 = new Cart();
16589
                    _elem35.read(iprot);
16683
                    _elem31.read(iprot);
16590
                    this.success.add(_elem35);
16684
                    this.success.add(_elem31);
16591
                  }
16685
                  }
16592
                  iprot.readListEnd();
16686
                  iprot.readListEnd();
16593
                }
16687
                }
16594
              } else { 
16688
              } else { 
16595
                TProtocolUtil.skip(iprot, field.type);
16689
                TProtocolUtil.skip(iprot, field.type);
Line 16616... Line 16710...
16616
 
16710
 
16617
      if (this.isSetSuccess()) {
16711
      if (this.isSetSuccess()) {
16618
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16712
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16619
        {
16713
        {
16620
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
16714
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
16621
          for (Cart _iter36 : this.success)
16715
          for (Cart _iter32 : this.success)
16622
          {
16716
          {
16623
            _iter36.write(oprot);
16717
            _iter32.write(oprot);
16624
          }
16718
          }
16625
          oprot.writeListEnd();
16719
          oprot.writeListEnd();
16626
        }
16720
        }
16627
        oprot.writeFieldEnd();
16721
        oprot.writeFieldEnd();
16628
      } else if (this.isSetScx()) {
16722
      } else if (this.isSetScx()) {
Line 23314... Line 23408...
23314
              }
23408
              }
23315
              break;
23409
              break;
23316
            case ITEMS:
23410
            case ITEMS:
23317
              if (field.type == TType.LIST) {
23411
              if (field.type == TType.LIST) {
23318
                {
23412
                {
23319
                  TList _list37 = iprot.readListBegin();
23413
                  TList _list33 = iprot.readListBegin();
23320
                  this.items = new ArrayList<Long>(_list37.size);
23414
                  this.items = new ArrayList<Long>(_list33.size);
23321
                  for (int _i38 = 0; _i38 < _list37.size; ++_i38)
23415
                  for (int _i34 = 0; _i34 < _list33.size; ++_i34)
23322
                  {
23416
                  {
23323
                    long _elem39;
23417
                    long _elem35;
23324
                    _elem39 = iprot.readI64();
23418
                    _elem35 = iprot.readI64();
23325
                    this.items.add(_elem39);
23419
                    this.items.add(_elem35);
23326
                  }
23420
                  }
23327
                  iprot.readListEnd();
23421
                  iprot.readListEnd();
23328
                }
23422
                }
23329
              } else { 
23423
              } else { 
23330
                TProtocolUtil.skip(iprot, field.type);
23424
                TProtocolUtil.skip(iprot, field.type);
Line 23347... Line 23441...
23347
      oprot.writeFieldEnd();
23441
      oprot.writeFieldEnd();
23348
      if (this.items != null) {
23442
      if (this.items != null) {
23349
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
23443
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
23350
        {
23444
        {
23351
          oprot.writeListBegin(new TList(TType.I64, this.items.size()));
23445
          oprot.writeListBegin(new TList(TType.I64, this.items.size()));
23352
          for (long _iter40 : this.items)
23446
          for (long _iter36 : this.items)
23353
          {
23447
          {
23354
            oprot.writeI64(_iter40);
23448
            oprot.writeI64(_iter36);
23355
          }
23449
          }
23356
          oprot.writeListEnd();
23450
          oprot.writeListEnd();
23357
        }
23451
        }
23358
        oprot.writeFieldEnd();
23452
        oprot.writeFieldEnd();
23359
      }
23453
      }