Subversion Repositories SmartDukaan

Rev

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

Rev 18530 Rev 18590
Line 373... Line 373...
373
 
373
 
374
    public boolean isTaxInvoiceCounter(long userId) throws org.apache.thrift.TException;
374
    public boolean isTaxInvoiceCounter(long userId) throws org.apache.thrift.TException;
375
 
375
 
376
    public Address getBillingAddressForUser(long userId) throws org.apache.thrift.TException;
376
    public Address getBillingAddressForUser(long userId) throws org.apache.thrift.TException;
377
 
377
 
-
 
378
    public boolean isCreditorAssigned(long userId) throws org.apache.thrift.TException;
-
 
379
 
378
  }
380
  }
379
 
381
 
380
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
382
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
381
 
383
 
382
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
384
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
Line 551... Line 553...
551
 
553
 
552
    public void isTaxInvoiceCounter(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isTaxInvoiceCounter_call> resultHandler) throws org.apache.thrift.TException;
554
    public void isTaxInvoiceCounter(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isTaxInvoiceCounter_call> resultHandler) throws org.apache.thrift.TException;
553
 
555
 
554
    public void getBillingAddressForUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBillingAddressForUser_call> resultHandler) throws org.apache.thrift.TException;
556
    public void getBillingAddressForUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBillingAddressForUser_call> resultHandler) throws org.apache.thrift.TException;
555
 
557
 
-
 
558
    public void isCreditorAssigned(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isCreditorAssigned_call> resultHandler) throws org.apache.thrift.TException;
-
 
559
 
556
  }
560
  }
557
 
561
 
558
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
562
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
559
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
563
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
560
      public Factory() {}
564
      public Factory() {}
Line 2784... Line 2788...
2784
        return result.success;
2788
        return result.success;
2785
      }
2789
      }
2786
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBillingAddressForUser failed: unknown result");
2790
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBillingAddressForUser failed: unknown result");
2787
    }
2791
    }
2788
 
2792
 
-
 
2793
    public boolean isCreditorAssigned(long userId) throws org.apache.thrift.TException
-
 
2794
    {
-
 
2795
      send_isCreditorAssigned(userId);
-
 
2796
      return recv_isCreditorAssigned();
-
 
2797
    }
-
 
2798
 
-
 
2799
    public void send_isCreditorAssigned(long userId) throws org.apache.thrift.TException
-
 
2800
    {
-
 
2801
      isCreditorAssigned_args args = new isCreditorAssigned_args();
-
 
2802
      args.setUserId(userId);
-
 
2803
      sendBase("isCreditorAssigned", args);
-
 
2804
    }
-
 
2805
 
-
 
2806
    public boolean recv_isCreditorAssigned() throws org.apache.thrift.TException
-
 
2807
    {
-
 
2808
      isCreditorAssigned_result result = new isCreditorAssigned_result();
-
 
2809
      receiveBase(result, "isCreditorAssigned");
-
 
2810
      if (result.isSetSuccess()) {
-
 
2811
        return result.success;
-
 
2812
      }
-
 
2813
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isCreditorAssigned failed: unknown result");
-
 
2814
    }
-
 
2815
 
2789
  }
2816
  }
2790
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2817
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2791
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2818
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2792
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2819
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2793
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2820
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5807... Line 5834...
5807
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5834
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5808
        return (new Client(prot)).recv_getBillingAddressForUser();
5835
        return (new Client(prot)).recv_getBillingAddressForUser();
5809
      }
5836
      }
5810
    }
5837
    }
5811
 
5838
 
-
 
5839
    public void isCreditorAssigned(long userId, org.apache.thrift.async.AsyncMethodCallback<isCreditorAssigned_call> resultHandler) throws org.apache.thrift.TException {
-
 
5840
      checkReady();
-
 
5841
      isCreditorAssigned_call method_call = new isCreditorAssigned_call(userId, resultHandler, this, ___protocolFactory, ___transport);
-
 
5842
      this.___currentMethod = method_call;
-
 
5843
      ___manager.call(method_call);
-
 
5844
    }
-
 
5845
 
-
 
5846
    public static class isCreditorAssigned_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5847
      private long userId;
-
 
5848
      public isCreditorAssigned_call(long userId, org.apache.thrift.async.AsyncMethodCallback<isCreditorAssigned_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 {
-
 
5849
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5850
        this.userId = userId;
-
 
5851
      }
-
 
5852
 
-
 
5853
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5854
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isCreditorAssigned", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5855
        isCreditorAssigned_args args = new isCreditorAssigned_args();
-
 
5856
        args.setUserId(userId);
-
 
5857
        args.write(prot);
-
 
5858
        prot.writeMessageEnd();
-
 
5859
      }
-
 
5860
 
-
 
5861
      public boolean getResult() throws org.apache.thrift.TException {
-
 
5862
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5863
          throw new IllegalStateException("Method call not finished!");
-
 
5864
        }
-
 
5865
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5866
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5867
        return (new Client(prot)).recv_isCreditorAssigned();
-
 
5868
      }
-
 
5869
    }
-
 
5870
 
5812
  }
5871
  }
5813
 
5872
 
5814
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5873
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5815
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5874
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5816
    public Processor(I iface) {
5875
    public Processor(I iface) {
Line 5907... Line 5966...
5907
      processMap.put("validateAccessToken", new validateAccessToken());
5966
      processMap.put("validateAccessToken", new validateAccessToken());
5908
      processMap.put("addItemsToCart", new addItemsToCart());
5967
      processMap.put("addItemsToCart", new addItemsToCart());
5909
      processMap.put("validateCartNew", new validateCartNew());
5968
      processMap.put("validateCartNew", new validateCartNew());
5910
      processMap.put("isTaxInvoiceCounter", new isTaxInvoiceCounter());
5969
      processMap.put("isTaxInvoiceCounter", new isTaxInvoiceCounter());
5911
      processMap.put("getBillingAddressForUser", new getBillingAddressForUser());
5970
      processMap.put("getBillingAddressForUser", new getBillingAddressForUser());
-
 
5971
      processMap.put("isCreditorAssigned", new isCreditorAssigned());
5912
      return processMap;
5972
      return processMap;
5913
    }
5973
    }
5914
 
5974
 
5915
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
5975
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
5916
      public createAnonymousUser() {
5976
      public createAnonymousUser() {
Line 7570... Line 7630...
7570
        result.success = iface.getBillingAddressForUser(args.userId);
7630
        result.success = iface.getBillingAddressForUser(args.userId);
7571
        return result;
7631
        return result;
7572
      }
7632
      }
7573
    }
7633
    }
7574
 
7634
 
-
 
7635
    private static class isCreditorAssigned<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isCreditorAssigned_args> {
-
 
7636
      public isCreditorAssigned() {
-
 
7637
        super("isCreditorAssigned");
-
 
7638
      }
-
 
7639
 
-
 
7640
      protected isCreditorAssigned_args getEmptyArgsInstance() {
-
 
7641
        return new isCreditorAssigned_args();
-
 
7642
      }
-
 
7643
 
-
 
7644
      protected isCreditorAssigned_result getResult(I iface, isCreditorAssigned_args args) throws org.apache.thrift.TException {
-
 
7645
        isCreditorAssigned_result result = new isCreditorAssigned_result();
-
 
7646
        result.success = iface.isCreditorAssigned(args.userId);
-
 
7647
        result.setSuccessIsSet(true);
-
 
7648
        return result;
-
 
7649
      }
-
 
7650
    }
-
 
7651
 
7575
  }
7652
  }
7576
 
7653
 
7577
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
7654
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
7578
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
7655
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
7579
 
7656
 
Line 69826... Line 69903...
69826
      first = false;
69903
      first = false;
69827
      sb.append(")");
69904
      sb.append(")");
69828
      return sb.toString();
69905
      return sb.toString();
69829
    }
69906
    }
69830
 
69907
 
-
 
69908
    public void validate() throws org.apache.thrift.TException {
-
 
69909
      // check for required fields
-
 
69910
    }
-
 
69911
 
-
 
69912
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
69913
      try {
-
 
69914
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
69915
      } catch (org.apache.thrift.TException te) {
-
 
69916
        throw new java.io.IOException(te);
-
 
69917
      }
-
 
69918
    }
-
 
69919
 
-
 
69920
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
69921
      try {
-
 
69922
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
69923
      } catch (org.apache.thrift.TException te) {
-
 
69924
        throw new java.io.IOException(te);
-
 
69925
      }
-
 
69926
    }
-
 
69927
 
-
 
69928
  }
-
 
69929
 
-
 
69930
  public static class isCreditorAssigned_args implements org.apache.thrift.TBase<isCreditorAssigned_args, isCreditorAssigned_args._Fields>, java.io.Serializable, Cloneable   {
-
 
69931
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isCreditorAssigned_args");
-
 
69932
 
-
 
69933
    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);
-
 
69934
 
-
 
69935
    private long userId; // required
-
 
69936
 
-
 
69937
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
69938
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
69939
      USER_ID((short)1, "userId");
-
 
69940
 
-
 
69941
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
69942
 
-
 
69943
      static {
-
 
69944
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
69945
          byName.put(field.getFieldName(), field);
-
 
69946
        }
-
 
69947
      }
-
 
69948
 
-
 
69949
      /**
-
 
69950
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
69951
       */
-
 
69952
      public static _Fields findByThriftId(int fieldId) {
-
 
69953
        switch(fieldId) {
-
 
69954
          case 1: // USER_ID
-
 
69955
            return USER_ID;
-
 
69956
          default:
-
 
69957
            return null;
-
 
69958
        }
-
 
69959
      }
-
 
69960
 
-
 
69961
      /**
-
 
69962
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
69963
       * if it is not found.
-
 
69964
       */
-
 
69965
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
69966
        _Fields fields = findByThriftId(fieldId);
-
 
69967
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
69968
        return fields;
-
 
69969
      }
-
 
69970
 
-
 
69971
      /**
-
 
69972
       * Find the _Fields constant that matches name, or null if its not found.
-
 
69973
       */
-
 
69974
      public static _Fields findByName(String name) {
-
 
69975
        return byName.get(name);
-
 
69976
      }
-
 
69977
 
-
 
69978
      private final short _thriftId;
-
 
69979
      private final String _fieldName;
-
 
69980
 
-
 
69981
      _Fields(short thriftId, String fieldName) {
-
 
69982
        _thriftId = thriftId;
-
 
69983
        _fieldName = fieldName;
-
 
69984
      }
-
 
69985
 
-
 
69986
      public short getThriftFieldId() {
-
 
69987
        return _thriftId;
-
 
69988
      }
-
 
69989
 
-
 
69990
      public String getFieldName() {
-
 
69991
        return _fieldName;
-
 
69992
      }
-
 
69993
    }
-
 
69994
 
-
 
69995
    // isset id assignments
-
 
69996
    private static final int __USERID_ISSET_ID = 0;
-
 
69997
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
69998
 
-
 
69999
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
70000
    static {
-
 
70001
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
70002
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
70003
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
70004
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
70005
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isCreditorAssigned_args.class, metaDataMap);
-
 
70006
    }
-
 
70007
 
-
 
70008
    public isCreditorAssigned_args() {
-
 
70009
    }
-
 
70010
 
-
 
70011
    public isCreditorAssigned_args(
-
 
70012
      long userId)
-
 
70013
    {
-
 
70014
      this();
-
 
70015
      this.userId = userId;
-
 
70016
      setUserIdIsSet(true);
-
 
70017
    }
-
 
70018
 
-
 
70019
    /**
-
 
70020
     * Performs a deep copy on <i>other</i>.
-
 
70021
     */
-
 
70022
    public isCreditorAssigned_args(isCreditorAssigned_args other) {
-
 
70023
      __isset_bit_vector.clear();
-
 
70024
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
70025
      this.userId = other.userId;
-
 
70026
    }
-
 
70027
 
-
 
70028
    public isCreditorAssigned_args deepCopy() {
-
 
70029
      return new isCreditorAssigned_args(this);
-
 
70030
    }
-
 
70031
 
-
 
70032
    @Override
-
 
70033
    public void clear() {
-
 
70034
      setUserIdIsSet(false);
-
 
70035
      this.userId = 0;
-
 
70036
    }
-
 
70037
 
-
 
70038
    public long getUserId() {
-
 
70039
      return this.userId;
-
 
70040
    }
-
 
70041
 
-
 
70042
    public void setUserId(long userId) {
-
 
70043
      this.userId = userId;
-
 
70044
      setUserIdIsSet(true);
-
 
70045
    }
-
 
70046
 
-
 
70047
    public void unsetUserId() {
-
 
70048
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
70049
    }
-
 
70050
 
-
 
70051
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
70052
    public boolean isSetUserId() {
-
 
70053
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
70054
    }
-
 
70055
 
-
 
70056
    public void setUserIdIsSet(boolean value) {
-
 
70057
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
70058
    }
-
 
70059
 
-
 
70060
    public void setFieldValue(_Fields field, Object value) {
-
 
70061
      switch (field) {
-
 
70062
      case USER_ID:
-
 
70063
        if (value == null) {
-
 
70064
          unsetUserId();
-
 
70065
        } else {
-
 
70066
          setUserId((Long)value);
-
 
70067
        }
-
 
70068
        break;
-
 
70069
 
-
 
70070
      }
-
 
70071
    }
-
 
70072
 
-
 
70073
    public Object getFieldValue(_Fields field) {
-
 
70074
      switch (field) {
-
 
70075
      case USER_ID:
-
 
70076
        return Long.valueOf(getUserId());
-
 
70077
 
-
 
70078
      }
-
 
70079
      throw new IllegalStateException();
-
 
70080
    }
-
 
70081
 
-
 
70082
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
70083
    public boolean isSet(_Fields field) {
-
 
70084
      if (field == null) {
-
 
70085
        throw new IllegalArgumentException();
-
 
70086
      }
-
 
70087
 
-
 
70088
      switch (field) {
-
 
70089
      case USER_ID:
-
 
70090
        return isSetUserId();
-
 
70091
      }
-
 
70092
      throw new IllegalStateException();
-
 
70093
    }
-
 
70094
 
-
 
70095
    @Override
-
 
70096
    public boolean equals(Object that) {
-
 
70097
      if (that == null)
-
 
70098
        return false;
-
 
70099
      if (that instanceof isCreditorAssigned_args)
-
 
70100
        return this.equals((isCreditorAssigned_args)that);
-
 
70101
      return false;
-
 
70102
    }
-
 
70103
 
-
 
70104
    public boolean equals(isCreditorAssigned_args that) {
-
 
70105
      if (that == null)
-
 
70106
        return false;
-
 
70107
 
-
 
70108
      boolean this_present_userId = true;
-
 
70109
      boolean that_present_userId = true;
-
 
70110
      if (this_present_userId || that_present_userId) {
-
 
70111
        if (!(this_present_userId && that_present_userId))
-
 
70112
          return false;
-
 
70113
        if (this.userId != that.userId)
-
 
70114
          return false;
-
 
70115
      }
-
 
70116
 
-
 
70117
      return true;
-
 
70118
    }
-
 
70119
 
-
 
70120
    @Override
-
 
70121
    public int hashCode() {
-
 
70122
      return 0;
-
 
70123
    }
-
 
70124
 
-
 
70125
    public int compareTo(isCreditorAssigned_args other) {
-
 
70126
      if (!getClass().equals(other.getClass())) {
-
 
70127
        return getClass().getName().compareTo(other.getClass().getName());
-
 
70128
      }
-
 
70129
 
-
 
70130
      int lastComparison = 0;
-
 
70131
      isCreditorAssigned_args typedOther = (isCreditorAssigned_args)other;
-
 
70132
 
-
 
70133
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
70134
      if (lastComparison != 0) {
-
 
70135
        return lastComparison;
-
 
70136
      }
-
 
70137
      if (isSetUserId()) {
-
 
70138
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
70139
        if (lastComparison != 0) {
-
 
70140
          return lastComparison;
-
 
70141
        }
-
 
70142
      }
-
 
70143
      return 0;
-
 
70144
    }
-
 
70145
 
-
 
70146
    public _Fields fieldForId(int fieldId) {
-
 
70147
      return _Fields.findByThriftId(fieldId);
-
 
70148
    }
-
 
70149
 
-
 
70150
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
70151
      org.apache.thrift.protocol.TField field;
-
 
70152
      iprot.readStructBegin();
-
 
70153
      while (true)
-
 
70154
      {
-
 
70155
        field = iprot.readFieldBegin();
-
 
70156
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
70157
          break;
-
 
70158
        }
-
 
70159
        switch (field.id) {
-
 
70160
          case 1: // USER_ID
-
 
70161
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
70162
              this.userId = iprot.readI64();
-
 
70163
              setUserIdIsSet(true);
-
 
70164
            } else { 
-
 
70165
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
70166
            }
-
 
70167
            break;
-
 
70168
          default:
-
 
70169
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
70170
        }
-
 
70171
        iprot.readFieldEnd();
-
 
70172
      }
-
 
70173
      iprot.readStructEnd();
-
 
70174
      validate();
-
 
70175
    }
-
 
70176
 
-
 
70177
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
70178
      validate();
-
 
70179
 
-
 
70180
      oprot.writeStructBegin(STRUCT_DESC);
-
 
70181
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
70182
      oprot.writeI64(this.userId);
-
 
70183
      oprot.writeFieldEnd();
-
 
70184
      oprot.writeFieldStop();
-
 
70185
      oprot.writeStructEnd();
-
 
70186
    }
-
 
70187
 
-
 
70188
    @Override
-
 
70189
    public String toString() {
-
 
70190
      StringBuilder sb = new StringBuilder("isCreditorAssigned_args(");
-
 
70191
      boolean first = true;
-
 
70192
 
-
 
70193
      sb.append("userId:");
-
 
70194
      sb.append(this.userId);
-
 
70195
      first = false;
-
 
70196
      sb.append(")");
-
 
70197
      return sb.toString();
-
 
70198
    }
-
 
70199
 
-
 
70200
    public void validate() throws org.apache.thrift.TException {
-
 
70201
      // check for required fields
-
 
70202
    }
-
 
70203
 
-
 
70204
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
70205
      try {
-
 
70206
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
70207
      } catch (org.apache.thrift.TException te) {
-
 
70208
        throw new java.io.IOException(te);
-
 
70209
      }
-
 
70210
    }
-
 
70211
 
-
 
70212
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
70213
      try {
-
 
70214
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
70215
        __isset_bit_vector = new BitSet(1);
-
 
70216
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
70217
      } catch (org.apache.thrift.TException te) {
-
 
70218
        throw new java.io.IOException(te);
-
 
70219
      }
-
 
70220
    }
-
 
70221
 
-
 
70222
  }
-
 
70223
 
-
 
70224
  public static class isCreditorAssigned_result implements org.apache.thrift.TBase<isCreditorAssigned_result, isCreditorAssigned_result._Fields>, java.io.Serializable, Cloneable   {
-
 
70225
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isCreditorAssigned_result");
-
 
70226
 
-
 
70227
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
70228
 
-
 
70229
    private boolean success; // required
-
 
70230
 
-
 
70231
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
70232
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
70233
      SUCCESS((short)0, "success");
-
 
70234
 
-
 
70235
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
70236
 
-
 
70237
      static {
-
 
70238
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
70239
          byName.put(field.getFieldName(), field);
-
 
70240
        }
-
 
70241
      }
-
 
70242
 
-
 
70243
      /**
-
 
70244
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
70245
       */
-
 
70246
      public static _Fields findByThriftId(int fieldId) {
-
 
70247
        switch(fieldId) {
-
 
70248
          case 0: // SUCCESS
-
 
70249
            return SUCCESS;
-
 
70250
          default:
-
 
70251
            return null;
-
 
70252
        }
-
 
70253
      }
-
 
70254
 
-
 
70255
      /**
-
 
70256
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
70257
       * if it is not found.
-
 
70258
       */
-
 
70259
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
70260
        _Fields fields = findByThriftId(fieldId);
-
 
70261
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
70262
        return fields;
-
 
70263
      }
-
 
70264
 
-
 
70265
      /**
-
 
70266
       * Find the _Fields constant that matches name, or null if its not found.
-
 
70267
       */
-
 
70268
      public static _Fields findByName(String name) {
-
 
70269
        return byName.get(name);
-
 
70270
      }
-
 
70271
 
-
 
70272
      private final short _thriftId;
-
 
70273
      private final String _fieldName;
-
 
70274
 
-
 
70275
      _Fields(short thriftId, String fieldName) {
-
 
70276
        _thriftId = thriftId;
-
 
70277
        _fieldName = fieldName;
-
 
70278
      }
-
 
70279
 
-
 
70280
      public short getThriftFieldId() {
-
 
70281
        return _thriftId;
-
 
70282
      }
-
 
70283
 
-
 
70284
      public String getFieldName() {
-
 
70285
        return _fieldName;
-
 
70286
      }
-
 
70287
    }
-
 
70288
 
-
 
70289
    // isset id assignments
-
 
70290
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
70291
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
70292
 
-
 
70293
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
70294
    static {
-
 
70295
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
70296
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
70297
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
70298
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
70299
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isCreditorAssigned_result.class, metaDataMap);
-
 
70300
    }
-
 
70301
 
-
 
70302
    public isCreditorAssigned_result() {
-
 
70303
    }
-
 
70304
 
-
 
70305
    public isCreditorAssigned_result(
-
 
70306
      boolean success)
-
 
70307
    {
-
 
70308
      this();
-
 
70309
      this.success = success;
-
 
70310
      setSuccessIsSet(true);
-
 
70311
    }
-
 
70312
 
-
 
70313
    /**
-
 
70314
     * Performs a deep copy on <i>other</i>.
-
 
70315
     */
-
 
70316
    public isCreditorAssigned_result(isCreditorAssigned_result other) {
-
 
70317
      __isset_bit_vector.clear();
-
 
70318
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
70319
      this.success = other.success;
-
 
70320
    }
-
 
70321
 
-
 
70322
    public isCreditorAssigned_result deepCopy() {
-
 
70323
      return new isCreditorAssigned_result(this);
-
 
70324
    }
-
 
70325
 
-
 
70326
    @Override
-
 
70327
    public void clear() {
-
 
70328
      setSuccessIsSet(false);
-
 
70329
      this.success = false;
-
 
70330
    }
-
 
70331
 
-
 
70332
    public boolean isSuccess() {
-
 
70333
      return this.success;
-
 
70334
    }
-
 
70335
 
-
 
70336
    public void setSuccess(boolean success) {
-
 
70337
      this.success = success;
-
 
70338
      setSuccessIsSet(true);
-
 
70339
    }
-
 
70340
 
-
 
70341
    public void unsetSuccess() {
-
 
70342
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
70343
    }
-
 
70344
 
-
 
70345
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
70346
    public boolean isSetSuccess() {
-
 
70347
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
70348
    }
-
 
70349
 
-
 
70350
    public void setSuccessIsSet(boolean value) {
-
 
70351
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
70352
    }
-
 
70353
 
-
 
70354
    public void setFieldValue(_Fields field, Object value) {
-
 
70355
      switch (field) {
-
 
70356
      case SUCCESS:
-
 
70357
        if (value == null) {
-
 
70358
          unsetSuccess();
-
 
70359
        } else {
-
 
70360
          setSuccess((Boolean)value);
-
 
70361
        }
-
 
70362
        break;
-
 
70363
 
-
 
70364
      }
-
 
70365
    }
-
 
70366
 
-
 
70367
    public Object getFieldValue(_Fields field) {
-
 
70368
      switch (field) {
-
 
70369
      case SUCCESS:
-
 
70370
        return Boolean.valueOf(isSuccess());
-
 
70371
 
-
 
70372
      }
-
 
70373
      throw new IllegalStateException();
-
 
70374
    }
-
 
70375
 
-
 
70376
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
70377
    public boolean isSet(_Fields field) {
-
 
70378
      if (field == null) {
-
 
70379
        throw new IllegalArgumentException();
-
 
70380
      }
-
 
70381
 
-
 
70382
      switch (field) {
-
 
70383
      case SUCCESS:
-
 
70384
        return isSetSuccess();
-
 
70385
      }
-
 
70386
      throw new IllegalStateException();
-
 
70387
    }
-
 
70388
 
-
 
70389
    @Override
-
 
70390
    public boolean equals(Object that) {
-
 
70391
      if (that == null)
-
 
70392
        return false;
-
 
70393
      if (that instanceof isCreditorAssigned_result)
-
 
70394
        return this.equals((isCreditorAssigned_result)that);
-
 
70395
      return false;
-
 
70396
    }
-
 
70397
 
-
 
70398
    public boolean equals(isCreditorAssigned_result that) {
-
 
70399
      if (that == null)
-
 
70400
        return false;
-
 
70401
 
-
 
70402
      boolean this_present_success = true;
-
 
70403
      boolean that_present_success = true;
-
 
70404
      if (this_present_success || that_present_success) {
-
 
70405
        if (!(this_present_success && that_present_success))
-
 
70406
          return false;
-
 
70407
        if (this.success != that.success)
-
 
70408
          return false;
-
 
70409
      }
-
 
70410
 
-
 
70411
      return true;
-
 
70412
    }
-
 
70413
 
-
 
70414
    @Override
-
 
70415
    public int hashCode() {
-
 
70416
      return 0;
-
 
70417
    }
-
 
70418
 
-
 
70419
    public int compareTo(isCreditorAssigned_result other) {
-
 
70420
      if (!getClass().equals(other.getClass())) {
-
 
70421
        return getClass().getName().compareTo(other.getClass().getName());
-
 
70422
      }
-
 
70423
 
-
 
70424
      int lastComparison = 0;
-
 
70425
      isCreditorAssigned_result typedOther = (isCreditorAssigned_result)other;
-
 
70426
 
-
 
70427
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
70428
      if (lastComparison != 0) {
-
 
70429
        return lastComparison;
-
 
70430
      }
-
 
70431
      if (isSetSuccess()) {
-
 
70432
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
70433
        if (lastComparison != 0) {
-
 
70434
          return lastComparison;
-
 
70435
        }
-
 
70436
      }
-
 
70437
      return 0;
-
 
70438
    }
-
 
70439
 
-
 
70440
    public _Fields fieldForId(int fieldId) {
-
 
70441
      return _Fields.findByThriftId(fieldId);
-
 
70442
    }
-
 
70443
 
-
 
70444
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
70445
      org.apache.thrift.protocol.TField field;
-
 
70446
      iprot.readStructBegin();
-
 
70447
      while (true)
-
 
70448
      {
-
 
70449
        field = iprot.readFieldBegin();
-
 
70450
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
70451
          break;
-
 
70452
        }
-
 
70453
        switch (field.id) {
-
 
70454
          case 0: // SUCCESS
-
 
70455
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
70456
              this.success = iprot.readBool();
-
 
70457
              setSuccessIsSet(true);
-
 
70458
            } else { 
-
 
70459
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
70460
            }
-
 
70461
            break;
-
 
70462
          default:
-
 
70463
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
70464
        }
-
 
70465
        iprot.readFieldEnd();
-
 
70466
      }
-
 
70467
      iprot.readStructEnd();
-
 
70468
      validate();
-
 
70469
    }
-
 
70470
 
-
 
70471
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
70472
      oprot.writeStructBegin(STRUCT_DESC);
-
 
70473
 
-
 
70474
      if (this.isSetSuccess()) {
-
 
70475
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
70476
        oprot.writeBool(this.success);
-
 
70477
        oprot.writeFieldEnd();
-
 
70478
      }
-
 
70479
      oprot.writeFieldStop();
-
 
70480
      oprot.writeStructEnd();
-
 
70481
    }
-
 
70482
 
-
 
70483
    @Override
-
 
70484
    public String toString() {
-
 
70485
      StringBuilder sb = new StringBuilder("isCreditorAssigned_result(");
-
 
70486
      boolean first = true;
-
 
70487
 
-
 
70488
      sb.append("success:");
-
 
70489
      sb.append(this.success);
-
 
70490
      first = false;
-
 
70491
      sb.append(")");
-
 
70492
      return sb.toString();
-
 
70493
    }
-
 
70494
 
69831
    public void validate() throws org.apache.thrift.TException {
70495
    public void validate() throws org.apache.thrift.TException {
69832
      // check for required fields
70496
      // check for required fields
69833
    }
70497
    }
69834
 
70498
 
69835
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
70499
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {