Subversion Repositories SmartDukaan

Rev

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

Rev 12620 Rev 12888
Line 578... Line 578...
578
 
578
 
579
    public boolean updateItemStateVat(long itemId, Map<Long,Double> statevat) throws org.apache.thrift.TException;
579
    public boolean updateItemStateVat(long itemId, Map<Long,Double> statevat) throws org.apache.thrift.TException;
580
 
580
 
581
    public Map<Long,ExclusiveAffiliateItemInfo> getExAffiliateItemInfo() throws org.apache.thrift.TException;
581
    public Map<Long,ExclusiveAffiliateItemInfo> getExAffiliateItemInfo() throws org.apache.thrift.TException;
582
 
582
 
-
 
583
    public List<Amazonlisted> getAllItemstoListOnFbg() throws org.apache.thrift.TException;
-
 
584
 
583
  }
585
  }
584
 
586
 
585
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
587
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
586
 
588
 
587
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
589
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 940... Line 942...
940
 
942
 
941
    public void updateItemStateVat(long itemId, Map<Long,Double> statevat, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemStateVat_call> resultHandler) throws org.apache.thrift.TException;
943
    public void updateItemStateVat(long itemId, Map<Long,Double> statevat, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemStateVat_call> resultHandler) throws org.apache.thrift.TException;
942
 
944
 
943
    public void getExAffiliateItemInfo(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getExAffiliateItemInfo_call> resultHandler) throws org.apache.thrift.TException;
945
    public void getExAffiliateItemInfo(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getExAffiliateItemInfo_call> resultHandler) throws org.apache.thrift.TException;
944
 
946
 
-
 
947
    public void getAllItemstoListOnFbg(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnFbg_call> resultHandler) throws org.apache.thrift.TException;
-
 
948
 
945
  }
949
  }
946
 
950
 
947
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
951
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
948
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
952
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
949
      public Factory() {}
953
      public Factory() {}
Line 5194... Line 5198...
5194
        return result.success;
5198
        return result.success;
5195
      }
5199
      }
5196
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getExAffiliateItemInfo failed: unknown result");
5200
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getExAffiliateItemInfo failed: unknown result");
5197
    }
5201
    }
5198
 
5202
 
-
 
5203
    public List<Amazonlisted> getAllItemstoListOnFbg() throws org.apache.thrift.TException
-
 
5204
    {
-
 
5205
      send_getAllItemstoListOnFbg();
-
 
5206
      return recv_getAllItemstoListOnFbg();
-
 
5207
    }
-
 
5208
 
-
 
5209
    public void send_getAllItemstoListOnFbg() throws org.apache.thrift.TException
-
 
5210
    {
-
 
5211
      getAllItemstoListOnFbg_args args = new getAllItemstoListOnFbg_args();
-
 
5212
      sendBase("getAllItemstoListOnFbg", args);
-
 
5213
    }
-
 
5214
 
-
 
5215
    public List<Amazonlisted> recv_getAllItemstoListOnFbg() throws org.apache.thrift.TException
-
 
5216
    {
-
 
5217
      getAllItemstoListOnFbg_result result = new getAllItemstoListOnFbg_result();
-
 
5218
      receiveBase(result, "getAllItemstoListOnFbg");
-
 
5219
      if (result.isSetSuccess()) {
-
 
5220
        return result.success;
-
 
5221
      }
-
 
5222
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbg failed: unknown result");
-
 
5223
    }
-
 
5224
 
5199
  }
5225
  }
5200
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5226
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5201
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5227
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5202
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5228
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5203
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5229
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 11096... Line 11122...
11096
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11122
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11097
        return (new Client(prot)).recv_getExAffiliateItemInfo();
11123
        return (new Client(prot)).recv_getExAffiliateItemInfo();
11098
      }
11124
      }
11099
    }
11125
    }
11100
 
11126
 
-
 
11127
    public void getAllItemstoListOnFbg(org.apache.thrift.async.AsyncMethodCallback<getAllItemstoListOnFbg_call> resultHandler) throws org.apache.thrift.TException {
-
 
11128
      checkReady();
-
 
11129
      getAllItemstoListOnFbg_call method_call = new getAllItemstoListOnFbg_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
11130
      this.___currentMethod = method_call;
-
 
11131
      ___manager.call(method_call);
-
 
11132
    }
-
 
11133
 
-
 
11134
    public static class getAllItemstoListOnFbg_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11135
      public getAllItemstoListOnFbg_call(org.apache.thrift.async.AsyncMethodCallback<getAllItemstoListOnFbg_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 {
-
 
11136
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11137
      }
-
 
11138
 
-
 
11139
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11140
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemstoListOnFbg", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11141
        getAllItemstoListOnFbg_args args = new getAllItemstoListOnFbg_args();
-
 
11142
        args.write(prot);
-
 
11143
        prot.writeMessageEnd();
-
 
11144
      }
-
 
11145
 
-
 
11146
      public List<Amazonlisted> getResult() throws org.apache.thrift.TException {
-
 
11147
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11148
          throw new IllegalStateException("Method call not finished!");
-
 
11149
        }
-
 
11150
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11151
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11152
        return (new Client(prot)).recv_getAllItemstoListOnFbg();
-
 
11153
      }
-
 
11154
    }
-
 
11155
 
11101
  }
11156
  }
11102
 
11157
 
11103
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11158
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11104
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11159
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11105
    public Processor(I iface) {
11160
    public Processor(I iface) {
Line 11288... Line 11343...
11288
      processMap.put("getAmazonPromotion", new getAmazonPromotion());
11343
      processMap.put("getAmazonPromotion", new getAmazonPromotion());
11289
      processMap.put("updateAmazonPromotion", new updateAmazonPromotion());
11344
      processMap.put("updateAmazonPromotion", new updateAmazonPromotion());
11290
      processMap.put("markPartiallyActive", new markPartiallyActive());
11345
      processMap.put("markPartiallyActive", new markPartiallyActive());
11291
      processMap.put("updateItemStateVat", new updateItemStateVat());
11346
      processMap.put("updateItemStateVat", new updateItemStateVat());
11292
      processMap.put("getExAffiliateItemInfo", new getExAffiliateItemInfo());
11347
      processMap.put("getExAffiliateItemInfo", new getExAffiliateItemInfo());
-
 
11348
      processMap.put("getAllItemstoListOnFbg", new getAllItemstoListOnFbg());
11293
      return processMap;
11349
      return processMap;
11294
    }
11350
    }
11295
 
11351
 
11296
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11352
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11297
      public addItem() {
11353
      public addItem() {
Line 14391... Line 14447...
14391
        result.success = iface.getExAffiliateItemInfo();
14447
        result.success = iface.getExAffiliateItemInfo();
14392
        return result;
14448
        return result;
14393
      }
14449
      }
14394
    }
14450
    }
14395
 
14451
 
-
 
14452
    private static class getAllItemstoListOnFbg<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemstoListOnFbg_args> {
-
 
14453
      public getAllItemstoListOnFbg() {
-
 
14454
        super("getAllItemstoListOnFbg");
-
 
14455
      }
-
 
14456
 
-
 
14457
      protected getAllItemstoListOnFbg_args getEmptyArgsInstance() {
-
 
14458
        return new getAllItemstoListOnFbg_args();
-
 
14459
      }
-
 
14460
 
-
 
14461
      protected getAllItemstoListOnFbg_result getResult(I iface, getAllItemstoListOnFbg_args args) throws org.apache.thrift.TException {
-
 
14462
        getAllItemstoListOnFbg_result result = new getAllItemstoListOnFbg_result();
-
 
14463
        result.success = iface.getAllItemstoListOnFbg();
-
 
14464
        return result;
-
 
14465
      }
-
 
14466
    }
-
 
14467
 
14396
  }
14468
  }
14397
 
14469
 
14398
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
14470
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
14399
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
14471
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
14400
 
14472
 
Line 129211... Line 129283...
129211
      boolean first = true;
129283
      boolean first = true;
129212
 
129284
 
129213
      sb.append("success:");
129285
      sb.append("success:");
129214
      if (this.success == null) {
129286
      if (this.success == null) {
129215
        sb.append("null");
129287
        sb.append("null");
-
 
129288
      } else {
-
 
129289
        sb.append(this.success);
-
 
129290
      }
-
 
129291
      first = false;
-
 
129292
      sb.append(")");
-
 
129293
      return sb.toString();
-
 
129294
    }
-
 
129295
 
-
 
129296
    public void validate() throws org.apache.thrift.TException {
-
 
129297
      // check for required fields
-
 
129298
    }
-
 
129299
 
-
 
129300
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
129301
      try {
-
 
129302
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
129303
      } catch (org.apache.thrift.TException te) {
-
 
129304
        throw new java.io.IOException(te);
-
 
129305
      }
-
 
129306
    }
-
 
129307
 
-
 
129308
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
129309
      try {
-
 
129310
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
129311
      } catch (org.apache.thrift.TException te) {
-
 
129312
        throw new java.io.IOException(te);
-
 
129313
      }
-
 
129314
    }
-
 
129315
 
-
 
129316
  }
-
 
129317
 
-
 
129318
  public static class getAllItemstoListOnFbg_args implements org.apache.thrift.TBase<getAllItemstoListOnFbg_args, getAllItemstoListOnFbg_args._Fields>, java.io.Serializable, Cloneable   {
-
 
129319
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemstoListOnFbg_args");
-
 
129320
 
-
 
129321
 
-
 
129322
 
-
 
129323
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
129324
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
129325
;
-
 
129326
 
-
 
129327
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
129328
 
-
 
129329
      static {
-
 
129330
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
129331
          byName.put(field.getFieldName(), field);
-
 
129332
        }
-
 
129333
      }
-
 
129334
 
-
 
129335
      /**
-
 
129336
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
129337
       */
-
 
129338
      public static _Fields findByThriftId(int fieldId) {
-
 
129339
        switch(fieldId) {
-
 
129340
          default:
-
 
129341
            return null;
-
 
129342
        }
-
 
129343
      }
-
 
129344
 
-
 
129345
      /**
-
 
129346
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
129347
       * if it is not found.
-
 
129348
       */
-
 
129349
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
129350
        _Fields fields = findByThriftId(fieldId);
-
 
129351
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
129352
        return fields;
-
 
129353
      }
-
 
129354
 
-
 
129355
      /**
-
 
129356
       * Find the _Fields constant that matches name, or null if its not found.
-
 
129357
       */
-
 
129358
      public static _Fields findByName(String name) {
-
 
129359
        return byName.get(name);
-
 
129360
      }
-
 
129361
 
-
 
129362
      private final short _thriftId;
-
 
129363
      private final String _fieldName;
-
 
129364
 
-
 
129365
      _Fields(short thriftId, String fieldName) {
-
 
129366
        _thriftId = thriftId;
-
 
129367
        _fieldName = fieldName;
-
 
129368
      }
-
 
129369
 
-
 
129370
      public short getThriftFieldId() {
-
 
129371
        return _thriftId;
-
 
129372
      }
-
 
129373
 
-
 
129374
      public String getFieldName() {
-
 
129375
        return _fieldName;
-
 
129376
      }
-
 
129377
    }
-
 
129378
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
129379
    static {
-
 
129380
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
129381
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
129382
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemstoListOnFbg_args.class, metaDataMap);
-
 
129383
    }
-
 
129384
 
-
 
129385
    public getAllItemstoListOnFbg_args() {
-
 
129386
    }
-
 
129387
 
-
 
129388
    /**
-
 
129389
     * Performs a deep copy on <i>other</i>.
-
 
129390
     */
-
 
129391
    public getAllItemstoListOnFbg_args(getAllItemstoListOnFbg_args other) {
-
 
129392
    }
-
 
129393
 
-
 
129394
    public getAllItemstoListOnFbg_args deepCopy() {
-
 
129395
      return new getAllItemstoListOnFbg_args(this);
-
 
129396
    }
-
 
129397
 
-
 
129398
    @Override
-
 
129399
    public void clear() {
-
 
129400
    }
-
 
129401
 
-
 
129402
    public void setFieldValue(_Fields field, Object value) {
-
 
129403
      switch (field) {
-
 
129404
      }
-
 
129405
    }
-
 
129406
 
-
 
129407
    public Object getFieldValue(_Fields field) {
-
 
129408
      switch (field) {
-
 
129409
      }
-
 
129410
      throw new IllegalStateException();
-
 
129411
    }
-
 
129412
 
-
 
129413
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
129414
    public boolean isSet(_Fields field) {
-
 
129415
      if (field == null) {
-
 
129416
        throw new IllegalArgumentException();
-
 
129417
      }
-
 
129418
 
-
 
129419
      switch (field) {
-
 
129420
      }
-
 
129421
      throw new IllegalStateException();
-
 
129422
    }
-
 
129423
 
-
 
129424
    @Override
-
 
129425
    public boolean equals(Object that) {
-
 
129426
      if (that == null)
-
 
129427
        return false;
-
 
129428
      if (that instanceof getAllItemstoListOnFbg_args)
-
 
129429
        return this.equals((getAllItemstoListOnFbg_args)that);
-
 
129430
      return false;
-
 
129431
    }
-
 
129432
 
-
 
129433
    public boolean equals(getAllItemstoListOnFbg_args that) {
-
 
129434
      if (that == null)
-
 
129435
        return false;
-
 
129436
 
-
 
129437
      return true;
-
 
129438
    }
-
 
129439
 
-
 
129440
    @Override
-
 
129441
    public int hashCode() {
-
 
129442
      return 0;
-
 
129443
    }
-
 
129444
 
-
 
129445
    public int compareTo(getAllItemstoListOnFbg_args other) {
-
 
129446
      if (!getClass().equals(other.getClass())) {
-
 
129447
        return getClass().getName().compareTo(other.getClass().getName());
-
 
129448
      }
-
 
129449
 
-
 
129450
      int lastComparison = 0;
-
 
129451
      getAllItemstoListOnFbg_args typedOther = (getAllItemstoListOnFbg_args)other;
-
 
129452
 
-
 
129453
      return 0;
-
 
129454
    }
-
 
129455
 
-
 
129456
    public _Fields fieldForId(int fieldId) {
-
 
129457
      return _Fields.findByThriftId(fieldId);
-
 
129458
    }
-
 
129459
 
-
 
129460
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
129461
      org.apache.thrift.protocol.TField field;
-
 
129462
      iprot.readStructBegin();
-
 
129463
      while (true)
-
 
129464
      {
-
 
129465
        field = iprot.readFieldBegin();
-
 
129466
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
129467
          break;
-
 
129468
        }
-
 
129469
        switch (field.id) {
-
 
129470
          default:
-
 
129471
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
129472
        }
-
 
129473
        iprot.readFieldEnd();
-
 
129474
      }
-
 
129475
      iprot.readStructEnd();
-
 
129476
      validate();
-
 
129477
    }
-
 
129478
 
-
 
129479
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
129480
      validate();
-
 
129481
 
-
 
129482
      oprot.writeStructBegin(STRUCT_DESC);
-
 
129483
      oprot.writeFieldStop();
-
 
129484
      oprot.writeStructEnd();
-
 
129485
    }
-
 
129486
 
-
 
129487
    @Override
-
 
129488
    public String toString() {
-
 
129489
      StringBuilder sb = new StringBuilder("getAllItemstoListOnFbg_args(");
-
 
129490
      boolean first = true;
-
 
129491
 
-
 
129492
      sb.append(")");
-
 
129493
      return sb.toString();
-
 
129494
    }
-
 
129495
 
-
 
129496
    public void validate() throws org.apache.thrift.TException {
-
 
129497
      // check for required fields
-
 
129498
    }
-
 
129499
 
-
 
129500
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
129501
      try {
-
 
129502
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
129503
      } catch (org.apache.thrift.TException te) {
-
 
129504
        throw new java.io.IOException(te);
-
 
129505
      }
-
 
129506
    }
-
 
129507
 
-
 
129508
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
129509
      try {
-
 
129510
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
129511
      } catch (org.apache.thrift.TException te) {
-
 
129512
        throw new java.io.IOException(te);
-
 
129513
      }
-
 
129514
    }
-
 
129515
 
-
 
129516
  }
-
 
129517
 
-
 
129518
  public static class getAllItemstoListOnFbg_result implements org.apache.thrift.TBase<getAllItemstoListOnFbg_result, getAllItemstoListOnFbg_result._Fields>, java.io.Serializable, Cloneable   {
-
 
129519
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemstoListOnFbg_result");
-
 
129520
 
-
 
129521
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
129522
 
-
 
129523
    private List<Amazonlisted> success; // required
-
 
129524
 
-
 
129525
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
129526
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
129527
      SUCCESS((short)0, "success");
-
 
129528
 
-
 
129529
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
129530
 
-
 
129531
      static {
-
 
129532
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
129533
          byName.put(field.getFieldName(), field);
-
 
129534
        }
-
 
129535
      }
-
 
129536
 
-
 
129537
      /**
-
 
129538
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
129539
       */
-
 
129540
      public static _Fields findByThriftId(int fieldId) {
-
 
129541
        switch(fieldId) {
-
 
129542
          case 0: // SUCCESS
-
 
129543
            return SUCCESS;
-
 
129544
          default:
-
 
129545
            return null;
-
 
129546
        }
-
 
129547
      }
-
 
129548
 
-
 
129549
      /**
-
 
129550
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
129551
       * if it is not found.
-
 
129552
       */
-
 
129553
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
129554
        _Fields fields = findByThriftId(fieldId);
-
 
129555
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
129556
        return fields;
-
 
129557
      }
-
 
129558
 
-
 
129559
      /**
-
 
129560
       * Find the _Fields constant that matches name, or null if its not found.
-
 
129561
       */
-
 
129562
      public static _Fields findByName(String name) {
-
 
129563
        return byName.get(name);
-
 
129564
      }
-
 
129565
 
-
 
129566
      private final short _thriftId;
-
 
129567
      private final String _fieldName;
-
 
129568
 
-
 
129569
      _Fields(short thriftId, String fieldName) {
-
 
129570
        _thriftId = thriftId;
-
 
129571
        _fieldName = fieldName;
-
 
129572
      }
-
 
129573
 
-
 
129574
      public short getThriftFieldId() {
-
 
129575
        return _thriftId;
-
 
129576
      }
-
 
129577
 
-
 
129578
      public String getFieldName() {
-
 
129579
        return _fieldName;
-
 
129580
      }
-
 
129581
    }
-
 
129582
 
-
 
129583
    // isset id assignments
-
 
129584
 
-
 
129585
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
129586
    static {
-
 
129587
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
129588
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
129589
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
129590
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));
-
 
129591
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
129592
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemstoListOnFbg_result.class, metaDataMap);
-
 
129593
    }
-
 
129594
 
-
 
129595
    public getAllItemstoListOnFbg_result() {
-
 
129596
    }
-
 
129597
 
-
 
129598
    public getAllItemstoListOnFbg_result(
-
 
129599
      List<Amazonlisted> success)
-
 
129600
    {
-
 
129601
      this();
-
 
129602
      this.success = success;
-
 
129603
    }
-
 
129604
 
-
 
129605
    /**
-
 
129606
     * Performs a deep copy on <i>other</i>.
-
 
129607
     */
-
 
129608
    public getAllItemstoListOnFbg_result(getAllItemstoListOnFbg_result other) {
-
 
129609
      if (other.isSetSuccess()) {
-
 
129610
        List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();
-
 
129611
        for (Amazonlisted other_element : other.success) {
-
 
129612
          __this__success.add(new Amazonlisted(other_element));
-
 
129613
        }
-
 
129614
        this.success = __this__success;
-
 
129615
      }
-
 
129616
    }
-
 
129617
 
-
 
129618
    public getAllItemstoListOnFbg_result deepCopy() {
-
 
129619
      return new getAllItemstoListOnFbg_result(this);
-
 
129620
    }
-
 
129621
 
-
 
129622
    @Override
-
 
129623
    public void clear() {
-
 
129624
      this.success = null;
-
 
129625
    }
-
 
129626
 
-
 
129627
    public int getSuccessSize() {
-
 
129628
      return (this.success == null) ? 0 : this.success.size();
-
 
129629
    }
-
 
129630
 
-
 
129631
    public java.util.Iterator<Amazonlisted> getSuccessIterator() {
-
 
129632
      return (this.success == null) ? null : this.success.iterator();
-
 
129633
    }
-
 
129634
 
-
 
129635
    public void addToSuccess(Amazonlisted elem) {
-
 
129636
      if (this.success == null) {
-
 
129637
        this.success = new ArrayList<Amazonlisted>();
-
 
129638
      }
-
 
129639
      this.success.add(elem);
-
 
129640
    }
-
 
129641
 
-
 
129642
    public List<Amazonlisted> getSuccess() {
-
 
129643
      return this.success;
-
 
129644
    }
-
 
129645
 
-
 
129646
    public void setSuccess(List<Amazonlisted> success) {
-
 
129647
      this.success = success;
-
 
129648
    }
-
 
129649
 
-
 
129650
    public void unsetSuccess() {
-
 
129651
      this.success = null;
-
 
129652
    }
-
 
129653
 
-
 
129654
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
129655
    public boolean isSetSuccess() {
-
 
129656
      return this.success != null;
-
 
129657
    }
-
 
129658
 
-
 
129659
    public void setSuccessIsSet(boolean value) {
-
 
129660
      if (!value) {
-
 
129661
        this.success = null;
-
 
129662
      }
-
 
129663
    }
-
 
129664
 
-
 
129665
    public void setFieldValue(_Fields field, Object value) {
-
 
129666
      switch (field) {
-
 
129667
      case SUCCESS:
-
 
129668
        if (value == null) {
-
 
129669
          unsetSuccess();
-
 
129670
        } else {
-
 
129671
          setSuccess((List<Amazonlisted>)value);
-
 
129672
        }
-
 
129673
        break;
-
 
129674
 
-
 
129675
      }
-
 
129676
    }
-
 
129677
 
-
 
129678
    public Object getFieldValue(_Fields field) {
-
 
129679
      switch (field) {
-
 
129680
      case SUCCESS:
-
 
129681
        return getSuccess();
-
 
129682
 
-
 
129683
      }
-
 
129684
      throw new IllegalStateException();
-
 
129685
    }
-
 
129686
 
-
 
129687
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
129688
    public boolean isSet(_Fields field) {
-
 
129689
      if (field == null) {
-
 
129690
        throw new IllegalArgumentException();
-
 
129691
      }
-
 
129692
 
-
 
129693
      switch (field) {
-
 
129694
      case SUCCESS:
-
 
129695
        return isSetSuccess();
-
 
129696
      }
-
 
129697
      throw new IllegalStateException();
-
 
129698
    }
-
 
129699
 
-
 
129700
    @Override
-
 
129701
    public boolean equals(Object that) {
-
 
129702
      if (that == null)
-
 
129703
        return false;
-
 
129704
      if (that instanceof getAllItemstoListOnFbg_result)
-
 
129705
        return this.equals((getAllItemstoListOnFbg_result)that);
-
 
129706
      return false;
-
 
129707
    }
-
 
129708
 
-
 
129709
    public boolean equals(getAllItemstoListOnFbg_result that) {
-
 
129710
      if (that == null)
-
 
129711
        return false;
-
 
129712
 
-
 
129713
      boolean this_present_success = true && this.isSetSuccess();
-
 
129714
      boolean that_present_success = true && that.isSetSuccess();
-
 
129715
      if (this_present_success || that_present_success) {
-
 
129716
        if (!(this_present_success && that_present_success))
-
 
129717
          return false;
-
 
129718
        if (!this.success.equals(that.success))
-
 
129719
          return false;
-
 
129720
      }
-
 
129721
 
-
 
129722
      return true;
-
 
129723
    }
-
 
129724
 
-
 
129725
    @Override
-
 
129726
    public int hashCode() {
-
 
129727
      return 0;
-
 
129728
    }
-
 
129729
 
-
 
129730
    public int compareTo(getAllItemstoListOnFbg_result other) {
-
 
129731
      if (!getClass().equals(other.getClass())) {
-
 
129732
        return getClass().getName().compareTo(other.getClass().getName());
-
 
129733
      }
-
 
129734
 
-
 
129735
      int lastComparison = 0;
-
 
129736
      getAllItemstoListOnFbg_result typedOther = (getAllItemstoListOnFbg_result)other;
-
 
129737
 
-
 
129738
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
129739
      if (lastComparison != 0) {
-
 
129740
        return lastComparison;
-
 
129741
      }
-
 
129742
      if (isSetSuccess()) {
-
 
129743
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
129744
        if (lastComparison != 0) {
-
 
129745
          return lastComparison;
-
 
129746
        }
-
 
129747
      }
-
 
129748
      return 0;
-
 
129749
    }
-
 
129750
 
-
 
129751
    public _Fields fieldForId(int fieldId) {
-
 
129752
      return _Fields.findByThriftId(fieldId);
-
 
129753
    }
-
 
129754
 
-
 
129755
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
129756
      org.apache.thrift.protocol.TField field;
-
 
129757
      iprot.readStructBegin();
-
 
129758
      while (true)
-
 
129759
      {
-
 
129760
        field = iprot.readFieldBegin();
-
 
129761
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
129762
          break;
-
 
129763
        }
-
 
129764
        switch (field.id) {
-
 
129765
          case 0: // SUCCESS
-
 
129766
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
129767
              {
-
 
129768
                org.apache.thrift.protocol.TList _list439 = iprot.readListBegin();
-
 
129769
                this.success = new ArrayList<Amazonlisted>(_list439.size);
-
 
129770
                for (int _i440 = 0; _i440 < _list439.size; ++_i440)
-
 
129771
                {
-
 
129772
                  Amazonlisted _elem441; // required
-
 
129773
                  _elem441 = new Amazonlisted();
-
 
129774
                  _elem441.read(iprot);
-
 
129775
                  this.success.add(_elem441);
-
 
129776
                }
-
 
129777
                iprot.readListEnd();
-
 
129778
              }
-
 
129779
            } else { 
-
 
129780
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
129781
            }
-
 
129782
            break;
-
 
129783
          default:
-
 
129784
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
129785
        }
-
 
129786
        iprot.readFieldEnd();
-
 
129787
      }
-
 
129788
      iprot.readStructEnd();
-
 
129789
      validate();
-
 
129790
    }
-
 
129791
 
-
 
129792
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
129793
      oprot.writeStructBegin(STRUCT_DESC);
-
 
129794
 
-
 
129795
      if (this.isSetSuccess()) {
-
 
129796
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
129797
        {
-
 
129798
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
129799
          for (Amazonlisted _iter442 : this.success)
-
 
129800
          {
-
 
129801
            _iter442.write(oprot);
-
 
129802
          }
-
 
129803
          oprot.writeListEnd();
-
 
129804
        }
-
 
129805
        oprot.writeFieldEnd();
-
 
129806
      }
-
 
129807
      oprot.writeFieldStop();
-
 
129808
      oprot.writeStructEnd();
-
 
129809
    }
-
 
129810
 
-
 
129811
    @Override
-
 
129812
    public String toString() {
-
 
129813
      StringBuilder sb = new StringBuilder("getAllItemstoListOnFbg_result(");
-
 
129814
      boolean first = true;
-
 
129815
 
-
 
129816
      sb.append("success:");
-
 
129817
      if (this.success == null) {
-
 
129818
        sb.append("null");
129216
      } else {
129819
      } else {
129217
        sb.append(this.success);
129820
        sb.append(this.success);
129218
      }
129821
      }
129219
      first = false;
129822
      first = false;
129220
      sb.append(")");
129823
      sb.append(")");