Subversion Repositories SmartDukaan

Rev

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

Rev 7096 Rev 7109
Line 928... Line 928...
928
 
928
 
929
    public HotspotStore getHotspotStore(long id, String hotspotid) throws org.apache.thrift.TException;
929
    public HotspotStore getHotspotStore(long id, String hotspotid) throws org.apache.thrift.TException;
930
 
930
 
931
    public TelecomCircle getTelecomCircle(long id, String code) throws org.apache.thrift.TException;
931
    public TelecomCircle getTelecomCircle(long id, String code) throws org.apache.thrift.TException;
932
 
932
 
-
 
933
    public ByteBuffer retrieveHotspotRechargeInvoice(long rechargeId) throws org.apache.thrift.TException;
-
 
934
 
933
  }
935
  }
934
 
936
 
935
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
937
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
936
 
938
 
937
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
939
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1250... Line 1252...
1250
 
1252
 
1251
    public void getHotspotStore(long id, String hotspotid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHotspotStore_call> resultHandler) throws org.apache.thrift.TException;
1253
    public void getHotspotStore(long id, String hotspotid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHotspotStore_call> resultHandler) throws org.apache.thrift.TException;
1252
 
1254
 
1253
    public void getTelecomCircle(long id, String code, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTelecomCircle_call> resultHandler) throws org.apache.thrift.TException;
1255
    public void getTelecomCircle(long id, String code, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTelecomCircle_call> resultHandler) throws org.apache.thrift.TException;
1254
 
1256
 
-
 
1257
    public void retrieveHotspotRechargeInvoice(long rechargeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retrieveHotspotRechargeInvoice_call> resultHandler) throws org.apache.thrift.TException;
-
 
1258
 
1255
  }
1259
  }
1256
 
1260
 
1257
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1261
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1258
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1262
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1259
      public Factory() {}
1263
      public Factory() {}
Line 5267... Line 5271...
5267
        return result.success;
5271
        return result.success;
5268
      }
5272
      }
5269
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTelecomCircle failed: unknown result");
5273
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTelecomCircle failed: unknown result");
5270
    }
5274
    }
5271
 
5275
 
-
 
5276
    public ByteBuffer retrieveHotspotRechargeInvoice(long rechargeId) throws org.apache.thrift.TException
-
 
5277
    {
-
 
5278
      send_retrieveHotspotRechargeInvoice(rechargeId);
-
 
5279
      return recv_retrieveHotspotRechargeInvoice();
-
 
5280
    }
-
 
5281
 
-
 
5282
    public void send_retrieveHotspotRechargeInvoice(long rechargeId) throws org.apache.thrift.TException
-
 
5283
    {
-
 
5284
      retrieveHotspotRechargeInvoice_args args = new retrieveHotspotRechargeInvoice_args();
-
 
5285
      args.setRechargeId(rechargeId);
-
 
5286
      sendBase("retrieveHotspotRechargeInvoice", args);
-
 
5287
    }
-
 
5288
 
-
 
5289
    public ByteBuffer recv_retrieveHotspotRechargeInvoice() throws org.apache.thrift.TException
-
 
5290
    {
-
 
5291
      retrieveHotspotRechargeInvoice_result result = new retrieveHotspotRechargeInvoice_result();
-
 
5292
      receiveBase(result, "retrieveHotspotRechargeInvoice");
-
 
5293
      if (result.isSetSuccess()) {
-
 
5294
        return result.success;
-
 
5295
      }
-
 
5296
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "retrieveHotspotRechargeInvoice failed: unknown result");
-
 
5297
    }
-
 
5298
 
5272
  }
5299
  }
5273
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5300
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5274
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5301
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5275
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5302
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5276
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5303
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 10838... Line 10865...
10838
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10865
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10839
        return (new Client(prot)).recv_getTelecomCircle();
10866
        return (new Client(prot)).recv_getTelecomCircle();
10840
      }
10867
      }
10841
    }
10868
    }
10842
 
10869
 
-
 
10870
    public void retrieveHotspotRechargeInvoice(long rechargeId, org.apache.thrift.async.AsyncMethodCallback<retrieveHotspotRechargeInvoice_call> resultHandler) throws org.apache.thrift.TException {
-
 
10871
      checkReady();
-
 
10872
      retrieveHotspotRechargeInvoice_call method_call = new retrieveHotspotRechargeInvoice_call(rechargeId, resultHandler, this, ___protocolFactory, ___transport);
-
 
10873
      this.___currentMethod = method_call;
-
 
10874
      ___manager.call(method_call);
-
 
10875
    }
-
 
10876
 
-
 
10877
    public static class retrieveHotspotRechargeInvoice_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10878
      private long rechargeId;
-
 
10879
      public retrieveHotspotRechargeInvoice_call(long rechargeId, org.apache.thrift.async.AsyncMethodCallback<retrieveHotspotRechargeInvoice_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 {
-
 
10880
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10881
        this.rechargeId = rechargeId;
-
 
10882
      }
-
 
10883
 
-
 
10884
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10885
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("retrieveHotspotRechargeInvoice", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10886
        retrieveHotspotRechargeInvoice_args args = new retrieveHotspotRechargeInvoice_args();
-
 
10887
        args.setRechargeId(rechargeId);
-
 
10888
        args.write(prot);
-
 
10889
        prot.writeMessageEnd();
-
 
10890
      }
-
 
10891
 
-
 
10892
      public ByteBuffer getResult() throws org.apache.thrift.TException {
-
 
10893
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10894
          throw new IllegalStateException("Method call not finished!");
-
 
10895
        }
-
 
10896
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10897
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10898
        return (new Client(prot)).recv_retrieveHotspotRechargeInvoice();
-
 
10899
      }
-
 
10900
    }
-
 
10901
 
10843
  }
10902
  }
10844
 
10903
 
10845
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10904
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10846
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10905
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10847
    public Processor(I iface) {
10906
    public Processor(I iface) {
Line 11010... Line 11069...
11010
      processMap.put("getRechargeTransactions", new getRechargeTransactions());
11069
      processMap.put("getRechargeTransactions", new getRechargeTransactions());
11011
      processMap.put("getRechargeTransaction", new getRechargeTransaction());
11070
      processMap.put("getRechargeTransaction", new getRechargeTransaction());
11012
      processMap.put("getFRCs", new getFRCs());
11071
      processMap.put("getFRCs", new getFRCs());
11013
      processMap.put("getHotspotStore", new getHotspotStore());
11072
      processMap.put("getHotspotStore", new getHotspotStore());
11014
      processMap.put("getTelecomCircle", new getTelecomCircle());
11073
      processMap.put("getTelecomCircle", new getTelecomCircle());
-
 
11074
      processMap.put("retrieveHotspotRechargeInvoice", new retrieveHotspotRechargeInvoice());
11015
      return processMap;
11075
      return processMap;
11016
    }
11076
    }
11017
 
11077
 
11018
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
11078
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
11019
      public createTransaction() {
11079
      public createTransaction() {
Line 13985... Line 14045...
13985
        result.success = iface.getTelecomCircle(args.id, args.code);
14045
        result.success = iface.getTelecomCircle(args.id, args.code);
13986
        return result;
14046
        return result;
13987
      }
14047
      }
13988
    }
14048
    }
13989
 
14049
 
-
 
14050
    private static class retrieveHotspotRechargeInvoice<I extends Iface> extends org.apache.thrift.ProcessFunction<I, retrieveHotspotRechargeInvoice_args> {
-
 
14051
      public retrieveHotspotRechargeInvoice() {
-
 
14052
        super("retrieveHotspotRechargeInvoice");
-
 
14053
      }
-
 
14054
 
-
 
14055
      protected retrieveHotspotRechargeInvoice_args getEmptyArgsInstance() {
-
 
14056
        return new retrieveHotspotRechargeInvoice_args();
-
 
14057
      }
-
 
14058
 
-
 
14059
      protected retrieveHotspotRechargeInvoice_result getResult(I iface, retrieveHotspotRechargeInvoice_args args) throws org.apache.thrift.TException {
-
 
14060
        retrieveHotspotRechargeInvoice_result result = new retrieveHotspotRechargeInvoice_result();
-
 
14061
        result.success = iface.retrieveHotspotRechargeInvoice(args.rechargeId);
-
 
14062
        return result;
-
 
14063
      }
-
 
14064
    }
-
 
14065
 
13990
  }
14066
  }
13991
 
14067
 
13992
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
14068
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
13993
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
14069
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
13994
 
14070
 
Line 129233... Line 129309...
129233
      }
129309
      }
129234
      first = false;
129310
      first = false;
129235
      sb.append(")");
129311
      sb.append(")");
129236
      return sb.toString();
129312
      return sb.toString();
129237
    }
129313
    }
-
 
129314
 
-
 
129315
    public void validate() throws org.apache.thrift.TException {
-
 
129316
      // check for required fields
-
 
129317
    }
-
 
129318
 
-
 
129319
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
129320
      try {
-
 
129321
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
129322
      } catch (org.apache.thrift.TException te) {
-
 
129323
        throw new java.io.IOException(te);
-
 
129324
      }
-
 
129325
    }
-
 
129326
 
-
 
129327
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
129328
      try {
-
 
129329
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
129330
      } catch (org.apache.thrift.TException te) {
-
 
129331
        throw new java.io.IOException(te);
-
 
129332
      }
-
 
129333
    }
-
 
129334
 
-
 
129335
  }
-
 
129336
 
-
 
129337
  public static class retrieveHotspotRechargeInvoice_args implements org.apache.thrift.TBase<retrieveHotspotRechargeInvoice_args, retrieveHotspotRechargeInvoice_args._Fields>, java.io.Serializable, Cloneable   {
-
 
129338
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retrieveHotspotRechargeInvoice_args");
-
 
129339
 
-
 
129340
    private static final org.apache.thrift.protocol.TField RECHARGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
129341
 
-
 
129342
    private long rechargeId; // required
-
 
129343
 
-
 
129344
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
129345
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
129346
      RECHARGE_ID((short)1, "rechargeId");
-
 
129347
 
-
 
129348
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
129349
 
-
 
129350
      static {
-
 
129351
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
129352
          byName.put(field.getFieldName(), field);
-
 
129353
        }
-
 
129354
      }
-
 
129355
 
-
 
129356
      /**
-
 
129357
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
129358
       */
-
 
129359
      public static _Fields findByThriftId(int fieldId) {
-
 
129360
        switch(fieldId) {
-
 
129361
          case 1: // RECHARGE_ID
-
 
129362
            return RECHARGE_ID;
-
 
129363
          default:
-
 
129364
            return null;
-
 
129365
        }
-
 
129366
      }
-
 
129367
 
-
 
129368
      /**
-
 
129369
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
129370
       * if it is not found.
-
 
129371
       */
-
 
129372
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
129373
        _Fields fields = findByThriftId(fieldId);
-
 
129374
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
129375
        return fields;
-
 
129376
      }
-
 
129377
 
-
 
129378
      /**
-
 
129379
       * Find the _Fields constant that matches name, or null if its not found.
-
 
129380
       */
-
 
129381
      public static _Fields findByName(String name) {
-
 
129382
        return byName.get(name);
-
 
129383
      }
-
 
129384
 
-
 
129385
      private final short _thriftId;
-
 
129386
      private final String _fieldName;
-
 
129387
 
-
 
129388
      _Fields(short thriftId, String fieldName) {
-
 
129389
        _thriftId = thriftId;
-
 
129390
        _fieldName = fieldName;
-
 
129391
      }
-
 
129392
 
-
 
129393
      public short getThriftFieldId() {
-
 
129394
        return _thriftId;
-
 
129395
      }
-
 
129396
 
-
 
129397
      public String getFieldName() {
-
 
129398
        return _fieldName;
-
 
129399
      }
-
 
129400
    }
-
 
129401
 
-
 
129402
    // isset id assignments
-
 
129403
    private static final int __RECHARGEID_ISSET_ID = 0;
-
 
129404
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
129405
 
-
 
129406
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
129407
    static {
-
 
129408
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
129409
      tmpMap.put(_Fields.RECHARGE_ID, new org.apache.thrift.meta_data.FieldMetaData("rechargeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
129410
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
129411
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
129412
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retrieveHotspotRechargeInvoice_args.class, metaDataMap);
-
 
129413
    }
-
 
129414
 
-
 
129415
    public retrieveHotspotRechargeInvoice_args() {
-
 
129416
    }
-
 
129417
 
-
 
129418
    public retrieveHotspotRechargeInvoice_args(
-
 
129419
      long rechargeId)
-
 
129420
    {
-
 
129421
      this();
-
 
129422
      this.rechargeId = rechargeId;
-
 
129423
      setRechargeIdIsSet(true);
-
 
129424
    }
-
 
129425
 
-
 
129426
    /**
-
 
129427
     * Performs a deep copy on <i>other</i>.
-
 
129428
     */
-
 
129429
    public retrieveHotspotRechargeInvoice_args(retrieveHotspotRechargeInvoice_args other) {
-
 
129430
      __isset_bit_vector.clear();
-
 
129431
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
129432
      this.rechargeId = other.rechargeId;
-
 
129433
    }
-
 
129434
 
-
 
129435
    public retrieveHotspotRechargeInvoice_args deepCopy() {
-
 
129436
      return new retrieveHotspotRechargeInvoice_args(this);
-
 
129437
    }
-
 
129438
 
-
 
129439
    @Override
-
 
129440
    public void clear() {
-
 
129441
      setRechargeIdIsSet(false);
-
 
129442
      this.rechargeId = 0;
-
 
129443
    }
-
 
129444
 
-
 
129445
    public long getRechargeId() {
-
 
129446
      return this.rechargeId;
-
 
129447
    }
-
 
129448
 
-
 
129449
    public void setRechargeId(long rechargeId) {
-
 
129450
      this.rechargeId = rechargeId;
-
 
129451
      setRechargeIdIsSet(true);
-
 
129452
    }
-
 
129453
 
-
 
129454
    public void unsetRechargeId() {
-
 
129455
      __isset_bit_vector.clear(__RECHARGEID_ISSET_ID);
-
 
129456
    }
-
 
129457
 
-
 
129458
    /** Returns true if field rechargeId is set (has been assigned a value) and false otherwise */
-
 
129459
    public boolean isSetRechargeId() {
-
 
129460
      return __isset_bit_vector.get(__RECHARGEID_ISSET_ID);
-
 
129461
    }
-
 
129462
 
-
 
129463
    public void setRechargeIdIsSet(boolean value) {
-
 
129464
      __isset_bit_vector.set(__RECHARGEID_ISSET_ID, value);
-
 
129465
    }
-
 
129466
 
-
 
129467
    public void setFieldValue(_Fields field, Object value) {
-
 
129468
      switch (field) {
-
 
129469
      case RECHARGE_ID:
-
 
129470
        if (value == null) {
-
 
129471
          unsetRechargeId();
-
 
129472
        } else {
-
 
129473
          setRechargeId((Long)value);
-
 
129474
        }
-
 
129475
        break;
-
 
129476
 
-
 
129477
      }
-
 
129478
    }
-
 
129479
 
-
 
129480
    public Object getFieldValue(_Fields field) {
-
 
129481
      switch (field) {
-
 
129482
      case RECHARGE_ID:
-
 
129483
        return Long.valueOf(getRechargeId());
-
 
129484
 
-
 
129485
      }
-
 
129486
      throw new IllegalStateException();
-
 
129487
    }
-
 
129488
 
-
 
129489
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
129490
    public boolean isSet(_Fields field) {
-
 
129491
      if (field == null) {
-
 
129492
        throw new IllegalArgumentException();
-
 
129493
      }
-
 
129494
 
-
 
129495
      switch (field) {
-
 
129496
      case RECHARGE_ID:
-
 
129497
        return isSetRechargeId();
-
 
129498
      }
-
 
129499
      throw new IllegalStateException();
-
 
129500
    }
-
 
129501
 
-
 
129502
    @Override
-
 
129503
    public boolean equals(Object that) {
-
 
129504
      if (that == null)
-
 
129505
        return false;
-
 
129506
      if (that instanceof retrieveHotspotRechargeInvoice_args)
-
 
129507
        return this.equals((retrieveHotspotRechargeInvoice_args)that);
-
 
129508
      return false;
-
 
129509
    }
-
 
129510
 
-
 
129511
    public boolean equals(retrieveHotspotRechargeInvoice_args that) {
-
 
129512
      if (that == null)
-
 
129513
        return false;
-
 
129514
 
-
 
129515
      boolean this_present_rechargeId = true;
-
 
129516
      boolean that_present_rechargeId = true;
-
 
129517
      if (this_present_rechargeId || that_present_rechargeId) {
-
 
129518
        if (!(this_present_rechargeId && that_present_rechargeId))
-
 
129519
          return false;
-
 
129520
        if (this.rechargeId != that.rechargeId)
-
 
129521
          return false;
-
 
129522
      }
-
 
129523
 
-
 
129524
      return true;
-
 
129525
    }
-
 
129526
 
-
 
129527
    @Override
-
 
129528
    public int hashCode() {
-
 
129529
      return 0;
-
 
129530
    }
-
 
129531
 
-
 
129532
    public int compareTo(retrieveHotspotRechargeInvoice_args other) {
-
 
129533
      if (!getClass().equals(other.getClass())) {
-
 
129534
        return getClass().getName().compareTo(other.getClass().getName());
-
 
129535
      }
-
 
129536
 
-
 
129537
      int lastComparison = 0;
-
 
129538
      retrieveHotspotRechargeInvoice_args typedOther = (retrieveHotspotRechargeInvoice_args)other;
-
 
129539
 
-
 
129540
      lastComparison = Boolean.valueOf(isSetRechargeId()).compareTo(typedOther.isSetRechargeId());
-
 
129541
      if (lastComparison != 0) {
-
 
129542
        return lastComparison;
-
 
129543
      }
-
 
129544
      if (isSetRechargeId()) {
-
 
129545
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeId, typedOther.rechargeId);
-
 
129546
        if (lastComparison != 0) {
-
 
129547
          return lastComparison;
-
 
129548
        }
-
 
129549
      }
-
 
129550
      return 0;
-
 
129551
    }
-
 
129552
 
-
 
129553
    public _Fields fieldForId(int fieldId) {
-
 
129554
      return _Fields.findByThriftId(fieldId);
-
 
129555
    }
-
 
129556
 
-
 
129557
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
129558
      org.apache.thrift.protocol.TField field;
-
 
129559
      iprot.readStructBegin();
-
 
129560
      while (true)
-
 
129561
      {
-
 
129562
        field = iprot.readFieldBegin();
-
 
129563
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
129564
          break;
-
 
129565
        }
-
 
129566
        switch (field.id) {
-
 
129567
          case 1: // RECHARGE_ID
-
 
129568
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
129569
              this.rechargeId = iprot.readI64();
-
 
129570
              setRechargeIdIsSet(true);
-
 
129571
            } else { 
-
 
129572
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
129573
            }
-
 
129574
            break;
-
 
129575
          default:
-
 
129576
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
129577
        }
-
 
129578
        iprot.readFieldEnd();
-
 
129579
      }
-
 
129580
      iprot.readStructEnd();
-
 
129581
      validate();
-
 
129582
    }
-
 
129583
 
-
 
129584
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
129585
      validate();
-
 
129586
 
-
 
129587
      oprot.writeStructBegin(STRUCT_DESC);
-
 
129588
      oprot.writeFieldBegin(RECHARGE_ID_FIELD_DESC);
-
 
129589
      oprot.writeI64(this.rechargeId);
-
 
129590
      oprot.writeFieldEnd();
-
 
129591
      oprot.writeFieldStop();
-
 
129592
      oprot.writeStructEnd();
-
 
129593
    }
-
 
129594
 
-
 
129595
    @Override
-
 
129596
    public String toString() {
-
 
129597
      StringBuilder sb = new StringBuilder("retrieveHotspotRechargeInvoice_args(");
-
 
129598
      boolean first = true;
-
 
129599
 
-
 
129600
      sb.append("rechargeId:");
-
 
129601
      sb.append(this.rechargeId);
-
 
129602
      first = false;
-
 
129603
      sb.append(")");
-
 
129604
      return sb.toString();
-
 
129605
    }
-
 
129606
 
-
 
129607
    public void validate() throws org.apache.thrift.TException {
-
 
129608
      // check for required fields
-
 
129609
    }
-
 
129610
 
-
 
129611
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
129612
      try {
-
 
129613
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
129614
      } catch (org.apache.thrift.TException te) {
-
 
129615
        throw new java.io.IOException(te);
-
 
129616
      }
-
 
129617
    }
-
 
129618
 
-
 
129619
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
129620
      try {
-
 
129621
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
129622
        __isset_bit_vector = new BitSet(1);
-
 
129623
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
129624
      } catch (org.apache.thrift.TException te) {
-
 
129625
        throw new java.io.IOException(te);
-
 
129626
      }
-
 
129627
    }
-
 
129628
 
-
 
129629
  }
-
 
129630
 
-
 
129631
  public static class retrieveHotspotRechargeInvoice_result implements org.apache.thrift.TBase<retrieveHotspotRechargeInvoice_result, retrieveHotspotRechargeInvoice_result._Fields>, java.io.Serializable, Cloneable   {
-
 
129632
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retrieveHotspotRechargeInvoice_result");
-
 
129633
 
-
 
129634
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
-
 
129635
 
-
 
129636
    private ByteBuffer success; // required
-
 
129637
 
-
 
129638
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
129639
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
129640
      SUCCESS((short)0, "success");
-
 
129641
 
-
 
129642
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
129643
 
-
 
129644
      static {
-
 
129645
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
129646
          byName.put(field.getFieldName(), field);
-
 
129647
        }
-
 
129648
      }
-
 
129649
 
-
 
129650
      /**
-
 
129651
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
129652
       */
-
 
129653
      public static _Fields findByThriftId(int fieldId) {
-
 
129654
        switch(fieldId) {
-
 
129655
          case 0: // SUCCESS
-
 
129656
            return SUCCESS;
-
 
129657
          default:
-
 
129658
            return null;
-
 
129659
        }
-
 
129660
      }
-
 
129661
 
-
 
129662
      /**
-
 
129663
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
129664
       * if it is not found.
-
 
129665
       */
-
 
129666
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
129667
        _Fields fields = findByThriftId(fieldId);
-
 
129668
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
129669
        return fields;
-
 
129670
      }
-
 
129671
 
-
 
129672
      /**
-
 
129673
       * Find the _Fields constant that matches name, or null if its not found.
-
 
129674
       */
-
 
129675
      public static _Fields findByName(String name) {
-
 
129676
        return byName.get(name);
-
 
129677
      }
-
 
129678
 
-
 
129679
      private final short _thriftId;
-
 
129680
      private final String _fieldName;
-
 
129681
 
-
 
129682
      _Fields(short thriftId, String fieldName) {
-
 
129683
        _thriftId = thriftId;
-
 
129684
        _fieldName = fieldName;
-
 
129685
      }
-
 
129686
 
-
 
129687
      public short getThriftFieldId() {
-
 
129688
        return _thriftId;
-
 
129689
      }
-
 
129690
 
-
 
129691
      public String getFieldName() {
-
 
129692
        return _fieldName;
-
 
129693
      }
-
 
129694
    }
-
 
129695
 
-
 
129696
    // isset id assignments
-
 
129697
 
-
 
129698
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
129699
    static {
-
 
129700
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
129701
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
129702
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING          , true)));
-
 
129703
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
129704
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retrieveHotspotRechargeInvoice_result.class, metaDataMap);
-
 
129705
    }
-
 
129706
 
-
 
129707
    public retrieveHotspotRechargeInvoice_result() {
-
 
129708
    }
-
 
129709
 
-
 
129710
    public retrieveHotspotRechargeInvoice_result(
-
 
129711
      ByteBuffer success)
-
 
129712
    {
-
 
129713
      this();
-
 
129714
      this.success = success;
-
 
129715
    }
-
 
129716
 
-
 
129717
    /**
-
 
129718
     * Performs a deep copy on <i>other</i>.
-
 
129719
     */
-
 
129720
    public retrieveHotspotRechargeInvoice_result(retrieveHotspotRechargeInvoice_result other) {
-
 
129721
      if (other.isSetSuccess()) {
-
 
129722
        this.success = org.apache.thrift.TBaseHelper.copyBinary(other.success);
-
 
129723
;
-
 
129724
      }
-
 
129725
    }
-
 
129726
 
-
 
129727
    public retrieveHotspotRechargeInvoice_result deepCopy() {
-
 
129728
      return new retrieveHotspotRechargeInvoice_result(this);
-
 
129729
    }
-
 
129730
 
-
 
129731
    @Override
-
 
129732
    public void clear() {
-
 
129733
      this.success = null;
-
 
129734
    }
-
 
129735
 
-
 
129736
    public byte[] getSuccess() {
-
 
129737
      setSuccess(org.apache.thrift.TBaseHelper.rightSize(success));
-
 
129738
      return success == null ? null : success.array();
-
 
129739
    }
-
 
129740
 
-
 
129741
    public ByteBuffer bufferForSuccess() {
-
 
129742
      return success;
-
 
129743
    }
-
 
129744
 
-
 
129745
    public void setSuccess(byte[] success) {
-
 
129746
      setSuccess(success == null ? (ByteBuffer)null : ByteBuffer.wrap(success));
-
 
129747
    }
-
 
129748
 
-
 
129749
    public void setSuccess(ByteBuffer success) {
-
 
129750
      this.success = success;
-
 
129751
    }
-
 
129752
 
-
 
129753
    public void unsetSuccess() {
-
 
129754
      this.success = null;
-
 
129755
    }
-
 
129756
 
-
 
129757
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
129758
    public boolean isSetSuccess() {
-
 
129759
      return this.success != null;
-
 
129760
    }
-
 
129761
 
-
 
129762
    public void setSuccessIsSet(boolean value) {
-
 
129763
      if (!value) {
-
 
129764
        this.success = null;
-
 
129765
      }
-
 
129766
    }
-
 
129767
 
-
 
129768
    public void setFieldValue(_Fields field, Object value) {
-
 
129769
      switch (field) {
-
 
129770
      case SUCCESS:
-
 
129771
        if (value == null) {
-
 
129772
          unsetSuccess();
-
 
129773
        } else {
-
 
129774
          setSuccess((ByteBuffer)value);
-
 
129775
        }
-
 
129776
        break;
-
 
129777
 
-
 
129778
      }
-
 
129779
    }
-
 
129780
 
-
 
129781
    public Object getFieldValue(_Fields field) {
-
 
129782
      switch (field) {
-
 
129783
      case SUCCESS:
-
 
129784
        return getSuccess();
-
 
129785
 
-
 
129786
      }
-
 
129787
      throw new IllegalStateException();
-
 
129788
    }
-
 
129789
 
-
 
129790
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
129791
    public boolean isSet(_Fields field) {
-
 
129792
      if (field == null) {
-
 
129793
        throw new IllegalArgumentException();
-
 
129794
      }
-
 
129795
 
-
 
129796
      switch (field) {
-
 
129797
      case SUCCESS:
-
 
129798
        return isSetSuccess();
-
 
129799
      }
-
 
129800
      throw new IllegalStateException();
-
 
129801
    }
-
 
129802
 
-
 
129803
    @Override
-
 
129804
    public boolean equals(Object that) {
-
 
129805
      if (that == null)
-
 
129806
        return false;
-
 
129807
      if (that instanceof retrieveHotspotRechargeInvoice_result)
-
 
129808
        return this.equals((retrieveHotspotRechargeInvoice_result)that);
-
 
129809
      return false;
-
 
129810
    }
-
 
129811
 
-
 
129812
    public boolean equals(retrieveHotspotRechargeInvoice_result that) {
-
 
129813
      if (that == null)
-
 
129814
        return false;
-
 
129815
 
-
 
129816
      boolean this_present_success = true && this.isSetSuccess();
-
 
129817
      boolean that_present_success = true && that.isSetSuccess();
-
 
129818
      if (this_present_success || that_present_success) {
-
 
129819
        if (!(this_present_success && that_present_success))
-
 
129820
          return false;
-
 
129821
        if (!this.success.equals(that.success))
-
 
129822
          return false;
-
 
129823
      }
-
 
129824
 
-
 
129825
      return true;
-
 
129826
    }
-
 
129827
 
-
 
129828
    @Override
-
 
129829
    public int hashCode() {
-
 
129830
      return 0;
-
 
129831
    }
-
 
129832
 
-
 
129833
    public int compareTo(retrieveHotspotRechargeInvoice_result other) {
-
 
129834
      if (!getClass().equals(other.getClass())) {
-
 
129835
        return getClass().getName().compareTo(other.getClass().getName());
-
 
129836
      }
-
 
129837
 
-
 
129838
      int lastComparison = 0;
-
 
129839
      retrieveHotspotRechargeInvoice_result typedOther = (retrieveHotspotRechargeInvoice_result)other;
-
 
129840
 
-
 
129841
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
129842
      if (lastComparison != 0) {
-
 
129843
        return lastComparison;
-
 
129844
      }
-
 
129845
      if (isSetSuccess()) {
-
 
129846
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
129847
        if (lastComparison != 0) {
-
 
129848
          return lastComparison;
-
 
129849
        }
-
 
129850
      }
-
 
129851
      return 0;
-
 
129852
    }
-
 
129853
 
-
 
129854
    public _Fields fieldForId(int fieldId) {
-
 
129855
      return _Fields.findByThriftId(fieldId);
-
 
129856
    }
-
 
129857
 
-
 
129858
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
129859
      org.apache.thrift.protocol.TField field;
-
 
129860
      iprot.readStructBegin();
-
 
129861
      while (true)
-
 
129862
      {
-
 
129863
        field = iprot.readFieldBegin();
-
 
129864
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
129865
          break;
-
 
129866
        }
-
 
129867
        switch (field.id) {
-
 
129868
          case 0: // SUCCESS
-
 
129869
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
129870
              this.success = iprot.readBinary();
-
 
129871
            } else { 
-
 
129872
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
129873
            }
-
 
129874
            break;
-
 
129875
          default:
-
 
129876
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
129877
        }
-
 
129878
        iprot.readFieldEnd();
-
 
129879
      }
-
 
129880
      iprot.readStructEnd();
-
 
129881
      validate();
-
 
129882
    }
-
 
129883
 
-
 
129884
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
129885
      oprot.writeStructBegin(STRUCT_DESC);
-
 
129886
 
-
 
129887
      if (this.isSetSuccess()) {
-
 
129888
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
129889
        oprot.writeBinary(this.success);
-
 
129890
        oprot.writeFieldEnd();
-
 
129891
      }
-
 
129892
      oprot.writeFieldStop();
-
 
129893
      oprot.writeStructEnd();
-
 
129894
    }
-
 
129895
 
-
 
129896
    @Override
-
 
129897
    public String toString() {
-
 
129898
      StringBuilder sb = new StringBuilder("retrieveHotspotRechargeInvoice_result(");
-
 
129899
      boolean first = true;
-
 
129900
 
-
 
129901
      sb.append("success:");
-
 
129902
      if (this.success == null) {
-
 
129903
        sb.append("null");
-
 
129904
      } else {
-
 
129905
        org.apache.thrift.TBaseHelper.toString(this.success, sb);
-
 
129906
      }
-
 
129907
      first = false;
-
 
129908
      sb.append(")");
-
 
129909
      return sb.toString();
-
 
129910
    }
129238
 
129911
 
129239
    public void validate() throws org.apache.thrift.TException {
129912
    public void validate() throws org.apache.thrift.TException {
129240
      // check for required fields
129913
      // check for required fields
129241
    }
129914
    }
129242
 
129915