Subversion Repositories SmartDukaan

Rev

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

Rev 11751 Rev 12531
Line 354... Line 354...
354
 
354
 
355
    public Map<Long,Long> getItemsInPurchaseReturn(long purchaseReturnId, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException;
355
    public Map<Long,Long> getItemsInPurchaseReturn(long purchaseReturnId, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException;
356
 
356
 
357
    public List<Scan> getScansForInventoryItem(long inventoryItemId, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException;
357
    public List<Scan> getScansForInventoryItem(long inventoryItemId, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException;
358
 
358
 
-
 
359
    public List<String> checkGrnImeiStatus(List<String> imeiNos) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
360
 
359
  }
361
  }
360
 
362
 
361
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
363
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
362
 
364
 
363
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
365
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 482... Line 484...
482
 
484
 
483
    public void getItemsInPurchaseReturn(long purchaseReturnId, ScanType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsInPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
485
    public void getItemsInPurchaseReturn(long purchaseReturnId, ScanType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsInPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
484
 
486
 
485
    public void getScansForInventoryItem(long inventoryItemId, ScanType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScansForInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
487
    public void getScansForInventoryItem(long inventoryItemId, ScanType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScansForInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
486
 
488
 
-
 
489
    public void checkGrnImeiStatus(List<String> imeiNos, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkGrnImeiStatus_call> resultHandler) throws org.apache.thrift.TException;
-
 
490
 
487
  }
491
  }
488
 
492
 
489
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
493
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
490
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
494
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
491
      public Factory() {}
495
      public Factory() {}
Line 2079... Line 2083...
2079
        throw result.ex;
2083
        throw result.ex;
2080
      }
2084
      }
2081
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScansForInventoryItem failed: unknown result");
2085
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScansForInventoryItem failed: unknown result");
2082
    }
2086
    }
2083
 
2087
 
-
 
2088
    public List<String> checkGrnImeiStatus(List<String> imeiNos) throws WarehouseServiceException, org.apache.thrift.TException
-
 
2089
    {
-
 
2090
      send_checkGrnImeiStatus(imeiNos);
-
 
2091
      return recv_checkGrnImeiStatus();
-
 
2092
    }
-
 
2093
 
-
 
2094
    public void send_checkGrnImeiStatus(List<String> imeiNos) throws org.apache.thrift.TException
-
 
2095
    {
-
 
2096
      checkGrnImeiStatus_args args = new checkGrnImeiStatus_args();
-
 
2097
      args.setImeiNos(imeiNos);
-
 
2098
      sendBase("checkGrnImeiStatus", args);
-
 
2099
    }
-
 
2100
 
-
 
2101
    public List<String> recv_checkGrnImeiStatus() throws WarehouseServiceException, org.apache.thrift.TException
-
 
2102
    {
-
 
2103
      checkGrnImeiStatus_result result = new checkGrnImeiStatus_result();
-
 
2104
      receiveBase(result, "checkGrnImeiStatus");
-
 
2105
      if (result.isSetSuccess()) {
-
 
2106
        return result.success;
-
 
2107
      }
-
 
2108
      if (result.ex != null) {
-
 
2109
        throw result.ex;
-
 
2110
      }
-
 
2111
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkGrnImeiStatus failed: unknown result");
-
 
2112
    }
-
 
2113
 
2084
  }
2114
  }
2085
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2115
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2086
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2116
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2087
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2117
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2088
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2118
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4303... Line 4333...
4303
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4333
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4304
        return (new Client(prot)).recv_getScansForInventoryItem();
4334
        return (new Client(prot)).recv_getScansForInventoryItem();
4305
      }
4335
      }
4306
    }
4336
    }
4307
 
4337
 
-
 
4338
    public void checkGrnImeiStatus(List<String> imeiNos, org.apache.thrift.async.AsyncMethodCallback<checkGrnImeiStatus_call> resultHandler) throws org.apache.thrift.TException {
-
 
4339
      checkReady();
-
 
4340
      checkGrnImeiStatus_call method_call = new checkGrnImeiStatus_call(imeiNos, resultHandler, this, ___protocolFactory, ___transport);
-
 
4341
      this.___currentMethod = method_call;
-
 
4342
      ___manager.call(method_call);
-
 
4343
    }
-
 
4344
 
-
 
4345
    public static class checkGrnImeiStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4346
      private List<String> imeiNos;
-
 
4347
      public checkGrnImeiStatus_call(List<String> imeiNos, org.apache.thrift.async.AsyncMethodCallback<checkGrnImeiStatus_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 {
-
 
4348
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4349
        this.imeiNos = imeiNos;
-
 
4350
      }
-
 
4351
 
-
 
4352
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4353
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("checkGrnImeiStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4354
        checkGrnImeiStatus_args args = new checkGrnImeiStatus_args();
-
 
4355
        args.setImeiNos(imeiNos);
-
 
4356
        args.write(prot);
-
 
4357
        prot.writeMessageEnd();
-
 
4358
      }
-
 
4359
 
-
 
4360
      public List<String> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
4361
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4362
          throw new IllegalStateException("Method call not finished!");
-
 
4363
        }
-
 
4364
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4365
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4366
        return (new Client(prot)).recv_checkGrnImeiStatus();
-
 
4367
      }
-
 
4368
    }
-
 
4369
 
4308
  }
4370
  }
4309
 
4371
 
4310
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4372
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4311
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4373
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4312
    public Processor(I iface) {
4374
    public Processor(I iface) {
Line 4378... Line 4440...
4378
      processMap.put("getScansforPurchase", new getScansforPurchase());
4440
      processMap.put("getScansforPurchase", new getScansforPurchase());
4379
      processMap.put("getCurrentBadQuantityForItem", new getCurrentBadQuantityForItem());
4441
      processMap.put("getCurrentBadQuantityForItem", new getCurrentBadQuantityForItem());
4380
      processMap.put("scanForBadPurchaseReturn", new scanForBadPurchaseReturn());
4442
      processMap.put("scanForBadPurchaseReturn", new scanForBadPurchaseReturn());
4381
      processMap.put("getItemsInPurchaseReturn", new getItemsInPurchaseReturn());
4443
      processMap.put("getItemsInPurchaseReturn", new getItemsInPurchaseReturn());
4382
      processMap.put("getScansForInventoryItem", new getScansForInventoryItem());
4444
      processMap.put("getScansForInventoryItem", new getScansForInventoryItem());
-
 
4445
      processMap.put("checkGrnImeiStatus", new checkGrnImeiStatus());
4383
      return processMap;
4446
      return processMap;
4384
    }
4447
    }
4385
 
4448
 
4386
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
4449
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
4387
      public getInventoryItem() {
4450
      public getInventoryItem() {
Line 5532... Line 5595...
5532
        }
5595
        }
5533
        return result;
5596
        return result;
5534
      }
5597
      }
5535
    }
5598
    }
5536
 
5599
 
-
 
5600
    private static class checkGrnImeiStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, checkGrnImeiStatus_args> {
-
 
5601
      public checkGrnImeiStatus() {
-
 
5602
        super("checkGrnImeiStatus");
-
 
5603
      }
-
 
5604
 
-
 
5605
      protected checkGrnImeiStatus_args getEmptyArgsInstance() {
-
 
5606
        return new checkGrnImeiStatus_args();
-
 
5607
      }
-
 
5608
 
-
 
5609
      protected checkGrnImeiStatus_result getResult(I iface, checkGrnImeiStatus_args args) throws org.apache.thrift.TException {
-
 
5610
        checkGrnImeiStatus_result result = new checkGrnImeiStatus_result();
-
 
5611
        try {
-
 
5612
          result.success = iface.checkGrnImeiStatus(args.imeiNos);
-
 
5613
        } catch (WarehouseServiceException ex) {
-
 
5614
          result.ex = ex;
-
 
5615
        }
-
 
5616
        return result;
-
 
5617
      }
-
 
5618
    }
-
 
5619
 
5537
  }
5620
  }
5538
 
5621
 
5539
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
5622
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
5540
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
5623
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
5541
 
5624
 
Line 52068... Line 52151...
52068
      boolean first = true;
52151
      boolean first = true;
52069
 
52152
 
52070
      sb.append("success:");
52153
      sb.append("success:");
52071
      if (this.success == null) {
52154
      if (this.success == null) {
52072
        sb.append("null");
52155
        sb.append("null");
-
 
52156
      } else {
-
 
52157
        sb.append(this.success);
-
 
52158
      }
-
 
52159
      first = false;
-
 
52160
      if (!first) sb.append(", ");
-
 
52161
      sb.append("ex:");
-
 
52162
      if (this.ex == null) {
-
 
52163
        sb.append("null");
-
 
52164
      } else {
-
 
52165
        sb.append(this.ex);
-
 
52166
      }
-
 
52167
      first = false;
-
 
52168
      sb.append(")");
-
 
52169
      return sb.toString();
-
 
52170
    }
-
 
52171
 
-
 
52172
    public void validate() throws org.apache.thrift.TException {
-
 
52173
      // check for required fields
-
 
52174
    }
-
 
52175
 
-
 
52176
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
52177
      try {
-
 
52178
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
52179
      } catch (org.apache.thrift.TException te) {
-
 
52180
        throw new java.io.IOException(te);
-
 
52181
      }
-
 
52182
    }
-
 
52183
 
-
 
52184
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
52185
      try {
-
 
52186
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
52187
      } catch (org.apache.thrift.TException te) {
-
 
52188
        throw new java.io.IOException(te);
-
 
52189
      }
-
 
52190
    }
-
 
52191
 
-
 
52192
  }
-
 
52193
 
-
 
52194
  public static class checkGrnImeiStatus_args implements org.apache.thrift.TBase<checkGrnImeiStatus_args, checkGrnImeiStatus_args._Fields>, java.io.Serializable, Cloneable   {
-
 
52195
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkGrnImeiStatus_args");
-
 
52196
 
-
 
52197
    private static final org.apache.thrift.protocol.TField IMEI_NOS_FIELD_DESC = new org.apache.thrift.protocol.TField("imeiNos", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
52198
 
-
 
52199
    private List<String> imeiNos; // required
-
 
52200
 
-
 
52201
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
52202
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
52203
      IMEI_NOS((short)1, "imeiNos");
-
 
52204
 
-
 
52205
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
52206
 
-
 
52207
      static {
-
 
52208
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
52209
          byName.put(field.getFieldName(), field);
-
 
52210
        }
-
 
52211
      }
-
 
52212
 
-
 
52213
      /**
-
 
52214
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
52215
       */
-
 
52216
      public static _Fields findByThriftId(int fieldId) {
-
 
52217
        switch(fieldId) {
-
 
52218
          case 1: // IMEI_NOS
-
 
52219
            return IMEI_NOS;
-
 
52220
          default:
-
 
52221
            return null;
-
 
52222
        }
-
 
52223
      }
-
 
52224
 
-
 
52225
      /**
-
 
52226
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
52227
       * if it is not found.
-
 
52228
       */
-
 
52229
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
52230
        _Fields fields = findByThriftId(fieldId);
-
 
52231
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
52232
        return fields;
-
 
52233
      }
-
 
52234
 
-
 
52235
      /**
-
 
52236
       * Find the _Fields constant that matches name, or null if its not found.
-
 
52237
       */
-
 
52238
      public static _Fields findByName(String name) {
-
 
52239
        return byName.get(name);
-
 
52240
      }
-
 
52241
 
-
 
52242
      private final short _thriftId;
-
 
52243
      private final String _fieldName;
-
 
52244
 
-
 
52245
      _Fields(short thriftId, String fieldName) {
-
 
52246
        _thriftId = thriftId;
-
 
52247
        _fieldName = fieldName;
-
 
52248
      }
-
 
52249
 
-
 
52250
      public short getThriftFieldId() {
-
 
52251
        return _thriftId;
-
 
52252
      }
-
 
52253
 
-
 
52254
      public String getFieldName() {
-
 
52255
        return _fieldName;
-
 
52256
      }
-
 
52257
    }
-
 
52258
 
-
 
52259
    // isset id assignments
-
 
52260
 
-
 
52261
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
52262
    static {
-
 
52263
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
52264
      tmpMap.put(_Fields.IMEI_NOS, new org.apache.thrift.meta_data.FieldMetaData("imeiNos", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
52265
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
52266
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
52267
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
52268
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkGrnImeiStatus_args.class, metaDataMap);
-
 
52269
    }
-
 
52270
 
-
 
52271
    public checkGrnImeiStatus_args() {
-
 
52272
    }
-
 
52273
 
-
 
52274
    public checkGrnImeiStatus_args(
-
 
52275
      List<String> imeiNos)
-
 
52276
    {
-
 
52277
      this();
-
 
52278
      this.imeiNos = imeiNos;
-
 
52279
    }
-
 
52280
 
-
 
52281
    /**
-
 
52282
     * Performs a deep copy on <i>other</i>.
-
 
52283
     */
-
 
52284
    public checkGrnImeiStatus_args(checkGrnImeiStatus_args other) {
-
 
52285
      if (other.isSetImeiNos()) {
-
 
52286
        List<String> __this__imeiNos = new ArrayList<String>();
-
 
52287
        for (String other_element : other.imeiNos) {
-
 
52288
          __this__imeiNos.add(other_element);
-
 
52289
        }
-
 
52290
        this.imeiNos = __this__imeiNos;
-
 
52291
      }
-
 
52292
    }
-
 
52293
 
-
 
52294
    public checkGrnImeiStatus_args deepCopy() {
-
 
52295
      return new checkGrnImeiStatus_args(this);
-
 
52296
    }
-
 
52297
 
-
 
52298
    @Override
-
 
52299
    public void clear() {
-
 
52300
      this.imeiNos = null;
-
 
52301
    }
-
 
52302
 
-
 
52303
    public int getImeiNosSize() {
-
 
52304
      return (this.imeiNos == null) ? 0 : this.imeiNos.size();
-
 
52305
    }
-
 
52306
 
-
 
52307
    public java.util.Iterator<String> getImeiNosIterator() {
-
 
52308
      return (this.imeiNos == null) ? null : this.imeiNos.iterator();
-
 
52309
    }
-
 
52310
 
-
 
52311
    public void addToImeiNos(String elem) {
-
 
52312
      if (this.imeiNos == null) {
-
 
52313
        this.imeiNos = new ArrayList<String>();
-
 
52314
      }
-
 
52315
      this.imeiNos.add(elem);
-
 
52316
    }
-
 
52317
 
-
 
52318
    public List<String> getImeiNos() {
-
 
52319
      return this.imeiNos;
-
 
52320
    }
-
 
52321
 
-
 
52322
    public void setImeiNos(List<String> imeiNos) {
-
 
52323
      this.imeiNos = imeiNos;
-
 
52324
    }
-
 
52325
 
-
 
52326
    public void unsetImeiNos() {
-
 
52327
      this.imeiNos = null;
-
 
52328
    }
-
 
52329
 
-
 
52330
    /** Returns true if field imeiNos is set (has been assigned a value) and false otherwise */
-
 
52331
    public boolean isSetImeiNos() {
-
 
52332
      return this.imeiNos != null;
-
 
52333
    }
-
 
52334
 
-
 
52335
    public void setImeiNosIsSet(boolean value) {
-
 
52336
      if (!value) {
-
 
52337
        this.imeiNos = null;
-
 
52338
      }
-
 
52339
    }
-
 
52340
 
-
 
52341
    public void setFieldValue(_Fields field, Object value) {
-
 
52342
      switch (field) {
-
 
52343
      case IMEI_NOS:
-
 
52344
        if (value == null) {
-
 
52345
          unsetImeiNos();
-
 
52346
        } else {
-
 
52347
          setImeiNos((List<String>)value);
-
 
52348
        }
-
 
52349
        break;
-
 
52350
 
-
 
52351
      }
-
 
52352
    }
-
 
52353
 
-
 
52354
    public Object getFieldValue(_Fields field) {
-
 
52355
      switch (field) {
-
 
52356
      case IMEI_NOS:
-
 
52357
        return getImeiNos();
-
 
52358
 
-
 
52359
      }
-
 
52360
      throw new IllegalStateException();
-
 
52361
    }
-
 
52362
 
-
 
52363
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
52364
    public boolean isSet(_Fields field) {
-
 
52365
      if (field == null) {
-
 
52366
        throw new IllegalArgumentException();
-
 
52367
      }
-
 
52368
 
-
 
52369
      switch (field) {
-
 
52370
      case IMEI_NOS:
-
 
52371
        return isSetImeiNos();
-
 
52372
      }
-
 
52373
      throw new IllegalStateException();
-
 
52374
    }
-
 
52375
 
-
 
52376
    @Override
-
 
52377
    public boolean equals(Object that) {
-
 
52378
      if (that == null)
-
 
52379
        return false;
-
 
52380
      if (that instanceof checkGrnImeiStatus_args)
-
 
52381
        return this.equals((checkGrnImeiStatus_args)that);
-
 
52382
      return false;
-
 
52383
    }
-
 
52384
 
-
 
52385
    public boolean equals(checkGrnImeiStatus_args that) {
-
 
52386
      if (that == null)
-
 
52387
        return false;
-
 
52388
 
-
 
52389
      boolean this_present_imeiNos = true && this.isSetImeiNos();
-
 
52390
      boolean that_present_imeiNos = true && that.isSetImeiNos();
-
 
52391
      if (this_present_imeiNos || that_present_imeiNos) {
-
 
52392
        if (!(this_present_imeiNos && that_present_imeiNos))
-
 
52393
          return false;
-
 
52394
        if (!this.imeiNos.equals(that.imeiNos))
-
 
52395
          return false;
-
 
52396
      }
-
 
52397
 
-
 
52398
      return true;
-
 
52399
    }
-
 
52400
 
-
 
52401
    @Override
-
 
52402
    public int hashCode() {
-
 
52403
      return 0;
-
 
52404
    }
-
 
52405
 
-
 
52406
    public int compareTo(checkGrnImeiStatus_args other) {
-
 
52407
      if (!getClass().equals(other.getClass())) {
-
 
52408
        return getClass().getName().compareTo(other.getClass().getName());
-
 
52409
      }
-
 
52410
 
-
 
52411
      int lastComparison = 0;
-
 
52412
      checkGrnImeiStatus_args typedOther = (checkGrnImeiStatus_args)other;
-
 
52413
 
-
 
52414
      lastComparison = Boolean.valueOf(isSetImeiNos()).compareTo(typedOther.isSetImeiNos());
-
 
52415
      if (lastComparison != 0) {
-
 
52416
        return lastComparison;
-
 
52417
      }
-
 
52418
      if (isSetImeiNos()) {
-
 
52419
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imeiNos, typedOther.imeiNos);
-
 
52420
        if (lastComparison != 0) {
-
 
52421
          return lastComparison;
-
 
52422
        }
-
 
52423
      }
-
 
52424
      return 0;
-
 
52425
    }
-
 
52426
 
-
 
52427
    public _Fields fieldForId(int fieldId) {
-
 
52428
      return _Fields.findByThriftId(fieldId);
-
 
52429
    }
-
 
52430
 
-
 
52431
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
52432
      org.apache.thrift.protocol.TField field;
-
 
52433
      iprot.readStructBegin();
-
 
52434
      while (true)
-
 
52435
      {
-
 
52436
        field = iprot.readFieldBegin();
-
 
52437
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
52438
          break;
-
 
52439
        }
-
 
52440
        switch (field.id) {
-
 
52441
          case 1: // IMEI_NOS
-
 
52442
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
52443
              {
-
 
52444
                org.apache.thrift.protocol.TList _list162 = iprot.readListBegin();
-
 
52445
                this.imeiNos = new ArrayList<String>(_list162.size);
-
 
52446
                for (int _i163 = 0; _i163 < _list162.size; ++_i163)
-
 
52447
                {
-
 
52448
                  String _elem164; // required
-
 
52449
                  _elem164 = iprot.readString();
-
 
52450
                  this.imeiNos.add(_elem164);
-
 
52451
                }
-
 
52452
                iprot.readListEnd();
-
 
52453
              }
-
 
52454
            } else { 
-
 
52455
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52456
            }
-
 
52457
            break;
-
 
52458
          default:
-
 
52459
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52460
        }
-
 
52461
        iprot.readFieldEnd();
-
 
52462
      }
-
 
52463
      iprot.readStructEnd();
-
 
52464
      validate();
-
 
52465
    }
-
 
52466
 
-
 
52467
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
52468
      validate();
-
 
52469
 
-
 
52470
      oprot.writeStructBegin(STRUCT_DESC);
-
 
52471
      if (this.imeiNos != null) {
-
 
52472
        oprot.writeFieldBegin(IMEI_NOS_FIELD_DESC);
-
 
52473
        {
-
 
52474
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.imeiNos.size()));
-
 
52475
          for (String _iter165 : this.imeiNos)
-
 
52476
          {
-
 
52477
            oprot.writeString(_iter165);
-
 
52478
          }
-
 
52479
          oprot.writeListEnd();
-
 
52480
        }
-
 
52481
        oprot.writeFieldEnd();
-
 
52482
      }
-
 
52483
      oprot.writeFieldStop();
-
 
52484
      oprot.writeStructEnd();
-
 
52485
    }
-
 
52486
 
-
 
52487
    @Override
-
 
52488
    public String toString() {
-
 
52489
      StringBuilder sb = new StringBuilder("checkGrnImeiStatus_args(");
-
 
52490
      boolean first = true;
-
 
52491
 
-
 
52492
      sb.append("imeiNos:");
-
 
52493
      if (this.imeiNos == null) {
-
 
52494
        sb.append("null");
-
 
52495
      } else {
-
 
52496
        sb.append(this.imeiNos);
-
 
52497
      }
-
 
52498
      first = false;
-
 
52499
      sb.append(")");
-
 
52500
      return sb.toString();
-
 
52501
    }
-
 
52502
 
-
 
52503
    public void validate() throws org.apache.thrift.TException {
-
 
52504
      // check for required fields
-
 
52505
    }
-
 
52506
 
-
 
52507
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
52508
      try {
-
 
52509
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
52510
      } catch (org.apache.thrift.TException te) {
-
 
52511
        throw new java.io.IOException(te);
-
 
52512
      }
-
 
52513
    }
-
 
52514
 
-
 
52515
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
52516
      try {
-
 
52517
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
52518
      } catch (org.apache.thrift.TException te) {
-
 
52519
        throw new java.io.IOException(te);
-
 
52520
      }
-
 
52521
    }
-
 
52522
 
-
 
52523
  }
-
 
52524
 
-
 
52525
  public static class checkGrnImeiStatus_result implements org.apache.thrift.TBase<checkGrnImeiStatus_result, checkGrnImeiStatus_result._Fields>, java.io.Serializable, Cloneable   {
-
 
52526
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkGrnImeiStatus_result");
-
 
52527
 
-
 
52528
    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);
-
 
52529
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
52530
 
-
 
52531
    private List<String> success; // required
-
 
52532
    private WarehouseServiceException ex; // required
-
 
52533
 
-
 
52534
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
52535
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
52536
      SUCCESS((short)0, "success"),
-
 
52537
      EX((short)1, "ex");
-
 
52538
 
-
 
52539
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
52540
 
-
 
52541
      static {
-
 
52542
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
52543
          byName.put(field.getFieldName(), field);
-
 
52544
        }
-
 
52545
      }
-
 
52546
 
-
 
52547
      /**
-
 
52548
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
52549
       */
-
 
52550
      public static _Fields findByThriftId(int fieldId) {
-
 
52551
        switch(fieldId) {
-
 
52552
          case 0: // SUCCESS
-
 
52553
            return SUCCESS;
-
 
52554
          case 1: // EX
-
 
52555
            return EX;
-
 
52556
          default:
-
 
52557
            return null;
-
 
52558
        }
-
 
52559
      }
-
 
52560
 
-
 
52561
      /**
-
 
52562
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
52563
       * if it is not found.
-
 
52564
       */
-
 
52565
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
52566
        _Fields fields = findByThriftId(fieldId);
-
 
52567
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
52568
        return fields;
-
 
52569
      }
-
 
52570
 
-
 
52571
      /**
-
 
52572
       * Find the _Fields constant that matches name, or null if its not found.
-
 
52573
       */
-
 
52574
      public static _Fields findByName(String name) {
-
 
52575
        return byName.get(name);
-
 
52576
      }
-
 
52577
 
-
 
52578
      private final short _thriftId;
-
 
52579
      private final String _fieldName;
-
 
52580
 
-
 
52581
      _Fields(short thriftId, String fieldName) {
-
 
52582
        _thriftId = thriftId;
-
 
52583
        _fieldName = fieldName;
-
 
52584
      }
-
 
52585
 
-
 
52586
      public short getThriftFieldId() {
-
 
52587
        return _thriftId;
-
 
52588
      }
-
 
52589
 
-
 
52590
      public String getFieldName() {
-
 
52591
        return _fieldName;
-
 
52592
      }
-
 
52593
    }
-
 
52594
 
-
 
52595
    // isset id assignments
-
 
52596
 
-
 
52597
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
52598
    static {
-
 
52599
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
52600
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
52601
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
52602
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
52603
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
52604
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
52605
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
52606
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkGrnImeiStatus_result.class, metaDataMap);
-
 
52607
    }
-
 
52608
 
-
 
52609
    public checkGrnImeiStatus_result() {
-
 
52610
    }
-
 
52611
 
-
 
52612
    public checkGrnImeiStatus_result(
-
 
52613
      List<String> success,
-
 
52614
      WarehouseServiceException ex)
-
 
52615
    {
-
 
52616
      this();
-
 
52617
      this.success = success;
-
 
52618
      this.ex = ex;
-
 
52619
    }
-
 
52620
 
-
 
52621
    /**
-
 
52622
     * Performs a deep copy on <i>other</i>.
-
 
52623
     */
-
 
52624
    public checkGrnImeiStatus_result(checkGrnImeiStatus_result other) {
-
 
52625
      if (other.isSetSuccess()) {
-
 
52626
        List<String> __this__success = new ArrayList<String>();
-
 
52627
        for (String other_element : other.success) {
-
 
52628
          __this__success.add(other_element);
-
 
52629
        }
-
 
52630
        this.success = __this__success;
-
 
52631
      }
-
 
52632
      if (other.isSetEx()) {
-
 
52633
        this.ex = new WarehouseServiceException(other.ex);
-
 
52634
      }
-
 
52635
    }
-
 
52636
 
-
 
52637
    public checkGrnImeiStatus_result deepCopy() {
-
 
52638
      return new checkGrnImeiStatus_result(this);
-
 
52639
    }
-
 
52640
 
-
 
52641
    @Override
-
 
52642
    public void clear() {
-
 
52643
      this.success = null;
-
 
52644
      this.ex = null;
-
 
52645
    }
-
 
52646
 
-
 
52647
    public int getSuccessSize() {
-
 
52648
      return (this.success == null) ? 0 : this.success.size();
-
 
52649
    }
-
 
52650
 
-
 
52651
    public java.util.Iterator<String> getSuccessIterator() {
-
 
52652
      return (this.success == null) ? null : this.success.iterator();
-
 
52653
    }
-
 
52654
 
-
 
52655
    public void addToSuccess(String elem) {
-
 
52656
      if (this.success == null) {
-
 
52657
        this.success = new ArrayList<String>();
-
 
52658
      }
-
 
52659
      this.success.add(elem);
-
 
52660
    }
-
 
52661
 
-
 
52662
    public List<String> getSuccess() {
-
 
52663
      return this.success;
-
 
52664
    }
-
 
52665
 
-
 
52666
    public void setSuccess(List<String> success) {
-
 
52667
      this.success = success;
-
 
52668
    }
-
 
52669
 
-
 
52670
    public void unsetSuccess() {
-
 
52671
      this.success = null;
-
 
52672
    }
-
 
52673
 
-
 
52674
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
52675
    public boolean isSetSuccess() {
-
 
52676
      return this.success != null;
-
 
52677
    }
-
 
52678
 
-
 
52679
    public void setSuccessIsSet(boolean value) {
-
 
52680
      if (!value) {
-
 
52681
        this.success = null;
-
 
52682
      }
-
 
52683
    }
-
 
52684
 
-
 
52685
    public WarehouseServiceException getEx() {
-
 
52686
      return this.ex;
-
 
52687
    }
-
 
52688
 
-
 
52689
    public void setEx(WarehouseServiceException ex) {
-
 
52690
      this.ex = ex;
-
 
52691
    }
-
 
52692
 
-
 
52693
    public void unsetEx() {
-
 
52694
      this.ex = null;
-
 
52695
    }
-
 
52696
 
-
 
52697
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
52698
    public boolean isSetEx() {
-
 
52699
      return this.ex != null;
-
 
52700
    }
-
 
52701
 
-
 
52702
    public void setExIsSet(boolean value) {
-
 
52703
      if (!value) {
-
 
52704
        this.ex = null;
-
 
52705
      }
-
 
52706
    }
-
 
52707
 
-
 
52708
    public void setFieldValue(_Fields field, Object value) {
-
 
52709
      switch (field) {
-
 
52710
      case SUCCESS:
-
 
52711
        if (value == null) {
-
 
52712
          unsetSuccess();
-
 
52713
        } else {
-
 
52714
          setSuccess((List<String>)value);
-
 
52715
        }
-
 
52716
        break;
-
 
52717
 
-
 
52718
      case EX:
-
 
52719
        if (value == null) {
-
 
52720
          unsetEx();
-
 
52721
        } else {
-
 
52722
          setEx((WarehouseServiceException)value);
-
 
52723
        }
-
 
52724
        break;
-
 
52725
 
-
 
52726
      }
-
 
52727
    }
-
 
52728
 
-
 
52729
    public Object getFieldValue(_Fields field) {
-
 
52730
      switch (field) {
-
 
52731
      case SUCCESS:
-
 
52732
        return getSuccess();
-
 
52733
 
-
 
52734
      case EX:
-
 
52735
        return getEx();
-
 
52736
 
-
 
52737
      }
-
 
52738
      throw new IllegalStateException();
-
 
52739
    }
-
 
52740
 
-
 
52741
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
52742
    public boolean isSet(_Fields field) {
-
 
52743
      if (field == null) {
-
 
52744
        throw new IllegalArgumentException();
-
 
52745
      }
-
 
52746
 
-
 
52747
      switch (field) {
-
 
52748
      case SUCCESS:
-
 
52749
        return isSetSuccess();
-
 
52750
      case EX:
-
 
52751
        return isSetEx();
-
 
52752
      }
-
 
52753
      throw new IllegalStateException();
-
 
52754
    }
-
 
52755
 
-
 
52756
    @Override
-
 
52757
    public boolean equals(Object that) {
-
 
52758
      if (that == null)
-
 
52759
        return false;
-
 
52760
      if (that instanceof checkGrnImeiStatus_result)
-
 
52761
        return this.equals((checkGrnImeiStatus_result)that);
-
 
52762
      return false;
-
 
52763
    }
-
 
52764
 
-
 
52765
    public boolean equals(checkGrnImeiStatus_result that) {
-
 
52766
      if (that == null)
-
 
52767
        return false;
-
 
52768
 
-
 
52769
      boolean this_present_success = true && this.isSetSuccess();
-
 
52770
      boolean that_present_success = true && that.isSetSuccess();
-
 
52771
      if (this_present_success || that_present_success) {
-
 
52772
        if (!(this_present_success && that_present_success))
-
 
52773
          return false;
-
 
52774
        if (!this.success.equals(that.success))
-
 
52775
          return false;
-
 
52776
      }
-
 
52777
 
-
 
52778
      boolean this_present_ex = true && this.isSetEx();
-
 
52779
      boolean that_present_ex = true && that.isSetEx();
-
 
52780
      if (this_present_ex || that_present_ex) {
-
 
52781
        if (!(this_present_ex && that_present_ex))
-
 
52782
          return false;
-
 
52783
        if (!this.ex.equals(that.ex))
-
 
52784
          return false;
-
 
52785
      }
-
 
52786
 
-
 
52787
      return true;
-
 
52788
    }
-
 
52789
 
-
 
52790
    @Override
-
 
52791
    public int hashCode() {
-
 
52792
      return 0;
-
 
52793
    }
-
 
52794
 
-
 
52795
    public int compareTo(checkGrnImeiStatus_result other) {
-
 
52796
      if (!getClass().equals(other.getClass())) {
-
 
52797
        return getClass().getName().compareTo(other.getClass().getName());
-
 
52798
      }
-
 
52799
 
-
 
52800
      int lastComparison = 0;
-
 
52801
      checkGrnImeiStatus_result typedOther = (checkGrnImeiStatus_result)other;
-
 
52802
 
-
 
52803
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
52804
      if (lastComparison != 0) {
-
 
52805
        return lastComparison;
-
 
52806
      }
-
 
52807
      if (isSetSuccess()) {
-
 
52808
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
52809
        if (lastComparison != 0) {
-
 
52810
          return lastComparison;
-
 
52811
        }
-
 
52812
      }
-
 
52813
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
52814
      if (lastComparison != 0) {
-
 
52815
        return lastComparison;
-
 
52816
      }
-
 
52817
      if (isSetEx()) {
-
 
52818
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
52819
        if (lastComparison != 0) {
-
 
52820
          return lastComparison;
-
 
52821
        }
-
 
52822
      }
-
 
52823
      return 0;
-
 
52824
    }
-
 
52825
 
-
 
52826
    public _Fields fieldForId(int fieldId) {
-
 
52827
      return _Fields.findByThriftId(fieldId);
-
 
52828
    }
-
 
52829
 
-
 
52830
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
52831
      org.apache.thrift.protocol.TField field;
-
 
52832
      iprot.readStructBegin();
-
 
52833
      while (true)
-
 
52834
      {
-
 
52835
        field = iprot.readFieldBegin();
-
 
52836
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
52837
          break;
-
 
52838
        }
-
 
52839
        switch (field.id) {
-
 
52840
          case 0: // SUCCESS
-
 
52841
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
52842
              {
-
 
52843
                org.apache.thrift.protocol.TList _list166 = iprot.readListBegin();
-
 
52844
                this.success = new ArrayList<String>(_list166.size);
-
 
52845
                for (int _i167 = 0; _i167 < _list166.size; ++_i167)
-
 
52846
                {
-
 
52847
                  String _elem168; // required
-
 
52848
                  _elem168 = iprot.readString();
-
 
52849
                  this.success.add(_elem168);
-
 
52850
                }
-
 
52851
                iprot.readListEnd();
-
 
52852
              }
-
 
52853
            } else { 
-
 
52854
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52855
            }
-
 
52856
            break;
-
 
52857
          case 1: // EX
-
 
52858
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
52859
              this.ex = new WarehouseServiceException();
-
 
52860
              this.ex.read(iprot);
-
 
52861
            } else { 
-
 
52862
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52863
            }
-
 
52864
            break;
-
 
52865
          default:
-
 
52866
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52867
        }
-
 
52868
        iprot.readFieldEnd();
-
 
52869
      }
-
 
52870
      iprot.readStructEnd();
-
 
52871
      validate();
-
 
52872
    }
-
 
52873
 
-
 
52874
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
52875
      oprot.writeStructBegin(STRUCT_DESC);
-
 
52876
 
-
 
52877
      if (this.isSetSuccess()) {
-
 
52878
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
52879
        {
-
 
52880
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
-
 
52881
          for (String _iter169 : this.success)
-
 
52882
          {
-
 
52883
            oprot.writeString(_iter169);
-
 
52884
          }
-
 
52885
          oprot.writeListEnd();
-
 
52886
        }
-
 
52887
        oprot.writeFieldEnd();
-
 
52888
      } else if (this.isSetEx()) {
-
 
52889
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
52890
        this.ex.write(oprot);
-
 
52891
        oprot.writeFieldEnd();
-
 
52892
      }
-
 
52893
      oprot.writeFieldStop();
-
 
52894
      oprot.writeStructEnd();
-
 
52895
    }
-
 
52896
 
-
 
52897
    @Override
-
 
52898
    public String toString() {
-
 
52899
      StringBuilder sb = new StringBuilder("checkGrnImeiStatus_result(");
-
 
52900
      boolean first = true;
-
 
52901
 
-
 
52902
      sb.append("success:");
-
 
52903
      if (this.success == null) {
-
 
52904
        sb.append("null");
52073
      } else {
52905
      } else {
52074
        sb.append(this.success);
52906
        sb.append(this.success);
52075
      }
52907
      }
52076
      first = false;
52908
      first = false;
52077
      if (!first) sb.append(", ");
52909
      if (!first) sb.append(", ");