Subversion Repositories SmartDukaan

Rev

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

Rev 3430 Rev 3499
Line 246... Line 246...
246
     * 
246
     * 
247
     * @param couponCode
247
     * @param couponCode
248
     */
248
     */
249
    public long getCartsWithCouponCount(String couponCode) throws org.apache.thrift.TException;
249
    public long getCartsWithCouponCount(String couponCode) throws org.apache.thrift.TException;
250
 
250
 
-
 
251
    /**
-
 
252
     * Updates COD trust level of a user
-
 
253
     * 
-
 
254
     * @param userId
-
 
255
     * @param trustLevelDelta
-
 
256
     */
-
 
257
    public void increaseTrustLevel(long userId, double trustLevelDelta) throws org.apache.thrift.TException;
-
 
258
 
251
  }
259
  }
252
 
260
 
253
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
261
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
254
 
262
 
255
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
263
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
Line 386... Line 394...
386
 
394
 
387
    public void updateBrowseHistory(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateBrowseHistory_call> resultHandler) throws org.apache.thrift.TException;
395
    public void updateBrowseHistory(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateBrowseHistory_call> resultHandler) throws org.apache.thrift.TException;
388
 
396
 
389
    public void getCartsWithCouponCount(String couponCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsWithCouponCount_call> resultHandler) throws org.apache.thrift.TException;
397
    public void getCartsWithCouponCount(String couponCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsWithCouponCount_call> resultHandler) throws org.apache.thrift.TException;
390
 
398
 
-
 
399
    public void increaseTrustLevel(long userId, double trustLevelDelta, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.increaseTrustLevel_call> resultHandler) throws org.apache.thrift.TException;
-
 
400
 
391
  }
401
  }
392
 
402
 
393
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
403
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
394
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
404
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
395
      public Factory() {}
405
      public Factory() {}
Line 2178... Line 2188...
2178
        return result.success;
2188
        return result.success;
2179
      }
2189
      }
2180
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2190
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2181
    }
2191
    }
2182
 
2192
 
-
 
2193
    public void increaseTrustLevel(long userId, double trustLevelDelta) throws org.apache.thrift.TException
-
 
2194
    {
-
 
2195
      send_increaseTrustLevel(userId, trustLevelDelta);
-
 
2196
      recv_increaseTrustLevel();
-
 
2197
    }
-
 
2198
 
-
 
2199
    public void send_increaseTrustLevel(long userId, double trustLevelDelta) throws org.apache.thrift.TException
-
 
2200
    {
-
 
2201
      increaseTrustLevel_args args = new increaseTrustLevel_args();
-
 
2202
      args.setUserId(userId);
-
 
2203
      args.setTrustLevelDelta(trustLevelDelta);
-
 
2204
      sendBase("increaseTrustLevel", args);
-
 
2205
    }
-
 
2206
 
-
 
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
 
2183
  }
2214
  }
2184
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2215
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2185
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2216
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2186
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2217
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2187
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2218
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4540... Line 4571...
4540
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4571
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4541
        return (new Client(prot)).recv_getCartsWithCouponCount();
4572
        return (new Client(prot)).recv_getCartsWithCouponCount();
4542
      }
4573
      }
4543
    }
4574
    }
4544
 
4575
 
-
 
4576
    public void increaseTrustLevel(long userId, double trustLevelDelta, org.apache.thrift.async.AsyncMethodCallback<increaseTrustLevel_call> resultHandler) throws org.apache.thrift.TException {
-
 
4577
      checkReady();
-
 
4578
      increaseTrustLevel_call method_call = new increaseTrustLevel_call(userId, trustLevelDelta, resultHandler, this, ___protocolFactory, ___transport);
-
 
4579
      this.___currentMethod = method_call;
-
 
4580
      ___manager.call(method_call);
-
 
4581
    }
-
 
4582
 
-
 
4583
    public static class increaseTrustLevel_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4584
      private long userId;
-
 
4585
      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 {
-
 
4587
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4588
        this.userId = userId;
-
 
4589
        this.trustLevelDelta = trustLevelDelta;
-
 
4590
      }
-
 
4591
 
-
 
4592
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4593
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("increaseTrustLevel", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4594
        increaseTrustLevel_args args = new increaseTrustLevel_args();
-
 
4595
        args.setUserId(userId);
-
 
4596
        args.setTrustLevelDelta(trustLevelDelta);
-
 
4597
        args.write(prot);
-
 
4598
        prot.writeMessageEnd();
-
 
4599
      }
-
 
4600
 
-
 
4601
      public void getResult() throws org.apache.thrift.TException {
-
 
4602
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4603
          throw new IllegalStateException("Method call not finished!");
-
 
4604
        }
-
 
4605
        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);
-
 
4607
        (new Client(prot)).recv_increaseTrustLevel();
-
 
4608
      }
-
 
4609
    }
-
 
4610
 
4545
  }
4611
  }
4546
 
4612
 
4547
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4613
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4548
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4614
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4549
    public Processor(I iface) {
4615
    public Processor(I iface) {
Line 4621... Line 4687...
4621
      processMap.put("updateMyResearch", new updateMyResearch());
4687
      processMap.put("updateMyResearch", new updateMyResearch());
4622
      processMap.put("deleteItemFromMyResearch", new deleteItemFromMyResearch());
4688
      processMap.put("deleteItemFromMyResearch", new deleteItemFromMyResearch());
4623
      processMap.put("getBrowseHistoryItems", new getBrowseHistoryItems());
4689
      processMap.put("getBrowseHistoryItems", new getBrowseHistoryItems());
4624
      processMap.put("updateBrowseHistory", new updateBrowseHistory());
4690
      processMap.put("updateBrowseHistory", new updateBrowseHistory());
4625
      processMap.put("getCartsWithCouponCount", new getCartsWithCouponCount());
4691
      processMap.put("getCartsWithCouponCount", new getCartsWithCouponCount());
-
 
4692
      processMap.put("increaseTrustLevel", new increaseTrustLevel());
4626
      return processMap;
4693
      return processMap;
4627
    }
4694
    }
4628
 
4695
 
4629
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
4696
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
4630
      public createAnonymousUser() {
4697
      public createAnonymousUser() {
Line 5975... Line 6042...
5975
        result.setSuccessIsSet(true);
6042
        result.setSuccessIsSet(true);
5976
        return result;
6043
        return result;
5977
      }
6044
      }
5978
    }
6045
    }
5979
 
6046
 
-
 
6047
    private static class increaseTrustLevel<I extends Iface> extends org.apache.thrift.ProcessFunction<I, increaseTrustLevel_args> {
-
 
6048
      public increaseTrustLevel() {
-
 
6049
        super("increaseTrustLevel");
-
 
6050
      }
-
 
6051
 
-
 
6052
      protected increaseTrustLevel_args getEmptyArgsInstance() {
-
 
6053
        return new increaseTrustLevel_args();
-
 
6054
      }
-
 
6055
 
-
 
6056
      protected increaseTrustLevel_result 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);
-
 
6059
        return result;
-
 
6060
      }
-
 
6061
    }
-
 
6062
 
5980
  }
6063
  }
5981
 
6064
 
5982
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
6065
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
5983
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
6066
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
5984
 
6067
 
Line 55748... Line 55831...
55748
      sb.append(")");
55831
      sb.append(")");
55749
      return sb.toString();
55832
      return sb.toString();
55750
    }
55833
    }
55751
 
55834
 
55752
    public void validate() throws org.apache.thrift.TException {
55835
    public void validate() throws org.apache.thrift.TException {
-
 
55836
      // check for required fields
-
 
55837
    }
-
 
55838
 
-
 
55839
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
55840
      try {
-
 
55841
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
55842
      } catch (org.apache.thrift.TException te) {
-
 
55843
        throw new java.io.IOException(te);
-
 
55844
      }
-
 
55845
    }
-
 
55846
 
-
 
55847
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
55848
      try {
-
 
55849
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
55850
      } catch (org.apache.thrift.TException te) {
-
 
55851
        throw new java.io.IOException(te);
-
 
55852
      }
-
 
55853
    }
-
 
55854
 
-
 
55855
  }
-
 
55856
 
-
 
55857
  public static class increaseTrustLevel_args implements org.apache.thrift.TBase<increaseTrustLevel_args, increaseTrustLevel_args._Fields>, java.io.Serializable, Cloneable   {
-
 
55858
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("increaseTrustLevel_args");
-
 
55859
 
-
 
55860
    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);
-
 
55861
    private static final org.apache.thrift.protocol.TField TRUST_LEVEL_DELTA_FIELD_DESC = new org.apache.thrift.protocol.TField("trustLevelDelta", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
-
 
55862
 
-
 
55863
    private long userId; // required
-
 
55864
    private double trustLevelDelta; // required
-
 
55865
 
-
 
55866
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
55867
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
55868
      USER_ID((short)1, "userId"),
-
 
55869
      TRUST_LEVEL_DELTA((short)2, "trustLevelDelta");
-
 
55870
 
-
 
55871
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
55872
 
-
 
55873
      static {
-
 
55874
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
55875
          byName.put(field.getFieldName(), field);
-
 
55876
        }
-
 
55877
      }
-
 
55878
 
-
 
55879
      /**
-
 
55880
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
55881
       */
-
 
55882
      public static _Fields findByThriftId(int fieldId) {
-
 
55883
        switch(fieldId) {
-
 
55884
          case 1: // USER_ID
-
 
55885
            return USER_ID;
-
 
55886
          case 2: // TRUST_LEVEL_DELTA
-
 
55887
            return TRUST_LEVEL_DELTA;
-
 
55888
          default:
-
 
55889
            return null;
-
 
55890
        }
-
 
55891
      }
-
 
55892
 
-
 
55893
      /**
-
 
55894
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
55895
       * if it is not found.
-
 
55896
       */
-
 
55897
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
55898
        _Fields fields = findByThriftId(fieldId);
-
 
55899
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
55900
        return fields;
-
 
55901
      }
-
 
55902
 
-
 
55903
      /**
-
 
55904
       * Find the _Fields constant that matches name, or null if its not found.
-
 
55905
       */
-
 
55906
      public static _Fields findByName(String name) {
-
 
55907
        return byName.get(name);
-
 
55908
      }
-
 
55909
 
-
 
55910
      private final short _thriftId;
-
 
55911
      private final String _fieldName;
-
 
55912
 
-
 
55913
      _Fields(short thriftId, String fieldName) {
-
 
55914
        _thriftId = thriftId;
-
 
55915
        _fieldName = fieldName;
-
 
55916
      }
-
 
55917
 
-
 
55918
      public short getThriftFieldId() {
-
 
55919
        return _thriftId;
-
 
55920
      }
-
 
55921
 
-
 
55922
      public String getFieldName() {
-
 
55923
        return _fieldName;
-
 
55924
      }
-
 
55925
    }
-
 
55926
 
-
 
55927
    // isset id assignments
-
 
55928
    private static final int __USERID_ISSET_ID = 0;
-
 
55929
    private static final int __TRUSTLEVELDELTA_ISSET_ID = 1;
-
 
55930
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
55931
 
-
 
55932
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
55933
    static {
-
 
55934
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
55935
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
55936
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
55937
      tmpMap.put(_Fields.TRUST_LEVEL_DELTA, new org.apache.thrift.meta_data.FieldMetaData("trustLevelDelta", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
55938
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
55939
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
55940
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increaseTrustLevel_args.class, metaDataMap);
-
 
55941
    }
-
 
55942
 
-
 
55943
    public increaseTrustLevel_args() {
-
 
55944
    }
-
 
55945
 
-
 
55946
    public increaseTrustLevel_args(
-
 
55947
      long userId,
-
 
55948
      double trustLevelDelta)
-
 
55949
    {
-
 
55950
      this();
-
 
55951
      this.userId = userId;
-
 
55952
      setUserIdIsSet(true);
-
 
55953
      this.trustLevelDelta = trustLevelDelta;
-
 
55954
      setTrustLevelDeltaIsSet(true);
-
 
55955
    }
-
 
55956
 
-
 
55957
    /**
-
 
55958
     * Performs a deep copy on <i>other</i>.
-
 
55959
     */
-
 
55960
    public increaseTrustLevel_args(increaseTrustLevel_args other) {
-
 
55961
      __isset_bit_vector.clear();
-
 
55962
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
55963
      this.userId = other.userId;
-
 
55964
      this.trustLevelDelta = other.trustLevelDelta;
-
 
55965
    }
-
 
55966
 
-
 
55967
    public increaseTrustLevel_args deepCopy() {
-
 
55968
      return new increaseTrustLevel_args(this);
-
 
55969
    }
-
 
55970
 
-
 
55971
    @Override
-
 
55972
    public void clear() {
-
 
55973
      setUserIdIsSet(false);
-
 
55974
      this.userId = 0;
-
 
55975
      setTrustLevelDeltaIsSet(false);
-
 
55976
      this.trustLevelDelta = 0.0;
-
 
55977
    }
-
 
55978
 
-
 
55979
    public long getUserId() {
-
 
55980
      return this.userId;
-
 
55981
    }
-
 
55982
 
-
 
55983
    public void setUserId(long userId) {
-
 
55984
      this.userId = userId;
-
 
55985
      setUserIdIsSet(true);
-
 
55986
    }
-
 
55987
 
-
 
55988
    public void unsetUserId() {
-
 
55989
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
55990
    }
-
 
55991
 
-
 
55992
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
55993
    public boolean isSetUserId() {
-
 
55994
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
55995
    }
-
 
55996
 
-
 
55997
    public void setUserIdIsSet(boolean value) {
-
 
55998
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
55999
    }
-
 
56000
 
-
 
56001
    public double getTrustLevelDelta() {
-
 
56002
      return this.trustLevelDelta;
-
 
56003
    }
-
 
56004
 
-
 
56005
    public void setTrustLevelDelta(double trustLevelDelta) {
-
 
56006
      this.trustLevelDelta = trustLevelDelta;
-
 
56007
      setTrustLevelDeltaIsSet(true);
-
 
56008
    }
-
 
56009
 
-
 
56010
    public void unsetTrustLevelDelta() {
-
 
56011
      __isset_bit_vector.clear(__TRUSTLEVELDELTA_ISSET_ID);
-
 
56012
    }
-
 
56013
 
-
 
56014
    /** Returns true if field trustLevelDelta is set (has been assigned a value) and false otherwise */
-
 
56015
    public boolean isSetTrustLevelDelta() {
-
 
56016
      return __isset_bit_vector.get(__TRUSTLEVELDELTA_ISSET_ID);
-
 
56017
    }
-
 
56018
 
-
 
56019
    public void setTrustLevelDeltaIsSet(boolean value) {
-
 
56020
      __isset_bit_vector.set(__TRUSTLEVELDELTA_ISSET_ID, value);
-
 
56021
    }
-
 
56022
 
-
 
56023
    public void setFieldValue(_Fields field, Object value) {
-
 
56024
      switch (field) {
-
 
56025
      case USER_ID:
-
 
56026
        if (value == null) {
-
 
56027
          unsetUserId();
-
 
56028
        } else {
-
 
56029
          setUserId((Long)value);
-
 
56030
        }
-
 
56031
        break;
-
 
56032
 
-
 
56033
      case TRUST_LEVEL_DELTA:
-
 
56034
        if (value == null) {
-
 
56035
          unsetTrustLevelDelta();
-
 
56036
        } else {
-
 
56037
          setTrustLevelDelta((Double)value);
-
 
56038
        }
-
 
56039
        break;
-
 
56040
 
-
 
56041
      }
-
 
56042
    }
-
 
56043
 
-
 
56044
    public Object getFieldValue(_Fields field) {
-
 
56045
      switch (field) {
-
 
56046
      case USER_ID:
-
 
56047
        return Long.valueOf(getUserId());
-
 
56048
 
-
 
56049
      case TRUST_LEVEL_DELTA:
-
 
56050
        return Double.valueOf(getTrustLevelDelta());
-
 
56051
 
-
 
56052
      }
-
 
56053
      throw new IllegalStateException();
-
 
56054
    }
-
 
56055
 
-
 
56056
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
56057
    public boolean isSet(_Fields field) {
-
 
56058
      if (field == null) {
-
 
56059
        throw new IllegalArgumentException();
-
 
56060
      }
-
 
56061
 
-
 
56062
      switch (field) {
-
 
56063
      case USER_ID:
-
 
56064
        return isSetUserId();
-
 
56065
      case TRUST_LEVEL_DELTA:
-
 
56066
        return isSetTrustLevelDelta();
-
 
56067
      }
-
 
56068
      throw new IllegalStateException();
-
 
56069
    }
-
 
56070
 
-
 
56071
    @Override
-
 
56072
    public boolean equals(Object that) {
-
 
56073
      if (that == null)
-
 
56074
        return false;
-
 
56075
      if (that instanceof increaseTrustLevel_args)
-
 
56076
        return this.equals((increaseTrustLevel_args)that);
-
 
56077
      return false;
-
 
56078
    }
-
 
56079
 
-
 
56080
    public boolean equals(increaseTrustLevel_args that) {
-
 
56081
      if (that == null)
-
 
56082
        return false;
-
 
56083
 
-
 
56084
      boolean this_present_userId = true;
-
 
56085
      boolean that_present_userId = true;
-
 
56086
      if (this_present_userId || that_present_userId) {
-
 
56087
        if (!(this_present_userId && that_present_userId))
-
 
56088
          return false;
-
 
56089
        if (this.userId != that.userId)
-
 
56090
          return false;
-
 
56091
      }
-
 
56092
 
-
 
56093
      boolean this_present_trustLevelDelta = true;
-
 
56094
      boolean that_present_trustLevelDelta = true;
-
 
56095
      if (this_present_trustLevelDelta || that_present_trustLevelDelta) {
-
 
56096
        if (!(this_present_trustLevelDelta && that_present_trustLevelDelta))
-
 
56097
          return false;
-
 
56098
        if (this.trustLevelDelta != that.trustLevelDelta)
-
 
56099
          return false;
-
 
56100
      }
-
 
56101
 
-
 
56102
      return true;
-
 
56103
    }
-
 
56104
 
-
 
56105
    @Override
-
 
56106
    public int hashCode() {
-
 
56107
      return 0;
-
 
56108
    }
-
 
56109
 
-
 
56110
    public int compareTo(increaseTrustLevel_args other) {
-
 
56111
      if (!getClass().equals(other.getClass())) {
-
 
56112
        return getClass().getName().compareTo(other.getClass().getName());
-
 
56113
      }
-
 
56114
 
-
 
56115
      int lastComparison = 0;
-
 
56116
      increaseTrustLevel_args typedOther = (increaseTrustLevel_args)other;
-
 
56117
 
-
 
56118
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
56119
      if (lastComparison != 0) {
-
 
56120
        return lastComparison;
-
 
56121
      }
-
 
56122
      if (isSetUserId()) {
-
 
56123
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
56124
        if (lastComparison != 0) {
-
 
56125
          return lastComparison;
-
 
56126
        }
-
 
56127
      }
-
 
56128
      lastComparison = Boolean.valueOf(isSetTrustLevelDelta()).compareTo(typedOther.isSetTrustLevelDelta());
-
 
56129
      if (lastComparison != 0) {
-
 
56130
        return lastComparison;
-
 
56131
      }
-
 
56132
      if (isSetTrustLevelDelta()) {
-
 
56133
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.trustLevelDelta, typedOther.trustLevelDelta);
-
 
56134
        if (lastComparison != 0) {
-
 
56135
          return lastComparison;
-
 
56136
        }
-
 
56137
      }
-
 
56138
      return 0;
-
 
56139
    }
-
 
56140
 
-
 
56141
    public _Fields fieldForId(int fieldId) {
-
 
56142
      return _Fields.findByThriftId(fieldId);
-
 
56143
    }
-
 
56144
 
-
 
56145
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
56146
      org.apache.thrift.protocol.TField field;
-
 
56147
      iprot.readStructBegin();
-
 
56148
      while (true)
-
 
56149
      {
-
 
56150
        field = iprot.readFieldBegin();
-
 
56151
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
56152
          break;
-
 
56153
        }
-
 
56154
        switch (field.id) {
-
 
56155
          case 1: // USER_ID
-
 
56156
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
56157
              this.userId = iprot.readI64();
-
 
56158
              setUserIdIsSet(true);
-
 
56159
            } else { 
-
 
56160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56161
            }
-
 
56162
            break;
-
 
56163
          case 2: // TRUST_LEVEL_DELTA
-
 
56164
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
56165
              this.trustLevelDelta = iprot.readDouble();
-
 
56166
              setTrustLevelDeltaIsSet(true);
-
 
56167
            } else { 
-
 
56168
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56169
            }
-
 
56170
            break;
-
 
56171
          default:
-
 
56172
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56173
        }
-
 
56174
        iprot.readFieldEnd();
-
 
56175
      }
-
 
56176
      iprot.readStructEnd();
-
 
56177
      validate();
-
 
56178
    }
-
 
56179
 
-
 
56180
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
56181
      validate();
-
 
56182
 
-
 
56183
      oprot.writeStructBegin(STRUCT_DESC);
-
 
56184
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
56185
      oprot.writeI64(this.userId);
-
 
56186
      oprot.writeFieldEnd();
-
 
56187
      oprot.writeFieldBegin(TRUST_LEVEL_DELTA_FIELD_DESC);
-
 
56188
      oprot.writeDouble(this.trustLevelDelta);
-
 
56189
      oprot.writeFieldEnd();
-
 
56190
      oprot.writeFieldStop();
-
 
56191
      oprot.writeStructEnd();
-
 
56192
    }
-
 
56193
 
-
 
56194
    @Override
-
 
56195
    public String toString() {
-
 
56196
      StringBuilder sb = new StringBuilder("increaseTrustLevel_args(");
-
 
56197
      boolean first = true;
-
 
56198
 
-
 
56199
      sb.append("userId:");
-
 
56200
      sb.append(this.userId);
-
 
56201
      first = false;
-
 
56202
      if (!first) sb.append(", ");
-
 
56203
      sb.append("trustLevelDelta:");
-
 
56204
      sb.append(this.trustLevelDelta);
-
 
56205
      first = false;
-
 
56206
      sb.append(")");
-
 
56207
      return sb.toString();
-
 
56208
    }
-
 
56209
 
-
 
56210
    public void validate() throws org.apache.thrift.TException {
-
 
56211
      // check for required fields
-
 
56212
    }
-
 
56213
 
-
 
56214
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
56215
      try {
-
 
56216
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
56217
      } catch (org.apache.thrift.TException te) {
-
 
56218
        throw new java.io.IOException(te);
-
 
56219
      }
-
 
56220
    }
-
 
56221
 
-
 
56222
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
56223
      try {
-
 
56224
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
56225
        __isset_bit_vector = new BitSet(1);
-
 
56226
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
56227
      } catch (org.apache.thrift.TException te) {
-
 
56228
        throw new java.io.IOException(te);
-
 
56229
      }
-
 
56230
    }
-
 
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 {
55753
      // check for required fields
56412
      // check for required fields
55754
    }
56413
    }
55755
 
56414
 
55756
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56415
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55757
      try {
56416
      try {