Subversion Repositories SmartDukaan

Rev

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

Rev 21363 Rev 21535
Line 1276... Line 1276...
1276
 
1276
 
1277
    public Pmsa getmypmsaprofile(String associateEmail) throws org.apache.thrift.TException;
1277
    public Pmsa getmypmsaprofile(String associateEmail) throws org.apache.thrift.TException;
1278
 
1278
 
1279
    public boolean creditUserWallet(long userId, long amount, double cash_back) throws org.apache.thrift.TException;
1279
    public boolean creditUserWallet(long userId, long amount, double cash_back) throws org.apache.thrift.TException;
1280
 
1280
 
-
 
1281
    public List<RechargeOrder> getPaginatedRechargeOrders(long userId, int offset, int limit) throws org.apache.thrift.TException;
-
 
1282
 
1281
  }
1283
  }
1282
 
1284
 
1283
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1285
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1284
 
1286
 
1285
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1287
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1920... Line 1922...
1920
 
1922
 
1921
    public void getmypmsaprofile(String associateEmail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getmypmsaprofile_call> resultHandler) throws org.apache.thrift.TException;
1923
    public void getmypmsaprofile(String associateEmail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getmypmsaprofile_call> resultHandler) throws org.apache.thrift.TException;
1922
 
1924
 
1923
    public void creditUserWallet(long userId, long amount, double cash_back, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.creditUserWallet_call> resultHandler) throws org.apache.thrift.TException;
1925
    public void creditUserWallet(long userId, long amount, double cash_back, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.creditUserWallet_call> resultHandler) throws org.apache.thrift.TException;
1924
 
1926
 
-
 
1927
    public void getPaginatedRechargeOrders(long userId, int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaginatedRechargeOrders_call> resultHandler) throws org.apache.thrift.TException;
-
 
1928
 
1925
  }
1929
  }
1926
 
1930
 
1927
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1931
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1928
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1932
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1929
      public Factory() {}
1933
      public Factory() {}
Line 9849... Line 9853...
9849
        return result.success;
9853
        return result.success;
9850
      }
9854
      }
9851
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "creditUserWallet failed: unknown result");
9855
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "creditUserWallet failed: unknown result");
9852
    }
9856
    }
9853
 
9857
 
-
 
9858
    public List<RechargeOrder> getPaginatedRechargeOrders(long userId, int offset, int limit) throws org.apache.thrift.TException
-
 
9859
    {
-
 
9860
      send_getPaginatedRechargeOrders(userId, offset, limit);
-
 
9861
      return recv_getPaginatedRechargeOrders();
-
 
9862
    }
-
 
9863
 
-
 
9864
    public void send_getPaginatedRechargeOrders(long userId, int offset, int limit) throws org.apache.thrift.TException
-
 
9865
    {
-
 
9866
      getPaginatedRechargeOrders_args args = new getPaginatedRechargeOrders_args();
-
 
9867
      args.setUserId(userId);
-
 
9868
      args.setOffset(offset);
-
 
9869
      args.setLimit(limit);
-
 
9870
      sendBase("getPaginatedRechargeOrders", args);
-
 
9871
    }
-
 
9872
 
-
 
9873
    public List<RechargeOrder> recv_getPaginatedRechargeOrders() throws org.apache.thrift.TException
-
 
9874
    {
-
 
9875
      getPaginatedRechargeOrders_result result = new getPaginatedRechargeOrders_result();
-
 
9876
      receiveBase(result, "getPaginatedRechargeOrders");
-
 
9877
      if (result.isSetSuccess()) {
-
 
9878
        return result.success;
-
 
9879
      }
-
 
9880
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaginatedRechargeOrders failed: unknown result");
-
 
9881
    }
-
 
9882
 
9854
  }
9883
  }
9855
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9884
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9856
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9885
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9857
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9886
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9858
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
9887
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 21010... Line 21039...
21010
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
21039
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
21011
        return (new Client(prot)).recv_creditUserWallet();
21040
        return (new Client(prot)).recv_creditUserWallet();
21012
      }
21041
      }
21013
    }
21042
    }
21014
 
21043
 
-
 
21044
    public void getPaginatedRechargeOrders(long userId, int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<getPaginatedRechargeOrders_call> resultHandler) throws org.apache.thrift.TException {
-
 
21045
      checkReady();
-
 
21046
      getPaginatedRechargeOrders_call method_call = new getPaginatedRechargeOrders_call(userId, offset, limit, resultHandler, this, ___protocolFactory, ___transport);
-
 
21047
      this.___currentMethod = method_call;
-
 
21048
      ___manager.call(method_call);
-
 
21049
    }
-
 
21050
 
-
 
21051
    public static class getPaginatedRechargeOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
21052
      private long userId;
-
 
21053
      private int offset;
-
 
21054
      private int limit;
-
 
21055
      public getPaginatedRechargeOrders_call(long userId, int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<getPaginatedRechargeOrders_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 {
-
 
21056
        super(client, protocolFactory, transport, resultHandler, false);
-
 
21057
        this.userId = userId;
-
 
21058
        this.offset = offset;
-
 
21059
        this.limit = limit;
-
 
21060
      }
-
 
21061
 
-
 
21062
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
21063
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaginatedRechargeOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
21064
        getPaginatedRechargeOrders_args args = new getPaginatedRechargeOrders_args();
-
 
21065
        args.setUserId(userId);
-
 
21066
        args.setOffset(offset);
-
 
21067
        args.setLimit(limit);
-
 
21068
        args.write(prot);
-
 
21069
        prot.writeMessageEnd();
-
 
21070
      }
-
 
21071
 
-
 
21072
      public List<RechargeOrder> getResult() throws org.apache.thrift.TException {
-
 
21073
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
21074
          throw new IllegalStateException("Method call not finished!");
-
 
21075
        }
-
 
21076
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
21077
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
21078
        return (new Client(prot)).recv_getPaginatedRechargeOrders();
-
 
21079
      }
-
 
21080
    }
-
 
21081
 
21015
  }
21082
  }
21016
 
21083
 
21017
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
21084
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
21018
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
21085
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
21019
    public Processor(I iface) {
21086
    public Processor(I iface) {
Line 21343... Line 21410...
21343
      processMap.put("getPmsaUsers", new getPmsaUsers());
21410
      processMap.put("getPmsaUsers", new getPmsaUsers());
21344
      processMap.put("getPendingAssociates", new getPendingAssociates());
21411
      processMap.put("getPendingAssociates", new getPendingAssociates());
21345
      processMap.put("getStatsForAssociates", new getStatsForAssociates());
21412
      processMap.put("getStatsForAssociates", new getStatsForAssociates());
21346
      processMap.put("getmypmsaprofile", new getmypmsaprofile());
21413
      processMap.put("getmypmsaprofile", new getmypmsaprofile());
21347
      processMap.put("creditUserWallet", new creditUserWallet());
21414
      processMap.put("creditUserWallet", new creditUserWallet());
-
 
21415
      processMap.put("getPaginatedRechargeOrders", new getPaginatedRechargeOrders());
21348
      return processMap;
21416
      return processMap;
21349
    }
21417
    }
21350
 
21418
 
21351
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
21419
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
21352
      public createTransaction() {
21420
      public createTransaction() {
Line 27106... Line 27174...
27106
        result.setSuccessIsSet(true);
27174
        result.setSuccessIsSet(true);
27107
        return result;
27175
        return result;
27108
      }
27176
      }
27109
    }
27177
    }
27110
 
27178
 
-
 
27179
    private static class getPaginatedRechargeOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaginatedRechargeOrders_args> {
-
 
27180
      public getPaginatedRechargeOrders() {
-
 
27181
        super("getPaginatedRechargeOrders");
-
 
27182
      }
-
 
27183
 
-
 
27184
      protected getPaginatedRechargeOrders_args getEmptyArgsInstance() {
-
 
27185
        return new getPaginatedRechargeOrders_args();
-
 
27186
      }
-
 
27187
 
-
 
27188
      protected getPaginatedRechargeOrders_result getResult(I iface, getPaginatedRechargeOrders_args args) throws org.apache.thrift.TException {
-
 
27189
        getPaginatedRechargeOrders_result result = new getPaginatedRechargeOrders_result();
-
 
27190
        result.success = iface.getPaginatedRechargeOrders(args.userId, args.offset, args.limit);
-
 
27191
        return result;
-
 
27192
      }
-
 
27193
    }
-
 
27194
 
27111
  }
27195
  }
27112
 
27196
 
27113
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
27197
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
27114
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
27198
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
27115
 
27199
 
Line 255042... Line 255126...
255042
      first = false;
255126
      first = false;
255043
      sb.append(")");
255127
      sb.append(")");
255044
      return sb.toString();
255128
      return sb.toString();
255045
    }
255129
    }
255046
 
255130
 
-
 
255131
    public void validate() throws org.apache.thrift.TException {
-
 
255132
      // check for required fields
-
 
255133
    }
-
 
255134
 
-
 
255135
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
255136
      try {
-
 
255137
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
255138
      } catch (org.apache.thrift.TException te) {
-
 
255139
        throw new java.io.IOException(te);
-
 
255140
      }
-
 
255141
    }
-
 
255142
 
-
 
255143
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
255144
      try {
-
 
255145
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
255146
      } catch (org.apache.thrift.TException te) {
-
 
255147
        throw new java.io.IOException(te);
-
 
255148
      }
-
 
255149
    }
-
 
255150
 
-
 
255151
  }
-
 
255152
 
-
 
255153
  public static class getPaginatedRechargeOrders_args implements org.apache.thrift.TBase<getPaginatedRechargeOrders_args, getPaginatedRechargeOrders_args._Fields>, java.io.Serializable, Cloneable   {
-
 
255154
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaginatedRechargeOrders_args");
-
 
255155
 
-
 
255156
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
255157
    private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)2);
-
 
255158
    private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)3);
-
 
255159
 
-
 
255160
    private long userId; // required
-
 
255161
    private int offset; // required
-
 
255162
    private int limit; // required
-
 
255163
 
-
 
255164
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
255165
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
255166
      USER_ID((short)1, "userId"),
-
 
255167
      OFFSET((short)2, "offset"),
-
 
255168
      LIMIT((short)3, "limit");
-
 
255169
 
-
 
255170
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
255171
 
-
 
255172
      static {
-
 
255173
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
255174
          byName.put(field.getFieldName(), field);
-
 
255175
        }
-
 
255176
      }
-
 
255177
 
-
 
255178
      /**
-
 
255179
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
255180
       */
-
 
255181
      public static _Fields findByThriftId(int fieldId) {
-
 
255182
        switch(fieldId) {
-
 
255183
          case 1: // USER_ID
-
 
255184
            return USER_ID;
-
 
255185
          case 2: // OFFSET
-
 
255186
            return OFFSET;
-
 
255187
          case 3: // LIMIT
-
 
255188
            return LIMIT;
-
 
255189
          default:
-
 
255190
            return null;
-
 
255191
        }
-
 
255192
      }
-
 
255193
 
-
 
255194
      /**
-
 
255195
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
255196
       * if it is not found.
-
 
255197
       */
-
 
255198
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
255199
        _Fields fields = findByThriftId(fieldId);
-
 
255200
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
255201
        return fields;
-
 
255202
      }
-
 
255203
 
-
 
255204
      /**
-
 
255205
       * Find the _Fields constant that matches name, or null if its not found.
-
 
255206
       */
-
 
255207
      public static _Fields findByName(String name) {
-
 
255208
        return byName.get(name);
-
 
255209
      }
-
 
255210
 
-
 
255211
      private final short _thriftId;
-
 
255212
      private final String _fieldName;
-
 
255213
 
-
 
255214
      _Fields(short thriftId, String fieldName) {
-
 
255215
        _thriftId = thriftId;
-
 
255216
        _fieldName = fieldName;
-
 
255217
      }
-
 
255218
 
-
 
255219
      public short getThriftFieldId() {
-
 
255220
        return _thriftId;
-
 
255221
      }
-
 
255222
 
-
 
255223
      public String getFieldName() {
-
 
255224
        return _fieldName;
-
 
255225
      }
-
 
255226
    }
-
 
255227
 
-
 
255228
    // isset id assignments
-
 
255229
    private static final int __USERID_ISSET_ID = 0;
-
 
255230
    private static final int __OFFSET_ISSET_ID = 1;
-
 
255231
    private static final int __LIMIT_ISSET_ID = 2;
-
 
255232
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
255233
 
-
 
255234
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
255235
    static {
-
 
255236
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
255237
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
255238
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
255239
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
255240
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
255241
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
255242
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
255243
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
255244
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaginatedRechargeOrders_args.class, metaDataMap);
-
 
255245
    }
-
 
255246
 
-
 
255247
    public getPaginatedRechargeOrders_args() {
-
 
255248
    }
-
 
255249
 
-
 
255250
    public getPaginatedRechargeOrders_args(
-
 
255251
      long userId,
-
 
255252
      int offset,
-
 
255253
      int limit)
-
 
255254
    {
-
 
255255
      this();
-
 
255256
      this.userId = userId;
-
 
255257
      setUserIdIsSet(true);
-
 
255258
      this.offset = offset;
-
 
255259
      setOffsetIsSet(true);
-
 
255260
      this.limit = limit;
-
 
255261
      setLimitIsSet(true);
-
 
255262
    }
-
 
255263
 
-
 
255264
    /**
-
 
255265
     * Performs a deep copy on <i>other</i>.
-
 
255266
     */
-
 
255267
    public getPaginatedRechargeOrders_args(getPaginatedRechargeOrders_args other) {
-
 
255268
      __isset_bit_vector.clear();
-
 
255269
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
255270
      this.userId = other.userId;
-
 
255271
      this.offset = other.offset;
-
 
255272
      this.limit = other.limit;
-
 
255273
    }
-
 
255274
 
-
 
255275
    public getPaginatedRechargeOrders_args deepCopy() {
-
 
255276
      return new getPaginatedRechargeOrders_args(this);
-
 
255277
    }
-
 
255278
 
-
 
255279
    @Override
-
 
255280
    public void clear() {
-
 
255281
      setUserIdIsSet(false);
-
 
255282
      this.userId = 0;
-
 
255283
      setOffsetIsSet(false);
-
 
255284
      this.offset = 0;
-
 
255285
      setLimitIsSet(false);
-
 
255286
      this.limit = 0;
-
 
255287
    }
-
 
255288
 
-
 
255289
    public long getUserId() {
-
 
255290
      return this.userId;
-
 
255291
    }
-
 
255292
 
-
 
255293
    public void setUserId(long userId) {
-
 
255294
      this.userId = userId;
-
 
255295
      setUserIdIsSet(true);
-
 
255296
    }
-
 
255297
 
-
 
255298
    public void unsetUserId() {
-
 
255299
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
255300
    }
-
 
255301
 
-
 
255302
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
255303
    public boolean isSetUserId() {
-
 
255304
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
255305
    }
-
 
255306
 
-
 
255307
    public void setUserIdIsSet(boolean value) {
-
 
255308
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
255309
    }
-
 
255310
 
-
 
255311
    public int getOffset() {
-
 
255312
      return this.offset;
-
 
255313
    }
-
 
255314
 
-
 
255315
    public void setOffset(int offset) {
-
 
255316
      this.offset = offset;
-
 
255317
      setOffsetIsSet(true);
-
 
255318
    }
-
 
255319
 
-
 
255320
    public void unsetOffset() {
-
 
255321
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
-
 
255322
    }
-
 
255323
 
-
 
255324
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
-
 
255325
    public boolean isSetOffset() {
-
 
255326
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
-
 
255327
    }
-
 
255328
 
-
 
255329
    public void setOffsetIsSet(boolean value) {
-
 
255330
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
-
 
255331
    }
-
 
255332
 
-
 
255333
    public int getLimit() {
-
 
255334
      return this.limit;
-
 
255335
    }
-
 
255336
 
-
 
255337
    public void setLimit(int limit) {
-
 
255338
      this.limit = limit;
-
 
255339
      setLimitIsSet(true);
-
 
255340
    }
-
 
255341
 
-
 
255342
    public void unsetLimit() {
-
 
255343
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
-
 
255344
    }
-
 
255345
 
-
 
255346
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
-
 
255347
    public boolean isSetLimit() {
-
 
255348
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
-
 
255349
    }
-
 
255350
 
-
 
255351
    public void setLimitIsSet(boolean value) {
-
 
255352
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
-
 
255353
    }
-
 
255354
 
-
 
255355
    public void setFieldValue(_Fields field, Object value) {
-
 
255356
      switch (field) {
-
 
255357
      case USER_ID:
-
 
255358
        if (value == null) {
-
 
255359
          unsetUserId();
-
 
255360
        } else {
-
 
255361
          setUserId((Long)value);
-
 
255362
        }
-
 
255363
        break;
-
 
255364
 
-
 
255365
      case OFFSET:
-
 
255366
        if (value == null) {
-
 
255367
          unsetOffset();
-
 
255368
        } else {
-
 
255369
          setOffset((Integer)value);
-
 
255370
        }
-
 
255371
        break;
-
 
255372
 
-
 
255373
      case LIMIT:
-
 
255374
        if (value == null) {
-
 
255375
          unsetLimit();
-
 
255376
        } else {
-
 
255377
          setLimit((Integer)value);
-
 
255378
        }
-
 
255379
        break;
-
 
255380
 
-
 
255381
      }
-
 
255382
    }
-
 
255383
 
-
 
255384
    public Object getFieldValue(_Fields field) {
-
 
255385
      switch (field) {
-
 
255386
      case USER_ID:
-
 
255387
        return Long.valueOf(getUserId());
-
 
255388
 
-
 
255389
      case OFFSET:
-
 
255390
        return Integer.valueOf(getOffset());
-
 
255391
 
-
 
255392
      case LIMIT:
-
 
255393
        return Integer.valueOf(getLimit());
-
 
255394
 
-
 
255395
      }
-
 
255396
      throw new IllegalStateException();
-
 
255397
    }
-
 
255398
 
-
 
255399
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
255400
    public boolean isSet(_Fields field) {
-
 
255401
      if (field == null) {
-
 
255402
        throw new IllegalArgumentException();
-
 
255403
      }
-
 
255404
 
-
 
255405
      switch (field) {
-
 
255406
      case USER_ID:
-
 
255407
        return isSetUserId();
-
 
255408
      case OFFSET:
-
 
255409
        return isSetOffset();
-
 
255410
      case LIMIT:
-
 
255411
        return isSetLimit();
-
 
255412
      }
-
 
255413
      throw new IllegalStateException();
-
 
255414
    }
-
 
255415
 
-
 
255416
    @Override
-
 
255417
    public boolean equals(Object that) {
-
 
255418
      if (that == null)
-
 
255419
        return false;
-
 
255420
      if (that instanceof getPaginatedRechargeOrders_args)
-
 
255421
        return this.equals((getPaginatedRechargeOrders_args)that);
-
 
255422
      return false;
-
 
255423
    }
-
 
255424
 
-
 
255425
    public boolean equals(getPaginatedRechargeOrders_args that) {
-
 
255426
      if (that == null)
-
 
255427
        return false;
-
 
255428
 
-
 
255429
      boolean this_present_userId = true;
-
 
255430
      boolean that_present_userId = true;
-
 
255431
      if (this_present_userId || that_present_userId) {
-
 
255432
        if (!(this_present_userId && that_present_userId))
-
 
255433
          return false;
-
 
255434
        if (this.userId != that.userId)
-
 
255435
          return false;
-
 
255436
      }
-
 
255437
 
-
 
255438
      boolean this_present_offset = true;
-
 
255439
      boolean that_present_offset = true;
-
 
255440
      if (this_present_offset || that_present_offset) {
-
 
255441
        if (!(this_present_offset && that_present_offset))
-
 
255442
          return false;
-
 
255443
        if (this.offset != that.offset)
-
 
255444
          return false;
-
 
255445
      }
-
 
255446
 
-
 
255447
      boolean this_present_limit = true;
-
 
255448
      boolean that_present_limit = true;
-
 
255449
      if (this_present_limit || that_present_limit) {
-
 
255450
        if (!(this_present_limit && that_present_limit))
-
 
255451
          return false;
-
 
255452
        if (this.limit != that.limit)
-
 
255453
          return false;
-
 
255454
      }
-
 
255455
 
-
 
255456
      return true;
-
 
255457
    }
-
 
255458
 
-
 
255459
    @Override
-
 
255460
    public int hashCode() {
-
 
255461
      return 0;
-
 
255462
    }
-
 
255463
 
-
 
255464
    public int compareTo(getPaginatedRechargeOrders_args other) {
-
 
255465
      if (!getClass().equals(other.getClass())) {
-
 
255466
        return getClass().getName().compareTo(other.getClass().getName());
-
 
255467
      }
-
 
255468
 
-
 
255469
      int lastComparison = 0;
-
 
255470
      getPaginatedRechargeOrders_args typedOther = (getPaginatedRechargeOrders_args)other;
-
 
255471
 
-
 
255472
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
255473
      if (lastComparison != 0) {
-
 
255474
        return lastComparison;
-
 
255475
      }
-
 
255476
      if (isSetUserId()) {
-
 
255477
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
255478
        if (lastComparison != 0) {
-
 
255479
          return lastComparison;
-
 
255480
        }
-
 
255481
      }
-
 
255482
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
-
 
255483
      if (lastComparison != 0) {
-
 
255484
        return lastComparison;
-
 
255485
      }
-
 
255486
      if (isSetOffset()) {
-
 
255487
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
-
 
255488
        if (lastComparison != 0) {
-
 
255489
          return lastComparison;
-
 
255490
        }
-
 
255491
      }
-
 
255492
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
-
 
255493
      if (lastComparison != 0) {
-
 
255494
        return lastComparison;
-
 
255495
      }
-
 
255496
      if (isSetLimit()) {
-
 
255497
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
-
 
255498
        if (lastComparison != 0) {
-
 
255499
          return lastComparison;
-
 
255500
        }
-
 
255501
      }
-
 
255502
      return 0;
-
 
255503
    }
-
 
255504
 
-
 
255505
    public _Fields fieldForId(int fieldId) {
-
 
255506
      return _Fields.findByThriftId(fieldId);
-
 
255507
    }
-
 
255508
 
-
 
255509
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
255510
      org.apache.thrift.protocol.TField field;
-
 
255511
      iprot.readStructBegin();
-
 
255512
      while (true)
-
 
255513
      {
-
 
255514
        field = iprot.readFieldBegin();
-
 
255515
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
255516
          break;
-
 
255517
        }
-
 
255518
        switch (field.id) {
-
 
255519
          case 1: // USER_ID
-
 
255520
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
255521
              this.userId = iprot.readI64();
-
 
255522
              setUserIdIsSet(true);
-
 
255523
            } else { 
-
 
255524
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
255525
            }
-
 
255526
            break;
-
 
255527
          case 2: // OFFSET
-
 
255528
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
255529
              this.offset = iprot.readI32();
-
 
255530
              setOffsetIsSet(true);
-
 
255531
            } else { 
-
 
255532
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
255533
            }
-
 
255534
            break;
-
 
255535
          case 3: // LIMIT
-
 
255536
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
255537
              this.limit = iprot.readI32();
-
 
255538
              setLimitIsSet(true);
-
 
255539
            } else { 
-
 
255540
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
255541
            }
-
 
255542
            break;
-
 
255543
          default:
-
 
255544
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
255545
        }
-
 
255546
        iprot.readFieldEnd();
-
 
255547
      }
-
 
255548
      iprot.readStructEnd();
-
 
255549
      validate();
-
 
255550
    }
-
 
255551
 
-
 
255552
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
255553
      validate();
-
 
255554
 
-
 
255555
      oprot.writeStructBegin(STRUCT_DESC);
-
 
255556
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
255557
      oprot.writeI64(this.userId);
-
 
255558
      oprot.writeFieldEnd();
-
 
255559
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
-
 
255560
      oprot.writeI32(this.offset);
-
 
255561
      oprot.writeFieldEnd();
-
 
255562
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
-
 
255563
      oprot.writeI32(this.limit);
-
 
255564
      oprot.writeFieldEnd();
-
 
255565
      oprot.writeFieldStop();
-
 
255566
      oprot.writeStructEnd();
-
 
255567
    }
-
 
255568
 
-
 
255569
    @Override
-
 
255570
    public String toString() {
-
 
255571
      StringBuilder sb = new StringBuilder("getPaginatedRechargeOrders_args(");
-
 
255572
      boolean first = true;
-
 
255573
 
-
 
255574
      sb.append("userId:");
-
 
255575
      sb.append(this.userId);
-
 
255576
      first = false;
-
 
255577
      if (!first) sb.append(", ");
-
 
255578
      sb.append("offset:");
-
 
255579
      sb.append(this.offset);
-
 
255580
      first = false;
-
 
255581
      if (!first) sb.append(", ");
-
 
255582
      sb.append("limit:");
-
 
255583
      sb.append(this.limit);
-
 
255584
      first = false;
-
 
255585
      sb.append(")");
-
 
255586
      return sb.toString();
-
 
255587
    }
-
 
255588
 
-
 
255589
    public void validate() throws org.apache.thrift.TException {
-
 
255590
      // check for required fields
-
 
255591
    }
-
 
255592
 
-
 
255593
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
255594
      try {
-
 
255595
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
255596
      } catch (org.apache.thrift.TException te) {
-
 
255597
        throw new java.io.IOException(te);
-
 
255598
      }
-
 
255599
    }
-
 
255600
 
-
 
255601
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
255602
      try {
-
 
255603
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
255604
        __isset_bit_vector = new BitSet(1);
-
 
255605
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
255606
      } catch (org.apache.thrift.TException te) {
-
 
255607
        throw new java.io.IOException(te);
-
 
255608
      }
-
 
255609
    }
-
 
255610
 
-
 
255611
  }
-
 
255612
 
-
 
255613
  public static class getPaginatedRechargeOrders_result implements org.apache.thrift.TBase<getPaginatedRechargeOrders_result, getPaginatedRechargeOrders_result._Fields>, java.io.Serializable, Cloneable   {
-
 
255614
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaginatedRechargeOrders_result");
-
 
255615
 
-
 
255616
    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);
-
 
255617
 
-
 
255618
    private List<RechargeOrder> success; // required
-
 
255619
 
-
 
255620
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
255621
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
255622
      SUCCESS((short)0, "success");
-
 
255623
 
-
 
255624
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
255625
 
-
 
255626
      static {
-
 
255627
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
255628
          byName.put(field.getFieldName(), field);
-
 
255629
        }
-
 
255630
      }
-
 
255631
 
-
 
255632
      /**
-
 
255633
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
255634
       */
-
 
255635
      public static _Fields findByThriftId(int fieldId) {
-
 
255636
        switch(fieldId) {
-
 
255637
          case 0: // SUCCESS
-
 
255638
            return SUCCESS;
-
 
255639
          default:
-
 
255640
            return null;
-
 
255641
        }
-
 
255642
      }
-
 
255643
 
-
 
255644
      /**
-
 
255645
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
255646
       * if it is not found.
-
 
255647
       */
-
 
255648
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
255649
        _Fields fields = findByThriftId(fieldId);
-
 
255650
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
255651
        return fields;
-
 
255652
      }
-
 
255653
 
-
 
255654
      /**
-
 
255655
       * Find the _Fields constant that matches name, or null if its not found.
-
 
255656
       */
-
 
255657
      public static _Fields findByName(String name) {
-
 
255658
        return byName.get(name);
-
 
255659
      }
-
 
255660
 
-
 
255661
      private final short _thriftId;
-
 
255662
      private final String _fieldName;
-
 
255663
 
-
 
255664
      _Fields(short thriftId, String fieldName) {
-
 
255665
        _thriftId = thriftId;
-
 
255666
        _fieldName = fieldName;
-
 
255667
      }
-
 
255668
 
-
 
255669
      public short getThriftFieldId() {
-
 
255670
        return _thriftId;
-
 
255671
      }
-
 
255672
 
-
 
255673
      public String getFieldName() {
-
 
255674
        return _fieldName;
-
 
255675
      }
-
 
255676
    }
-
 
255677
 
-
 
255678
    // isset id assignments
-
 
255679
 
-
 
255680
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
255681
    static {
-
 
255682
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
255683
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
255684
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
255685
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RechargeOrder.class))));
-
 
255686
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
255687
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaginatedRechargeOrders_result.class, metaDataMap);
-
 
255688
    }
-
 
255689
 
-
 
255690
    public getPaginatedRechargeOrders_result() {
-
 
255691
    }
-
 
255692
 
-
 
255693
    public getPaginatedRechargeOrders_result(
-
 
255694
      List<RechargeOrder> success)
-
 
255695
    {
-
 
255696
      this();
-
 
255697
      this.success = success;
-
 
255698
    }
-
 
255699
 
-
 
255700
    /**
-
 
255701
     * Performs a deep copy on <i>other</i>.
-
 
255702
     */
-
 
255703
    public getPaginatedRechargeOrders_result(getPaginatedRechargeOrders_result other) {
-
 
255704
      if (other.isSetSuccess()) {
-
 
255705
        List<RechargeOrder> __this__success = new ArrayList<RechargeOrder>();
-
 
255706
        for (RechargeOrder other_element : other.success) {
-
 
255707
          __this__success.add(new RechargeOrder(other_element));
-
 
255708
        }
-
 
255709
        this.success = __this__success;
-
 
255710
      }
-
 
255711
    }
-
 
255712
 
-
 
255713
    public getPaginatedRechargeOrders_result deepCopy() {
-
 
255714
      return new getPaginatedRechargeOrders_result(this);
-
 
255715
    }
-
 
255716
 
-
 
255717
    @Override
-
 
255718
    public void clear() {
-
 
255719
      this.success = null;
-
 
255720
    }
-
 
255721
 
-
 
255722
    public int getSuccessSize() {
-
 
255723
      return (this.success == null) ? 0 : this.success.size();
-
 
255724
    }
-
 
255725
 
-
 
255726
    public java.util.Iterator<RechargeOrder> getSuccessIterator() {
-
 
255727
      return (this.success == null) ? null : this.success.iterator();
-
 
255728
    }
-
 
255729
 
-
 
255730
    public void addToSuccess(RechargeOrder elem) {
-
 
255731
      if (this.success == null) {
-
 
255732
        this.success = new ArrayList<RechargeOrder>();
-
 
255733
      }
-
 
255734
      this.success.add(elem);
-
 
255735
    }
-
 
255736
 
-
 
255737
    public List<RechargeOrder> getSuccess() {
-
 
255738
      return this.success;
-
 
255739
    }
-
 
255740
 
-
 
255741
    public void setSuccess(List<RechargeOrder> success) {
-
 
255742
      this.success = success;
-
 
255743
    }
-
 
255744
 
-
 
255745
    public void unsetSuccess() {
-
 
255746
      this.success = null;
-
 
255747
    }
-
 
255748
 
-
 
255749
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
255750
    public boolean isSetSuccess() {
-
 
255751
      return this.success != null;
-
 
255752
    }
-
 
255753
 
-
 
255754
    public void setSuccessIsSet(boolean value) {
-
 
255755
      if (!value) {
-
 
255756
        this.success = null;
-
 
255757
      }
-
 
255758
    }
-
 
255759
 
-
 
255760
    public void setFieldValue(_Fields field, Object value) {
-
 
255761
      switch (field) {
-
 
255762
      case SUCCESS:
-
 
255763
        if (value == null) {
-
 
255764
          unsetSuccess();
-
 
255765
        } else {
-
 
255766
          setSuccess((List<RechargeOrder>)value);
-
 
255767
        }
-
 
255768
        break;
-
 
255769
 
-
 
255770
      }
-
 
255771
    }
-
 
255772
 
-
 
255773
    public Object getFieldValue(_Fields field) {
-
 
255774
      switch (field) {
-
 
255775
      case SUCCESS:
-
 
255776
        return getSuccess();
-
 
255777
 
-
 
255778
      }
-
 
255779
      throw new IllegalStateException();
-
 
255780
    }
-
 
255781
 
-
 
255782
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
255783
    public boolean isSet(_Fields field) {
-
 
255784
      if (field == null) {
-
 
255785
        throw new IllegalArgumentException();
-
 
255786
      }
-
 
255787
 
-
 
255788
      switch (field) {
-
 
255789
      case SUCCESS:
-
 
255790
        return isSetSuccess();
-
 
255791
      }
-
 
255792
      throw new IllegalStateException();
-
 
255793
    }
-
 
255794
 
-
 
255795
    @Override
-
 
255796
    public boolean equals(Object that) {
-
 
255797
      if (that == null)
-
 
255798
        return false;
-
 
255799
      if (that instanceof getPaginatedRechargeOrders_result)
-
 
255800
        return this.equals((getPaginatedRechargeOrders_result)that);
-
 
255801
      return false;
-
 
255802
    }
-
 
255803
 
-
 
255804
    public boolean equals(getPaginatedRechargeOrders_result that) {
-
 
255805
      if (that == null)
-
 
255806
        return false;
-
 
255807
 
-
 
255808
      boolean this_present_success = true && this.isSetSuccess();
-
 
255809
      boolean that_present_success = true && that.isSetSuccess();
-
 
255810
      if (this_present_success || that_present_success) {
-
 
255811
        if (!(this_present_success && that_present_success))
-
 
255812
          return false;
-
 
255813
        if (!this.success.equals(that.success))
-
 
255814
          return false;
-
 
255815
      }
-
 
255816
 
-
 
255817
      return true;
-
 
255818
    }
-
 
255819
 
-
 
255820
    @Override
-
 
255821
    public int hashCode() {
-
 
255822
      return 0;
-
 
255823
    }
-
 
255824
 
-
 
255825
    public int compareTo(getPaginatedRechargeOrders_result other) {
-
 
255826
      if (!getClass().equals(other.getClass())) {
-
 
255827
        return getClass().getName().compareTo(other.getClass().getName());
-
 
255828
      }
-
 
255829
 
-
 
255830
      int lastComparison = 0;
-
 
255831
      getPaginatedRechargeOrders_result typedOther = (getPaginatedRechargeOrders_result)other;
-
 
255832
 
-
 
255833
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
255834
      if (lastComparison != 0) {
-
 
255835
        return lastComparison;
-
 
255836
      }
-
 
255837
      if (isSetSuccess()) {
-
 
255838
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
255839
        if (lastComparison != 0) {
-
 
255840
          return lastComparison;
-
 
255841
        }
-
 
255842
      }
-
 
255843
      return 0;
-
 
255844
    }
-
 
255845
 
-
 
255846
    public _Fields fieldForId(int fieldId) {
-
 
255847
      return _Fields.findByThriftId(fieldId);
-
 
255848
    }
-
 
255849
 
-
 
255850
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
255851
      org.apache.thrift.protocol.TField field;
-
 
255852
      iprot.readStructBegin();
-
 
255853
      while (true)
-
 
255854
      {
-
 
255855
        field = iprot.readFieldBegin();
-
 
255856
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
255857
          break;
-
 
255858
        }
-
 
255859
        switch (field.id) {
-
 
255860
          case 0: // SUCCESS
-
 
255861
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
255862
              {
-
 
255863
                org.apache.thrift.protocol.TList _list873 = iprot.readListBegin();
-
 
255864
                this.success = new ArrayList<RechargeOrder>(_list873.size);
-
 
255865
                for (int _i874 = 0; _i874 < _list873.size; ++_i874)
-
 
255866
                {
-
 
255867
                  RechargeOrder _elem875; // required
-
 
255868
                  _elem875 = new RechargeOrder();
-
 
255869
                  _elem875.read(iprot);
-
 
255870
                  this.success.add(_elem875);
-
 
255871
                }
-
 
255872
                iprot.readListEnd();
-
 
255873
              }
-
 
255874
            } else { 
-
 
255875
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
255876
            }
-
 
255877
            break;
-
 
255878
          default:
-
 
255879
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
255880
        }
-
 
255881
        iprot.readFieldEnd();
-
 
255882
      }
-
 
255883
      iprot.readStructEnd();
-
 
255884
      validate();
-
 
255885
    }
-
 
255886
 
-
 
255887
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
255888
      oprot.writeStructBegin(STRUCT_DESC);
-
 
255889
 
-
 
255890
      if (this.isSetSuccess()) {
-
 
255891
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
255892
        {
-
 
255893
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
255894
          for (RechargeOrder _iter876 : this.success)
-
 
255895
          {
-
 
255896
            _iter876.write(oprot);
-
 
255897
          }
-
 
255898
          oprot.writeListEnd();
-
 
255899
        }
-
 
255900
        oprot.writeFieldEnd();
-
 
255901
      }
-
 
255902
      oprot.writeFieldStop();
-
 
255903
      oprot.writeStructEnd();
-
 
255904
    }
-
 
255905
 
-
 
255906
    @Override
-
 
255907
    public String toString() {
-
 
255908
      StringBuilder sb = new StringBuilder("getPaginatedRechargeOrders_result(");
-
 
255909
      boolean first = true;
-
 
255910
 
-
 
255911
      sb.append("success:");
-
 
255912
      if (this.success == null) {
-
 
255913
        sb.append("null");
-
 
255914
      } else {
-
 
255915
        sb.append(this.success);
-
 
255916
      }
-
 
255917
      first = false;
-
 
255918
      sb.append(")");
-
 
255919
      return sb.toString();
-
 
255920
    }
-
 
255921
 
255047
    public void validate() throws org.apache.thrift.TException {
255922
    public void validate() throws org.apache.thrift.TException {
255048
      // check for required fields
255923
      // check for required fields
255049
    }
255924
    }
255050
 
255925
 
255051
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
255926
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {