Subversion Repositories SmartDukaan

Rev

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

Rev 1529 Rev 1598
Line 197... Line 197...
197
 
197
 
198
    public List<Alert> getAlerts(long orderId, boolean valid) throws TException;
198
    public List<Alert> getAlerts(long orderId, boolean valid) throws TException;
199
 
199
 
200
    public void setAlert(long orderId, boolean unset, long type, String comment) throws TException;
200
    public void setAlert(long orderId, boolean unset, long type, String comment) throws TException;
201
 
201
 
-
 
202
    /**
-
 
203
     * Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
204
     */
-
 
205
    public long getValidOrderCount() throws TException;
-
 
206
 
202
  }
207
  }
203
 
208
 
204
  public static class Client implements Iface {
209
  public static class Client implements Iface {
205
    public Client(TProtocol prot)
210
    public Client(TProtocol prot)
206
    {
211
    {
Line 1419... Line 1424...
1419
      result.read(iprot_);
1424
      result.read(iprot_);
1420
      iprot_.readMessageEnd();
1425
      iprot_.readMessageEnd();
1421
      return;
1426
      return;
1422
    }
1427
    }
1423
 
1428
 
-
 
1429
    public long getValidOrderCount() throws TException
-
 
1430
    {
-
 
1431
      send_getValidOrderCount();
-
 
1432
      return recv_getValidOrderCount();
-
 
1433
    }
-
 
1434
 
-
 
1435
    public void send_getValidOrderCount() throws TException
-
 
1436
    {
-
 
1437
      oprot_.writeMessageBegin(new TMessage("getValidOrderCount", TMessageType.CALL, seqid_));
-
 
1438
      getValidOrderCount_args args = new getValidOrderCount_args();
-
 
1439
      args.write(oprot_);
-
 
1440
      oprot_.writeMessageEnd();
-
 
1441
      oprot_.getTransport().flush();
-
 
1442
    }
-
 
1443
 
-
 
1444
    public long recv_getValidOrderCount() throws TException
-
 
1445
    {
-
 
1446
      TMessage msg = iprot_.readMessageBegin();
-
 
1447
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1448
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1449
        iprot_.readMessageEnd();
-
 
1450
        throw x;
-
 
1451
      }
-
 
1452
      getValidOrderCount_result result = new getValidOrderCount_result();
-
 
1453
      result.read(iprot_);
-
 
1454
      iprot_.readMessageEnd();
-
 
1455
      if (result.isSetSuccess()) {
-
 
1456
        return result.success;
-
 
1457
      }
-
 
1458
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrderCount failed: unknown result");
-
 
1459
    }
-
 
1460
 
1424
  }
1461
  }
1425
  public static class Processor implements TProcessor {
1462
  public static class Processor implements TProcessor {
1426
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1463
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1427
    public Processor(Iface iface)
1464
    public Processor(Iface iface)
1428
    {
1465
    {
Line 1458... Line 1495...
1458
      processMap_.put("markOrdersAsFailed", new markOrdersAsFailed());
1495
      processMap_.put("markOrdersAsFailed", new markOrdersAsFailed());
1459
      processMap_.put("updateNonDeliveryReason", new updateNonDeliveryReason());
1496
      processMap_.put("updateNonDeliveryReason", new updateNonDeliveryReason());
1460
      processMap_.put("getUndeliveredOrders", new getUndeliveredOrders());
1497
      processMap_.put("getUndeliveredOrders", new getUndeliveredOrders());
1461
      processMap_.put("getAlerts", new getAlerts());
1498
      processMap_.put("getAlerts", new getAlerts());
1462
      processMap_.put("setAlert", new setAlert());
1499
      processMap_.put("setAlert", new setAlert());
-
 
1500
      processMap_.put("getValidOrderCount", new getValidOrderCount());
1463
    }
1501
    }
1464
 
1502
 
1465
    protected static interface ProcessFunction {
1503
    protected static interface ProcessFunction {
1466
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
1504
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
1467
    }
1505
    }
Line 2372... Line 2410...
2372
        oprot.getTransport().flush();
2410
        oprot.getTransport().flush();
2373
      }
2411
      }
2374
 
2412
 
2375
    }
2413
    }
2376
 
2414
 
-
 
2415
    private class getValidOrderCount implements ProcessFunction {
-
 
2416
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2417
      {
-
 
2418
        getValidOrderCount_args args = new getValidOrderCount_args();
-
 
2419
        args.read(iprot);
-
 
2420
        iprot.readMessageEnd();
-
 
2421
        getValidOrderCount_result result = new getValidOrderCount_result();
-
 
2422
        result.success = iface_.getValidOrderCount();
-
 
2423
        result.setSuccessIsSet(true);
-
 
2424
        oprot.writeMessageBegin(new TMessage("getValidOrderCount", TMessageType.REPLY, seqid));
-
 
2425
        result.write(oprot);
-
 
2426
        oprot.writeMessageEnd();
-
 
2427
        oprot.getTransport().flush();
-
 
2428
      }
-
 
2429
 
-
 
2430
    }
-
 
2431
 
2377
  }
2432
  }
2378
 
2433
 
2379
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
2434
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
2380
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
2435
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
2381
 
2436
 
Line 26071... Line 26126...
26071
      sb.append(")");
26126
      sb.append(")");
26072
      return sb.toString();
26127
      return sb.toString();
26073
    }
26128
    }
26074
 
26129
 
26075
    public void validate() throws TException {
26130
    public void validate() throws TException {
-
 
26131
      // check for required fields
-
 
26132
    }
-
 
26133
 
-
 
26134
  }
-
 
26135
 
-
 
26136
  public static class getValidOrderCount_args implements TBase<getValidOrderCount_args._Fields>, java.io.Serializable, Cloneable, Comparable<getValidOrderCount_args>   {
-
 
26137
    private static final TStruct STRUCT_DESC = new TStruct("getValidOrderCount_args");
-
 
26138
 
-
 
26139
 
-
 
26140
 
-
 
26141
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
26142
    public enum _Fields implements TFieldIdEnum {
-
 
26143
;
-
 
26144
 
-
 
26145
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
26146
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
26147
 
-
 
26148
      static {
-
 
26149
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
26150
          byId.put((int)field._thriftId, field);
-
 
26151
          byName.put(field.getFieldName(), field);
-
 
26152
        }
-
 
26153
      }
-
 
26154
 
-
 
26155
      /**
-
 
26156
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
26157
       */
-
 
26158
      public static _Fields findByThriftId(int fieldId) {
-
 
26159
        return byId.get(fieldId);
-
 
26160
      }
-
 
26161
 
-
 
26162
      /**
-
 
26163
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
26164
       * if it is not found.
-
 
26165
       */
-
 
26166
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
26167
        _Fields fields = findByThriftId(fieldId);
-
 
26168
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
26169
        return fields;
-
 
26170
      }
-
 
26171
 
-
 
26172
      /**
-
 
26173
       * Find the _Fields constant that matches name, or null if its not found.
-
 
26174
       */
-
 
26175
      public static _Fields findByName(String name) {
-
 
26176
        return byName.get(name);
-
 
26177
      }
-
 
26178
 
-
 
26179
      private final short _thriftId;
-
 
26180
      private final String _fieldName;
-
 
26181
 
-
 
26182
      _Fields(short thriftId, String fieldName) {
-
 
26183
        _thriftId = thriftId;
-
 
26184
        _fieldName = fieldName;
-
 
26185
      }
-
 
26186
 
-
 
26187
      public short getThriftFieldId() {
-
 
26188
        return _thriftId;
-
 
26189
      }
-
 
26190
 
-
 
26191
      public String getFieldName() {
-
 
26192
        return _fieldName;
-
 
26193
      }
-
 
26194
    }
-
 
26195
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
26196
    }});
-
 
26197
 
-
 
26198
    static {
-
 
26199
      FieldMetaData.addStructMetaDataMap(getValidOrderCount_args.class, metaDataMap);
-
 
26200
    }
-
 
26201
 
-
 
26202
    public getValidOrderCount_args() {
-
 
26203
    }
-
 
26204
 
-
 
26205
    /**
-
 
26206
     * Performs a deep copy on <i>other</i>.
-
 
26207
     */
-
 
26208
    public getValidOrderCount_args(getValidOrderCount_args other) {
-
 
26209
    }
-
 
26210
 
-
 
26211
    public getValidOrderCount_args deepCopy() {
-
 
26212
      return new getValidOrderCount_args(this);
-
 
26213
    }
-
 
26214
 
-
 
26215
    @Deprecated
-
 
26216
    public getValidOrderCount_args clone() {
-
 
26217
      return new getValidOrderCount_args(this);
-
 
26218
    }
-
 
26219
 
-
 
26220
    public void setFieldValue(_Fields field, Object value) {
-
 
26221
      switch (field) {
-
 
26222
      }
-
 
26223
    }
-
 
26224
 
-
 
26225
    public void setFieldValue(int fieldID, Object value) {
-
 
26226
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
26227
    }
-
 
26228
 
-
 
26229
    public Object getFieldValue(_Fields field) {
-
 
26230
      switch (field) {
-
 
26231
      }
-
 
26232
      throw new IllegalStateException();
-
 
26233
    }
-
 
26234
 
-
 
26235
    public Object getFieldValue(int fieldId) {
-
 
26236
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
26237
    }
-
 
26238
 
-
 
26239
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
26240
    public boolean isSet(_Fields field) {
-
 
26241
      switch (field) {
-
 
26242
      }
-
 
26243
      throw new IllegalStateException();
-
 
26244
    }
-
 
26245
 
-
 
26246
    public boolean isSet(int fieldID) {
-
 
26247
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
26248
    }
-
 
26249
 
-
 
26250
    @Override
-
 
26251
    public boolean equals(Object that) {
-
 
26252
      if (that == null)
-
 
26253
        return false;
-
 
26254
      if (that instanceof getValidOrderCount_args)
-
 
26255
        return this.equals((getValidOrderCount_args)that);
-
 
26256
      return false;
-
 
26257
    }
-
 
26258
 
-
 
26259
    public boolean equals(getValidOrderCount_args that) {
-
 
26260
      if (that == null)
-
 
26261
        return false;
-
 
26262
 
-
 
26263
      return true;
-
 
26264
    }
-
 
26265
 
-
 
26266
    @Override
-
 
26267
    public int hashCode() {
-
 
26268
      return 0;
-
 
26269
    }
-
 
26270
 
-
 
26271
    public int compareTo(getValidOrderCount_args other) {
-
 
26272
      if (!getClass().equals(other.getClass())) {
-
 
26273
        return getClass().getName().compareTo(other.getClass().getName());
-
 
26274
      }
-
 
26275
 
-
 
26276
      int lastComparison = 0;
-
 
26277
      getValidOrderCount_args typedOther = (getValidOrderCount_args)other;
-
 
26278
 
-
 
26279
      return 0;
-
 
26280
    }
-
 
26281
 
-
 
26282
    public void read(TProtocol iprot) throws TException {
-
 
26283
      TField field;
-
 
26284
      iprot.readStructBegin();
-
 
26285
      while (true)
-
 
26286
      {
-
 
26287
        field = iprot.readFieldBegin();
-
 
26288
        if (field.type == TType.STOP) { 
-
 
26289
          break;
-
 
26290
        }
-
 
26291
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
26292
        if (fieldId == null) {
-
 
26293
          TProtocolUtil.skip(iprot, field.type);
-
 
26294
        } else {
-
 
26295
          switch (fieldId) {
-
 
26296
          }
-
 
26297
          iprot.readFieldEnd();
-
 
26298
        }
-
 
26299
      }
-
 
26300
      iprot.readStructEnd();
-
 
26301
      validate();
-
 
26302
    }
-
 
26303
 
-
 
26304
    public void write(TProtocol oprot) throws TException {
-
 
26305
      validate();
-
 
26306
 
-
 
26307
      oprot.writeStructBegin(STRUCT_DESC);
-
 
26308
      oprot.writeFieldStop();
-
 
26309
      oprot.writeStructEnd();
-
 
26310
    }
-
 
26311
 
-
 
26312
    @Override
-
 
26313
    public String toString() {
-
 
26314
      StringBuilder sb = new StringBuilder("getValidOrderCount_args(");
-
 
26315
      boolean first = true;
-
 
26316
 
-
 
26317
      sb.append(")");
-
 
26318
      return sb.toString();
-
 
26319
    }
-
 
26320
 
-
 
26321
    public void validate() throws TException {
-
 
26322
      // check for required fields
-
 
26323
    }
-
 
26324
 
-
 
26325
  }
-
 
26326
 
-
 
26327
  public static class getValidOrderCount_result implements TBase<getValidOrderCount_result._Fields>, java.io.Serializable, Cloneable, Comparable<getValidOrderCount_result>   {
-
 
26328
    private static final TStruct STRUCT_DESC = new TStruct("getValidOrderCount_result");
-
 
26329
 
-
 
26330
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
-
 
26331
 
-
 
26332
    private long success;
-
 
26333
 
-
 
26334
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
26335
    public enum _Fields implements TFieldIdEnum {
-
 
26336
      SUCCESS((short)0, "success");
-
 
26337
 
-
 
26338
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
26339
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
26340
 
-
 
26341
      static {
-
 
26342
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
26343
          byId.put((int)field._thriftId, field);
-
 
26344
          byName.put(field.getFieldName(), field);
-
 
26345
        }
-
 
26346
      }
-
 
26347
 
-
 
26348
      /**
-
 
26349
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
26350
       */
-
 
26351
      public static _Fields findByThriftId(int fieldId) {
-
 
26352
        return byId.get(fieldId);
-
 
26353
      }
-
 
26354
 
-
 
26355
      /**
-
 
26356
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
26357
       * if it is not found.
-
 
26358
       */
-
 
26359
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
26360
        _Fields fields = findByThriftId(fieldId);
-
 
26361
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
26362
        return fields;
-
 
26363
      }
-
 
26364
 
-
 
26365
      /**
-
 
26366
       * Find the _Fields constant that matches name, or null if its not found.
-
 
26367
       */
-
 
26368
      public static _Fields findByName(String name) {
-
 
26369
        return byName.get(name);
-
 
26370
      }
-
 
26371
 
-
 
26372
      private final short _thriftId;
-
 
26373
      private final String _fieldName;
-
 
26374
 
-
 
26375
      _Fields(short thriftId, String fieldName) {
-
 
26376
        _thriftId = thriftId;
-
 
26377
        _fieldName = fieldName;
-
 
26378
      }
-
 
26379
 
-
 
26380
      public short getThriftFieldId() {
-
 
26381
        return _thriftId;
-
 
26382
      }
-
 
26383
 
-
 
26384
      public String getFieldName() {
-
 
26385
        return _fieldName;
-
 
26386
      }
-
 
26387
    }
-
 
26388
 
-
 
26389
    // isset id assignments
-
 
26390
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
26391
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
26392
 
-
 
26393
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
26394
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
26395
          new FieldValueMetaData(TType.I64)));
-
 
26396
    }});
-
 
26397
 
-
 
26398
    static {
-
 
26399
      FieldMetaData.addStructMetaDataMap(getValidOrderCount_result.class, metaDataMap);
-
 
26400
    }
-
 
26401
 
-
 
26402
    public getValidOrderCount_result() {
-
 
26403
    }
-
 
26404
 
-
 
26405
    public getValidOrderCount_result(
-
 
26406
      long success)
-
 
26407
    {
-
 
26408
      this();
-
 
26409
      this.success = success;
-
 
26410
      setSuccessIsSet(true);
-
 
26411
    }
-
 
26412
 
-
 
26413
    /**
-
 
26414
     * Performs a deep copy on <i>other</i>.
-
 
26415
     */
-
 
26416
    public getValidOrderCount_result(getValidOrderCount_result other) {
-
 
26417
      __isset_bit_vector.clear();
-
 
26418
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
26419
      this.success = other.success;
-
 
26420
    }
-
 
26421
 
-
 
26422
    public getValidOrderCount_result deepCopy() {
-
 
26423
      return new getValidOrderCount_result(this);
-
 
26424
    }
-
 
26425
 
-
 
26426
    @Deprecated
-
 
26427
    public getValidOrderCount_result clone() {
-
 
26428
      return new getValidOrderCount_result(this);
-
 
26429
    }
-
 
26430
 
-
 
26431
    public long getSuccess() {
-
 
26432
      return this.success;
-
 
26433
    }
-
 
26434
 
-
 
26435
    public getValidOrderCount_result setSuccess(long success) {
-
 
26436
      this.success = success;
-
 
26437
      setSuccessIsSet(true);
-
 
26438
      return this;
-
 
26439
    }
-
 
26440
 
-
 
26441
    public void unsetSuccess() {
-
 
26442
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
26443
    }
-
 
26444
 
-
 
26445
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
26446
    public boolean isSetSuccess() {
-
 
26447
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
26448
    }
-
 
26449
 
-
 
26450
    public void setSuccessIsSet(boolean value) {
-
 
26451
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
26452
    }
-
 
26453
 
-
 
26454
    public void setFieldValue(_Fields field, Object value) {
-
 
26455
      switch (field) {
-
 
26456
      case SUCCESS:
-
 
26457
        if (value == null) {
-
 
26458
          unsetSuccess();
-
 
26459
        } else {
-
 
26460
          setSuccess((Long)value);
-
 
26461
        }
-
 
26462
        break;
-
 
26463
 
-
 
26464
      }
-
 
26465
    }
-
 
26466
 
-
 
26467
    public void setFieldValue(int fieldID, Object value) {
-
 
26468
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
26469
    }
-
 
26470
 
-
 
26471
    public Object getFieldValue(_Fields field) {
-
 
26472
      switch (field) {
-
 
26473
      case SUCCESS:
-
 
26474
        return new Long(getSuccess());
-
 
26475
 
-
 
26476
      }
-
 
26477
      throw new IllegalStateException();
-
 
26478
    }
-
 
26479
 
-
 
26480
    public Object getFieldValue(int fieldId) {
-
 
26481
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
26482
    }
-
 
26483
 
-
 
26484
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
26485
    public boolean isSet(_Fields field) {
-
 
26486
      switch (field) {
-
 
26487
      case SUCCESS:
-
 
26488
        return isSetSuccess();
-
 
26489
      }
-
 
26490
      throw new IllegalStateException();
-
 
26491
    }
-
 
26492
 
-
 
26493
    public boolean isSet(int fieldID) {
-
 
26494
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
26495
    }
-
 
26496
 
-
 
26497
    @Override
-
 
26498
    public boolean equals(Object that) {
-
 
26499
      if (that == null)
-
 
26500
        return false;
-
 
26501
      if (that instanceof getValidOrderCount_result)
-
 
26502
        return this.equals((getValidOrderCount_result)that);
-
 
26503
      return false;
-
 
26504
    }
-
 
26505
 
-
 
26506
    public boolean equals(getValidOrderCount_result that) {
-
 
26507
      if (that == null)
-
 
26508
        return false;
-
 
26509
 
-
 
26510
      boolean this_present_success = true;
-
 
26511
      boolean that_present_success = true;
-
 
26512
      if (this_present_success || that_present_success) {
-
 
26513
        if (!(this_present_success && that_present_success))
-
 
26514
          return false;
-
 
26515
        if (this.success != that.success)
-
 
26516
          return false;
-
 
26517
      }
-
 
26518
 
-
 
26519
      return true;
-
 
26520
    }
-
 
26521
 
-
 
26522
    @Override
-
 
26523
    public int hashCode() {
-
 
26524
      return 0;
-
 
26525
    }
-
 
26526
 
-
 
26527
    public int compareTo(getValidOrderCount_result other) {
-
 
26528
      if (!getClass().equals(other.getClass())) {
-
 
26529
        return getClass().getName().compareTo(other.getClass().getName());
-
 
26530
      }
-
 
26531
 
-
 
26532
      int lastComparison = 0;
-
 
26533
      getValidOrderCount_result typedOther = (getValidOrderCount_result)other;
-
 
26534
 
-
 
26535
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
26536
      if (lastComparison != 0) {
-
 
26537
        return lastComparison;
-
 
26538
      }
-
 
26539
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
26540
      if (lastComparison != 0) {
-
 
26541
        return lastComparison;
-
 
26542
      }
-
 
26543
      return 0;
-
 
26544
    }
-
 
26545
 
-
 
26546
    public void read(TProtocol iprot) throws TException {
-
 
26547
      TField field;
-
 
26548
      iprot.readStructBegin();
-
 
26549
      while (true)
-
 
26550
      {
-
 
26551
        field = iprot.readFieldBegin();
-
 
26552
        if (field.type == TType.STOP) { 
-
 
26553
          break;
-
 
26554
        }
-
 
26555
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
26556
        if (fieldId == null) {
-
 
26557
          TProtocolUtil.skip(iprot, field.type);
-
 
26558
        } else {
-
 
26559
          switch (fieldId) {
-
 
26560
            case SUCCESS:
-
 
26561
              if (field.type == TType.I64) {
-
 
26562
                this.success = iprot.readI64();
-
 
26563
                setSuccessIsSet(true);
-
 
26564
              } else { 
-
 
26565
                TProtocolUtil.skip(iprot, field.type);
-
 
26566
              }
-
 
26567
              break;
-
 
26568
          }
-
 
26569
          iprot.readFieldEnd();
-
 
26570
        }
-
 
26571
      }
-
 
26572
      iprot.readStructEnd();
-
 
26573
      validate();
-
 
26574
    }
-
 
26575
 
-
 
26576
    public void write(TProtocol oprot) throws TException {
-
 
26577
      oprot.writeStructBegin(STRUCT_DESC);
-
 
26578
 
-
 
26579
      if (this.isSetSuccess()) {
-
 
26580
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
26581
        oprot.writeI64(this.success);
-
 
26582
        oprot.writeFieldEnd();
-
 
26583
      }
-
 
26584
      oprot.writeFieldStop();
-
 
26585
      oprot.writeStructEnd();
-
 
26586
    }
-
 
26587
 
-
 
26588
    @Override
-
 
26589
    public String toString() {
-
 
26590
      StringBuilder sb = new StringBuilder("getValidOrderCount_result(");
-
 
26591
      boolean first = true;
-
 
26592
 
-
 
26593
      sb.append("success:");
-
 
26594
      sb.append(this.success);
-
 
26595
      first = false;
-
 
26596
      sb.append(")");
-
 
26597
      return sb.toString();
-
 
26598
    }
-
 
26599
 
-
 
26600
    public void validate() throws TException {
26076
      // check for required fields
26601
      // check for required fields
26077
    }
26602
    }
26078
 
26603
 
26079
  }
26604
  }
26080
 
26605