Subversion Repositories SmartDukaan

Rev

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

Rev 1893 Rev 1900
Line 83... Line 83...
83
 
83
 
84
    public List<UserCommunication> getAllUserCommunications() throws UserCommunicationException, TException;
84
    public List<UserCommunication> getAllUserCommunications() throws UserCommunicationException, TException;
85
 
85
 
86
    public MasterAffiliate createMasterAffiliate(String name, long addedOn) throws UserTrackerException, TException;
86
    public MasterAffiliate createMasterAffiliate(String name, long addedOn) throws UserTrackerException, TException;
87
 
87
 
-
 
88
    public List<MasterAffiliate> getAllMasterAffiliates() throws UserTrackerException, TException;
-
 
89
 
88
    public MasterAffiliate getMasterAffiliateById(long id) throws UserTrackerException, TException;
90
    public MasterAffiliate getMasterAffiliateById(long id) throws UserTrackerException, TException;
89
 
91
 
90
    public MasterAffiliate getMasterAffiliateByName(String name) throws UserTrackerException, TException;
92
    public MasterAffiliate getMasterAffiliateByName(String name) throws UserTrackerException, TException;
91
 
93
 
92
    public Affiliate createAffiliate(String name, String url, long masterAffiliateId, long addedOn) throws UserTrackerException, TException;
94
    public Affiliate createAffiliate(String name, String url, long masterAffiliateId, long addedOn) throws UserTrackerException, TException;
Line 1191... Line 1193...
1191
        throw result.utx;
1193
        throw result.utx;
1192
      }
1194
      }
1193
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1195
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1194
    }
1196
    }
1195
 
1197
 
-
 
1198
    public List<MasterAffiliate> getAllMasterAffiliates() throws UserTrackerException, TException
-
 
1199
    {
-
 
1200
      send_getAllMasterAffiliates();
-
 
1201
      return recv_getAllMasterAffiliates();
-
 
1202
    }
-
 
1203
 
-
 
1204
    public void send_getAllMasterAffiliates() throws TException
-
 
1205
    {
-
 
1206
      oprot_.writeMessageBegin(new TMessage("getAllMasterAffiliates", TMessageType.CALL, seqid_));
-
 
1207
      getAllMasterAffiliates_args args = new getAllMasterAffiliates_args();
-
 
1208
      args.write(oprot_);
-
 
1209
      oprot_.writeMessageEnd();
-
 
1210
      oprot_.getTransport().flush();
-
 
1211
    }
-
 
1212
 
-
 
1213
    public List<MasterAffiliate> recv_getAllMasterAffiliates() throws UserTrackerException, TException
-
 
1214
    {
-
 
1215
      TMessage msg = iprot_.readMessageBegin();
-
 
1216
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1217
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1218
        iprot_.readMessageEnd();
-
 
1219
        throw x;
-
 
1220
      }
-
 
1221
      getAllMasterAffiliates_result result = new getAllMasterAffiliates_result();
-
 
1222
      result.read(iprot_);
-
 
1223
      iprot_.readMessageEnd();
-
 
1224
      if (result.isSetSuccess()) {
-
 
1225
        return result.success;
-
 
1226
      }
-
 
1227
      if (result.utx != null) {
-
 
1228
        throw result.utx;
-
 
1229
      }
-
 
1230
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
-
 
1231
    }
-
 
1232
 
1196
    public MasterAffiliate getMasterAffiliateById(long id) throws UserTrackerException, TException
1233
    public MasterAffiliate getMasterAffiliateById(long id) throws UserTrackerException, TException
1197
    {
1234
    {
1198
      send_getMasterAffiliateById(id);
1235
      send_getMasterAffiliateById(id);
1199
      return recv_getMasterAffiliateById();
1236
      return recv_getMasterAffiliateById();
1200
    }
1237
    }
Line 2614... Line 2651...
2614
      processMap_.put("saveUserCommunication", new saveUserCommunication());
2651
      processMap_.put("saveUserCommunication", new saveUserCommunication());
2615
      processMap_.put("getUserCommunicationById", new getUserCommunicationById());
2652
      processMap_.put("getUserCommunicationById", new getUserCommunicationById());
2616
      processMap_.put("getUserCommunicationByUser", new getUserCommunicationByUser());
2653
      processMap_.put("getUserCommunicationByUser", new getUserCommunicationByUser());
2617
      processMap_.put("getAllUserCommunications", new getAllUserCommunications());
2654
      processMap_.put("getAllUserCommunications", new getAllUserCommunications());
2618
      processMap_.put("createMasterAffiliate", new createMasterAffiliate());
2655
      processMap_.put("createMasterAffiliate", new createMasterAffiliate());
-
 
2656
      processMap_.put("getAllMasterAffiliates", new getAllMasterAffiliates());
2619
      processMap_.put("getMasterAffiliateById", new getMasterAffiliateById());
2657
      processMap_.put("getMasterAffiliateById", new getMasterAffiliateById());
2620
      processMap_.put("getMasterAffiliateByName", new getMasterAffiliateByName());
2658
      processMap_.put("getMasterAffiliateByName", new getMasterAffiliateByName());
2621
      processMap_.put("createAffiliate", new createAffiliate());
2659
      processMap_.put("createAffiliate", new createAffiliate());
2622
      processMap_.put("getAffiliateById", new getAffiliateById());
2660
      processMap_.put("getAffiliateById", new getAffiliateById());
2623
      processMap_.put("getAffiliateByName", new getAffiliateByName());
2661
      processMap_.put("getAffiliateByName", new getAffiliateByName());
Line 3407... Line 3445...
3407
        oprot.getTransport().flush();
3445
        oprot.getTransport().flush();
3408
      }
3446
      }
3409
 
3447
 
3410
    }
3448
    }
3411
 
3449
 
-
 
3450
    private class getAllMasterAffiliates implements ProcessFunction {
-
 
3451
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3452
      {
-
 
3453
        getAllMasterAffiliates_args args = new getAllMasterAffiliates_args();
-
 
3454
        args.read(iprot);
-
 
3455
        iprot.readMessageEnd();
-
 
3456
        getAllMasterAffiliates_result result = new getAllMasterAffiliates_result();
-
 
3457
        try {
-
 
3458
          result.success = iface_.getAllMasterAffiliates();
-
 
3459
        } catch (UserTrackerException utx) {
-
 
3460
          result.utx = utx;
-
 
3461
        } catch (Throwable th) {
-
 
3462
          LOGGER.error("Internal error processing getAllMasterAffiliates", th);
-
 
3463
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getAllMasterAffiliates");
-
 
3464
          oprot.writeMessageBegin(new TMessage("getAllMasterAffiliates", TMessageType.EXCEPTION, seqid));
-
 
3465
          x.write(oprot);
-
 
3466
          oprot.writeMessageEnd();
-
 
3467
          oprot.getTransport().flush();
-
 
3468
          return;
-
 
3469
        }
-
 
3470
        oprot.writeMessageBegin(new TMessage("getAllMasterAffiliates", TMessageType.REPLY, seqid));
-
 
3471
        result.write(oprot);
-
 
3472
        oprot.writeMessageEnd();
-
 
3473
        oprot.getTransport().flush();
-
 
3474
      }
-
 
3475
 
-
 
3476
    }
-
 
3477
 
3412
    private class getMasterAffiliateById implements ProcessFunction {
3478
    private class getMasterAffiliateById implements ProcessFunction {
3413
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
3479
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
3414
      {
3480
      {
3415
        getMasterAffiliateById_args args = new getMasterAffiliateById_args();
3481
        getMasterAffiliateById_args args = new getMasterAffiliateById_args();
3416
        args.read(iprot);
3482
        args.read(iprot);
Line 22399... Line 22465...
22399
      // check for required fields
22465
      // check for required fields
22400
    }
22466
    }
22401
 
22467
 
22402
  }
22468
  }
22403
 
22469
 
-
 
22470
  public static class getAllMasterAffiliates_args implements TBase<getAllMasterAffiliates_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllMasterAffiliates_args>   {
-
 
22471
    private static final TStruct STRUCT_DESC = new TStruct("getAllMasterAffiliates_args");
-
 
22472
 
-
 
22473
 
-
 
22474
 
-
 
22475
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
22476
    public enum _Fields implements TFieldIdEnum {
-
 
22477
;
-
 
22478
 
-
 
22479
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
22480
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
22481
 
-
 
22482
      static {
-
 
22483
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
22484
          byId.put((int)field._thriftId, field);
-
 
22485
          byName.put(field.getFieldName(), field);
-
 
22486
        }
-
 
22487
      }
-
 
22488
 
-
 
22489
      /**
-
 
22490
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
22491
       */
-
 
22492
      public static _Fields findByThriftId(int fieldId) {
-
 
22493
        return byId.get(fieldId);
-
 
22494
      }
-
 
22495
 
-
 
22496
      /**
-
 
22497
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
22498
       * if it is not found.
-
 
22499
       */
-
 
22500
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
22501
        _Fields fields = findByThriftId(fieldId);
-
 
22502
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
22503
        return fields;
-
 
22504
      }
-
 
22505
 
-
 
22506
      /**
-
 
22507
       * Find the _Fields constant that matches name, or null if its not found.
-
 
22508
       */
-
 
22509
      public static _Fields findByName(String name) {
-
 
22510
        return byName.get(name);
-
 
22511
      }
-
 
22512
 
-
 
22513
      private final short _thriftId;
-
 
22514
      private final String _fieldName;
-
 
22515
 
-
 
22516
      _Fields(short thriftId, String fieldName) {
-
 
22517
        _thriftId = thriftId;
-
 
22518
        _fieldName = fieldName;
-
 
22519
      }
-
 
22520
 
-
 
22521
      public short getThriftFieldId() {
-
 
22522
        return _thriftId;
-
 
22523
      }
-
 
22524
 
-
 
22525
      public String getFieldName() {
-
 
22526
        return _fieldName;
-
 
22527
      }
-
 
22528
    }
-
 
22529
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
22530
    }});
-
 
22531
 
-
 
22532
    static {
-
 
22533
      FieldMetaData.addStructMetaDataMap(getAllMasterAffiliates_args.class, metaDataMap);
-
 
22534
    }
-
 
22535
 
-
 
22536
    public getAllMasterAffiliates_args() {
-
 
22537
    }
-
 
22538
 
-
 
22539
    /**
-
 
22540
     * Performs a deep copy on <i>other</i>.
-
 
22541
     */
-
 
22542
    public getAllMasterAffiliates_args(getAllMasterAffiliates_args other) {
-
 
22543
    }
-
 
22544
 
-
 
22545
    public getAllMasterAffiliates_args deepCopy() {
-
 
22546
      return new getAllMasterAffiliates_args(this);
-
 
22547
    }
-
 
22548
 
-
 
22549
    @Deprecated
-
 
22550
    public getAllMasterAffiliates_args clone() {
-
 
22551
      return new getAllMasterAffiliates_args(this);
-
 
22552
    }
-
 
22553
 
-
 
22554
    public void setFieldValue(_Fields field, Object value) {
-
 
22555
      switch (field) {
-
 
22556
      }
-
 
22557
    }
-
 
22558
 
-
 
22559
    public void setFieldValue(int fieldID, Object value) {
-
 
22560
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
22561
    }
-
 
22562
 
-
 
22563
    public Object getFieldValue(_Fields field) {
-
 
22564
      switch (field) {
-
 
22565
      }
-
 
22566
      throw new IllegalStateException();
-
 
22567
    }
-
 
22568
 
-
 
22569
    public Object getFieldValue(int fieldId) {
-
 
22570
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
22571
    }
-
 
22572
 
-
 
22573
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
22574
    public boolean isSet(_Fields field) {
-
 
22575
      switch (field) {
-
 
22576
      }
-
 
22577
      throw new IllegalStateException();
-
 
22578
    }
-
 
22579
 
-
 
22580
    public boolean isSet(int fieldID) {
-
 
22581
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
22582
    }
-
 
22583
 
-
 
22584
    @Override
-
 
22585
    public boolean equals(Object that) {
-
 
22586
      if (that == null)
-
 
22587
        return false;
-
 
22588
      if (that instanceof getAllMasterAffiliates_args)
-
 
22589
        return this.equals((getAllMasterAffiliates_args)that);
-
 
22590
      return false;
-
 
22591
    }
-
 
22592
 
-
 
22593
    public boolean equals(getAllMasterAffiliates_args that) {
-
 
22594
      if (that == null)
-
 
22595
        return false;
-
 
22596
 
-
 
22597
      return true;
-
 
22598
    }
-
 
22599
 
-
 
22600
    @Override
-
 
22601
    public int hashCode() {
-
 
22602
      return 0;
-
 
22603
    }
-
 
22604
 
-
 
22605
    public int compareTo(getAllMasterAffiliates_args other) {
-
 
22606
      if (!getClass().equals(other.getClass())) {
-
 
22607
        return getClass().getName().compareTo(other.getClass().getName());
-
 
22608
      }
-
 
22609
 
-
 
22610
      int lastComparison = 0;
-
 
22611
      getAllMasterAffiliates_args typedOther = (getAllMasterAffiliates_args)other;
-
 
22612
 
-
 
22613
      return 0;
-
 
22614
    }
-
 
22615
 
-
 
22616
    public void read(TProtocol iprot) throws TException {
-
 
22617
      TField field;
-
 
22618
      iprot.readStructBegin();
-
 
22619
      while (true)
-
 
22620
      {
-
 
22621
        field = iprot.readFieldBegin();
-
 
22622
        if (field.type == TType.STOP) { 
-
 
22623
          break;
-
 
22624
        }
-
 
22625
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
22626
        if (fieldId == null) {
-
 
22627
          TProtocolUtil.skip(iprot, field.type);
-
 
22628
        } else {
-
 
22629
          switch (fieldId) {
-
 
22630
          }
-
 
22631
          iprot.readFieldEnd();
-
 
22632
        }
-
 
22633
      }
-
 
22634
      iprot.readStructEnd();
-
 
22635
      validate();
-
 
22636
    }
-
 
22637
 
-
 
22638
    public void write(TProtocol oprot) throws TException {
-
 
22639
      validate();
-
 
22640
 
-
 
22641
      oprot.writeStructBegin(STRUCT_DESC);
-
 
22642
      oprot.writeFieldStop();
-
 
22643
      oprot.writeStructEnd();
-
 
22644
    }
-
 
22645
 
-
 
22646
    @Override
-
 
22647
    public String toString() {
-
 
22648
      StringBuilder sb = new StringBuilder("getAllMasterAffiliates_args(");
-
 
22649
      boolean first = true;
-
 
22650
 
-
 
22651
      sb.append(")");
-
 
22652
      return sb.toString();
-
 
22653
    }
-
 
22654
 
-
 
22655
    public void validate() throws TException {
-
 
22656
      // check for required fields
-
 
22657
    }
-
 
22658
 
-
 
22659
  }
-
 
22660
 
-
 
22661
  public static class getAllMasterAffiliates_result implements TBase<getAllMasterAffiliates_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAllMasterAffiliates_result>   {
-
 
22662
    private static final TStruct STRUCT_DESC = new TStruct("getAllMasterAffiliates_result");
-
 
22663
 
-
 
22664
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
22665
    private static final TField UTX_FIELD_DESC = new TField("utx", TType.STRUCT, (short)1);
-
 
22666
 
-
 
22667
    private List<MasterAffiliate> success;
-
 
22668
    private UserTrackerException utx;
-
 
22669
 
-
 
22670
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
22671
    public enum _Fields implements TFieldIdEnum {
-
 
22672
      SUCCESS((short)0, "success"),
-
 
22673
      UTX((short)1, "utx");
-
 
22674
 
-
 
22675
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
22676
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
22677
 
-
 
22678
      static {
-
 
22679
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
22680
          byId.put((int)field._thriftId, field);
-
 
22681
          byName.put(field.getFieldName(), field);
-
 
22682
        }
-
 
22683
      }
-
 
22684
 
-
 
22685
      /**
-
 
22686
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
22687
       */
-
 
22688
      public static _Fields findByThriftId(int fieldId) {
-
 
22689
        return byId.get(fieldId);
-
 
22690
      }
-
 
22691
 
-
 
22692
      /**
-
 
22693
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
22694
       * if it is not found.
-
 
22695
       */
-
 
22696
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
22697
        _Fields fields = findByThriftId(fieldId);
-
 
22698
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
22699
        return fields;
-
 
22700
      }
-
 
22701
 
-
 
22702
      /**
-
 
22703
       * Find the _Fields constant that matches name, or null if its not found.
-
 
22704
       */
-
 
22705
      public static _Fields findByName(String name) {
-
 
22706
        return byName.get(name);
-
 
22707
      }
-
 
22708
 
-
 
22709
      private final short _thriftId;
-
 
22710
      private final String _fieldName;
-
 
22711
 
-
 
22712
      _Fields(short thriftId, String fieldName) {
-
 
22713
        _thriftId = thriftId;
-
 
22714
        _fieldName = fieldName;
-
 
22715
      }
-
 
22716
 
-
 
22717
      public short getThriftFieldId() {
-
 
22718
        return _thriftId;
-
 
22719
      }
-
 
22720
 
-
 
22721
      public String getFieldName() {
-
 
22722
        return _fieldName;
-
 
22723
      }
-
 
22724
    }
-
 
22725
 
-
 
22726
    // isset id assignments
-
 
22727
 
-
 
22728
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
22729
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
22730
          new ListMetaData(TType.LIST, 
-
 
22731
              new StructMetaData(TType.STRUCT, MasterAffiliate.class))));
-
 
22732
      put(_Fields.UTX, new FieldMetaData("utx", TFieldRequirementType.DEFAULT, 
-
 
22733
          new FieldValueMetaData(TType.STRUCT)));
-
 
22734
    }});
-
 
22735
 
-
 
22736
    static {
-
 
22737
      FieldMetaData.addStructMetaDataMap(getAllMasterAffiliates_result.class, metaDataMap);
-
 
22738
    }
-
 
22739
 
-
 
22740
    public getAllMasterAffiliates_result() {
-
 
22741
    }
-
 
22742
 
-
 
22743
    public getAllMasterAffiliates_result(
-
 
22744
      List<MasterAffiliate> success,
-
 
22745
      UserTrackerException utx)
-
 
22746
    {
-
 
22747
      this();
-
 
22748
      this.success = success;
-
 
22749
      this.utx = utx;
-
 
22750
    }
-
 
22751
 
-
 
22752
    /**
-
 
22753
     * Performs a deep copy on <i>other</i>.
-
 
22754
     */
-
 
22755
    public getAllMasterAffiliates_result(getAllMasterAffiliates_result other) {
-
 
22756
      if (other.isSetSuccess()) {
-
 
22757
        List<MasterAffiliate> __this__success = new ArrayList<MasterAffiliate>();
-
 
22758
        for (MasterAffiliate other_element : other.success) {
-
 
22759
          __this__success.add(new MasterAffiliate(other_element));
-
 
22760
        }
-
 
22761
        this.success = __this__success;
-
 
22762
      }
-
 
22763
      if (other.isSetUtx()) {
-
 
22764
        this.utx = new UserTrackerException(other.utx);
-
 
22765
      }
-
 
22766
    }
-
 
22767
 
-
 
22768
    public getAllMasterAffiliates_result deepCopy() {
-
 
22769
      return new getAllMasterAffiliates_result(this);
-
 
22770
    }
-
 
22771
 
-
 
22772
    @Deprecated
-
 
22773
    public getAllMasterAffiliates_result clone() {
-
 
22774
      return new getAllMasterAffiliates_result(this);
-
 
22775
    }
-
 
22776
 
-
 
22777
    public int getSuccessSize() {
-
 
22778
      return (this.success == null) ? 0 : this.success.size();
-
 
22779
    }
-
 
22780
 
-
 
22781
    public java.util.Iterator<MasterAffiliate> getSuccessIterator() {
-
 
22782
      return (this.success == null) ? null : this.success.iterator();
-
 
22783
    }
-
 
22784
 
-
 
22785
    public void addToSuccess(MasterAffiliate elem) {
-
 
22786
      if (this.success == null) {
-
 
22787
        this.success = new ArrayList<MasterAffiliate>();
-
 
22788
      }
-
 
22789
      this.success.add(elem);
-
 
22790
    }
-
 
22791
 
-
 
22792
    public List<MasterAffiliate> getSuccess() {
-
 
22793
      return this.success;
-
 
22794
    }
-
 
22795
 
-
 
22796
    public getAllMasterAffiliates_result setSuccess(List<MasterAffiliate> success) {
-
 
22797
      this.success = success;
-
 
22798
      return this;
-
 
22799
    }
-
 
22800
 
-
 
22801
    public void unsetSuccess() {
-
 
22802
      this.success = null;
-
 
22803
    }
-
 
22804
 
-
 
22805
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
22806
    public boolean isSetSuccess() {
-
 
22807
      return this.success != null;
-
 
22808
    }
-
 
22809
 
-
 
22810
    public void setSuccessIsSet(boolean value) {
-
 
22811
      if (!value) {
-
 
22812
        this.success = null;
-
 
22813
      }
-
 
22814
    }
-
 
22815
 
-
 
22816
    public UserTrackerException getUtx() {
-
 
22817
      return this.utx;
-
 
22818
    }
-
 
22819
 
-
 
22820
    public getAllMasterAffiliates_result setUtx(UserTrackerException utx) {
-
 
22821
      this.utx = utx;
-
 
22822
      return this;
-
 
22823
    }
-
 
22824
 
-
 
22825
    public void unsetUtx() {
-
 
22826
      this.utx = null;
-
 
22827
    }
-
 
22828
 
-
 
22829
    /** Returns true if field utx is set (has been asigned a value) and false otherwise */
-
 
22830
    public boolean isSetUtx() {
-
 
22831
      return this.utx != null;
-
 
22832
    }
-
 
22833
 
-
 
22834
    public void setUtxIsSet(boolean value) {
-
 
22835
      if (!value) {
-
 
22836
        this.utx = null;
-
 
22837
      }
-
 
22838
    }
-
 
22839
 
-
 
22840
    public void setFieldValue(_Fields field, Object value) {
-
 
22841
      switch (field) {
-
 
22842
      case SUCCESS:
-
 
22843
        if (value == null) {
-
 
22844
          unsetSuccess();
-
 
22845
        } else {
-
 
22846
          setSuccess((List<MasterAffiliate>)value);
-
 
22847
        }
-
 
22848
        break;
-
 
22849
 
-
 
22850
      case UTX:
-
 
22851
        if (value == null) {
-
 
22852
          unsetUtx();
-
 
22853
        } else {
-
 
22854
          setUtx((UserTrackerException)value);
-
 
22855
        }
-
 
22856
        break;
-
 
22857
 
-
 
22858
      }
-
 
22859
    }
-
 
22860
 
-
 
22861
    public void setFieldValue(int fieldID, Object value) {
-
 
22862
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
22863
    }
-
 
22864
 
-
 
22865
    public Object getFieldValue(_Fields field) {
-
 
22866
      switch (field) {
-
 
22867
      case SUCCESS:
-
 
22868
        return getSuccess();
-
 
22869
 
-
 
22870
      case UTX:
-
 
22871
        return getUtx();
-
 
22872
 
-
 
22873
      }
-
 
22874
      throw new IllegalStateException();
-
 
22875
    }
-
 
22876
 
-
 
22877
    public Object getFieldValue(int fieldId) {
-
 
22878
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
22879
    }
-
 
22880
 
-
 
22881
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
22882
    public boolean isSet(_Fields field) {
-
 
22883
      switch (field) {
-
 
22884
      case SUCCESS:
-
 
22885
        return isSetSuccess();
-
 
22886
      case UTX:
-
 
22887
        return isSetUtx();
-
 
22888
      }
-
 
22889
      throw new IllegalStateException();
-
 
22890
    }
-
 
22891
 
-
 
22892
    public boolean isSet(int fieldID) {
-
 
22893
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
22894
    }
-
 
22895
 
-
 
22896
    @Override
-
 
22897
    public boolean equals(Object that) {
-
 
22898
      if (that == null)
-
 
22899
        return false;
-
 
22900
      if (that instanceof getAllMasterAffiliates_result)
-
 
22901
        return this.equals((getAllMasterAffiliates_result)that);
-
 
22902
      return false;
-
 
22903
    }
-
 
22904
 
-
 
22905
    public boolean equals(getAllMasterAffiliates_result that) {
-
 
22906
      if (that == null)
-
 
22907
        return false;
-
 
22908
 
-
 
22909
      boolean this_present_success = true && this.isSetSuccess();
-
 
22910
      boolean that_present_success = true && that.isSetSuccess();
-
 
22911
      if (this_present_success || that_present_success) {
-
 
22912
        if (!(this_present_success && that_present_success))
-
 
22913
          return false;
-
 
22914
        if (!this.success.equals(that.success))
-
 
22915
          return false;
-
 
22916
      }
-
 
22917
 
-
 
22918
      boolean this_present_utx = true && this.isSetUtx();
-
 
22919
      boolean that_present_utx = true && that.isSetUtx();
-
 
22920
      if (this_present_utx || that_present_utx) {
-
 
22921
        if (!(this_present_utx && that_present_utx))
-
 
22922
          return false;
-
 
22923
        if (!this.utx.equals(that.utx))
-
 
22924
          return false;
-
 
22925
      }
-
 
22926
 
-
 
22927
      return true;
-
 
22928
    }
-
 
22929
 
-
 
22930
    @Override
-
 
22931
    public int hashCode() {
-
 
22932
      return 0;
-
 
22933
    }
-
 
22934
 
-
 
22935
    public int compareTo(getAllMasterAffiliates_result other) {
-
 
22936
      if (!getClass().equals(other.getClass())) {
-
 
22937
        return getClass().getName().compareTo(other.getClass().getName());
-
 
22938
      }
-
 
22939
 
-
 
22940
      int lastComparison = 0;
-
 
22941
      getAllMasterAffiliates_result typedOther = (getAllMasterAffiliates_result)other;
-
 
22942
 
-
 
22943
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
22944
      if (lastComparison != 0) {
-
 
22945
        return lastComparison;
-
 
22946
      }
-
 
22947
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
22948
      if (lastComparison != 0) {
-
 
22949
        return lastComparison;
-
 
22950
      }
-
 
22951
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(isSetUtx());
-
 
22952
      if (lastComparison != 0) {
-
 
22953
        return lastComparison;
-
 
22954
      }
-
 
22955
      lastComparison = TBaseHelper.compareTo(utx, typedOther.utx);
-
 
22956
      if (lastComparison != 0) {
-
 
22957
        return lastComparison;
-
 
22958
      }
-
 
22959
      return 0;
-
 
22960
    }
-
 
22961
 
-
 
22962
    public void read(TProtocol iprot) throws TException {
-
 
22963
      TField field;
-
 
22964
      iprot.readStructBegin();
-
 
22965
      while (true)
-
 
22966
      {
-
 
22967
        field = iprot.readFieldBegin();
-
 
22968
        if (field.type == TType.STOP) { 
-
 
22969
          break;
-
 
22970
        }
-
 
22971
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
22972
        if (fieldId == null) {
-
 
22973
          TProtocolUtil.skip(iprot, field.type);
-
 
22974
        } else {
-
 
22975
          switch (fieldId) {
-
 
22976
            case SUCCESS:
-
 
22977
              if (field.type == TType.LIST) {
-
 
22978
                {
-
 
22979
                  TList _list28 = iprot.readListBegin();
-
 
22980
                  this.success = new ArrayList<MasterAffiliate>(_list28.size);
-
 
22981
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
-
 
22982
                  {
-
 
22983
                    MasterAffiliate _elem30;
-
 
22984
                    _elem30 = new MasterAffiliate();
-
 
22985
                    _elem30.read(iprot);
-
 
22986
                    this.success.add(_elem30);
-
 
22987
                  }
-
 
22988
                  iprot.readListEnd();
-
 
22989
                }
-
 
22990
              } else { 
-
 
22991
                TProtocolUtil.skip(iprot, field.type);
-
 
22992
              }
-
 
22993
              break;
-
 
22994
            case UTX:
-
 
22995
              if (field.type == TType.STRUCT) {
-
 
22996
                this.utx = new UserTrackerException();
-
 
22997
                this.utx.read(iprot);
-
 
22998
              } else { 
-
 
22999
                TProtocolUtil.skip(iprot, field.type);
-
 
23000
              }
-
 
23001
              break;
-
 
23002
          }
-
 
23003
          iprot.readFieldEnd();
-
 
23004
        }
-
 
23005
      }
-
 
23006
      iprot.readStructEnd();
-
 
23007
      validate();
-
 
23008
    }
-
 
23009
 
-
 
23010
    public void write(TProtocol oprot) throws TException {
-
 
23011
      oprot.writeStructBegin(STRUCT_DESC);
-
 
23012
 
-
 
23013
      if (this.isSetSuccess()) {
-
 
23014
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
23015
        {
-
 
23016
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
23017
          for (MasterAffiliate _iter31 : this.success)
-
 
23018
          {
-
 
23019
            _iter31.write(oprot);
-
 
23020
          }
-
 
23021
          oprot.writeListEnd();
-
 
23022
        }
-
 
23023
        oprot.writeFieldEnd();
-
 
23024
      } else if (this.isSetUtx()) {
-
 
23025
        oprot.writeFieldBegin(UTX_FIELD_DESC);
-
 
23026
        this.utx.write(oprot);
-
 
23027
        oprot.writeFieldEnd();
-
 
23028
      }
-
 
23029
      oprot.writeFieldStop();
-
 
23030
      oprot.writeStructEnd();
-
 
23031
    }
-
 
23032
 
-
 
23033
    @Override
-
 
23034
    public String toString() {
-
 
23035
      StringBuilder sb = new StringBuilder("getAllMasterAffiliates_result(");
-
 
23036
      boolean first = true;
-
 
23037
 
-
 
23038
      sb.append("success:");
-
 
23039
      if (this.success == null) {
-
 
23040
        sb.append("null");
-
 
23041
      } else {
-
 
23042
        sb.append(this.success);
-
 
23043
      }
-
 
23044
      first = false;
-
 
23045
      if (!first) sb.append(", ");
-
 
23046
      sb.append("utx:");
-
 
23047
      if (this.utx == null) {
-
 
23048
        sb.append("null");
-
 
23049
      } else {
-
 
23050
        sb.append(this.utx);
-
 
23051
      }
-
 
23052
      first = false;
-
 
23053
      sb.append(")");
-
 
23054
      return sb.toString();
-
 
23055
    }
-
 
23056
 
-
 
23057
    public void validate() throws TException {
-
 
23058
      // check for required fields
-
 
23059
    }
-
 
23060
 
-
 
23061
  }
-
 
23062
 
22404
  public static class getMasterAffiliateById_args implements TBase<getMasterAffiliateById_args._Fields>, java.io.Serializable, Cloneable, Comparable<getMasterAffiliateById_args>   {
23063
  public static class getMasterAffiliateById_args implements TBase<getMasterAffiliateById_args._Fields>, java.io.Serializable, Cloneable, Comparable<getMasterAffiliateById_args>   {
22405
    private static final TStruct STRUCT_DESC = new TStruct("getMasterAffiliateById_args");
23064
    private static final TStruct STRUCT_DESC = new TStruct("getMasterAffiliateById_args");
22406
 
23065
 
22407
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
23066
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
22408
 
23067
 
Line 26462... Line 27121...
26462
        } else {
27121
        } else {
26463
          switch (fieldId) {
27122
          switch (fieldId) {
26464
            case SUCCESS:
27123
            case SUCCESS:
26465
              if (field.type == TType.LIST) {
27124
              if (field.type == TType.LIST) {
26466
                {
27125
                {
26467
                  TList _list28 = iprot.readListBegin();
27126
                  TList _list32 = iprot.readListBegin();
26468
                  this.success = new ArrayList<Affiliate>(_list28.size);
27127
                  this.success = new ArrayList<Affiliate>(_list32.size);
26469
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
27128
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
26470
                  {
27129
                  {
26471
                    Affiliate _elem30;
27130
                    Affiliate _elem34;
26472
                    _elem30 = new Affiliate();
27131
                    _elem34 = new Affiliate();
26473
                    _elem30.read(iprot);
27132
                    _elem34.read(iprot);
26474
                    this.success.add(_elem30);
27133
                    this.success.add(_elem34);
26475
                  }
27134
                  }
26476
                  iprot.readListEnd();
27135
                  iprot.readListEnd();
26477
                }
27136
                }
26478
              } else { 
27137
              } else { 
26479
                TProtocolUtil.skip(iprot, field.type);
27138
                TProtocolUtil.skip(iprot, field.type);
Line 26500... Line 27159...
26500
 
27159
 
26501
      if (this.isSetSuccess()) {
27160
      if (this.isSetSuccess()) {
26502
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27161
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26503
        {
27162
        {
26504
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
27163
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
26505
          for (Affiliate _iter31 : this.success)
27164
          for (Affiliate _iter35 : this.success)
26506
          {
27165
          {
26507
            _iter31.write(oprot);
27166
            _iter35.write(oprot);
26508
          }
27167
          }
26509
          oprot.writeListEnd();
27168
          oprot.writeListEnd();
26510
        }
27169
        }
26511
        oprot.writeFieldEnd();
27170
        oprot.writeFieldEnd();
26512
      } else if (this.isSetUtx()) {
27171
      } else if (this.isSetUtx()) {
Line 28506... Line 29165...
28506
        } else {
29165
        } else {
28507
          switch (fieldId) {
29166
          switch (fieldId) {
28508
            case SUCCESS:
29167
            case SUCCESS:
28509
              if (field.type == TType.LIST) {
29168
              if (field.type == TType.LIST) {
28510
                {
29169
                {
28511
                  TList _list32 = iprot.readListBegin();
29170
                  TList _list36 = iprot.readListBegin();
28512
                  this.success = new ArrayList<Tracker>(_list32.size);
29171
                  this.success = new ArrayList<Tracker>(_list36.size);
28513
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
29172
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
28514
                  {
29173
                  {
28515
                    Tracker _elem34;
29174
                    Tracker _elem38;
28516
                    _elem34 = new Tracker();
29175
                    _elem38 = new Tracker();
28517
                    _elem34.read(iprot);
29176
                    _elem38.read(iprot);
28518
                    this.success.add(_elem34);
29177
                    this.success.add(_elem38);
28519
                  }
29178
                  }
28520
                  iprot.readListEnd();
29179
                  iprot.readListEnd();
28521
                }
29180
                }
28522
              } else { 
29181
              } else { 
28523
                TProtocolUtil.skip(iprot, field.type);
29182
                TProtocolUtil.skip(iprot, field.type);
Line 28544... Line 29203...
28544
 
29203
 
28545
      if (this.isSetSuccess()) {
29204
      if (this.isSetSuccess()) {
28546
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29205
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28547
        {
29206
        {
28548
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
29207
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
28549
          for (Tracker _iter35 : this.success)
29208
          for (Tracker _iter39 : this.success)
28550
          {
29209
          {
28551
            _iter35.write(oprot);
29210
            _iter39.write(oprot);
28552
          }
29211
          }
28553
          oprot.writeListEnd();
29212
          oprot.writeListEnd();
28554
        }
29213
        }
28555
        oprot.writeFieldEnd();
29214
        oprot.writeFieldEnd();
28556
      } else if (this.isSetUtx()) {
29215
      } else if (this.isSetUtx()) {
Line 30878... Line 31537...
30878
        } else {
31537
        } else {
30879
          switch (fieldId) {
31538
          switch (fieldId) {
30880
            case SUCCESS:
31539
            case SUCCESS:
30881
              if (field.type == TType.LIST) {
31540
              if (field.type == TType.LIST) {
30882
                {
31541
                {
30883
                  TList _list36 = iprot.readListBegin();
31542
                  TList _list40 = iprot.readListBegin();
30884
                  this.success = new ArrayList<TrackLog>(_list36.size);
31543
                  this.success = new ArrayList<TrackLog>(_list40.size);
30885
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
31544
                  for (int _i41 = 0; _i41 < _list40.size; ++_i41)
30886
                  {
31545
                  {
30887
                    TrackLog _elem38;
31546
                    TrackLog _elem42;
30888
                    _elem38 = new TrackLog();
31547
                    _elem42 = new TrackLog();
30889
                    _elem38.read(iprot);
31548
                    _elem42.read(iprot);
30890
                    this.success.add(_elem38);
31549
                    this.success.add(_elem42);
30891
                  }
31550
                  }
30892
                  iprot.readListEnd();
31551
                  iprot.readListEnd();
30893
                }
31552
                }
30894
              } else { 
31553
              } else { 
30895
                TProtocolUtil.skip(iprot, field.type);
31554
                TProtocolUtil.skip(iprot, field.type);
Line 30916... Line 31575...
30916
 
31575
 
30917
      if (this.isSetSuccess()) {
31576
      if (this.isSetSuccess()) {
30918
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31577
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30919
        {
31578
        {
30920
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
31579
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
30921
          for (TrackLog _iter39 : this.success)
31580
          for (TrackLog _iter43 : this.success)
30922
          {
31581
          {
30923
            _iter39.write(oprot);
31582
            _iter43.write(oprot);
30924
          }
31583
          }
30925
          oprot.writeListEnd();
31584
          oprot.writeListEnd();
30926
        }
31585
        }
30927
        oprot.writeFieldEnd();
31586
        oprot.writeFieldEnd();
30928
      } else if (this.isSetUtx()) {
31587
      } else if (this.isSetUtx()) {
Line 31558... Line 32217...
31558
        } else {
32217
        } else {
31559
          switch (fieldId) {
32218
          switch (fieldId) {
31560
            case SUCCESS:
32219
            case SUCCESS:
31561
              if (field.type == TType.LIST) {
32220
              if (field.type == TType.LIST) {
31562
                {
32221
                {
31563
                  TList _list40 = iprot.readListBegin();
32222
                  TList _list44 = iprot.readListBegin();
31564
                  this.success = new ArrayList<TrackLog>(_list40.size);
32223
                  this.success = new ArrayList<TrackLog>(_list44.size);
31565
                  for (int _i41 = 0; _i41 < _list40.size; ++_i41)
32224
                  for (int _i45 = 0; _i45 < _list44.size; ++_i45)
31566
                  {
32225
                  {
31567
                    TrackLog _elem42;
32226
                    TrackLog _elem46;
31568
                    _elem42 = new TrackLog();
32227
                    _elem46 = new TrackLog();
31569
                    _elem42.read(iprot);
32228
                    _elem46.read(iprot);
31570
                    this.success.add(_elem42);
32229
                    this.success.add(_elem46);
31571
                  }
32230
                  }
31572
                  iprot.readListEnd();
32231
                  iprot.readListEnd();
31573
                }
32232
                }
31574
              } else { 
32233
              } else { 
31575
                TProtocolUtil.skip(iprot, field.type);
32234
                TProtocolUtil.skip(iprot, field.type);
Line 31596... Line 32255...
31596
 
32255
 
31597
      if (this.isSetSuccess()) {
32256
      if (this.isSetSuccess()) {
31598
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32257
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31599
        {
32258
        {
31600
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
32259
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
31601
          for (TrackLog _iter43 : this.success)
32260
          for (TrackLog _iter47 : this.success)
31602
          {
32261
          {
31603
            _iter43.write(oprot);
32262
            _iter47.write(oprot);
31604
          }
32263
          }
31605
          oprot.writeListEnd();
32264
          oprot.writeListEnd();
31606
        }
32265
        }
31607
        oprot.writeFieldEnd();
32266
        oprot.writeFieldEnd();
31608
      } else if (this.isSetUtx()) {
32267
      } else if (this.isSetUtx()) {
Line 32484... Line 33143...
32484
        } else {
33143
        } else {
32485
          switch (fieldId) {
33144
          switch (fieldId) {
32486
            case SUCCESS:
33145
            case SUCCESS:
32487
              if (field.type == TType.LIST) {
33146
              if (field.type == TType.LIST) {
32488
                {
33147
                {
32489
                  TList _list44 = iprot.readListBegin();
33148
                  TList _list48 = iprot.readListBegin();
32490
                  this.success = new ArrayList<TrackLog>(_list44.size);
33149
                  this.success = new ArrayList<TrackLog>(_list48.size);
32491
                  for (int _i45 = 0; _i45 < _list44.size; ++_i45)
33150
                  for (int _i49 = 0; _i49 < _list48.size; ++_i49)
32492
                  {
33151
                  {
32493
                    TrackLog _elem46;
33152
                    TrackLog _elem50;
32494
                    _elem46 = new TrackLog();
33153
                    _elem50 = new TrackLog();
32495
                    _elem46.read(iprot);
33154
                    _elem50.read(iprot);
32496
                    this.success.add(_elem46);
33155
                    this.success.add(_elem50);
32497
                  }
33156
                  }
32498
                  iprot.readListEnd();
33157
                  iprot.readListEnd();
32499
                }
33158
                }
32500
              } else { 
33159
              } else { 
32501
                TProtocolUtil.skip(iprot, field.type);
33160
                TProtocolUtil.skip(iprot, field.type);
Line 32522... Line 33181...
32522
 
33181
 
32523
      if (this.isSetSuccess()) {
33182
      if (this.isSetSuccess()) {
32524
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33183
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32525
        {
33184
        {
32526
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
33185
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
32527
          for (TrackLog _iter47 : this.success)
33186
          for (TrackLog _iter51 : this.success)
32528
          {
33187
          {
32529
            _iter47.write(oprot);
33188
            _iter51.write(oprot);
32530
          }
33189
          }
32531
          oprot.writeListEnd();
33190
          oprot.writeListEnd();
32532
        }
33191
        }
32533
        oprot.writeFieldEnd();
33192
        oprot.writeFieldEnd();
32534
      } else if (this.isSetUtx()) {
33193
      } else if (this.isSetUtx()) {
Line 35195... Line 35854...
35195
        } else {
35854
        } else {
35196
          switch (fieldId) {
35855
          switch (fieldId) {
35197
            case SUCCESS:
35856
            case SUCCESS:
35198
              if (field.type == TType.LIST) {
35857
              if (field.type == TType.LIST) {
35199
                {
35858
                {
35200
                  TList _list48 = iprot.readListBegin();
35859
                  TList _list52 = iprot.readListBegin();
35201
                  this.success = new ArrayList<Cart>(_list48.size);
35860
                  this.success = new ArrayList<Cart>(_list52.size);
35202
                  for (int _i49 = 0; _i49 < _list48.size; ++_i49)
35861
                  for (int _i53 = 0; _i53 < _list52.size; ++_i53)
35203
                  {
35862
                  {
35204
                    Cart _elem50;
35863
                    Cart _elem54;
35205
                    _elem50 = new Cart();
35864
                    _elem54 = new Cart();
35206
                    _elem50.read(iprot);
35865
                    _elem54.read(iprot);
35207
                    this.success.add(_elem50);
35866
                    this.success.add(_elem54);
35208
                  }
35867
                  }
35209
                  iprot.readListEnd();
35868
                  iprot.readListEnd();
35210
                }
35869
                }
35211
              } else { 
35870
              } else { 
35212
                TProtocolUtil.skip(iprot, field.type);
35871
                TProtocolUtil.skip(iprot, field.type);
Line 35233... Line 35892...
35233
 
35892
 
35234
      if (this.isSetSuccess()) {
35893
      if (this.isSetSuccess()) {
35235
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35894
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35236
        {
35895
        {
35237
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
35896
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
35238
          for (Cart _iter51 : this.success)
35897
          for (Cart _iter55 : this.success)
35239
          {
35898
          {
35240
            _iter51.write(oprot);
35899
            _iter55.write(oprot);
35241
          }
35900
          }
35242
          oprot.writeListEnd();
35901
          oprot.writeListEnd();
35243
        }
35902
        }
35244
        oprot.writeFieldEnd();
35903
        oprot.writeFieldEnd();
35245
      } else if (this.isSetScx()) {
35904
      } else if (this.isSetScx()) {
Line 35898... Line 36557...
35898
        } else {
36557
        } else {
35899
          switch (fieldId) {
36558
          switch (fieldId) {
35900
            case SUCCESS:
36559
            case SUCCESS:
35901
              if (field.type == TType.LIST) {
36560
              if (field.type == TType.LIST) {
35902
                {
36561
                {
35903
                  TList _list52 = iprot.readListBegin();
36562
                  TList _list56 = iprot.readListBegin();
35904
                  this.success = new ArrayList<Cart>(_list52.size);
36563
                  this.success = new ArrayList<Cart>(_list56.size);
35905
                  for (int _i53 = 0; _i53 < _list52.size; ++_i53)
36564
                  for (int _i57 = 0; _i57 < _list56.size; ++_i57)
35906
                  {
36565
                  {
35907
                    Cart _elem54;
36566
                    Cart _elem58;
35908
                    _elem54 = new Cart();
36567
                    _elem58 = new Cart();
35909
                    _elem54.read(iprot);
36568
                    _elem58.read(iprot);
35910
                    this.success.add(_elem54);
36569
                    this.success.add(_elem58);
35911
                  }
36570
                  }
35912
                  iprot.readListEnd();
36571
                  iprot.readListEnd();
35913
                }
36572
                }
35914
              } else { 
36573
              } else { 
35915
                TProtocolUtil.skip(iprot, field.type);
36574
                TProtocolUtil.skip(iprot, field.type);
Line 35936... Line 36595...
35936
 
36595
 
35937
      if (this.isSetSuccess()) {
36596
      if (this.isSetSuccess()) {
35938
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36597
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35939
        {
36598
        {
35940
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
36599
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
35941
          for (Cart _iter55 : this.success)
36600
          for (Cart _iter59 : this.success)
35942
          {
36601
          {
35943
            _iter55.write(oprot);
36602
            _iter59.write(oprot);
35944
          }
36603
          }
35945
          oprot.writeListEnd();
36604
          oprot.writeListEnd();
35946
        }
36605
        }
35947
        oprot.writeFieldEnd();
36606
        oprot.writeFieldEnd();
35948
      } else if (this.isSetScx()) {
36607
      } else if (this.isSetScx()) {
Line 36760... Line 37419...
36760
        } else {
37419
        } else {
36761
          switch (fieldId) {
37420
          switch (fieldId) {
36762
            case SUCCESS:
37421
            case SUCCESS:
36763
              if (field.type == TType.LIST) {
37422
              if (field.type == TType.LIST) {
36764
                {
37423
                {
36765
                  TList _list56 = iprot.readListBegin();
37424
                  TList _list60 = iprot.readListBegin();
36766
                  this.success = new ArrayList<Cart>(_list56.size);
37425
                  this.success = new ArrayList<Cart>(_list60.size);
36767
                  for (int _i57 = 0; _i57 < _list56.size; ++_i57)
37426
                  for (int _i61 = 0; _i61 < _list60.size; ++_i61)
36768
                  {
37427
                  {
36769
                    Cart _elem58;
37428
                    Cart _elem62;
36770
                    _elem58 = new Cart();
37429
                    _elem62 = new Cart();
36771
                    _elem58.read(iprot);
37430
                    _elem62.read(iprot);
36772
                    this.success.add(_elem58);
37431
                    this.success.add(_elem62);
36773
                  }
37432
                  }
36774
                  iprot.readListEnd();
37433
                  iprot.readListEnd();
36775
                }
37434
                }
36776
              } else { 
37435
              } else { 
36777
                TProtocolUtil.skip(iprot, field.type);
37436
                TProtocolUtil.skip(iprot, field.type);
Line 36798... Line 37457...
36798
 
37457
 
36799
      if (this.isSetSuccess()) {
37458
      if (this.isSetSuccess()) {
36800
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37459
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36801
        {
37460
        {
36802
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
37461
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
36803
          for (Cart _iter59 : this.success)
37462
          for (Cart _iter63 : this.success)
36804
          {
37463
          {
36805
            _iter59.write(oprot);
37464
            _iter63.write(oprot);
36806
          }
37465
          }
36807
          oprot.writeListEnd();
37466
          oprot.writeListEnd();
36808
        }
37467
        }
36809
        oprot.writeFieldEnd();
37468
        oprot.writeFieldEnd();
36810
      } else if (this.isSetScx()) {
37469
      } else if (this.isSetScx()) {
Line 43728... Line 44387...
43728
              }
44387
              }
43729
              break;
44388
              break;
43730
            case ITEMS:
44389
            case ITEMS:
43731
              if (field.type == TType.MAP) {
44390
              if (field.type == TType.MAP) {
43732
                {
44391
                {
43733
                  TMap _map60 = iprot.readMapBegin();
44392
                  TMap _map64 = iprot.readMapBegin();
43734
                  this.items = new HashMap<Long,Double>(2*_map60.size);
44393
                  this.items = new HashMap<Long,Double>(2*_map64.size);
43735
                  for (int _i61 = 0; _i61 < _map60.size; ++_i61)
44394
                  for (int _i65 = 0; _i65 < _map64.size; ++_i65)
43736
                  {
44395
                  {
43737
                    long _key62;
44396
                    long _key66;
43738
                    double _val63;
44397
                    double _val67;
43739
                    _key62 = iprot.readI64();
44398
                    _key66 = iprot.readI64();
43740
                    _val63 = iprot.readDouble();
44399
                    _val67 = iprot.readDouble();
43741
                    this.items.put(_key62, _val63);
44400
                    this.items.put(_key66, _val67);
43742
                  }
44401
                  }
43743
                  iprot.readMapEnd();
44402
                  iprot.readMapEnd();
43744
                }
44403
                }
43745
              } else { 
44404
              } else { 
43746
                TProtocolUtil.skip(iprot, field.type);
44405
                TProtocolUtil.skip(iprot, field.type);
Line 43763... Line 44422...
43763
      oprot.writeFieldEnd();
44422
      oprot.writeFieldEnd();
43764
      if (this.items != null) {
44423
      if (this.items != null) {
43765
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
44424
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
43766
        {
44425
        {
43767
          oprot.writeMapBegin(new TMap(TType.I64, TType.DOUBLE, this.items.size()));
44426
          oprot.writeMapBegin(new TMap(TType.I64, TType.DOUBLE, this.items.size()));
43768
          for (Map.Entry<Long, Double> _iter64 : this.items.entrySet())
44427
          for (Map.Entry<Long, Double> _iter68 : this.items.entrySet())
43769
          {
44428
          {
43770
            oprot.writeI64(_iter64.getKey());
44429
            oprot.writeI64(_iter68.getKey());
43771
            oprot.writeDouble(_iter64.getValue());
44430
            oprot.writeDouble(_iter68.getValue());
43772
          }
44431
          }
43773
          oprot.writeMapEnd();
44432
          oprot.writeMapEnd();
43774
        }
44433
        }
43775
        oprot.writeFieldEnd();
44434
        oprot.writeFieldEnd();
43776
      }
44435
      }
Line 49193... Line 49852...
49193
        } else {
49852
        } else {
49194
          switch (fieldId) {
49853
          switch (fieldId) {
49195
            case SUCCESS:
49854
            case SUCCESS:
49196
              if (field.type == TType.LIST) {
49855
              if (field.type == TType.LIST) {
49197
                {
49856
                {
49198
                  TList _list65 = iprot.readListBegin();
49857
                  TList _list69 = iprot.readListBegin();
49199
                  this.success = new ArrayList<User>(_list65.size);
49858
                  this.success = new ArrayList<User>(_list69.size);
49200
                  for (int _i66 = 0; _i66 < _list65.size; ++_i66)
49859
                  for (int _i70 = 0; _i70 < _list69.size; ++_i70)
49201
                  {
49860
                  {
49202
                    User _elem67;
49861
                    User _elem71;
49203
                    _elem67 = new User();
49862
                    _elem71 = new User();
49204
                    _elem67.read(iprot);
49863
                    _elem71.read(iprot);
49205
                    this.success.add(_elem67);
49864
                    this.success.add(_elem71);
49206
                  }
49865
                  }
49207
                  iprot.readListEnd();
49866
                  iprot.readListEnd();
49208
                }
49867
                }
49209
              } else { 
49868
              } else { 
49210
                TProtocolUtil.skip(iprot, field.type);
49869
                TProtocolUtil.skip(iprot, field.type);
Line 49223... Line 49882...
49223
 
49882
 
49224
      if (this.isSetSuccess()) {
49883
      if (this.isSetSuccess()) {
49225
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49884
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49226
        {
49885
        {
49227
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
49886
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
49228
          for (User _iter68 : this.success)
49887
          for (User _iter72 : this.success)
49229
          {
49888
          {
49230
            _iter68.write(oprot);
49889
            _iter72.write(oprot);
49231
          }
49890
          }
49232
          oprot.writeListEnd();
49891
          oprot.writeListEnd();
49233
        }
49892
        }
49234
        oprot.writeFieldEnd();
49893
        oprot.writeFieldEnd();
49235
      }
49894
      }