Subversion Repositories SmartDukaan

Rev

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

Rev 12691 Rev 12696
Line 186... Line 186...
186
 
186
 
187
    public boolean markMessagesAsSent(List<UserSms> userSmsList) throws org.apache.thrift.TException;
187
    public boolean markMessagesAsSent(List<UserSms> userSmsList) throws org.apache.thrift.TException;
188
 
188
 
189
    public boolean markMessagesAsRetry(List<UserSms> userSmsList) throws org.apache.thrift.TException;
189
    public boolean markMessagesAsRetry(List<UserSms> userSmsList) throws org.apache.thrift.TException;
190
 
190
 
-
 
191
    public DealerAuth authoriseDealer(DealerAuth dealer) throws org.apache.thrift.TException;
-
 
192
 
191
  }
193
  }
192
 
194
 
193
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
195
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
194
 
196
 
195
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
197
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
Line 274... Line 276...
274
 
276
 
275
    public void markMessagesAsSent(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsSent_call> resultHandler) throws org.apache.thrift.TException;
277
    public void markMessagesAsSent(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsSent_call> resultHandler) throws org.apache.thrift.TException;
276
 
278
 
277
    public void markMessagesAsRetry(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsRetry_call> resultHandler) throws org.apache.thrift.TException;
279
    public void markMessagesAsRetry(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsRetry_call> resultHandler) throws org.apache.thrift.TException;
278
 
280
 
-
 
281
    public void authoriseDealer(DealerAuth dealer, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authoriseDealer_call> resultHandler) throws org.apache.thrift.TException;
-
 
282
 
279
  }
283
  }
280
 
284
 
281
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
285
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
282
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
286
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
283
      public Factory() {}
287
      public Factory() {}
Line 1344... Line 1348...
1344
        return result.success;
1348
        return result.success;
1345
      }
1349
      }
1346
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsRetry failed: unknown result");
1350
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsRetry failed: unknown result");
1347
    }
1351
    }
1348
 
1352
 
-
 
1353
    public DealerAuth authoriseDealer(DealerAuth dealer) throws org.apache.thrift.TException
-
 
1354
    {
-
 
1355
      send_authoriseDealer(dealer);
-
 
1356
      return recv_authoriseDealer();
-
 
1357
    }
-
 
1358
 
-
 
1359
    public void send_authoriseDealer(DealerAuth dealer) throws org.apache.thrift.TException
-
 
1360
    {
-
 
1361
      authoriseDealer_args args = new authoriseDealer_args();
-
 
1362
      args.setDealer(dealer);
-
 
1363
      sendBase("authoriseDealer", args);
-
 
1364
    }
-
 
1365
 
-
 
1366
    public DealerAuth recv_authoriseDealer() throws org.apache.thrift.TException
-
 
1367
    {
-
 
1368
      authoriseDealer_result result = new authoriseDealer_result();
-
 
1369
      receiveBase(result, "authoriseDealer");
-
 
1370
      if (result.isSetSuccess()) {
-
 
1371
        return result.success;
-
 
1372
      }
-
 
1373
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authoriseDealer failed: unknown result");
-
 
1374
    }
-
 
1375
 
1349
  }
1376
  }
1350
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1377
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1351
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1378
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1352
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1379
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1353
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1380
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 2781... Line 2808...
2781
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2808
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2782
        return (new Client(prot)).recv_markMessagesAsRetry();
2809
        return (new Client(prot)).recv_markMessagesAsRetry();
2783
      }
2810
      }
2784
    }
2811
    }
2785
 
2812
 
-
 
2813
    public void authoriseDealer(DealerAuth dealer, org.apache.thrift.async.AsyncMethodCallback<authoriseDealer_call> resultHandler) throws org.apache.thrift.TException {
-
 
2814
      checkReady();
-
 
2815
      authoriseDealer_call method_call = new authoriseDealer_call(dealer, resultHandler, this, ___protocolFactory, ___transport);
-
 
2816
      this.___currentMethod = method_call;
-
 
2817
      ___manager.call(method_call);
-
 
2818
    }
-
 
2819
 
-
 
2820
    public static class authoriseDealer_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2821
      private DealerAuth dealer;
-
 
2822
      public authoriseDealer_call(DealerAuth dealer, org.apache.thrift.async.AsyncMethodCallback<authoriseDealer_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 {
-
 
2823
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2824
        this.dealer = dealer;
-
 
2825
      }
-
 
2826
 
-
 
2827
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2828
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authoriseDealer", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2829
        authoriseDealer_args args = new authoriseDealer_args();
-
 
2830
        args.setDealer(dealer);
-
 
2831
        args.write(prot);
-
 
2832
        prot.writeMessageEnd();
-
 
2833
      }
-
 
2834
 
-
 
2835
      public DealerAuth getResult() throws org.apache.thrift.TException {
-
 
2836
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2837
          throw new IllegalStateException("Method call not finished!");
-
 
2838
        }
-
 
2839
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2840
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2841
        return (new Client(prot)).recv_authoriseDealer();
-
 
2842
      }
-
 
2843
    }
-
 
2844
 
2786
  }
2845
  }
2787
 
2846
 
2788
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2847
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2789
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2848
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2790
    public Processor(I iface) {
2849
    public Processor(I iface) {
Line 2836... Line 2895...
2836
      processMap.put("listSmsToGetDeliveryInfo", new listSmsToGetDeliveryInfo());
2895
      processMap.put("listSmsToGetDeliveryInfo", new listSmsToGetDeliveryInfo());
2837
      processMap.put("markMessagesAsSentToOperator", new markMessagesAsSentToOperator());
2896
      processMap.put("markMessagesAsSentToOperator", new markMessagesAsSentToOperator());
2838
      processMap.put("markMessagesAsSubmittedToSmsc", new markMessagesAsSubmittedToSmsc());
2897
      processMap.put("markMessagesAsSubmittedToSmsc", new markMessagesAsSubmittedToSmsc());
2839
      processMap.put("markMessagesAsSent", new markMessagesAsSent());
2898
      processMap.put("markMessagesAsSent", new markMessagesAsSent());
2840
      processMap.put("markMessagesAsRetry", new markMessagesAsRetry());
2899
      processMap.put("markMessagesAsRetry", new markMessagesAsRetry());
-
 
2900
      processMap.put("authoriseDealer", new authoriseDealer());
2841
      return processMap;
2901
      return processMap;
2842
    }
2902
    }
2843
 
2903
 
2844
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
2904
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
2845
      public saveUserEmailForSending() {
2905
      public saveUserEmailForSending() {
Line 3638... Line 3698...
3638
        result.setSuccessIsSet(true);
3698
        result.setSuccessIsSet(true);
3639
        return result;
3699
        return result;
3640
      }
3700
      }
3641
    }
3701
    }
3642
 
3702
 
-
 
3703
    private static class authoriseDealer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authoriseDealer_args> {
-
 
3704
      public authoriseDealer() {
-
 
3705
        super("authoriseDealer");
-
 
3706
      }
-
 
3707
 
-
 
3708
      protected authoriseDealer_args getEmptyArgsInstance() {
-
 
3709
        return new authoriseDealer_args();
-
 
3710
      }
-
 
3711
 
-
 
3712
      protected authoriseDealer_result getResult(I iface, authoriseDealer_args args) throws org.apache.thrift.TException {
-
 
3713
        authoriseDealer_result result = new authoriseDealer_result();
-
 
3714
        result.success = iface.authoriseDealer(args.dealer);
-
 
3715
        return result;
-
 
3716
      }
-
 
3717
    }
-
 
3718
 
3643
  }
3719
  }
3644
 
3720
 
3645
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
3721
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
3646
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
3722
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
3647
 
3723
 
Line 4739... Line 4815...
4739
      }
4815
      }
4740
    }
4816
    }
4741
 
4817
 
4742
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4818
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4743
      try {
4819
      try {
4744
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
4745
        __isset_bit_vector = new BitSet(1);
-
 
4746
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4820
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4747
      } catch (org.apache.thrift.TException te) {
4821
      } catch (org.apache.thrift.TException te) {
4748
        throw new java.io.IOException(te);
4822
        throw new java.io.IOException(te);
4749
      }
4823
      }
4750
    }
4824
    }
Line 32887... Line 32961...
32887
      first = false;
32961
      first = false;
32888
      sb.append(")");
32962
      sb.append(")");
32889
      return sb.toString();
32963
      return sb.toString();
32890
    }
32964
    }
32891
 
32965
 
-
 
32966
    public void validate() throws org.apache.thrift.TException {
-
 
32967
      // check for required fields
-
 
32968
    }
-
 
32969
 
-
 
32970
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
32971
      try {
-
 
32972
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
32973
      } catch (org.apache.thrift.TException te) {
-
 
32974
        throw new java.io.IOException(te);
-
 
32975
      }
-
 
32976
    }
-
 
32977
 
-
 
32978
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
32979
      try {
-
 
32980
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
32981
      } catch (org.apache.thrift.TException te) {
-
 
32982
        throw new java.io.IOException(te);
-
 
32983
      }
-
 
32984
    }
-
 
32985
 
-
 
32986
  }
-
 
32987
 
-
 
32988
  public static class authoriseDealer_args implements org.apache.thrift.TBase<authoriseDealer_args, authoriseDealer_args._Fields>, java.io.Serializable, Cloneable   {
-
 
32989
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authoriseDealer_args");
-
 
32990
 
-
 
32991
    private static final org.apache.thrift.protocol.TField DEALER_FIELD_DESC = new org.apache.thrift.protocol.TField("dealer", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
32992
 
-
 
32993
    private DealerAuth dealer; // required
-
 
32994
 
-
 
32995
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
32996
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
32997
      DEALER((short)1, "dealer");
-
 
32998
 
-
 
32999
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
33000
 
-
 
33001
      static {
-
 
33002
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
33003
          byName.put(field.getFieldName(), field);
-
 
33004
        }
-
 
33005
      }
-
 
33006
 
-
 
33007
      /**
-
 
33008
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
33009
       */
-
 
33010
      public static _Fields findByThriftId(int fieldId) {
-
 
33011
        switch(fieldId) {
-
 
33012
          case 1: // DEALER
-
 
33013
            return DEALER;
-
 
33014
          default:
-
 
33015
            return null;
-
 
33016
        }
-
 
33017
      }
-
 
33018
 
-
 
33019
      /**
-
 
33020
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
33021
       * if it is not found.
-
 
33022
       */
-
 
33023
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
33024
        _Fields fields = findByThriftId(fieldId);
-
 
33025
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
33026
        return fields;
-
 
33027
      }
-
 
33028
 
-
 
33029
      /**
-
 
33030
       * Find the _Fields constant that matches name, or null if its not found.
-
 
33031
       */
-
 
33032
      public static _Fields findByName(String name) {
-
 
33033
        return byName.get(name);
-
 
33034
      }
-
 
33035
 
-
 
33036
      private final short _thriftId;
-
 
33037
      private final String _fieldName;
-
 
33038
 
-
 
33039
      _Fields(short thriftId, String fieldName) {
-
 
33040
        _thriftId = thriftId;
-
 
33041
        _fieldName = fieldName;
-
 
33042
      }
-
 
33043
 
-
 
33044
      public short getThriftFieldId() {
-
 
33045
        return _thriftId;
-
 
33046
      }
-
 
33047
 
-
 
33048
      public String getFieldName() {
-
 
33049
        return _fieldName;
-
 
33050
      }
-
 
33051
    }
-
 
33052
 
-
 
33053
    // isset id assignments
-
 
33054
 
-
 
33055
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
33056
    static {
-
 
33057
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
33058
      tmpMap.put(_Fields.DEALER, new org.apache.thrift.meta_data.FieldMetaData("dealer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
33059
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DealerAuth.class)));
-
 
33060
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
33061
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authoriseDealer_args.class, metaDataMap);
-
 
33062
    }
-
 
33063
 
-
 
33064
    public authoriseDealer_args() {
-
 
33065
    }
-
 
33066
 
-
 
33067
    public authoriseDealer_args(
-
 
33068
      DealerAuth dealer)
-
 
33069
    {
-
 
33070
      this();
-
 
33071
      this.dealer = dealer;
-
 
33072
    }
-
 
33073
 
-
 
33074
    /**
-
 
33075
     * Performs a deep copy on <i>other</i>.
-
 
33076
     */
-
 
33077
    public authoriseDealer_args(authoriseDealer_args other) {
-
 
33078
      if (other.isSetDealer()) {
-
 
33079
        this.dealer = new DealerAuth(other.dealer);
-
 
33080
      }
-
 
33081
    }
-
 
33082
 
-
 
33083
    public authoriseDealer_args deepCopy() {
-
 
33084
      return new authoriseDealer_args(this);
-
 
33085
    }
-
 
33086
 
-
 
33087
    @Override
-
 
33088
    public void clear() {
-
 
33089
      this.dealer = null;
-
 
33090
    }
-
 
33091
 
-
 
33092
    public DealerAuth getDealer() {
-
 
33093
      return this.dealer;
-
 
33094
    }
-
 
33095
 
-
 
33096
    public void setDealer(DealerAuth dealer) {
-
 
33097
      this.dealer = dealer;
-
 
33098
    }
-
 
33099
 
-
 
33100
    public void unsetDealer() {
-
 
33101
      this.dealer = null;
-
 
33102
    }
-
 
33103
 
-
 
33104
    /** Returns true if field dealer is set (has been assigned a value) and false otherwise */
-
 
33105
    public boolean isSetDealer() {
-
 
33106
      return this.dealer != null;
-
 
33107
    }
-
 
33108
 
-
 
33109
    public void setDealerIsSet(boolean value) {
-
 
33110
      if (!value) {
-
 
33111
        this.dealer = null;
-
 
33112
      }
-
 
33113
    }
-
 
33114
 
-
 
33115
    public void setFieldValue(_Fields field, Object value) {
-
 
33116
      switch (field) {
-
 
33117
      case DEALER:
-
 
33118
        if (value == null) {
-
 
33119
          unsetDealer();
-
 
33120
        } else {
-
 
33121
          setDealer((DealerAuth)value);
-
 
33122
        }
-
 
33123
        break;
-
 
33124
 
-
 
33125
      }
-
 
33126
    }
-
 
33127
 
-
 
33128
    public Object getFieldValue(_Fields field) {
-
 
33129
      switch (field) {
-
 
33130
      case DEALER:
-
 
33131
        return getDealer();
-
 
33132
 
-
 
33133
      }
-
 
33134
      throw new IllegalStateException();
-
 
33135
    }
-
 
33136
 
-
 
33137
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
33138
    public boolean isSet(_Fields field) {
-
 
33139
      if (field == null) {
-
 
33140
        throw new IllegalArgumentException();
-
 
33141
      }
-
 
33142
 
-
 
33143
      switch (field) {
-
 
33144
      case DEALER:
-
 
33145
        return isSetDealer();
-
 
33146
      }
-
 
33147
      throw new IllegalStateException();
-
 
33148
    }
-
 
33149
 
-
 
33150
    @Override
-
 
33151
    public boolean equals(Object that) {
-
 
33152
      if (that == null)
-
 
33153
        return false;
-
 
33154
      if (that instanceof authoriseDealer_args)
-
 
33155
        return this.equals((authoriseDealer_args)that);
-
 
33156
      return false;
-
 
33157
    }
-
 
33158
 
-
 
33159
    public boolean equals(authoriseDealer_args that) {
-
 
33160
      if (that == null)
-
 
33161
        return false;
-
 
33162
 
-
 
33163
      boolean this_present_dealer = true && this.isSetDealer();
-
 
33164
      boolean that_present_dealer = true && that.isSetDealer();
-
 
33165
      if (this_present_dealer || that_present_dealer) {
-
 
33166
        if (!(this_present_dealer && that_present_dealer))
-
 
33167
          return false;
-
 
33168
        if (!this.dealer.equals(that.dealer))
-
 
33169
          return false;
-
 
33170
      }
-
 
33171
 
-
 
33172
      return true;
-
 
33173
    }
-
 
33174
 
-
 
33175
    @Override
-
 
33176
    public int hashCode() {
-
 
33177
      return 0;
-
 
33178
    }
-
 
33179
 
-
 
33180
    public int compareTo(authoriseDealer_args other) {
-
 
33181
      if (!getClass().equals(other.getClass())) {
-
 
33182
        return getClass().getName().compareTo(other.getClass().getName());
-
 
33183
      }
-
 
33184
 
-
 
33185
      int lastComparison = 0;
-
 
33186
      authoriseDealer_args typedOther = (authoriseDealer_args)other;
-
 
33187
 
-
 
33188
      lastComparison = Boolean.valueOf(isSetDealer()).compareTo(typedOther.isSetDealer());
-
 
33189
      if (lastComparison != 0) {
-
 
33190
        return lastComparison;
-
 
33191
      }
-
 
33192
      if (isSetDealer()) {
-
 
33193
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealer, typedOther.dealer);
-
 
33194
        if (lastComparison != 0) {
-
 
33195
          return lastComparison;
-
 
33196
        }
-
 
33197
      }
-
 
33198
      return 0;
-
 
33199
    }
-
 
33200
 
-
 
33201
    public _Fields fieldForId(int fieldId) {
-
 
33202
      return _Fields.findByThriftId(fieldId);
-
 
33203
    }
-
 
33204
 
-
 
33205
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
33206
      org.apache.thrift.protocol.TField field;
-
 
33207
      iprot.readStructBegin();
-
 
33208
      while (true)
-
 
33209
      {
-
 
33210
        field = iprot.readFieldBegin();
-
 
33211
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
33212
          break;
-
 
33213
        }
-
 
33214
        switch (field.id) {
-
 
33215
          case 1: // DEALER
-
 
33216
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
33217
              this.dealer = new DealerAuth();
-
 
33218
              this.dealer.read(iprot);
-
 
33219
            } else { 
-
 
33220
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
33221
            }
-
 
33222
            break;
-
 
33223
          default:
-
 
33224
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
33225
        }
-
 
33226
        iprot.readFieldEnd();
-
 
33227
      }
-
 
33228
      iprot.readStructEnd();
-
 
33229
      validate();
-
 
33230
    }
-
 
33231
 
-
 
33232
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
33233
      validate();
-
 
33234
 
-
 
33235
      oprot.writeStructBegin(STRUCT_DESC);
-
 
33236
      if (this.dealer != null) {
-
 
33237
        oprot.writeFieldBegin(DEALER_FIELD_DESC);
-
 
33238
        this.dealer.write(oprot);
-
 
33239
        oprot.writeFieldEnd();
-
 
33240
      }
-
 
33241
      oprot.writeFieldStop();
-
 
33242
      oprot.writeStructEnd();
-
 
33243
    }
-
 
33244
 
-
 
33245
    @Override
-
 
33246
    public String toString() {
-
 
33247
      StringBuilder sb = new StringBuilder("authoriseDealer_args(");
-
 
33248
      boolean first = true;
-
 
33249
 
-
 
33250
      sb.append("dealer:");
-
 
33251
      if (this.dealer == null) {
-
 
33252
        sb.append("null");
-
 
33253
      } else {
-
 
33254
        sb.append(this.dealer);
-
 
33255
      }
-
 
33256
      first = false;
-
 
33257
      sb.append(")");
-
 
33258
      return sb.toString();
-
 
33259
    }
-
 
33260
 
-
 
33261
    public void validate() throws org.apache.thrift.TException {
-
 
33262
      // check for required fields
-
 
33263
    }
-
 
33264
 
-
 
33265
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
33266
      try {
-
 
33267
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
33268
      } catch (org.apache.thrift.TException te) {
-
 
33269
        throw new java.io.IOException(te);
-
 
33270
      }
-
 
33271
    }
-
 
33272
 
-
 
33273
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
33274
      try {
-
 
33275
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
33276
      } catch (org.apache.thrift.TException te) {
-
 
33277
        throw new java.io.IOException(te);
-
 
33278
      }
-
 
33279
    }
-
 
33280
 
-
 
33281
  }
-
 
33282
 
-
 
33283
  public static class authoriseDealer_result implements org.apache.thrift.TBase<authoriseDealer_result, authoriseDealer_result._Fields>, java.io.Serializable, Cloneable   {
-
 
33284
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authoriseDealer_result");
-
 
33285
 
-
 
33286
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
33287
 
-
 
33288
    private DealerAuth success; // required
-
 
33289
 
-
 
33290
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
33291
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
33292
      SUCCESS((short)0, "success");
-
 
33293
 
-
 
33294
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
33295
 
-
 
33296
      static {
-
 
33297
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
33298
          byName.put(field.getFieldName(), field);
-
 
33299
        }
-
 
33300
      }
-
 
33301
 
-
 
33302
      /**
-
 
33303
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
33304
       */
-
 
33305
      public static _Fields findByThriftId(int fieldId) {
-
 
33306
        switch(fieldId) {
-
 
33307
          case 0: // SUCCESS
-
 
33308
            return SUCCESS;
-
 
33309
          default:
-
 
33310
            return null;
-
 
33311
        }
-
 
33312
      }
-
 
33313
 
-
 
33314
      /**
-
 
33315
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
33316
       * if it is not found.
-
 
33317
       */
-
 
33318
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
33319
        _Fields fields = findByThriftId(fieldId);
-
 
33320
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
33321
        return fields;
-
 
33322
      }
-
 
33323
 
-
 
33324
      /**
-
 
33325
       * Find the _Fields constant that matches name, or null if its not found.
-
 
33326
       */
-
 
33327
      public static _Fields findByName(String name) {
-
 
33328
        return byName.get(name);
-
 
33329
      }
-
 
33330
 
-
 
33331
      private final short _thriftId;
-
 
33332
      private final String _fieldName;
-
 
33333
 
-
 
33334
      _Fields(short thriftId, String fieldName) {
-
 
33335
        _thriftId = thriftId;
-
 
33336
        _fieldName = fieldName;
-
 
33337
      }
-
 
33338
 
-
 
33339
      public short getThriftFieldId() {
-
 
33340
        return _thriftId;
-
 
33341
      }
-
 
33342
 
-
 
33343
      public String getFieldName() {
-
 
33344
        return _fieldName;
-
 
33345
      }
-
 
33346
    }
-
 
33347
 
-
 
33348
    // isset id assignments
-
 
33349
 
-
 
33350
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
33351
    static {
-
 
33352
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
33353
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
33354
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DealerAuth.class)));
-
 
33355
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
33356
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authoriseDealer_result.class, metaDataMap);
-
 
33357
    }
-
 
33358
 
-
 
33359
    public authoriseDealer_result() {
-
 
33360
    }
-
 
33361
 
-
 
33362
    public authoriseDealer_result(
-
 
33363
      DealerAuth success)
-
 
33364
    {
-
 
33365
      this();
-
 
33366
      this.success = success;
-
 
33367
    }
-
 
33368
 
-
 
33369
    /**
-
 
33370
     * Performs a deep copy on <i>other</i>.
-
 
33371
     */
-
 
33372
    public authoriseDealer_result(authoriseDealer_result other) {
-
 
33373
      if (other.isSetSuccess()) {
-
 
33374
        this.success = new DealerAuth(other.success);
-
 
33375
      }
-
 
33376
    }
-
 
33377
 
-
 
33378
    public authoriseDealer_result deepCopy() {
-
 
33379
      return new authoriseDealer_result(this);
-
 
33380
    }
-
 
33381
 
-
 
33382
    @Override
-
 
33383
    public void clear() {
-
 
33384
      this.success = null;
-
 
33385
    }
-
 
33386
 
-
 
33387
    public DealerAuth getSuccess() {
-
 
33388
      return this.success;
-
 
33389
    }
-
 
33390
 
-
 
33391
    public void setSuccess(DealerAuth success) {
-
 
33392
      this.success = success;
-
 
33393
    }
-
 
33394
 
-
 
33395
    public void unsetSuccess() {
-
 
33396
      this.success = null;
-
 
33397
    }
-
 
33398
 
-
 
33399
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
33400
    public boolean isSetSuccess() {
-
 
33401
      return this.success != null;
-
 
33402
    }
-
 
33403
 
-
 
33404
    public void setSuccessIsSet(boolean value) {
-
 
33405
      if (!value) {
-
 
33406
        this.success = null;
-
 
33407
      }
-
 
33408
    }
-
 
33409
 
-
 
33410
    public void setFieldValue(_Fields field, Object value) {
-
 
33411
      switch (field) {
-
 
33412
      case SUCCESS:
-
 
33413
        if (value == null) {
-
 
33414
          unsetSuccess();
-
 
33415
        } else {
-
 
33416
          setSuccess((DealerAuth)value);
-
 
33417
        }
-
 
33418
        break;
-
 
33419
 
-
 
33420
      }
-
 
33421
    }
-
 
33422
 
-
 
33423
    public Object getFieldValue(_Fields field) {
-
 
33424
      switch (field) {
-
 
33425
      case SUCCESS:
-
 
33426
        return getSuccess();
-
 
33427
 
-
 
33428
      }
-
 
33429
      throw new IllegalStateException();
-
 
33430
    }
-
 
33431
 
-
 
33432
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
33433
    public boolean isSet(_Fields field) {
-
 
33434
      if (field == null) {
-
 
33435
        throw new IllegalArgumentException();
-
 
33436
      }
-
 
33437
 
-
 
33438
      switch (field) {
-
 
33439
      case SUCCESS:
-
 
33440
        return isSetSuccess();
-
 
33441
      }
-
 
33442
      throw new IllegalStateException();
-
 
33443
    }
-
 
33444
 
-
 
33445
    @Override
-
 
33446
    public boolean equals(Object that) {
-
 
33447
      if (that == null)
-
 
33448
        return false;
-
 
33449
      if (that instanceof authoriseDealer_result)
-
 
33450
        return this.equals((authoriseDealer_result)that);
-
 
33451
      return false;
-
 
33452
    }
-
 
33453
 
-
 
33454
    public boolean equals(authoriseDealer_result that) {
-
 
33455
      if (that == null)
-
 
33456
        return false;
-
 
33457
 
-
 
33458
      boolean this_present_success = true && this.isSetSuccess();
-
 
33459
      boolean that_present_success = true && that.isSetSuccess();
-
 
33460
      if (this_present_success || that_present_success) {
-
 
33461
        if (!(this_present_success && that_present_success))
-
 
33462
          return false;
-
 
33463
        if (!this.success.equals(that.success))
-
 
33464
          return false;
-
 
33465
      }
-
 
33466
 
-
 
33467
      return true;
-
 
33468
    }
-
 
33469
 
-
 
33470
    @Override
-
 
33471
    public int hashCode() {
-
 
33472
      return 0;
-
 
33473
    }
-
 
33474
 
-
 
33475
    public int compareTo(authoriseDealer_result other) {
-
 
33476
      if (!getClass().equals(other.getClass())) {
-
 
33477
        return getClass().getName().compareTo(other.getClass().getName());
-
 
33478
      }
-
 
33479
 
-
 
33480
      int lastComparison = 0;
-
 
33481
      authoriseDealer_result typedOther = (authoriseDealer_result)other;
-
 
33482
 
-
 
33483
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
33484
      if (lastComparison != 0) {
-
 
33485
        return lastComparison;
-
 
33486
      }
-
 
33487
      if (isSetSuccess()) {
-
 
33488
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
33489
        if (lastComparison != 0) {
-
 
33490
          return lastComparison;
-
 
33491
        }
-
 
33492
      }
-
 
33493
      return 0;
-
 
33494
    }
-
 
33495
 
-
 
33496
    public _Fields fieldForId(int fieldId) {
-
 
33497
      return _Fields.findByThriftId(fieldId);
-
 
33498
    }
-
 
33499
 
-
 
33500
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
33501
      org.apache.thrift.protocol.TField field;
-
 
33502
      iprot.readStructBegin();
-
 
33503
      while (true)
-
 
33504
      {
-
 
33505
        field = iprot.readFieldBegin();
-
 
33506
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
33507
          break;
-
 
33508
        }
-
 
33509
        switch (field.id) {
-
 
33510
          case 0: // SUCCESS
-
 
33511
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
33512
              this.success = new DealerAuth();
-
 
33513
              this.success.read(iprot);
-
 
33514
            } else { 
-
 
33515
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
33516
            }
-
 
33517
            break;
-
 
33518
          default:
-
 
33519
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
33520
        }
-
 
33521
        iprot.readFieldEnd();
-
 
33522
      }
-
 
33523
      iprot.readStructEnd();
-
 
33524
      validate();
-
 
33525
    }
-
 
33526
 
-
 
33527
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
33528
      oprot.writeStructBegin(STRUCT_DESC);
-
 
33529
 
-
 
33530
      if (this.isSetSuccess()) {
-
 
33531
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
33532
        this.success.write(oprot);
-
 
33533
        oprot.writeFieldEnd();
-
 
33534
      }
-
 
33535
      oprot.writeFieldStop();
-
 
33536
      oprot.writeStructEnd();
-
 
33537
    }
-
 
33538
 
-
 
33539
    @Override
-
 
33540
    public String toString() {
-
 
33541
      StringBuilder sb = new StringBuilder("authoriseDealer_result(");
-
 
33542
      boolean first = true;
-
 
33543
 
-
 
33544
      sb.append("success:");
-
 
33545
      if (this.success == null) {
-
 
33546
        sb.append("null");
-
 
33547
      } else {
-
 
33548
        sb.append(this.success);
-
 
33549
      }
-
 
33550
      first = false;
-
 
33551
      sb.append(")");
-
 
33552
      return sb.toString();
-
 
33553
    }
-
 
33554
 
32892
    public void validate() throws org.apache.thrift.TException {
33555
    public void validate() throws org.apache.thrift.TException {
32893
      // check for required fields
33556
      // check for required fields
32894
    }
33557
    }
32895
 
33558
 
32896
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33559
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {