Subversion Repositories SmartDukaan

Rev

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

Rev 23069 Rev 23081
Line 1288... Line 1288...
1288
 
1288
 
1289
    public List<Order> getInTransitOrdersOnDate(long closingDate) throws org.apache.thrift.TException;
1289
    public List<Order> getInTransitOrdersOnDate(long closingDate) throws org.apache.thrift.TException;
1290
 
1290
 
1291
    public List<Order> getInTransitOrdersOnDateByItemId(long closingDate, long itemId) throws org.apache.thrift.TException;
1291
    public List<Order> getInTransitOrdersOnDateByItemId(long closingDate, long itemId) throws org.apache.thrift.TException;
1292
 
1292
 
-
 
1293
    public boolean addPriceDrop(long item_id, List<String> imeis, double amount, long affected_on) throws org.apache.thrift.TException;
-
 
1294
 
1293
  }
1295
  }
1294
 
1296
 
1295
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1297
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1296
 
1298
 
1297
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1299
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1944... Line 1946...
1944
 
1946
 
1945
    public void getInTransitOrdersOnDate(long closingDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInTransitOrdersOnDate_call> resultHandler) throws org.apache.thrift.TException;
1947
    public void getInTransitOrdersOnDate(long closingDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInTransitOrdersOnDate_call> resultHandler) throws org.apache.thrift.TException;
1946
 
1948
 
1947
    public void getInTransitOrdersOnDateByItemId(long closingDate, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInTransitOrdersOnDateByItemId_call> resultHandler) throws org.apache.thrift.TException;
1949
    public void getInTransitOrdersOnDateByItemId(long closingDate, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInTransitOrdersOnDateByItemId_call> resultHandler) throws org.apache.thrift.TException;
1948
 
1950
 
-
 
1951
    public void addPriceDrop(long item_id, List<String> imeis, double amount, long affected_on, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addPriceDrop_call> resultHandler) throws org.apache.thrift.TException;
-
 
1952
 
1949
  }
1953
  }
1950
 
1954
 
1951
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1955
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1952
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1956
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1953
      public Factory() {}
1957
      public Factory() {}
Line 10017... Line 10021...
10017
        return result.success;
10021
        return result.success;
10018
      }
10022
      }
10019
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInTransitOrdersOnDateByItemId failed: unknown result");
10023
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInTransitOrdersOnDateByItemId failed: unknown result");
10020
    }
10024
    }
10021
 
10025
 
-
 
10026
    public boolean addPriceDrop(long item_id, List<String> imeis, double amount, long affected_on) throws org.apache.thrift.TException
-
 
10027
    {
-
 
10028
      send_addPriceDrop(item_id, imeis, amount, affected_on);
-
 
10029
      return recv_addPriceDrop();
-
 
10030
    }
-
 
10031
 
-
 
10032
    public void send_addPriceDrop(long item_id, List<String> imeis, double amount, long affected_on) throws org.apache.thrift.TException
-
 
10033
    {
-
 
10034
      addPriceDrop_args args = new addPriceDrop_args();
-
 
10035
      args.setItem_id(item_id);
-
 
10036
      args.setImeis(imeis);
-
 
10037
      args.setAmount(amount);
-
 
10038
      args.setAffected_on(affected_on);
-
 
10039
      sendBase("addPriceDrop", args);
-
 
10040
    }
-
 
10041
 
-
 
10042
    public boolean recv_addPriceDrop() throws org.apache.thrift.TException
-
 
10043
    {
-
 
10044
      addPriceDrop_result result = new addPriceDrop_result();
-
 
10045
      receiveBase(result, "addPriceDrop");
-
 
10046
      if (result.isSetSuccess()) {
-
 
10047
        return result.success;
-
 
10048
      }
-
 
10049
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addPriceDrop failed: unknown result");
-
 
10050
    }
-
 
10051
 
10022
  }
10052
  }
10023
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
10053
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
10024
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
10054
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
10025
      private org.apache.thrift.async.TAsyncClientManager clientManager;
10055
      private org.apache.thrift.async.TAsyncClientManager clientManager;
10026
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
10056
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 21388... Line 21418...
21388
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
21418
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
21389
        return (new Client(prot)).recv_getInTransitOrdersOnDateByItemId();
21419
        return (new Client(prot)).recv_getInTransitOrdersOnDateByItemId();
21390
      }
21420
      }
21391
    }
21421
    }
21392
 
21422
 
-
 
21423
    public void addPriceDrop(long item_id, List<String> imeis, double amount, long affected_on, org.apache.thrift.async.AsyncMethodCallback<addPriceDrop_call> resultHandler) throws org.apache.thrift.TException {
-
 
21424
      checkReady();
-
 
21425
      addPriceDrop_call method_call = new addPriceDrop_call(item_id, imeis, amount, affected_on, resultHandler, this, ___protocolFactory, ___transport);
-
 
21426
      this.___currentMethod = method_call;
-
 
21427
      ___manager.call(method_call);
-
 
21428
    }
-
 
21429
 
-
 
21430
    public static class addPriceDrop_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
21431
      private long item_id;
-
 
21432
      private List<String> imeis;
-
 
21433
      private double amount;
-
 
21434
      private long affected_on;
-
 
21435
      public addPriceDrop_call(long item_id, List<String> imeis, double amount, long affected_on, org.apache.thrift.async.AsyncMethodCallback<addPriceDrop_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 {
-
 
21436
        super(client, protocolFactory, transport, resultHandler, false);
-
 
21437
        this.item_id = item_id;
-
 
21438
        this.imeis = imeis;
-
 
21439
        this.amount = amount;
-
 
21440
        this.affected_on = affected_on;
-
 
21441
      }
-
 
21442
 
-
 
21443
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
21444
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPriceDrop", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
21445
        addPriceDrop_args args = new addPriceDrop_args();
-
 
21446
        args.setItem_id(item_id);
-
 
21447
        args.setImeis(imeis);
-
 
21448
        args.setAmount(amount);
-
 
21449
        args.setAffected_on(affected_on);
-
 
21450
        args.write(prot);
-
 
21451
        prot.writeMessageEnd();
-
 
21452
      }
-
 
21453
 
-
 
21454
      public boolean getResult() throws org.apache.thrift.TException {
-
 
21455
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
21456
          throw new IllegalStateException("Method call not finished!");
-
 
21457
        }
-
 
21458
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
21459
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
21460
        return (new Client(prot)).recv_addPriceDrop();
-
 
21461
      }
-
 
21462
    }
-
 
21463
 
21393
  }
21464
  }
21394
 
21465
 
21395
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
21466
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
21396
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
21467
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
21397
    public Processor(I iface) {
21468
    public Processor(I iface) {
Line 21727... Line 21798...
21727
      processMap.put("getPaginatedRechargeOrders", new getPaginatedRechargeOrders());
21798
      processMap.put("getPaginatedRechargeOrders", new getPaginatedRechargeOrders());
21728
      processMap.put("markOrderForRegisteredGstInvoice", new markOrderForRegisteredGstInvoice());
21799
      processMap.put("markOrderForRegisteredGstInvoice", new markOrderForRegisteredGstInvoice());
21729
      processMap.put("isShipmentCod", new isShipmentCod());
21800
      processMap.put("isShipmentCod", new isShipmentCod());
21730
      processMap.put("getInTransitOrdersOnDate", new getInTransitOrdersOnDate());
21801
      processMap.put("getInTransitOrdersOnDate", new getInTransitOrdersOnDate());
21731
      processMap.put("getInTransitOrdersOnDateByItemId", new getInTransitOrdersOnDateByItemId());
21802
      processMap.put("getInTransitOrdersOnDateByItemId", new getInTransitOrdersOnDateByItemId());
-
 
21803
      processMap.put("addPriceDrop", new addPriceDrop());
21732
      return processMap;
21804
      return processMap;
21733
    }
21805
    }
21734
 
21806
 
21735
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
21807
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
21736
      public createTransaction() {
21808
      public createTransaction() {
Line 27588... Line 27660...
27588
        result.success = iface.getInTransitOrdersOnDateByItemId(args.closingDate, args.itemId);
27660
        result.success = iface.getInTransitOrdersOnDateByItemId(args.closingDate, args.itemId);
27589
        return result;
27661
        return result;
27590
      }
27662
      }
27591
    }
27663
    }
27592
 
27664
 
-
 
27665
    private static class addPriceDrop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPriceDrop_args> {
-
 
27666
      public addPriceDrop() {
-
 
27667
        super("addPriceDrop");
-
 
27668
      }
-
 
27669
 
-
 
27670
      protected addPriceDrop_args getEmptyArgsInstance() {
-
 
27671
        return new addPriceDrop_args();
-
 
27672
      }
-
 
27673
 
-
 
27674
      protected addPriceDrop_result getResult(I iface, addPriceDrop_args args) throws org.apache.thrift.TException {
-
 
27675
        addPriceDrop_result result = new addPriceDrop_result();
-
 
27676
        result.success = iface.addPriceDrop(args.item_id, args.imeis, args.amount, args.affected_on);
-
 
27677
        result.setSuccessIsSet(true);
-
 
27678
        return result;
-
 
27679
      }
-
 
27680
    }
-
 
27681
 
27593
  }
27682
  }
27594
 
27683
 
27595
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
27684
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
27596
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
27685
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
27597
 
27686
 
Line 79793... Line 79882...
79793
      }
79882
      }
79794
    }
79883
    }
79795
 
79884
 
79796
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
79885
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
79797
      try {
79886
      try {
79798
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
79799
        __isset_bit_vector = new BitSet(1);
-
 
79800
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
79887
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
79801
      } catch (org.apache.thrift.TException te) {
79888
      } catch (org.apache.thrift.TException te) {
79802
        throw new java.io.IOException(te);
79889
        throw new java.io.IOException(te);
79803
      }
79890
      }
79804
    }
79891
    }
Line 259736... Line 259823...
259736
      first = false;
259823
      first = false;
259737
      sb.append(")");
259824
      sb.append(")");
259738
      return sb.toString();
259825
      return sb.toString();
259739
    }
259826
    }
259740
 
259827
 
-
 
259828
    public void validate() throws org.apache.thrift.TException {
-
 
259829
      // check for required fields
-
 
259830
    }
-
 
259831
 
-
 
259832
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
259833
      try {
-
 
259834
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
259835
      } catch (org.apache.thrift.TException te) {
-
 
259836
        throw new java.io.IOException(te);
-
 
259837
      }
-
 
259838
    }
-
 
259839
 
-
 
259840
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
259841
      try {
-
 
259842
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
259843
      } catch (org.apache.thrift.TException te) {
-
 
259844
        throw new java.io.IOException(te);
-
 
259845
      }
-
 
259846
    }
-
 
259847
 
-
 
259848
  }
-
 
259849
 
-
 
259850
  public static class addPriceDrop_args implements org.apache.thrift.TBase<addPriceDrop_args, addPriceDrop_args._Fields>, java.io.Serializable, Cloneable   {
-
 
259851
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPriceDrop_args");
-
 
259852
 
-
 
259853
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
259854
    private static final org.apache.thrift.protocol.TField IMEIS_FIELD_DESC = new org.apache.thrift.protocol.TField("imeis", org.apache.thrift.protocol.TType.LIST, (short)2);
-
 
259855
    private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
-
 
259856
    private static final org.apache.thrift.protocol.TField AFFECTED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("affected_on", org.apache.thrift.protocol.TType.I64, (short)4);
-
 
259857
 
-
 
259858
    private long item_id; // required
-
 
259859
    private List<String> imeis; // required
-
 
259860
    private double amount; // required
-
 
259861
    private long affected_on; // required
-
 
259862
 
-
 
259863
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
259864
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
259865
      ITEM_ID((short)1, "item_id"),
-
 
259866
      IMEIS((short)2, "imeis"),
-
 
259867
      AMOUNT((short)3, "amount"),
-
 
259868
      AFFECTED_ON((short)4, "affected_on");
-
 
259869
 
-
 
259870
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
259871
 
-
 
259872
      static {
-
 
259873
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
259874
          byName.put(field.getFieldName(), field);
-
 
259875
        }
-
 
259876
      }
-
 
259877
 
-
 
259878
      /**
-
 
259879
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
259880
       */
-
 
259881
      public static _Fields findByThriftId(int fieldId) {
-
 
259882
        switch(fieldId) {
-
 
259883
          case 1: // ITEM_ID
-
 
259884
            return ITEM_ID;
-
 
259885
          case 2: // IMEIS
-
 
259886
            return IMEIS;
-
 
259887
          case 3: // AMOUNT
-
 
259888
            return AMOUNT;
-
 
259889
          case 4: // AFFECTED_ON
-
 
259890
            return AFFECTED_ON;
-
 
259891
          default:
-
 
259892
            return null;
-
 
259893
        }
-
 
259894
      }
-
 
259895
 
-
 
259896
      /**
-
 
259897
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
259898
       * if it is not found.
-
 
259899
       */
-
 
259900
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
259901
        _Fields fields = findByThriftId(fieldId);
-
 
259902
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
259903
        return fields;
-
 
259904
      }
-
 
259905
 
-
 
259906
      /**
-
 
259907
       * Find the _Fields constant that matches name, or null if its not found.
-
 
259908
       */
-
 
259909
      public static _Fields findByName(String name) {
-
 
259910
        return byName.get(name);
-
 
259911
      }
-
 
259912
 
-
 
259913
      private final short _thriftId;
-
 
259914
      private final String _fieldName;
-
 
259915
 
-
 
259916
      _Fields(short thriftId, String fieldName) {
-
 
259917
        _thriftId = thriftId;
-
 
259918
        _fieldName = fieldName;
-
 
259919
      }
-
 
259920
 
-
 
259921
      public short getThriftFieldId() {
-
 
259922
        return _thriftId;
-
 
259923
      }
-
 
259924
 
-
 
259925
      public String getFieldName() {
-
 
259926
        return _fieldName;
-
 
259927
      }
-
 
259928
    }
-
 
259929
 
-
 
259930
    // isset id assignments
-
 
259931
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
259932
    private static final int __AMOUNT_ISSET_ID = 1;
-
 
259933
    private static final int __AFFECTED_ON_ISSET_ID = 2;
-
 
259934
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
259935
 
-
 
259936
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
259937
    static {
-
 
259938
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
259939
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
259940
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
259941
      tmpMap.put(_Fields.IMEIS, new org.apache.thrift.meta_data.FieldMetaData("imeis", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
259942
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
259943
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
259944
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
259945
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
259946
      tmpMap.put(_Fields.AFFECTED_ON, new org.apache.thrift.meta_data.FieldMetaData("affected_on", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
259947
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
259948
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
259949
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPriceDrop_args.class, metaDataMap);
-
 
259950
    }
-
 
259951
 
-
 
259952
    public addPriceDrop_args() {
-
 
259953
    }
-
 
259954
 
-
 
259955
    public addPriceDrop_args(
-
 
259956
      long item_id,
-
 
259957
      List<String> imeis,
-
 
259958
      double amount,
-
 
259959
      long affected_on)
-
 
259960
    {
-
 
259961
      this();
-
 
259962
      this.item_id = item_id;
-
 
259963
      setItem_idIsSet(true);
-
 
259964
      this.imeis = imeis;
-
 
259965
      this.amount = amount;
-
 
259966
      setAmountIsSet(true);
-
 
259967
      this.affected_on = affected_on;
-
 
259968
      setAffected_onIsSet(true);
-
 
259969
    }
-
 
259970
 
-
 
259971
    /**
-
 
259972
     * Performs a deep copy on <i>other</i>.
-
 
259973
     */
-
 
259974
    public addPriceDrop_args(addPriceDrop_args other) {
-
 
259975
      __isset_bit_vector.clear();
-
 
259976
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
259977
      this.item_id = other.item_id;
-
 
259978
      if (other.isSetImeis()) {
-
 
259979
        List<String> __this__imeis = new ArrayList<String>();
-
 
259980
        for (String other_element : other.imeis) {
-
 
259981
          __this__imeis.add(other_element);
-
 
259982
        }
-
 
259983
        this.imeis = __this__imeis;
-
 
259984
      }
-
 
259985
      this.amount = other.amount;
-
 
259986
      this.affected_on = other.affected_on;
-
 
259987
    }
-
 
259988
 
-
 
259989
    public addPriceDrop_args deepCopy() {
-
 
259990
      return new addPriceDrop_args(this);
-
 
259991
    }
-
 
259992
 
-
 
259993
    @Override
-
 
259994
    public void clear() {
-
 
259995
      setItem_idIsSet(false);
-
 
259996
      this.item_id = 0;
-
 
259997
      this.imeis = null;
-
 
259998
      setAmountIsSet(false);
-
 
259999
      this.amount = 0.0;
-
 
260000
      setAffected_onIsSet(false);
-
 
260001
      this.affected_on = 0;
-
 
260002
    }
-
 
260003
 
-
 
260004
    public long getItem_id() {
-
 
260005
      return this.item_id;
-
 
260006
    }
-
 
260007
 
-
 
260008
    public void setItem_id(long item_id) {
-
 
260009
      this.item_id = item_id;
-
 
260010
      setItem_idIsSet(true);
-
 
260011
    }
-
 
260012
 
-
 
260013
    public void unsetItem_id() {
-
 
260014
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
260015
    }
-
 
260016
 
-
 
260017
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
260018
    public boolean isSetItem_id() {
-
 
260019
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
260020
    }
-
 
260021
 
-
 
260022
    public void setItem_idIsSet(boolean value) {
-
 
260023
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
260024
    }
-
 
260025
 
-
 
260026
    public int getImeisSize() {
-
 
260027
      return (this.imeis == null) ? 0 : this.imeis.size();
-
 
260028
    }
-
 
260029
 
-
 
260030
    public java.util.Iterator<String> getImeisIterator() {
-
 
260031
      return (this.imeis == null) ? null : this.imeis.iterator();
-
 
260032
    }
-
 
260033
 
-
 
260034
    public void addToImeis(String elem) {
-
 
260035
      if (this.imeis == null) {
-
 
260036
        this.imeis = new ArrayList<String>();
-
 
260037
      }
-
 
260038
      this.imeis.add(elem);
-
 
260039
    }
-
 
260040
 
-
 
260041
    public List<String> getImeis() {
-
 
260042
      return this.imeis;
-
 
260043
    }
-
 
260044
 
-
 
260045
    public void setImeis(List<String> imeis) {
-
 
260046
      this.imeis = imeis;
-
 
260047
    }
-
 
260048
 
-
 
260049
    public void unsetImeis() {
-
 
260050
      this.imeis = null;
-
 
260051
    }
-
 
260052
 
-
 
260053
    /** Returns true if field imeis is set (has been assigned a value) and false otherwise */
-
 
260054
    public boolean isSetImeis() {
-
 
260055
      return this.imeis != null;
-
 
260056
    }
-
 
260057
 
-
 
260058
    public void setImeisIsSet(boolean value) {
-
 
260059
      if (!value) {
-
 
260060
        this.imeis = null;
-
 
260061
      }
-
 
260062
    }
-
 
260063
 
-
 
260064
    public double getAmount() {
-
 
260065
      return this.amount;
-
 
260066
    }
-
 
260067
 
-
 
260068
    public void setAmount(double amount) {
-
 
260069
      this.amount = amount;
-
 
260070
      setAmountIsSet(true);
-
 
260071
    }
-
 
260072
 
-
 
260073
    public void unsetAmount() {
-
 
260074
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
-
 
260075
    }
-
 
260076
 
-
 
260077
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
-
 
260078
    public boolean isSetAmount() {
-
 
260079
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
-
 
260080
    }
-
 
260081
 
-
 
260082
    public void setAmountIsSet(boolean value) {
-
 
260083
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
-
 
260084
    }
-
 
260085
 
-
 
260086
    public long getAffected_on() {
-
 
260087
      return this.affected_on;
-
 
260088
    }
-
 
260089
 
-
 
260090
    public void setAffected_on(long affected_on) {
-
 
260091
      this.affected_on = affected_on;
-
 
260092
      setAffected_onIsSet(true);
-
 
260093
    }
-
 
260094
 
-
 
260095
    public void unsetAffected_on() {
-
 
260096
      __isset_bit_vector.clear(__AFFECTED_ON_ISSET_ID);
-
 
260097
    }
-
 
260098
 
-
 
260099
    /** Returns true if field affected_on is set (has been assigned a value) and false otherwise */
-
 
260100
    public boolean isSetAffected_on() {
-
 
260101
      return __isset_bit_vector.get(__AFFECTED_ON_ISSET_ID);
-
 
260102
    }
-
 
260103
 
-
 
260104
    public void setAffected_onIsSet(boolean value) {
-
 
260105
      __isset_bit_vector.set(__AFFECTED_ON_ISSET_ID, value);
-
 
260106
    }
-
 
260107
 
-
 
260108
    public void setFieldValue(_Fields field, Object value) {
-
 
260109
      switch (field) {
-
 
260110
      case ITEM_ID:
-
 
260111
        if (value == null) {
-
 
260112
          unsetItem_id();
-
 
260113
        } else {
-
 
260114
          setItem_id((Long)value);
-
 
260115
        }
-
 
260116
        break;
-
 
260117
 
-
 
260118
      case IMEIS:
-
 
260119
        if (value == null) {
-
 
260120
          unsetImeis();
-
 
260121
        } else {
-
 
260122
          setImeis((List<String>)value);
-
 
260123
        }
-
 
260124
        break;
-
 
260125
 
-
 
260126
      case AMOUNT:
-
 
260127
        if (value == null) {
-
 
260128
          unsetAmount();
-
 
260129
        } else {
-
 
260130
          setAmount((Double)value);
-
 
260131
        }
-
 
260132
        break;
-
 
260133
 
-
 
260134
      case AFFECTED_ON:
-
 
260135
        if (value == null) {
-
 
260136
          unsetAffected_on();
-
 
260137
        } else {
-
 
260138
          setAffected_on((Long)value);
-
 
260139
        }
-
 
260140
        break;
-
 
260141
 
-
 
260142
      }
-
 
260143
    }
-
 
260144
 
-
 
260145
    public Object getFieldValue(_Fields field) {
-
 
260146
      switch (field) {
-
 
260147
      case ITEM_ID:
-
 
260148
        return Long.valueOf(getItem_id());
-
 
260149
 
-
 
260150
      case IMEIS:
-
 
260151
        return getImeis();
-
 
260152
 
-
 
260153
      case AMOUNT:
-
 
260154
        return Double.valueOf(getAmount());
-
 
260155
 
-
 
260156
      case AFFECTED_ON:
-
 
260157
        return Long.valueOf(getAffected_on());
-
 
260158
 
-
 
260159
      }
-
 
260160
      throw new IllegalStateException();
-
 
260161
    }
-
 
260162
 
-
 
260163
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
260164
    public boolean isSet(_Fields field) {
-
 
260165
      if (field == null) {
-
 
260166
        throw new IllegalArgumentException();
-
 
260167
      }
-
 
260168
 
-
 
260169
      switch (field) {
-
 
260170
      case ITEM_ID:
-
 
260171
        return isSetItem_id();
-
 
260172
      case IMEIS:
-
 
260173
        return isSetImeis();
-
 
260174
      case AMOUNT:
-
 
260175
        return isSetAmount();
-
 
260176
      case AFFECTED_ON:
-
 
260177
        return isSetAffected_on();
-
 
260178
      }
-
 
260179
      throw new IllegalStateException();
-
 
260180
    }
-
 
260181
 
-
 
260182
    @Override
-
 
260183
    public boolean equals(Object that) {
-
 
260184
      if (that == null)
-
 
260185
        return false;
-
 
260186
      if (that instanceof addPriceDrop_args)
-
 
260187
        return this.equals((addPriceDrop_args)that);
-
 
260188
      return false;
-
 
260189
    }
-
 
260190
 
-
 
260191
    public boolean equals(addPriceDrop_args that) {
-
 
260192
      if (that == null)
-
 
260193
        return false;
-
 
260194
 
-
 
260195
      boolean this_present_item_id = true;
-
 
260196
      boolean that_present_item_id = true;
-
 
260197
      if (this_present_item_id || that_present_item_id) {
-
 
260198
        if (!(this_present_item_id && that_present_item_id))
-
 
260199
          return false;
-
 
260200
        if (this.item_id != that.item_id)
-
 
260201
          return false;
-
 
260202
      }
-
 
260203
 
-
 
260204
      boolean this_present_imeis = true && this.isSetImeis();
-
 
260205
      boolean that_present_imeis = true && that.isSetImeis();
-
 
260206
      if (this_present_imeis || that_present_imeis) {
-
 
260207
        if (!(this_present_imeis && that_present_imeis))
-
 
260208
          return false;
-
 
260209
        if (!this.imeis.equals(that.imeis))
-
 
260210
          return false;
-
 
260211
      }
-
 
260212
 
-
 
260213
      boolean this_present_amount = true;
-
 
260214
      boolean that_present_amount = true;
-
 
260215
      if (this_present_amount || that_present_amount) {
-
 
260216
        if (!(this_present_amount && that_present_amount))
-
 
260217
          return false;
-
 
260218
        if (this.amount != that.amount)
-
 
260219
          return false;
-
 
260220
      }
-
 
260221
 
-
 
260222
      boolean this_present_affected_on = true;
-
 
260223
      boolean that_present_affected_on = true;
-
 
260224
      if (this_present_affected_on || that_present_affected_on) {
-
 
260225
        if (!(this_present_affected_on && that_present_affected_on))
-
 
260226
          return false;
-
 
260227
        if (this.affected_on != that.affected_on)
-
 
260228
          return false;
-
 
260229
      }
-
 
260230
 
-
 
260231
      return true;
-
 
260232
    }
-
 
260233
 
-
 
260234
    @Override
-
 
260235
    public int hashCode() {
-
 
260236
      return 0;
-
 
260237
    }
-
 
260238
 
-
 
260239
    public int compareTo(addPriceDrop_args other) {
-
 
260240
      if (!getClass().equals(other.getClass())) {
-
 
260241
        return getClass().getName().compareTo(other.getClass().getName());
-
 
260242
      }
-
 
260243
 
-
 
260244
      int lastComparison = 0;
-
 
260245
      addPriceDrop_args typedOther = (addPriceDrop_args)other;
-
 
260246
 
-
 
260247
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
260248
      if (lastComparison != 0) {
-
 
260249
        return lastComparison;
-
 
260250
      }
-
 
260251
      if (isSetItem_id()) {
-
 
260252
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
260253
        if (lastComparison != 0) {
-
 
260254
          return lastComparison;
-
 
260255
        }
-
 
260256
      }
-
 
260257
      lastComparison = Boolean.valueOf(isSetImeis()).compareTo(typedOther.isSetImeis());
-
 
260258
      if (lastComparison != 0) {
-
 
260259
        return lastComparison;
-
 
260260
      }
-
 
260261
      if (isSetImeis()) {
-
 
260262
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imeis, typedOther.imeis);
-
 
260263
        if (lastComparison != 0) {
-
 
260264
          return lastComparison;
-
 
260265
        }
-
 
260266
      }
-
 
260267
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
-
 
260268
      if (lastComparison != 0) {
-
 
260269
        return lastComparison;
-
 
260270
      }
-
 
260271
      if (isSetAmount()) {
-
 
260272
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
-
 
260273
        if (lastComparison != 0) {
-
 
260274
          return lastComparison;
-
 
260275
        }
-
 
260276
      }
-
 
260277
      lastComparison = Boolean.valueOf(isSetAffected_on()).compareTo(typedOther.isSetAffected_on());
-
 
260278
      if (lastComparison != 0) {
-
 
260279
        return lastComparison;
-
 
260280
      }
-
 
260281
      if (isSetAffected_on()) {
-
 
260282
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.affected_on, typedOther.affected_on);
-
 
260283
        if (lastComparison != 0) {
-
 
260284
          return lastComparison;
-
 
260285
        }
-
 
260286
      }
-
 
260287
      return 0;
-
 
260288
    }
-
 
260289
 
-
 
260290
    public _Fields fieldForId(int fieldId) {
-
 
260291
      return _Fields.findByThriftId(fieldId);
-
 
260292
    }
-
 
260293
 
-
 
260294
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
260295
      org.apache.thrift.protocol.TField field;
-
 
260296
      iprot.readStructBegin();
-
 
260297
      while (true)
-
 
260298
      {
-
 
260299
        field = iprot.readFieldBegin();
-
 
260300
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
260301
          break;
-
 
260302
        }
-
 
260303
        switch (field.id) {
-
 
260304
          case 1: // ITEM_ID
-
 
260305
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
260306
              this.item_id = iprot.readI64();
-
 
260307
              setItem_idIsSet(true);
-
 
260308
            } else { 
-
 
260309
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
260310
            }
-
 
260311
            break;
-
 
260312
          case 2: // IMEIS
-
 
260313
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
260314
              {
-
 
260315
                org.apache.thrift.protocol.TList _list893 = iprot.readListBegin();
-
 
260316
                this.imeis = new ArrayList<String>(_list893.size);
-
 
260317
                for (int _i894 = 0; _i894 < _list893.size; ++_i894)
-
 
260318
                {
-
 
260319
                  String _elem895; // required
-
 
260320
                  _elem895 = iprot.readString();
-
 
260321
                  this.imeis.add(_elem895);
-
 
260322
                }
-
 
260323
                iprot.readListEnd();
-
 
260324
              }
-
 
260325
            } else { 
-
 
260326
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
260327
            }
-
 
260328
            break;
-
 
260329
          case 3: // AMOUNT
-
 
260330
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
260331
              this.amount = iprot.readDouble();
-
 
260332
              setAmountIsSet(true);
-
 
260333
            } else { 
-
 
260334
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
260335
            }
-
 
260336
            break;
-
 
260337
          case 4: // AFFECTED_ON
-
 
260338
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
260339
              this.affected_on = iprot.readI64();
-
 
260340
              setAffected_onIsSet(true);
-
 
260341
            } else { 
-
 
260342
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
260343
            }
-
 
260344
            break;
-
 
260345
          default:
-
 
260346
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
260347
        }
-
 
260348
        iprot.readFieldEnd();
-
 
260349
      }
-
 
260350
      iprot.readStructEnd();
-
 
260351
      validate();
-
 
260352
    }
-
 
260353
 
-
 
260354
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
260355
      validate();
-
 
260356
 
-
 
260357
      oprot.writeStructBegin(STRUCT_DESC);
-
 
260358
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
260359
      oprot.writeI64(this.item_id);
-
 
260360
      oprot.writeFieldEnd();
-
 
260361
      if (this.imeis != null) {
-
 
260362
        oprot.writeFieldBegin(IMEIS_FIELD_DESC);
-
 
260363
        {
-
 
260364
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.imeis.size()));
-
 
260365
          for (String _iter896 : this.imeis)
-
 
260366
          {
-
 
260367
            oprot.writeString(_iter896);
-
 
260368
          }
-
 
260369
          oprot.writeListEnd();
-
 
260370
        }
-
 
260371
        oprot.writeFieldEnd();
-
 
260372
      }
-
 
260373
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
-
 
260374
      oprot.writeDouble(this.amount);
-
 
260375
      oprot.writeFieldEnd();
-
 
260376
      oprot.writeFieldBegin(AFFECTED_ON_FIELD_DESC);
-
 
260377
      oprot.writeI64(this.affected_on);
-
 
260378
      oprot.writeFieldEnd();
-
 
260379
      oprot.writeFieldStop();
-
 
260380
      oprot.writeStructEnd();
-
 
260381
    }
-
 
260382
 
-
 
260383
    @Override
-
 
260384
    public String toString() {
-
 
260385
      StringBuilder sb = new StringBuilder("addPriceDrop_args(");
-
 
260386
      boolean first = true;
-
 
260387
 
-
 
260388
      sb.append("item_id:");
-
 
260389
      sb.append(this.item_id);
-
 
260390
      first = false;
-
 
260391
      if (!first) sb.append(", ");
-
 
260392
      sb.append("imeis:");
-
 
260393
      if (this.imeis == null) {
-
 
260394
        sb.append("null");
-
 
260395
      } else {
-
 
260396
        sb.append(this.imeis);
-
 
260397
      }
-
 
260398
      first = false;
-
 
260399
      if (!first) sb.append(", ");
-
 
260400
      sb.append("amount:");
-
 
260401
      sb.append(this.amount);
-
 
260402
      first = false;
-
 
260403
      if (!first) sb.append(", ");
-
 
260404
      sb.append("affected_on:");
-
 
260405
      sb.append(this.affected_on);
-
 
260406
      first = false;
-
 
260407
      sb.append(")");
-
 
260408
      return sb.toString();
-
 
260409
    }
-
 
260410
 
-
 
260411
    public void validate() throws org.apache.thrift.TException {
-
 
260412
      // check for required fields
-
 
260413
    }
-
 
260414
 
-
 
260415
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
260416
      try {
-
 
260417
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
260418
      } catch (org.apache.thrift.TException te) {
-
 
260419
        throw new java.io.IOException(te);
-
 
260420
      }
-
 
260421
    }
-
 
260422
 
-
 
260423
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
260424
      try {
-
 
260425
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
260426
        __isset_bit_vector = new BitSet(1);
-
 
260427
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
260428
      } catch (org.apache.thrift.TException te) {
-
 
260429
        throw new java.io.IOException(te);
-
 
260430
      }
-
 
260431
    }
-
 
260432
 
-
 
260433
  }
-
 
260434
 
-
 
260435
  public static class addPriceDrop_result implements org.apache.thrift.TBase<addPriceDrop_result, addPriceDrop_result._Fields>, java.io.Serializable, Cloneable   {
-
 
260436
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPriceDrop_result");
-
 
260437
 
-
 
260438
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
260439
 
-
 
260440
    private boolean success; // required
-
 
260441
 
-
 
260442
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
260443
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
260444
      SUCCESS((short)0, "success");
-
 
260445
 
-
 
260446
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
260447
 
-
 
260448
      static {
-
 
260449
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
260450
          byName.put(field.getFieldName(), field);
-
 
260451
        }
-
 
260452
      }
-
 
260453
 
-
 
260454
      /**
-
 
260455
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
260456
       */
-
 
260457
      public static _Fields findByThriftId(int fieldId) {
-
 
260458
        switch(fieldId) {
-
 
260459
          case 0: // SUCCESS
-
 
260460
            return SUCCESS;
-
 
260461
          default:
-
 
260462
            return null;
-
 
260463
        }
-
 
260464
      }
-
 
260465
 
-
 
260466
      /**
-
 
260467
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
260468
       * if it is not found.
-
 
260469
       */
-
 
260470
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
260471
        _Fields fields = findByThriftId(fieldId);
-
 
260472
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
260473
        return fields;
-
 
260474
      }
-
 
260475
 
-
 
260476
      /**
-
 
260477
       * Find the _Fields constant that matches name, or null if its not found.
-
 
260478
       */
-
 
260479
      public static _Fields findByName(String name) {
-
 
260480
        return byName.get(name);
-
 
260481
      }
-
 
260482
 
-
 
260483
      private final short _thriftId;
-
 
260484
      private final String _fieldName;
-
 
260485
 
-
 
260486
      _Fields(short thriftId, String fieldName) {
-
 
260487
        _thriftId = thriftId;
-
 
260488
        _fieldName = fieldName;
-
 
260489
      }
-
 
260490
 
-
 
260491
      public short getThriftFieldId() {
-
 
260492
        return _thriftId;
-
 
260493
      }
-
 
260494
 
-
 
260495
      public String getFieldName() {
-
 
260496
        return _fieldName;
-
 
260497
      }
-
 
260498
    }
-
 
260499
 
-
 
260500
    // isset id assignments
-
 
260501
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
260502
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
260503
 
-
 
260504
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
260505
    static {
-
 
260506
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
260507
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
260508
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
260509
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
260510
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPriceDrop_result.class, metaDataMap);
-
 
260511
    }
-
 
260512
 
-
 
260513
    public addPriceDrop_result() {
-
 
260514
    }
-
 
260515
 
-
 
260516
    public addPriceDrop_result(
-
 
260517
      boolean success)
-
 
260518
    {
-
 
260519
      this();
-
 
260520
      this.success = success;
-
 
260521
      setSuccessIsSet(true);
-
 
260522
    }
-
 
260523
 
-
 
260524
    /**
-
 
260525
     * Performs a deep copy on <i>other</i>.
-
 
260526
     */
-
 
260527
    public addPriceDrop_result(addPriceDrop_result other) {
-
 
260528
      __isset_bit_vector.clear();
-
 
260529
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
260530
      this.success = other.success;
-
 
260531
    }
-
 
260532
 
-
 
260533
    public addPriceDrop_result deepCopy() {
-
 
260534
      return new addPriceDrop_result(this);
-
 
260535
    }
-
 
260536
 
-
 
260537
    @Override
-
 
260538
    public void clear() {
-
 
260539
      setSuccessIsSet(false);
-
 
260540
      this.success = false;
-
 
260541
    }
-
 
260542
 
-
 
260543
    public boolean isSuccess() {
-
 
260544
      return this.success;
-
 
260545
    }
-
 
260546
 
-
 
260547
    public void setSuccess(boolean success) {
-
 
260548
      this.success = success;
-
 
260549
      setSuccessIsSet(true);
-
 
260550
    }
-
 
260551
 
-
 
260552
    public void unsetSuccess() {
-
 
260553
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
260554
    }
-
 
260555
 
-
 
260556
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
260557
    public boolean isSetSuccess() {
-
 
260558
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
260559
    }
-
 
260560
 
-
 
260561
    public void setSuccessIsSet(boolean value) {
-
 
260562
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
260563
    }
-
 
260564
 
-
 
260565
    public void setFieldValue(_Fields field, Object value) {
-
 
260566
      switch (field) {
-
 
260567
      case SUCCESS:
-
 
260568
        if (value == null) {
-
 
260569
          unsetSuccess();
-
 
260570
        } else {
-
 
260571
          setSuccess((Boolean)value);
-
 
260572
        }
-
 
260573
        break;
-
 
260574
 
-
 
260575
      }
-
 
260576
    }
-
 
260577
 
-
 
260578
    public Object getFieldValue(_Fields field) {
-
 
260579
      switch (field) {
-
 
260580
      case SUCCESS:
-
 
260581
        return Boolean.valueOf(isSuccess());
-
 
260582
 
-
 
260583
      }
-
 
260584
      throw new IllegalStateException();
-
 
260585
    }
-
 
260586
 
-
 
260587
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
260588
    public boolean isSet(_Fields field) {
-
 
260589
      if (field == null) {
-
 
260590
        throw new IllegalArgumentException();
-
 
260591
      }
-
 
260592
 
-
 
260593
      switch (field) {
-
 
260594
      case SUCCESS:
-
 
260595
        return isSetSuccess();
-
 
260596
      }
-
 
260597
      throw new IllegalStateException();
-
 
260598
    }
-
 
260599
 
-
 
260600
    @Override
-
 
260601
    public boolean equals(Object that) {
-
 
260602
      if (that == null)
-
 
260603
        return false;
-
 
260604
      if (that instanceof addPriceDrop_result)
-
 
260605
        return this.equals((addPriceDrop_result)that);
-
 
260606
      return false;
-
 
260607
    }
-
 
260608
 
-
 
260609
    public boolean equals(addPriceDrop_result that) {
-
 
260610
      if (that == null)
-
 
260611
        return false;
-
 
260612
 
-
 
260613
      boolean this_present_success = true;
-
 
260614
      boolean that_present_success = true;
-
 
260615
      if (this_present_success || that_present_success) {
-
 
260616
        if (!(this_present_success && that_present_success))
-
 
260617
          return false;
-
 
260618
        if (this.success != that.success)
-
 
260619
          return false;
-
 
260620
      }
-
 
260621
 
-
 
260622
      return true;
-
 
260623
    }
-
 
260624
 
-
 
260625
    @Override
-
 
260626
    public int hashCode() {
-
 
260627
      return 0;
-
 
260628
    }
-
 
260629
 
-
 
260630
    public int compareTo(addPriceDrop_result other) {
-
 
260631
      if (!getClass().equals(other.getClass())) {
-
 
260632
        return getClass().getName().compareTo(other.getClass().getName());
-
 
260633
      }
-
 
260634
 
-
 
260635
      int lastComparison = 0;
-
 
260636
      addPriceDrop_result typedOther = (addPriceDrop_result)other;
-
 
260637
 
-
 
260638
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
260639
      if (lastComparison != 0) {
-
 
260640
        return lastComparison;
-
 
260641
      }
-
 
260642
      if (isSetSuccess()) {
-
 
260643
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
260644
        if (lastComparison != 0) {
-
 
260645
          return lastComparison;
-
 
260646
        }
-
 
260647
      }
-
 
260648
      return 0;
-
 
260649
    }
-
 
260650
 
-
 
260651
    public _Fields fieldForId(int fieldId) {
-
 
260652
      return _Fields.findByThriftId(fieldId);
-
 
260653
    }
-
 
260654
 
-
 
260655
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
260656
      org.apache.thrift.protocol.TField field;
-
 
260657
      iprot.readStructBegin();
-
 
260658
      while (true)
-
 
260659
      {
-
 
260660
        field = iprot.readFieldBegin();
-
 
260661
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
260662
          break;
-
 
260663
        }
-
 
260664
        switch (field.id) {
-
 
260665
          case 0: // SUCCESS
-
 
260666
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
260667
              this.success = iprot.readBool();
-
 
260668
              setSuccessIsSet(true);
-
 
260669
            } else { 
-
 
260670
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
260671
            }
-
 
260672
            break;
-
 
260673
          default:
-
 
260674
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
260675
        }
-
 
260676
        iprot.readFieldEnd();
-
 
260677
      }
-
 
260678
      iprot.readStructEnd();
-
 
260679
      validate();
-
 
260680
    }
-
 
260681
 
-
 
260682
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
260683
      oprot.writeStructBegin(STRUCT_DESC);
-
 
260684
 
-
 
260685
      if (this.isSetSuccess()) {
-
 
260686
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
260687
        oprot.writeBool(this.success);
-
 
260688
        oprot.writeFieldEnd();
-
 
260689
      }
-
 
260690
      oprot.writeFieldStop();
-
 
260691
      oprot.writeStructEnd();
-
 
260692
    }
-
 
260693
 
-
 
260694
    @Override
-
 
260695
    public String toString() {
-
 
260696
      StringBuilder sb = new StringBuilder("addPriceDrop_result(");
-
 
260697
      boolean first = true;
-
 
260698
 
-
 
260699
      sb.append("success:");
-
 
260700
      sb.append(this.success);
-
 
260701
      first = false;
-
 
260702
      sb.append(")");
-
 
260703
      return sb.toString();
-
 
260704
    }
-
 
260705
 
259741
    public void validate() throws org.apache.thrift.TException {
260706
    public void validate() throws org.apache.thrift.TException {
259742
      // check for required fields
260707
      // check for required fields
259743
    }
260708
    }
259744
 
260709
 
259745
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
260710
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {