Subversion Repositories SmartDukaan

Rev

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

Rev 3499 Rev 3530
Line 2191... Line 2191...
2191
    }
2191
    }
2192
 
2192
 
2193
    public void increaseTrustLevel(long userId, double trustLevelDelta) throws org.apache.thrift.TException
2193
    public void increaseTrustLevel(long userId, double trustLevelDelta) throws org.apache.thrift.TException
2194
    {
2194
    {
2195
      send_increaseTrustLevel(userId, trustLevelDelta);
2195
      send_increaseTrustLevel(userId, trustLevelDelta);
2196
      recv_increaseTrustLevel();
-
 
2197
    }
2196
    }
2198
 
2197
 
2199
    public void send_increaseTrustLevel(long userId, double trustLevelDelta) throws org.apache.thrift.TException
2198
    public void send_increaseTrustLevel(long userId, double trustLevelDelta) throws org.apache.thrift.TException
2200
    {
2199
    {
2201
      increaseTrustLevel_args args = new increaseTrustLevel_args();
2200
      increaseTrustLevel_args args = new increaseTrustLevel_args();
2202
      args.setUserId(userId);
2201
      args.setUserId(userId);
2203
      args.setTrustLevelDelta(trustLevelDelta);
2202
      args.setTrustLevelDelta(trustLevelDelta);
2204
      sendBase("increaseTrustLevel", args);
2203
      sendBase("increaseTrustLevel", args);
2205
    }
2204
    }
2206
 
2205
 
2207
    public void recv_increaseTrustLevel() throws org.apache.thrift.TException
-
 
2208
    {
-
 
2209
      increaseTrustLevel_result result = new increaseTrustLevel_result();
-
 
2210
      receiveBase(result, "increaseTrustLevel");
-
 
2211
      return;
-
 
2212
    }
-
 
2213
 
-
 
2214
  }
2206
  }
2215
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2207
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2216
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2208
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2217
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2209
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2218
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2210
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4582... Line 4574...
4582
 
4574
 
4583
    public static class increaseTrustLevel_call extends org.apache.thrift.async.TAsyncMethodCall {
4575
    public static class increaseTrustLevel_call extends org.apache.thrift.async.TAsyncMethodCall {
4584
      private long userId;
4576
      private long userId;
4585
      private double trustLevelDelta;
4577
      private double trustLevelDelta;
4586
      public increaseTrustLevel_call(long userId, double trustLevelDelta, org.apache.thrift.async.AsyncMethodCallback<increaseTrustLevel_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 {
4578
      public increaseTrustLevel_call(long userId, double trustLevelDelta, org.apache.thrift.async.AsyncMethodCallback<increaseTrustLevel_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 {
4587
        super(client, protocolFactory, transport, resultHandler, false);
4579
        super(client, protocolFactory, transport, resultHandler, true);
4588
        this.userId = userId;
4580
        this.userId = userId;
4589
        this.trustLevelDelta = trustLevelDelta;
4581
        this.trustLevelDelta = trustLevelDelta;
4590
      }
4582
      }
4591
 
4583
 
4592
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4584
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
Line 4602... Line 4594...
4602
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4594
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4603
          throw new IllegalStateException("Method call not finished!");
4595
          throw new IllegalStateException("Method call not finished!");
4604
        }
4596
        }
4605
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4597
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4606
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4598
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4607
        (new Client(prot)).recv_increaseTrustLevel();
-
 
4608
      }
4599
      }
4609
    }
4600
    }
4610
 
4601
 
4611
  }
4602
  }
4612
 
4603
 
Line 6051... Line 6042...
6051
 
6042
 
6052
      protected increaseTrustLevel_args getEmptyArgsInstance() {
6043
      protected increaseTrustLevel_args getEmptyArgsInstance() {
6053
        return new increaseTrustLevel_args();
6044
        return new increaseTrustLevel_args();
6054
      }
6045
      }
6055
 
6046
 
6056
      protected increaseTrustLevel_result getResult(I iface, increaseTrustLevel_args args) throws org.apache.thrift.TException {
6047
      protected org.apache.thrift.TBase getResult(I iface, increaseTrustLevel_args args) throws org.apache.thrift.TException {
6057
        increaseTrustLevel_result result = new increaseTrustLevel_result();
-
 
6058
        iface.increaseTrustLevel(args.userId, args.trustLevelDelta);
6048
        iface.increaseTrustLevel(args.userId, args.trustLevelDelta);
6059
        return result;
6049
        return null;
6060
      }
6050
      }
6061
    }
6051
    }
6062
 
6052
 
6063
  }
6053
  }
6064
 
6054
 
Line 56226... Line 56216...
56226
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56216
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56227
      } catch (org.apache.thrift.TException te) {
56217
      } catch (org.apache.thrift.TException te) {
56228
        throw new java.io.IOException(te);
56218
        throw new java.io.IOException(te);
56229
      }
56219
      }
56230
    }
56220
    }
56231
 
-
 
56232
  }
-
 
56233
 
-
 
56234
  public static class increaseTrustLevel_result implements org.apache.thrift.TBase<increaseTrustLevel_result, increaseTrustLevel_result._Fields>, java.io.Serializable, Cloneable   {
-
 
56235
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("increaseTrustLevel_result");
-
 
56236
 
-
 
56237
 
-
 
56238
 
-
 
56239
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
56240
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
56241
;
-
 
56242
 
-
 
56243
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
56244
 
-
 
56245
      static {
-
 
56246
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
56247
          byName.put(field.getFieldName(), field);
-
 
56248
        }
-
 
56249
      }
-
 
56250
 
-
 
56251
      /**
-
 
56252
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
56253
       */
-
 
56254
      public static _Fields findByThriftId(int fieldId) {
-
 
56255
        switch(fieldId) {
-
 
56256
          default:
-
 
56257
            return null;
-
 
56258
        }
-
 
56259
      }
-
 
56260
 
-
 
56261
      /**
-
 
56262
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
56263
       * if it is not found.
-
 
56264
       */
-
 
56265
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
56266
        _Fields fields = findByThriftId(fieldId);
-
 
56267
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
56268
        return fields;
-
 
56269
      }
-
 
56270
 
-
 
56271
      /**
-
 
56272
       * Find the _Fields constant that matches name, or null if its not found.
-
 
56273
       */
-
 
56274
      public static _Fields findByName(String name) {
-
 
56275
        return byName.get(name);
-
 
56276
      }
-
 
56277
 
-
 
56278
      private final short _thriftId;
-
 
56279
      private final String _fieldName;
-
 
56280
 
-
 
56281
      _Fields(short thriftId, String fieldName) {
-
 
56282
        _thriftId = thriftId;
-
 
56283
        _fieldName = fieldName;
-
 
56284
      }
-
 
56285
 
-
 
56286
      public short getThriftFieldId() {
-
 
56287
        return _thriftId;
-
 
56288
      }
-
 
56289
 
-
 
56290
      public String getFieldName() {
-
 
56291
        return _fieldName;
-
 
56292
      }
-
 
56293
    }
-
 
56294
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
56295
    static {
-
 
56296
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
56297
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
56298
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increaseTrustLevel_result.class, metaDataMap);
-
 
56299
    }
-
 
56300
 
-
 
56301
    public increaseTrustLevel_result() {
-
 
56302
    }
-
 
56303
 
-
 
56304
    /**
-
 
56305
     * Performs a deep copy on <i>other</i>.
-
 
56306
     */
-
 
56307
    public increaseTrustLevel_result(increaseTrustLevel_result other) {
-
 
56308
    }
-
 
56309
 
-
 
56310
    public increaseTrustLevel_result deepCopy() {
-
 
56311
      return new increaseTrustLevel_result(this);
-
 
56312
    }
-
 
56313
 
-
 
56314
    @Override
-
 
56315
    public void clear() {
-
 
56316
    }
-
 
56317
 
-
 
56318
    public void setFieldValue(_Fields field, Object value) {
-
 
56319
      switch (field) {
-
 
56320
      }
-
 
56321
    }
-
 
56322
 
-
 
56323
    public Object getFieldValue(_Fields field) {
-
 
56324
      switch (field) {
-
 
56325
      }
-
 
56326
      throw new IllegalStateException();
-
 
56327
    }
-
 
56328
 
-
 
56329
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
56330
    public boolean isSet(_Fields field) {
-
 
56331
      if (field == null) {
-
 
56332
        throw new IllegalArgumentException();
-
 
56333
      }
-
 
56334
 
-
 
56335
      switch (field) {
-
 
56336
      }
-
 
56337
      throw new IllegalStateException();
-
 
56338
    }
-
 
56339
 
-
 
56340
    @Override
-
 
56341
    public boolean equals(Object that) {
-
 
56342
      if (that == null)
-
 
56343
        return false;
-
 
56344
      if (that instanceof increaseTrustLevel_result)
-
 
56345
        return this.equals((increaseTrustLevel_result)that);
-
 
56346
      return false;
-
 
56347
    }
-
 
56348
 
-
 
56349
    public boolean equals(increaseTrustLevel_result that) {
-
 
56350
      if (that == null)
-
 
56351
        return false;
-
 
56352
 
-
 
56353
      return true;
-
 
56354
    }
-
 
56355
 
-
 
56356
    @Override
-
 
56357
    public int hashCode() {
-
 
56358
      return 0;
-
 
56359
    }
-
 
56360
 
-
 
56361
    public int compareTo(increaseTrustLevel_result other) {
-
 
56362
      if (!getClass().equals(other.getClass())) {
-
 
56363
        return getClass().getName().compareTo(other.getClass().getName());
-
 
56364
      }
-
 
56365
 
-
 
56366
      int lastComparison = 0;
-
 
56367
      increaseTrustLevel_result typedOther = (increaseTrustLevel_result)other;
-
 
56368
 
-
 
56369
      return 0;
-
 
56370
    }
-
 
56371
 
-
 
56372
    public _Fields fieldForId(int fieldId) {
-
 
56373
      return _Fields.findByThriftId(fieldId);
-
 
56374
    }
-
 
56375
 
-
 
56376
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
56377
      org.apache.thrift.protocol.TField field;
-
 
56378
      iprot.readStructBegin();
-
 
56379
      while (true)
-
 
56380
      {
-
 
56381
        field = iprot.readFieldBegin();
-
 
56382
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
56383
          break;
-
 
56384
        }
-
 
56385
        switch (field.id) {
-
 
56386
          default:
-
 
56387
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56388
        }
-
 
56389
        iprot.readFieldEnd();
-
 
56390
      }
-
 
56391
      iprot.readStructEnd();
-
 
56392
      validate();
-
 
56393
    }
-
 
56394
 
-
 
56395
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
56396
      oprot.writeStructBegin(STRUCT_DESC);
-
 
56397
 
-
 
56398
      oprot.writeFieldStop();
-
 
56399
      oprot.writeStructEnd();
-
 
56400
    }
-
 
56401
 
-
 
56402
    @Override
-
 
56403
    public String toString() {
-
 
56404
      StringBuilder sb = new StringBuilder("increaseTrustLevel_result(");
-
 
56405
      boolean first = true;
-
 
56406
 
-
 
56407
      sb.append(")");
-
 
56408
      return sb.toString();
-
 
56409
    }
-
 
56410
 
-
 
56411
    public void validate() throws org.apache.thrift.TException {
-
 
56412
      // check for required fields
-
 
56413
    }
-
 
56414
 
-
 
56415
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
56416
      try {
-
 
56417
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
56418
      } catch (org.apache.thrift.TException te) {
-
 
56419
        throw new java.io.IOException(te);
-
 
56420
      }
-
 
56421
    }
-
 
56422
 
-
 
56423
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
56424
      try {
-
 
56425
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
56426
      } catch (org.apache.thrift.TException te) {
-
 
56427
        throw new java.io.IOException(te);
-
 
56428
      }
-
 
56429
    }
-
 
56430
 
56221
 
56431
  }
56222
  }
56432
 
56223
 
56433
}
56224
}