Subversion Repositories SmartDukaan

Rev

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

Rev 11645 Rev 11653
Line 542... Line 542...
542
 
542
 
543
    public PrivateDeal getPrivateDealDetails(long item_id) throws org.apache.thrift.TException;
543
    public PrivateDeal getPrivateDealDetails(long item_id) throws org.apache.thrift.TException;
544
 
544
 
545
    public List<Item> getPrivateDealItems(long offset, long limit) throws org.apache.thrift.TException;
545
    public List<Item> getPrivateDealItems(long offset, long limit) throws org.apache.thrift.TException;
546
 
546
 
547
    public Map<Long,PrivateDeal> getAllActivePrivateDeals() throws org.apache.thrift.TException;
547
    public Map<Long,PrivateDeal> getAllActivePrivateDeals(List<Long> itemIds, long daysDelta) throws org.apache.thrift.TException;
548
 
548
 
549
    public boolean addOrUpdatePrivateDeal(PrivateDeal privateDeal) throws org.apache.thrift.TException;
549
    public boolean addOrUpdatePrivateDeal(PrivateDeal privateDeal) throws org.apache.thrift.TException;
550
 
550
 
551
    public List<Long> getPrivateDealsCatalogIds(long beginIndex, long totalItems) throws CatalogServiceException, org.apache.thrift.TException;
551
    public List<Long> getPrivateDealsCatalogIds(long beginIndex, long totalItems) throws CatalogServiceException, org.apache.thrift.TException;
552
 
552
 
Line 876... Line 876...
876
 
876
 
877
    public void getPrivateDealDetails(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealDetails_call> resultHandler) throws org.apache.thrift.TException;
877
    public void getPrivateDealDetails(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealDetails_call> resultHandler) throws org.apache.thrift.TException;
878
 
878
 
879
    public void getPrivateDealItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealItems_call> resultHandler) throws org.apache.thrift.TException;
879
    public void getPrivateDealItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealItems_call> resultHandler) throws org.apache.thrift.TException;
880
 
880
 
881
    public void getAllActivePrivateDeals(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllActivePrivateDeals_call> resultHandler) throws org.apache.thrift.TException;
881
    public void getAllActivePrivateDeals(List<Long> itemIds, long daysDelta, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllActivePrivateDeals_call> resultHandler) throws org.apache.thrift.TException;
882
 
882
 
883
    public void addOrUpdatePrivateDeal(PrivateDeal privateDeal, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdatePrivateDeal_call> resultHandler) throws org.apache.thrift.TException;
883
    public void addOrUpdatePrivateDeal(PrivateDeal privateDeal, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdatePrivateDeal_call> resultHandler) throws org.apache.thrift.TException;
884
 
884
 
885
    public void getPrivateDealsCatalogIds(long beginIndex, long totalItems, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealsCatalogIds_call> resultHandler) throws org.apache.thrift.TException;
885
    public void getPrivateDealsCatalogIds(long beginIndex, long totalItems, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealsCatalogIds_call> resultHandler) throws org.apache.thrift.TException;
886
 
886
 
Line 4720... Line 4720...
4720
        return result.success;
4720
        return result.success;
4721
      }
4721
      }
4722
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrivateDealItems failed: unknown result");
4722
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrivateDealItems failed: unknown result");
4723
    }
4723
    }
4724
 
4724
 
4725
    public Map<Long,PrivateDeal> getAllActivePrivateDeals() throws org.apache.thrift.TException
4725
    public Map<Long,PrivateDeal> getAllActivePrivateDeals(List<Long> itemIds, long daysDelta) throws org.apache.thrift.TException
4726
    {
4726
    {
4727
      send_getAllActivePrivateDeals();
4727
      send_getAllActivePrivateDeals(itemIds, daysDelta);
4728
      return recv_getAllActivePrivateDeals();
4728
      return recv_getAllActivePrivateDeals();
4729
    }
4729
    }
4730
 
4730
 
4731
    public void send_getAllActivePrivateDeals() throws org.apache.thrift.TException
4731
    public void send_getAllActivePrivateDeals(List<Long> itemIds, long daysDelta) throws org.apache.thrift.TException
4732
    {
4732
    {
4733
      getAllActivePrivateDeals_args args = new getAllActivePrivateDeals_args();
4733
      getAllActivePrivateDeals_args args = new getAllActivePrivateDeals_args();
-
 
4734
      args.setItemIds(itemIds);
-
 
4735
      args.setDaysDelta(daysDelta);
4734
      sendBase("getAllActivePrivateDeals", args);
4736
      sendBase("getAllActivePrivateDeals", args);
4735
    }
4737
    }
4736
 
4738
 
4737
    public Map<Long,PrivateDeal> recv_getAllActivePrivateDeals() throws org.apache.thrift.TException
4739
    public Map<Long,PrivateDeal> recv_getAllActivePrivateDeals() throws org.apache.thrift.TException
4738
    {
4740
    {
Line 10137... Line 10139...
10137
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10139
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10138
        return (new Client(prot)).recv_getPrivateDealItems();
10140
        return (new Client(prot)).recv_getPrivateDealItems();
10139
      }
10141
      }
10140
    }
10142
    }
10141
 
10143
 
10142
    public void getAllActivePrivateDeals(org.apache.thrift.async.AsyncMethodCallback<getAllActivePrivateDeals_call> resultHandler) throws org.apache.thrift.TException {
10144
    public void getAllActivePrivateDeals(List<Long> itemIds, long daysDelta, org.apache.thrift.async.AsyncMethodCallback<getAllActivePrivateDeals_call> resultHandler) throws org.apache.thrift.TException {
10143
      checkReady();
10145
      checkReady();
10144
      getAllActivePrivateDeals_call method_call = new getAllActivePrivateDeals_call(resultHandler, this, ___protocolFactory, ___transport);
10146
      getAllActivePrivateDeals_call method_call = new getAllActivePrivateDeals_call(itemIds, daysDelta, resultHandler, this, ___protocolFactory, ___transport);
10145
      this.___currentMethod = method_call;
10147
      this.___currentMethod = method_call;
10146
      ___manager.call(method_call);
10148
      ___manager.call(method_call);
10147
    }
10149
    }
10148
 
10150
 
10149
    public static class getAllActivePrivateDeals_call extends org.apache.thrift.async.TAsyncMethodCall {
10151
    public static class getAllActivePrivateDeals_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10152
      private List<Long> itemIds;
-
 
10153
      private long daysDelta;
10150
      public getAllActivePrivateDeals_call(org.apache.thrift.async.AsyncMethodCallback<getAllActivePrivateDeals_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
10154
      public getAllActivePrivateDeals_call(List<Long> itemIds, long daysDelta, org.apache.thrift.async.AsyncMethodCallback<getAllActivePrivateDeals_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
10151
        super(client, protocolFactory, transport, resultHandler, false);
10155
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10156
        this.itemIds = itemIds;
-
 
10157
        this.daysDelta = daysDelta;
10152
      }
10158
      }
10153
 
10159
 
10154
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
10160
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
10155
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllActivePrivateDeals", org.apache.thrift.protocol.TMessageType.CALL, 0));
10161
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllActivePrivateDeals", org.apache.thrift.protocol.TMessageType.CALL, 0));
10156
        getAllActivePrivateDeals_args args = new getAllActivePrivateDeals_args();
10162
        getAllActivePrivateDeals_args args = new getAllActivePrivateDeals_args();
-
 
10163
        args.setItemIds(itemIds);
-
 
10164
        args.setDaysDelta(daysDelta);
10157
        args.write(prot);
10165
        args.write(prot);
10158
        prot.writeMessageEnd();
10166
        prot.writeMessageEnd();
10159
      }
10167
      }
10160
 
10168
 
10161
      public Map<Long,PrivateDeal> getResult() throws org.apache.thrift.TException {
10169
      public Map<Long,PrivateDeal> getResult() throws org.apache.thrift.TException {
Line 13252... Line 13260...
13252
        return new getAllActivePrivateDeals_args();
13260
        return new getAllActivePrivateDeals_args();
13253
      }
13261
      }
13254
 
13262
 
13255
      protected getAllActivePrivateDeals_result getResult(I iface, getAllActivePrivateDeals_args args) throws org.apache.thrift.TException {
13263
      protected getAllActivePrivateDeals_result getResult(I iface, getAllActivePrivateDeals_args args) throws org.apache.thrift.TException {
13256
        getAllActivePrivateDeals_result result = new getAllActivePrivateDeals_result();
13264
        getAllActivePrivateDeals_result result = new getAllActivePrivateDeals_result();
13257
        result.success = iface.getAllActivePrivateDeals();
13265
        result.success = iface.getAllActivePrivateDeals(args.itemIds, args.daysDelta);
13258
        return result;
13266
        return result;
13259
      }
13267
      }
13260
    }
13268
    }
13261
 
13269
 
13262
    private static class addOrUpdatePrivateDeal<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdatePrivateDeal_args> {
13270
    private static class addOrUpdatePrivateDeal<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdatePrivateDeal_args> {
Line 116860... Line 116868...
116860
  }
116868
  }
116861
 
116869
 
116862
  public static class getAllActivePrivateDeals_args implements org.apache.thrift.TBase<getAllActivePrivateDeals_args, getAllActivePrivateDeals_args._Fields>, java.io.Serializable, Cloneable   {
116870
  public static class getAllActivePrivateDeals_args implements org.apache.thrift.TBase<getAllActivePrivateDeals_args, getAllActivePrivateDeals_args._Fields>, java.io.Serializable, Cloneable   {
116863
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllActivePrivateDeals_args");
116871
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllActivePrivateDeals_args");
116864
 
116872
 
-
 
116873
    private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
116874
    private static final org.apache.thrift.protocol.TField DAYS_DELTA_FIELD_DESC = new org.apache.thrift.protocol.TField("daysDelta", org.apache.thrift.protocol.TType.I64, (short)2);
116865
 
116875
 
-
 
116876
    private List<Long> itemIds; // required
-
 
116877
    private long daysDelta; // required
116866
 
116878
 
116867
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
116879
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
116868
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
116880
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
116869
;
-
 
-
 
116881
      ITEM_IDS((short)1, "itemIds"),
-
 
116882
      DAYS_DELTA((short)2, "daysDelta");
116870
 
116883
 
116871
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
116884
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
116872
 
116885
 
116873
      static {
116886
      static {
116874
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
116887
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 116879... Line 116892...
116879
      /**
116892
      /**
116880
       * Find the _Fields constant that matches fieldId, or null if its not found.
116893
       * Find the _Fields constant that matches fieldId, or null if its not found.
116881
       */
116894
       */
116882
      public static _Fields findByThriftId(int fieldId) {
116895
      public static _Fields findByThriftId(int fieldId) {
116883
        switch(fieldId) {
116896
        switch(fieldId) {
-
 
116897
          case 1: // ITEM_IDS
-
 
116898
            return ITEM_IDS;
-
 
116899
          case 2: // DAYS_DELTA
-
 
116900
            return DAYS_DELTA;
116884
          default:
116901
          default:
116885
            return null;
116902
            return null;
116886
        }
116903
        }
116887
      }
116904
      }
116888
 
116905
 
Line 116917... Line 116934...
116917
 
116934
 
116918
      public String getFieldName() {
116935
      public String getFieldName() {
116919
        return _fieldName;
116936
        return _fieldName;
116920
      }
116937
      }
116921
    }
116938
    }
-
 
116939
 
-
 
116940
    // isset id assignments
-
 
116941
    private static final int __DAYSDELTA_ISSET_ID = 0;
-
 
116942
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
116943
 
116922
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
116944
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
116923
    static {
116945
    static {
116924
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
116946
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
116947
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
116948
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
116949
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
116950
      tmpMap.put(_Fields.DAYS_DELTA, new org.apache.thrift.meta_data.FieldMetaData("daysDelta", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
116951
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
116925
      metaDataMap = Collections.unmodifiableMap(tmpMap);
116952
      metaDataMap = Collections.unmodifiableMap(tmpMap);
116926
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllActivePrivateDeals_args.class, metaDataMap);
116953
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllActivePrivateDeals_args.class, metaDataMap);
116927
    }
116954
    }
116928
 
116955
 
116929
    public getAllActivePrivateDeals_args() {
116956
    public getAllActivePrivateDeals_args() {
116930
    }
116957
    }
116931
 
116958
 
-
 
116959
    public getAllActivePrivateDeals_args(
-
 
116960
      List<Long> itemIds,
-
 
116961
      long daysDelta)
-
 
116962
    {
-
 
116963
      this();
-
 
116964
      this.itemIds = itemIds;
-
 
116965
      this.daysDelta = daysDelta;
-
 
116966
      setDaysDeltaIsSet(true);
-
 
116967
    }
-
 
116968
 
116932
    /**
116969
    /**
116933
     * Performs a deep copy on <i>other</i>.
116970
     * Performs a deep copy on <i>other</i>.
116934
     */
116971
     */
116935
    public getAllActivePrivateDeals_args(getAllActivePrivateDeals_args other) {
116972
    public getAllActivePrivateDeals_args(getAllActivePrivateDeals_args other) {
-
 
116973
      __isset_bit_vector.clear();
-
 
116974
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
116975
      if (other.isSetItemIds()) {
-
 
116976
        List<Long> __this__itemIds = new ArrayList<Long>();
-
 
116977
        for (Long other_element : other.itemIds) {
-
 
116978
          __this__itemIds.add(other_element);
-
 
116979
        }
-
 
116980
        this.itemIds = __this__itemIds;
-
 
116981
      }
-
 
116982
      this.daysDelta = other.daysDelta;
116936
    }
116983
    }
116937
 
116984
 
116938
    public getAllActivePrivateDeals_args deepCopy() {
116985
    public getAllActivePrivateDeals_args deepCopy() {
116939
      return new getAllActivePrivateDeals_args(this);
116986
      return new getAllActivePrivateDeals_args(this);
116940
    }
116987
    }
116941
 
116988
 
116942
    @Override
116989
    @Override
116943
    public void clear() {
116990
    public void clear() {
-
 
116991
      this.itemIds = null;
-
 
116992
      setDaysDeltaIsSet(false);
-
 
116993
      this.daysDelta = 0;
-
 
116994
    }
-
 
116995
 
-
 
116996
    public int getItemIdsSize() {
-
 
116997
      return (this.itemIds == null) ? 0 : this.itemIds.size();
-
 
116998
    }
-
 
116999
 
-
 
117000
    public java.util.Iterator<Long> getItemIdsIterator() {
-
 
117001
      return (this.itemIds == null) ? null : this.itemIds.iterator();
-
 
117002
    }
-
 
117003
 
-
 
117004
    public void addToItemIds(long elem) {
-
 
117005
      if (this.itemIds == null) {
-
 
117006
        this.itemIds = new ArrayList<Long>();
-
 
117007
      }
-
 
117008
      this.itemIds.add(elem);
-
 
117009
    }
-
 
117010
 
-
 
117011
    public List<Long> getItemIds() {
-
 
117012
      return this.itemIds;
-
 
117013
    }
-
 
117014
 
-
 
117015
    public void setItemIds(List<Long> itemIds) {
-
 
117016
      this.itemIds = itemIds;
-
 
117017
    }
-
 
117018
 
-
 
117019
    public void unsetItemIds() {
-
 
117020
      this.itemIds = null;
-
 
117021
    }
-
 
117022
 
-
 
117023
    /** Returns true if field itemIds is set (has been assigned a value) and false otherwise */
-
 
117024
    public boolean isSetItemIds() {
-
 
117025
      return this.itemIds != null;
-
 
117026
    }
-
 
117027
 
-
 
117028
    public void setItemIdsIsSet(boolean value) {
-
 
117029
      if (!value) {
-
 
117030
        this.itemIds = null;
-
 
117031
      }
-
 
117032
    }
-
 
117033
 
-
 
117034
    public long getDaysDelta() {
-
 
117035
      return this.daysDelta;
-
 
117036
    }
-
 
117037
 
-
 
117038
    public void setDaysDelta(long daysDelta) {
-
 
117039
      this.daysDelta = daysDelta;
-
 
117040
      setDaysDeltaIsSet(true);
-
 
117041
    }
-
 
117042
 
-
 
117043
    public void unsetDaysDelta() {
-
 
117044
      __isset_bit_vector.clear(__DAYSDELTA_ISSET_ID);
-
 
117045
    }
-
 
117046
 
-
 
117047
    /** Returns true if field daysDelta is set (has been assigned a value) and false otherwise */
-
 
117048
    public boolean isSetDaysDelta() {
-
 
117049
      return __isset_bit_vector.get(__DAYSDELTA_ISSET_ID);
-
 
117050
    }
-
 
117051
 
-
 
117052
    public void setDaysDeltaIsSet(boolean value) {
-
 
117053
      __isset_bit_vector.set(__DAYSDELTA_ISSET_ID, value);
116944
    }
117054
    }
116945
 
117055
 
116946
    public void setFieldValue(_Fields field, Object value) {
117056
    public void setFieldValue(_Fields field, Object value) {
116947
      switch (field) {
117057
      switch (field) {
-
 
117058
      case ITEM_IDS:
-
 
117059
        if (value == null) {
-
 
117060
          unsetItemIds();
-
 
117061
        } else {
-
 
117062
          setItemIds((List<Long>)value);
-
 
117063
        }
-
 
117064
        break;
-
 
117065
 
-
 
117066
      case DAYS_DELTA:
-
 
117067
        if (value == null) {
-
 
117068
          unsetDaysDelta();
-
 
117069
        } else {
-
 
117070
          setDaysDelta((Long)value);
-
 
117071
        }
-
 
117072
        break;
-
 
117073
 
116948
      }
117074
      }
116949
    }
117075
    }
116950
 
117076
 
116951
    public Object getFieldValue(_Fields field) {
117077
    public Object getFieldValue(_Fields field) {
116952
      switch (field) {
117078
      switch (field) {
-
 
117079
      case ITEM_IDS:
-
 
117080
        return getItemIds();
-
 
117081
 
-
 
117082
      case DAYS_DELTA:
-
 
117083
        return Long.valueOf(getDaysDelta());
-
 
117084
 
116953
      }
117085
      }
116954
      throw new IllegalStateException();
117086
      throw new IllegalStateException();
116955
    }
117087
    }
116956
 
117088
 
116957
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
117089
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 116959... Line 117091...
116959
      if (field == null) {
117091
      if (field == null) {
116960
        throw new IllegalArgumentException();
117092
        throw new IllegalArgumentException();
116961
      }
117093
      }
116962
 
117094
 
116963
      switch (field) {
117095
      switch (field) {
-
 
117096
      case ITEM_IDS:
-
 
117097
        return isSetItemIds();
-
 
117098
      case DAYS_DELTA:
-
 
117099
        return isSetDaysDelta();
116964
      }
117100
      }
116965
      throw new IllegalStateException();
117101
      throw new IllegalStateException();
116966
    }
117102
    }
116967
 
117103
 
116968
    @Override
117104
    @Override
Line 116976... Line 117112...
116976
 
117112
 
116977
    public boolean equals(getAllActivePrivateDeals_args that) {
117113
    public boolean equals(getAllActivePrivateDeals_args that) {
116978
      if (that == null)
117114
      if (that == null)
116979
        return false;
117115
        return false;
116980
 
117116
 
-
 
117117
      boolean this_present_itemIds = true && this.isSetItemIds();
-
 
117118
      boolean that_present_itemIds = true && that.isSetItemIds();
-
 
117119
      if (this_present_itemIds || that_present_itemIds) {
-
 
117120
        if (!(this_present_itemIds && that_present_itemIds))
-
 
117121
          return false;
-
 
117122
        if (!this.itemIds.equals(that.itemIds))
-
 
117123
          return false;
-
 
117124
      }
-
 
117125
 
-
 
117126
      boolean this_present_daysDelta = true;
-
 
117127
      boolean that_present_daysDelta = true;
-
 
117128
      if (this_present_daysDelta || that_present_daysDelta) {
-
 
117129
        if (!(this_present_daysDelta && that_present_daysDelta))
-
 
117130
          return false;
-
 
117131
        if (this.daysDelta != that.daysDelta)
-
 
117132
          return false;
-
 
117133
      }
-
 
117134
 
116981
      return true;
117135
      return true;
116982
    }
117136
    }
116983
 
117137
 
116984
    @Override
117138
    @Override
116985
    public int hashCode() {
117139
    public int hashCode() {
Line 116992... Line 117146...
116992
      }
117146
      }
116993
 
117147
 
116994
      int lastComparison = 0;
117148
      int lastComparison = 0;
116995
      getAllActivePrivateDeals_args typedOther = (getAllActivePrivateDeals_args)other;
117149
      getAllActivePrivateDeals_args typedOther = (getAllActivePrivateDeals_args)other;
116996
 
117150
 
-
 
117151
      lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());
-
 
117152
      if (lastComparison != 0) {
-
 
117153
        return lastComparison;
-
 
117154
      }
-
 
117155
      if (isSetItemIds()) {
-
 
117156
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);
-
 
117157
        if (lastComparison != 0) {
-
 
117158
          return lastComparison;
-
 
117159
        }
-
 
117160
      }
-
 
117161
      lastComparison = Boolean.valueOf(isSetDaysDelta()).compareTo(typedOther.isSetDaysDelta());
-
 
117162
      if (lastComparison != 0) {
-
 
117163
        return lastComparison;
-
 
117164
      }
-
 
117165
      if (isSetDaysDelta()) {
-
 
117166
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.daysDelta, typedOther.daysDelta);
-
 
117167
        if (lastComparison != 0) {
-
 
117168
          return lastComparison;
-
 
117169
        }
-
 
117170
      }
116997
      return 0;
117171
      return 0;
116998
    }
117172
    }
116999
 
117173
 
117000
    public _Fields fieldForId(int fieldId) {
117174
    public _Fields fieldForId(int fieldId) {
117001
      return _Fields.findByThriftId(fieldId);
117175
      return _Fields.findByThriftId(fieldId);
Line 117009... Line 117183...
117009
        field = iprot.readFieldBegin();
117183
        field = iprot.readFieldBegin();
117010
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
117184
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
117011
          break;
117185
          break;
117012
        }
117186
        }
117013
        switch (field.id) {
117187
        switch (field.id) {
-
 
117188
          case 1: // ITEM_IDS
-
 
117189
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
117190
              {
-
 
117191
                org.apache.thrift.protocol.TList _list373 = iprot.readListBegin();
-
 
117192
                this.itemIds = new ArrayList<Long>(_list373.size);
-
 
117193
                for (int _i374 = 0; _i374 < _list373.size; ++_i374)
-
 
117194
                {
-
 
117195
                  long _elem375; // required
-
 
117196
                  _elem375 = iprot.readI64();
-
 
117197
                  this.itemIds.add(_elem375);
-
 
117198
                }
-
 
117199
                iprot.readListEnd();
-
 
117200
              }
-
 
117201
            } else { 
-
 
117202
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
117203
            }
-
 
117204
            break;
-
 
117205
          case 2: // DAYS_DELTA
-
 
117206
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
117207
              this.daysDelta = iprot.readI64();
-
 
117208
              setDaysDeltaIsSet(true);
-
 
117209
            } else { 
-
 
117210
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
117211
            }
-
 
117212
            break;
117014
          default:
117213
          default:
117015
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
117214
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
117016
        }
117215
        }
117017
        iprot.readFieldEnd();
117216
        iprot.readFieldEnd();
117018
      }
117217
      }
Line 117022... Line 117221...
117022
 
117221
 
117023
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
117222
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
117024
      validate();
117223
      validate();
117025
 
117224
 
117026
      oprot.writeStructBegin(STRUCT_DESC);
117225
      oprot.writeStructBegin(STRUCT_DESC);
-
 
117226
      if (this.itemIds != null) {
-
 
117227
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
-
 
117228
        {
-
 
117229
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
-
 
117230
          for (long _iter376 : this.itemIds)
-
 
117231
          {
-
 
117232
            oprot.writeI64(_iter376);
-
 
117233
          }
-
 
117234
          oprot.writeListEnd();
-
 
117235
        }
-
 
117236
        oprot.writeFieldEnd();
-
 
117237
      }
-
 
117238
      oprot.writeFieldBegin(DAYS_DELTA_FIELD_DESC);
-
 
117239
      oprot.writeI64(this.daysDelta);
-
 
117240
      oprot.writeFieldEnd();
117027
      oprot.writeFieldStop();
117241
      oprot.writeFieldStop();
117028
      oprot.writeStructEnd();
117242
      oprot.writeStructEnd();
117029
    }
117243
    }
117030
 
117244
 
117031
    @Override
117245
    @Override
117032
    public String toString() {
117246
    public String toString() {
117033
      StringBuilder sb = new StringBuilder("getAllActivePrivateDeals_args(");
117247
      StringBuilder sb = new StringBuilder("getAllActivePrivateDeals_args(");
117034
      boolean first = true;
117248
      boolean first = true;
117035
 
117249
 
-
 
117250
      sb.append("itemIds:");
-
 
117251
      if (this.itemIds == null) {
-
 
117252
        sb.append("null");
-
 
117253
      } else {
-
 
117254
        sb.append(this.itemIds);
-
 
117255
      }
-
 
117256
      first = false;
-
 
117257
      if (!first) sb.append(", ");
-
 
117258
      sb.append("daysDelta:");
-
 
117259
      sb.append(this.daysDelta);
-
 
117260
      first = false;
117036
      sb.append(")");
117261
      sb.append(")");
117037
      return sb.toString();
117262
      return sb.toString();
117038
    }
117263
    }
117039
 
117264
 
117040
    public void validate() throws org.apache.thrift.TException {
117265
    public void validate() throws org.apache.thrift.TException {
Line 117049... Line 117274...
117049
      }
117274
      }
117050
    }
117275
    }
117051
 
117276
 
117052
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
117277
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
117053
      try {
117278
      try {
-
 
117279
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
117280
        __isset_bit_vector = new BitSet(1);
117054
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
117281
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
117055
      } catch (org.apache.thrift.TException te) {
117282
      } catch (org.apache.thrift.TException te) {
117056
        throw new java.io.IOException(te);
117283
        throw new java.io.IOException(te);
117057
      }
117284
      }
117058
    }
117285
    }
Line 117312... Line 117539...
117312
        }
117539
        }
117313
        switch (field.id) {
117540
        switch (field.id) {
117314
          case 0: // SUCCESS
117541
          case 0: // SUCCESS
117315
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
117542
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
117316
              {
117543
              {
117317
                org.apache.thrift.protocol.TMap _map373 = iprot.readMapBegin();
117544
                org.apache.thrift.protocol.TMap _map377 = iprot.readMapBegin();
117318
                this.success = new HashMap<Long,PrivateDeal>(2*_map373.size);
117545
                this.success = new HashMap<Long,PrivateDeal>(2*_map377.size);
117319
                for (int _i374 = 0; _i374 < _map373.size; ++_i374)
117546
                for (int _i378 = 0; _i378 < _map377.size; ++_i378)
117320
                {
117547
                {
117321
                  long _key375; // required
117548
                  long _key379; // required
117322
                  PrivateDeal _val376; // required
117549
                  PrivateDeal _val380; // required
117323
                  _key375 = iprot.readI64();
117550
                  _key379 = iprot.readI64();
117324
                  _val376 = new PrivateDeal();
117551
                  _val380 = new PrivateDeal();
117325
                  _val376.read(iprot);
117552
                  _val380.read(iprot);
117326
                  this.success.put(_key375, _val376);
117553
                  this.success.put(_key379, _val380);
117327
                }
117554
                }
117328
                iprot.readMapEnd();
117555
                iprot.readMapEnd();
117329
              }
117556
              }
117330
            } else { 
117557
            } else { 
117331
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
117558
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 117345... Line 117572...
117345
 
117572
 
117346
      if (this.isSetSuccess()) {
117573
      if (this.isSetSuccess()) {
117347
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
117574
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
117348
        {
117575
        {
117349
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
117576
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
117350
          for (Map.Entry<Long, PrivateDeal> _iter377 : this.success.entrySet())
117577
          for (Map.Entry<Long, PrivateDeal> _iter381 : this.success.entrySet())
117351
          {
117578
          {
117352
            oprot.writeI64(_iter377.getKey());
117579
            oprot.writeI64(_iter381.getKey());
117353
            _iter377.getValue().write(oprot);
117580
            _iter381.getValue().write(oprot);
117354
          }
117581
          }
117355
          oprot.writeMapEnd();
117582
          oprot.writeMapEnd();
117356
        }
117583
        }
117357
        oprot.writeFieldEnd();
117584
        oprot.writeFieldEnd();
117358
      }
117585
      }
Line 118679... Line 118906...
118679
        }
118906
        }
118680
        switch (field.id) {
118907
        switch (field.id) {
118681
          case 0: // SUCCESS
118908
          case 0: // SUCCESS
118682
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
118909
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
118683
              {
118910
              {
118684
                org.apache.thrift.protocol.TList _list378 = iprot.readListBegin();
118911
                org.apache.thrift.protocol.TList _list382 = iprot.readListBegin();
118685
                this.success = new ArrayList<Long>(_list378.size);
118912
                this.success = new ArrayList<Long>(_list382.size);
118686
                for (int _i379 = 0; _i379 < _list378.size; ++_i379)
118913
                for (int _i383 = 0; _i383 < _list382.size; ++_i383)
118687
                {
118914
                {
118688
                  long _elem380; // required
118915
                  long _elem384; // required
118689
                  _elem380 = iprot.readI64();
118916
                  _elem384 = iprot.readI64();
118690
                  this.success.add(_elem380);
118917
                  this.success.add(_elem384);
118691
                }
118918
                }
118692
                iprot.readListEnd();
118919
                iprot.readListEnd();
118693
              }
118920
              }
118694
            } else { 
118921
            } else { 
118695
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
118922
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 118717... Line 118944...
118717
 
118944
 
118718
      if (this.isSetSuccess()) {
118945
      if (this.isSetSuccess()) {
118719
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
118946
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
118720
        {
118947
        {
118721
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
118948
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
118722
          for (long _iter381 : this.success)
118949
          for (long _iter385 : this.success)
118723
          {
118950
          {
118724
            oprot.writeI64(_iter381);
118951
            oprot.writeI64(_iter385);
118725
          }
118952
          }
118726
          oprot.writeListEnd();
118953
          oprot.writeListEnd();
118727
        }
118954
        }
118728
        oprot.writeFieldEnd();
118955
        oprot.writeFieldEnd();
118729
      } else if (this.isSetCex()) {
118956
      } else if (this.isSetCex()) {