Subversion Repositories SmartDukaan

Rev

Rev 12696 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12696 Rev 13214
Line 188... Line 188...
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;
191
    public DealerAuth authoriseDealer(DealerAuth dealer) throws org.apache.thrift.TException;
192
 
192
 
-
 
193
    public String addCampaignNotification(String email, long campaignType) throws org.apache.thrift.TException;
-
 
194
 
193
  }
195
  }
194
 
196
 
195
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
197
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
196
 
198
 
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;
199
    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 278... Line 280...
278
 
280
 
279
    public void markMessagesAsRetry(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsRetry_call> resultHandler) throws org.apache.thrift.TException;
281
    public void markMessagesAsRetry(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsRetry_call> resultHandler) throws org.apache.thrift.TException;
280
 
282
 
281
    public void authoriseDealer(DealerAuth dealer, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authoriseDealer_call> resultHandler) throws org.apache.thrift.TException;
283
    public void authoriseDealer(DealerAuth dealer, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authoriseDealer_call> resultHandler) throws org.apache.thrift.TException;
282
 
284
 
-
 
285
    public void addCampaignNotification(String email, long campaignType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addCampaignNotification_call> resultHandler) throws org.apache.thrift.TException;
-
 
286
 
283
  }
287
  }
284
 
288
 
285
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
289
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
286
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
290
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
287
      public Factory() {}
291
      public Factory() {}
Line 1371... Line 1375...
1371
        return result.success;
1375
        return result.success;
1372
      }
1376
      }
1373
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authoriseDealer failed: unknown result");
1377
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authoriseDealer failed: unknown result");
1374
    }
1378
    }
1375
 
1379
 
-
 
1380
    public String addCampaignNotification(String email, long campaignType) throws org.apache.thrift.TException
-
 
1381
    {
-
 
1382
      send_addCampaignNotification(email, campaignType);
-
 
1383
      return recv_addCampaignNotification();
-
 
1384
    }
-
 
1385
 
-
 
1386
    public void send_addCampaignNotification(String email, long campaignType) throws org.apache.thrift.TException
-
 
1387
    {
-
 
1388
      addCampaignNotification_args args = new addCampaignNotification_args();
-
 
1389
      args.setEmail(email);
-
 
1390
      args.setCampaignType(campaignType);
-
 
1391
      sendBase("addCampaignNotification", args);
-
 
1392
    }
-
 
1393
 
-
 
1394
    public String recv_addCampaignNotification() throws org.apache.thrift.TException
-
 
1395
    {
-
 
1396
      addCampaignNotification_result result = new addCampaignNotification_result();
-
 
1397
      receiveBase(result, "addCampaignNotification");
-
 
1398
      if (result.isSetSuccess()) {
-
 
1399
        return result.success;
-
 
1400
      }
-
 
1401
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addCampaignNotification failed: unknown result");
-
 
1402
    }
-
 
1403
 
1376
  }
1404
  }
1377
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1405
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1378
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1406
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1379
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1407
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1380
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1408
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 2840... Line 2868...
2840
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2868
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2841
        return (new Client(prot)).recv_authoriseDealer();
2869
        return (new Client(prot)).recv_authoriseDealer();
2842
      }
2870
      }
2843
    }
2871
    }
2844
 
2872
 
-
 
2873
    public void addCampaignNotification(String email, long campaignType, org.apache.thrift.async.AsyncMethodCallback<addCampaignNotification_call> resultHandler) throws org.apache.thrift.TException {
-
 
2874
      checkReady();
-
 
2875
      addCampaignNotification_call method_call = new addCampaignNotification_call(email, campaignType, resultHandler, this, ___protocolFactory, ___transport);
-
 
2876
      this.___currentMethod = method_call;
-
 
2877
      ___manager.call(method_call);
-
 
2878
    }
-
 
2879
 
-
 
2880
    public static class addCampaignNotification_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2881
      private String email;
-
 
2882
      private long campaignType;
-
 
2883
      public addCampaignNotification_call(String email, long campaignType, org.apache.thrift.async.AsyncMethodCallback<addCampaignNotification_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 {
-
 
2884
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2885
        this.email = email;
-
 
2886
        this.campaignType = campaignType;
-
 
2887
      }
-
 
2888
 
-
 
2889
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2890
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addCampaignNotification", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2891
        addCampaignNotification_args args = new addCampaignNotification_args();
-
 
2892
        args.setEmail(email);
-
 
2893
        args.setCampaignType(campaignType);
-
 
2894
        args.write(prot);
-
 
2895
        prot.writeMessageEnd();
-
 
2896
      }
-
 
2897
 
-
 
2898
      public String getResult() throws org.apache.thrift.TException {
-
 
2899
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2900
          throw new IllegalStateException("Method call not finished!");
-
 
2901
        }
-
 
2902
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2903
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2904
        return (new Client(prot)).recv_addCampaignNotification();
-
 
2905
      }
-
 
2906
    }
-
 
2907
 
2845
  }
2908
  }
2846
 
2909
 
2847
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2910
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2848
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2911
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2849
    public Processor(I iface) {
2912
    public Processor(I iface) {
Line 2896... Line 2959...
2896
      processMap.put("markMessagesAsSentToOperator", new markMessagesAsSentToOperator());
2959
      processMap.put("markMessagesAsSentToOperator", new markMessagesAsSentToOperator());
2897
      processMap.put("markMessagesAsSubmittedToSmsc", new markMessagesAsSubmittedToSmsc());
2960
      processMap.put("markMessagesAsSubmittedToSmsc", new markMessagesAsSubmittedToSmsc());
2898
      processMap.put("markMessagesAsSent", new markMessagesAsSent());
2961
      processMap.put("markMessagesAsSent", new markMessagesAsSent());
2899
      processMap.put("markMessagesAsRetry", new markMessagesAsRetry());
2962
      processMap.put("markMessagesAsRetry", new markMessagesAsRetry());
2900
      processMap.put("authoriseDealer", new authoriseDealer());
2963
      processMap.put("authoriseDealer", new authoriseDealer());
-
 
2964
      processMap.put("addCampaignNotification", new addCampaignNotification());
2901
      return processMap;
2965
      return processMap;
2902
    }
2966
    }
2903
 
2967
 
2904
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
2968
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
2905
      public saveUserEmailForSending() {
2969
      public saveUserEmailForSending() {
Line 3714... Line 3778...
3714
        result.success = iface.authoriseDealer(args.dealer);
3778
        result.success = iface.authoriseDealer(args.dealer);
3715
        return result;
3779
        return result;
3716
      }
3780
      }
3717
    }
3781
    }
3718
 
3782
 
-
 
3783
    private static class addCampaignNotification<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addCampaignNotification_args> {
-
 
3784
      public addCampaignNotification() {
-
 
3785
        super("addCampaignNotification");
-
 
3786
      }
-
 
3787
 
-
 
3788
      protected addCampaignNotification_args getEmptyArgsInstance() {
-
 
3789
        return new addCampaignNotification_args();
-
 
3790
      }
-
 
3791
 
-
 
3792
      protected addCampaignNotification_result getResult(I iface, addCampaignNotification_args args) throws org.apache.thrift.TException {
-
 
3793
        addCampaignNotification_result result = new addCampaignNotification_result();
-
 
3794
        result.success = iface.addCampaignNotification(args.email, args.campaignType);
-
 
3795
        return result;
-
 
3796
      }
-
 
3797
    }
-
 
3798
 
3719
  }
3799
  }
3720
 
3800
 
3721
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
3801
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
3722
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
3802
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
3723
 
3803
 
Line 4815... Line 4895...
4815
      }
4895
      }
4816
    }
4896
    }
4817
 
4897
 
4818
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4898
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4819
      try {
4899
      try {
-
 
4900
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
4901
        __isset_bit_vector = new BitSet(1);
4820
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4902
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4821
      } catch (org.apache.thrift.TException te) {
4903
      } catch (org.apache.thrift.TException te) {
4822
        throw new java.io.IOException(te);
4904
        throw new java.io.IOException(te);
4823
      }
4905
      }
4824
    }
4906
    }
Line 6107... Line 6189...
6107
      }
6189
      }
6108
    }
6190
    }
6109
 
6191
 
6110
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6192
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6111
      try {
6193
      try {
-
 
6194
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
6195
        __isset_bit_vector = new BitSet(1);
6112
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6196
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6113
      } catch (org.apache.thrift.TException te) {
6197
      } catch (org.apache.thrift.TException te) {
6114
        throw new java.io.IOException(te);
6198
        throw new java.io.IOException(te);
6115
      }
6199
      }
6116
    }
6200
    }
Line 33542... Line 33626...
33542
      boolean first = true;
33626
      boolean first = true;
33543
 
33627
 
33544
      sb.append("success:");
33628
      sb.append("success:");
33545
      if (this.success == null) {
33629
      if (this.success == null) {
33546
        sb.append("null");
33630
        sb.append("null");
-
 
33631
      } else {
-
 
33632
        sb.append(this.success);
-
 
33633
      }
-
 
33634
      first = false;
-
 
33635
      sb.append(")");
-
 
33636
      return sb.toString();
-
 
33637
    }
-
 
33638
 
-
 
33639
    public void validate() throws org.apache.thrift.TException {
-
 
33640
      // check for required fields
-
 
33641
    }
-
 
33642
 
-
 
33643
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
33644
      try {
-
 
33645
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
33646
      } catch (org.apache.thrift.TException te) {
-
 
33647
        throw new java.io.IOException(te);
-
 
33648
      }
-
 
33649
    }
-
 
33650
 
-
 
33651
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
33652
      try {
-
 
33653
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
33654
      } catch (org.apache.thrift.TException te) {
-
 
33655
        throw new java.io.IOException(te);
-
 
33656
      }
-
 
33657
    }
-
 
33658
 
-
 
33659
  }
-
 
33660
 
-
 
33661
  public static class addCampaignNotification_args implements org.apache.thrift.TBase<addCampaignNotification_args, addCampaignNotification_args._Fields>, java.io.Serializable, Cloneable   {
-
 
33662
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCampaignNotification_args");
-
 
33663
 
-
 
33664
    private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
33665
    private static final org.apache.thrift.protocol.TField CAMPAIGN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("campaignType", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
33666
 
-
 
33667
    private String email; // required
-
 
33668
    private long campaignType; // required
-
 
33669
 
-
 
33670
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
33671
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
33672
      EMAIL((short)1, "email"),
-
 
33673
      CAMPAIGN_TYPE((short)2, "campaignType");
-
 
33674
 
-
 
33675
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
33676
 
-
 
33677
      static {
-
 
33678
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
33679
          byName.put(field.getFieldName(), field);
-
 
33680
        }
-
 
33681
      }
-
 
33682
 
-
 
33683
      /**
-
 
33684
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
33685
       */
-
 
33686
      public static _Fields findByThriftId(int fieldId) {
-
 
33687
        switch(fieldId) {
-
 
33688
          case 1: // EMAIL
-
 
33689
            return EMAIL;
-
 
33690
          case 2: // CAMPAIGN_TYPE
-
 
33691
            return CAMPAIGN_TYPE;
-
 
33692
          default:
-
 
33693
            return null;
-
 
33694
        }
-
 
33695
      }
-
 
33696
 
-
 
33697
      /**
-
 
33698
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
33699
       * if it is not found.
-
 
33700
       */
-
 
33701
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
33702
        _Fields fields = findByThriftId(fieldId);
-
 
33703
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
33704
        return fields;
-
 
33705
      }
-
 
33706
 
-
 
33707
      /**
-
 
33708
       * Find the _Fields constant that matches name, or null if its not found.
-
 
33709
       */
-
 
33710
      public static _Fields findByName(String name) {
-
 
33711
        return byName.get(name);
-
 
33712
      }
-
 
33713
 
-
 
33714
      private final short _thriftId;
-
 
33715
      private final String _fieldName;
-
 
33716
 
-
 
33717
      _Fields(short thriftId, String fieldName) {
-
 
33718
        _thriftId = thriftId;
-
 
33719
        _fieldName = fieldName;
-
 
33720
      }
-
 
33721
 
-
 
33722
      public short getThriftFieldId() {
-
 
33723
        return _thriftId;
-
 
33724
      }
-
 
33725
 
-
 
33726
      public String getFieldName() {
-
 
33727
        return _fieldName;
-
 
33728
      }
-
 
33729
    }
-
 
33730
 
-
 
33731
    // isset id assignments
-
 
33732
    private static final int __CAMPAIGNTYPE_ISSET_ID = 0;
-
 
33733
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
33734
 
-
 
33735
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
33736
    static {
-
 
33737
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
33738
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
33739
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
33740
      tmpMap.put(_Fields.CAMPAIGN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("campaignType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
33741
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
33742
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
33743
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCampaignNotification_args.class, metaDataMap);
-
 
33744
    }
-
 
33745
 
-
 
33746
    public addCampaignNotification_args() {
-
 
33747
    }
-
 
33748
 
-
 
33749
    public addCampaignNotification_args(
-
 
33750
      String email,
-
 
33751
      long campaignType)
-
 
33752
    {
-
 
33753
      this();
-
 
33754
      this.email = email;
-
 
33755
      this.campaignType = campaignType;
-
 
33756
      setCampaignTypeIsSet(true);
-
 
33757
    }
-
 
33758
 
-
 
33759
    /**
-
 
33760
     * Performs a deep copy on <i>other</i>.
-
 
33761
     */
-
 
33762
    public addCampaignNotification_args(addCampaignNotification_args other) {
-
 
33763
      __isset_bit_vector.clear();
-
 
33764
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
33765
      if (other.isSetEmail()) {
-
 
33766
        this.email = other.email;
-
 
33767
      }
-
 
33768
      this.campaignType = other.campaignType;
-
 
33769
    }
-
 
33770
 
-
 
33771
    public addCampaignNotification_args deepCopy() {
-
 
33772
      return new addCampaignNotification_args(this);
-
 
33773
    }
-
 
33774
 
-
 
33775
    @Override
-
 
33776
    public void clear() {
-
 
33777
      this.email = null;
-
 
33778
      setCampaignTypeIsSet(false);
-
 
33779
      this.campaignType = 0;
-
 
33780
    }
-
 
33781
 
-
 
33782
    public String getEmail() {
-
 
33783
      return this.email;
-
 
33784
    }
-
 
33785
 
-
 
33786
    public void setEmail(String email) {
-
 
33787
      this.email = email;
-
 
33788
    }
-
 
33789
 
-
 
33790
    public void unsetEmail() {
-
 
33791
      this.email = null;
-
 
33792
    }
-
 
33793
 
-
 
33794
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
-
 
33795
    public boolean isSetEmail() {
-
 
33796
      return this.email != null;
-
 
33797
    }
-
 
33798
 
-
 
33799
    public void setEmailIsSet(boolean value) {
-
 
33800
      if (!value) {
-
 
33801
        this.email = null;
-
 
33802
      }
-
 
33803
    }
-
 
33804
 
-
 
33805
    public long getCampaignType() {
-
 
33806
      return this.campaignType;
-
 
33807
    }
-
 
33808
 
-
 
33809
    public void setCampaignType(long campaignType) {
-
 
33810
      this.campaignType = campaignType;
-
 
33811
      setCampaignTypeIsSet(true);
-
 
33812
    }
-
 
33813
 
-
 
33814
    public void unsetCampaignType() {
-
 
33815
      __isset_bit_vector.clear(__CAMPAIGNTYPE_ISSET_ID);
-
 
33816
    }
-
 
33817
 
-
 
33818
    /** Returns true if field campaignType is set (has been assigned a value) and false otherwise */
-
 
33819
    public boolean isSetCampaignType() {
-
 
33820
      return __isset_bit_vector.get(__CAMPAIGNTYPE_ISSET_ID);
-
 
33821
    }
-
 
33822
 
-
 
33823
    public void setCampaignTypeIsSet(boolean value) {
-
 
33824
      __isset_bit_vector.set(__CAMPAIGNTYPE_ISSET_ID, value);
-
 
33825
    }
-
 
33826
 
-
 
33827
    public void setFieldValue(_Fields field, Object value) {
-
 
33828
      switch (field) {
-
 
33829
      case EMAIL:
-
 
33830
        if (value == null) {
-
 
33831
          unsetEmail();
-
 
33832
        } else {
-
 
33833
          setEmail((String)value);
-
 
33834
        }
-
 
33835
        break;
-
 
33836
 
-
 
33837
      case CAMPAIGN_TYPE:
-
 
33838
        if (value == null) {
-
 
33839
          unsetCampaignType();
-
 
33840
        } else {
-
 
33841
          setCampaignType((Long)value);
-
 
33842
        }
-
 
33843
        break;
-
 
33844
 
-
 
33845
      }
-
 
33846
    }
-
 
33847
 
-
 
33848
    public Object getFieldValue(_Fields field) {
-
 
33849
      switch (field) {
-
 
33850
      case EMAIL:
-
 
33851
        return getEmail();
-
 
33852
 
-
 
33853
      case CAMPAIGN_TYPE:
-
 
33854
        return Long.valueOf(getCampaignType());
-
 
33855
 
-
 
33856
      }
-
 
33857
      throw new IllegalStateException();
-
 
33858
    }
-
 
33859
 
-
 
33860
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
33861
    public boolean isSet(_Fields field) {
-
 
33862
      if (field == null) {
-
 
33863
        throw new IllegalArgumentException();
-
 
33864
      }
-
 
33865
 
-
 
33866
      switch (field) {
-
 
33867
      case EMAIL:
-
 
33868
        return isSetEmail();
-
 
33869
      case CAMPAIGN_TYPE:
-
 
33870
        return isSetCampaignType();
-
 
33871
      }
-
 
33872
      throw new IllegalStateException();
-
 
33873
    }
-
 
33874
 
-
 
33875
    @Override
-
 
33876
    public boolean equals(Object that) {
-
 
33877
      if (that == null)
-
 
33878
        return false;
-
 
33879
      if (that instanceof addCampaignNotification_args)
-
 
33880
        return this.equals((addCampaignNotification_args)that);
-
 
33881
      return false;
-
 
33882
    }
-
 
33883
 
-
 
33884
    public boolean equals(addCampaignNotification_args that) {
-
 
33885
      if (that == null)
-
 
33886
        return false;
-
 
33887
 
-
 
33888
      boolean this_present_email = true && this.isSetEmail();
-
 
33889
      boolean that_present_email = true && that.isSetEmail();
-
 
33890
      if (this_present_email || that_present_email) {
-
 
33891
        if (!(this_present_email && that_present_email))
-
 
33892
          return false;
-
 
33893
        if (!this.email.equals(that.email))
-
 
33894
          return false;
-
 
33895
      }
-
 
33896
 
-
 
33897
      boolean this_present_campaignType = true;
-
 
33898
      boolean that_present_campaignType = true;
-
 
33899
      if (this_present_campaignType || that_present_campaignType) {
-
 
33900
        if (!(this_present_campaignType && that_present_campaignType))
-
 
33901
          return false;
-
 
33902
        if (this.campaignType != that.campaignType)
-
 
33903
          return false;
-
 
33904
      }
-
 
33905
 
-
 
33906
      return true;
-
 
33907
    }
-
 
33908
 
-
 
33909
    @Override
-
 
33910
    public int hashCode() {
-
 
33911
      return 0;
-
 
33912
    }
-
 
33913
 
-
 
33914
    public int compareTo(addCampaignNotification_args other) {
-
 
33915
      if (!getClass().equals(other.getClass())) {
-
 
33916
        return getClass().getName().compareTo(other.getClass().getName());
-
 
33917
      }
-
 
33918
 
-
 
33919
      int lastComparison = 0;
-
 
33920
      addCampaignNotification_args typedOther = (addCampaignNotification_args)other;
-
 
33921
 
-
 
33922
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
-
 
33923
      if (lastComparison != 0) {
-
 
33924
        return lastComparison;
-
 
33925
      }
-
 
33926
      if (isSetEmail()) {
-
 
33927
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
-
 
33928
        if (lastComparison != 0) {
-
 
33929
          return lastComparison;
-
 
33930
        }
-
 
33931
      }
-
 
33932
      lastComparison = Boolean.valueOf(isSetCampaignType()).compareTo(typedOther.isSetCampaignType());
-
 
33933
      if (lastComparison != 0) {
-
 
33934
        return lastComparison;
-
 
33935
      }
-
 
33936
      if (isSetCampaignType()) {
-
 
33937
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.campaignType, typedOther.campaignType);
-
 
33938
        if (lastComparison != 0) {
-
 
33939
          return lastComparison;
-
 
33940
        }
-
 
33941
      }
-
 
33942
      return 0;
-
 
33943
    }
-
 
33944
 
-
 
33945
    public _Fields fieldForId(int fieldId) {
-
 
33946
      return _Fields.findByThriftId(fieldId);
-
 
33947
    }
-
 
33948
 
-
 
33949
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
33950
      org.apache.thrift.protocol.TField field;
-
 
33951
      iprot.readStructBegin();
-
 
33952
      while (true)
-
 
33953
      {
-
 
33954
        field = iprot.readFieldBegin();
-
 
33955
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
33956
          break;
-
 
33957
        }
-
 
33958
        switch (field.id) {
-
 
33959
          case 1: // EMAIL
-
 
33960
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
33961
              this.email = iprot.readString();
-
 
33962
            } else { 
-
 
33963
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
33964
            }
-
 
33965
            break;
-
 
33966
          case 2: // CAMPAIGN_TYPE
-
 
33967
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
33968
              this.campaignType = iprot.readI64();
-
 
33969
              setCampaignTypeIsSet(true);
-
 
33970
            } else { 
-
 
33971
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
33972
            }
-
 
33973
            break;
-
 
33974
          default:
-
 
33975
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
33976
        }
-
 
33977
        iprot.readFieldEnd();
-
 
33978
      }
-
 
33979
      iprot.readStructEnd();
-
 
33980
      validate();
-
 
33981
    }
-
 
33982
 
-
 
33983
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
33984
      validate();
-
 
33985
 
-
 
33986
      oprot.writeStructBegin(STRUCT_DESC);
-
 
33987
      if (this.email != null) {
-
 
33988
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
-
 
33989
        oprot.writeString(this.email);
-
 
33990
        oprot.writeFieldEnd();
-
 
33991
      }
-
 
33992
      oprot.writeFieldBegin(CAMPAIGN_TYPE_FIELD_DESC);
-
 
33993
      oprot.writeI64(this.campaignType);
-
 
33994
      oprot.writeFieldEnd();
-
 
33995
      oprot.writeFieldStop();
-
 
33996
      oprot.writeStructEnd();
-
 
33997
    }
-
 
33998
 
-
 
33999
    @Override
-
 
34000
    public String toString() {
-
 
34001
      StringBuilder sb = new StringBuilder("addCampaignNotification_args(");
-
 
34002
      boolean first = true;
-
 
34003
 
-
 
34004
      sb.append("email:");
-
 
34005
      if (this.email == null) {
-
 
34006
        sb.append("null");
-
 
34007
      } else {
-
 
34008
        sb.append(this.email);
-
 
34009
      }
-
 
34010
      first = false;
-
 
34011
      if (!first) sb.append(", ");
-
 
34012
      sb.append("campaignType:");
-
 
34013
      sb.append(this.campaignType);
-
 
34014
      first = false;
-
 
34015
      sb.append(")");
-
 
34016
      return sb.toString();
-
 
34017
    }
-
 
34018
 
-
 
34019
    public void validate() throws org.apache.thrift.TException {
-
 
34020
      // check for required fields
-
 
34021
    }
-
 
34022
 
-
 
34023
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
34024
      try {
-
 
34025
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
34026
      } catch (org.apache.thrift.TException te) {
-
 
34027
        throw new java.io.IOException(te);
-
 
34028
      }
-
 
34029
    }
-
 
34030
 
-
 
34031
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
34032
      try {
-
 
34033
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
34034
        __isset_bit_vector = new BitSet(1);
-
 
34035
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
34036
      } catch (org.apache.thrift.TException te) {
-
 
34037
        throw new java.io.IOException(te);
-
 
34038
      }
-
 
34039
    }
-
 
34040
 
-
 
34041
  }
-
 
34042
 
-
 
34043
  public static class addCampaignNotification_result implements org.apache.thrift.TBase<addCampaignNotification_result, addCampaignNotification_result._Fields>, java.io.Serializable, Cloneable   {
-
 
34044
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCampaignNotification_result");
-
 
34045
 
-
 
34046
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
-
 
34047
 
-
 
34048
    private String success; // required
-
 
34049
 
-
 
34050
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
34051
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
34052
      SUCCESS((short)0, "success");
-
 
34053
 
-
 
34054
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
34055
 
-
 
34056
      static {
-
 
34057
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
34058
          byName.put(field.getFieldName(), field);
-
 
34059
        }
-
 
34060
      }
-
 
34061
 
-
 
34062
      /**
-
 
34063
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
34064
       */
-
 
34065
      public static _Fields findByThriftId(int fieldId) {
-
 
34066
        switch(fieldId) {
-
 
34067
          case 0: // SUCCESS
-
 
34068
            return SUCCESS;
-
 
34069
          default:
-
 
34070
            return null;
-
 
34071
        }
-
 
34072
      }
-
 
34073
 
-
 
34074
      /**
-
 
34075
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
34076
       * if it is not found.
-
 
34077
       */
-
 
34078
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
34079
        _Fields fields = findByThriftId(fieldId);
-
 
34080
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
34081
        return fields;
-
 
34082
      }
-
 
34083
 
-
 
34084
      /**
-
 
34085
       * Find the _Fields constant that matches name, or null if its not found.
-
 
34086
       */
-
 
34087
      public static _Fields findByName(String name) {
-
 
34088
        return byName.get(name);
-
 
34089
      }
-
 
34090
 
-
 
34091
      private final short _thriftId;
-
 
34092
      private final String _fieldName;
-
 
34093
 
-
 
34094
      _Fields(short thriftId, String fieldName) {
-
 
34095
        _thriftId = thriftId;
-
 
34096
        _fieldName = fieldName;
-
 
34097
      }
-
 
34098
 
-
 
34099
      public short getThriftFieldId() {
-
 
34100
        return _thriftId;
-
 
34101
      }
-
 
34102
 
-
 
34103
      public String getFieldName() {
-
 
34104
        return _fieldName;
-
 
34105
      }
-
 
34106
    }
-
 
34107
 
-
 
34108
    // isset id assignments
-
 
34109
 
-
 
34110
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
34111
    static {
-
 
34112
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
34113
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
34114
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
34115
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
34116
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCampaignNotification_result.class, metaDataMap);
-
 
34117
    }
-
 
34118
 
-
 
34119
    public addCampaignNotification_result() {
-
 
34120
    }
-
 
34121
 
-
 
34122
    public addCampaignNotification_result(
-
 
34123
      String success)
-
 
34124
    {
-
 
34125
      this();
-
 
34126
      this.success = success;
-
 
34127
    }
-
 
34128
 
-
 
34129
    /**
-
 
34130
     * Performs a deep copy on <i>other</i>.
-
 
34131
     */
-
 
34132
    public addCampaignNotification_result(addCampaignNotification_result other) {
-
 
34133
      if (other.isSetSuccess()) {
-
 
34134
        this.success = other.success;
-
 
34135
      }
-
 
34136
    }
-
 
34137
 
-
 
34138
    public addCampaignNotification_result deepCopy() {
-
 
34139
      return new addCampaignNotification_result(this);
-
 
34140
    }
-
 
34141
 
-
 
34142
    @Override
-
 
34143
    public void clear() {
-
 
34144
      this.success = null;
-
 
34145
    }
-
 
34146
 
-
 
34147
    public String getSuccess() {
-
 
34148
      return this.success;
-
 
34149
    }
-
 
34150
 
-
 
34151
    public void setSuccess(String success) {
-
 
34152
      this.success = success;
-
 
34153
    }
-
 
34154
 
-
 
34155
    public void unsetSuccess() {
-
 
34156
      this.success = null;
-
 
34157
    }
-
 
34158
 
-
 
34159
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
34160
    public boolean isSetSuccess() {
-
 
34161
      return this.success != null;
-
 
34162
    }
-
 
34163
 
-
 
34164
    public void setSuccessIsSet(boolean value) {
-
 
34165
      if (!value) {
-
 
34166
        this.success = null;
-
 
34167
      }
-
 
34168
    }
-
 
34169
 
-
 
34170
    public void setFieldValue(_Fields field, Object value) {
-
 
34171
      switch (field) {
-
 
34172
      case SUCCESS:
-
 
34173
        if (value == null) {
-
 
34174
          unsetSuccess();
-
 
34175
        } else {
-
 
34176
          setSuccess((String)value);
-
 
34177
        }
-
 
34178
        break;
-
 
34179
 
-
 
34180
      }
-
 
34181
    }
-
 
34182
 
-
 
34183
    public Object getFieldValue(_Fields field) {
-
 
34184
      switch (field) {
-
 
34185
      case SUCCESS:
-
 
34186
        return getSuccess();
-
 
34187
 
-
 
34188
      }
-
 
34189
      throw new IllegalStateException();
-
 
34190
    }
-
 
34191
 
-
 
34192
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
34193
    public boolean isSet(_Fields field) {
-
 
34194
      if (field == null) {
-
 
34195
        throw new IllegalArgumentException();
-
 
34196
      }
-
 
34197
 
-
 
34198
      switch (field) {
-
 
34199
      case SUCCESS:
-
 
34200
        return isSetSuccess();
-
 
34201
      }
-
 
34202
      throw new IllegalStateException();
-
 
34203
    }
-
 
34204
 
-
 
34205
    @Override
-
 
34206
    public boolean equals(Object that) {
-
 
34207
      if (that == null)
-
 
34208
        return false;
-
 
34209
      if (that instanceof addCampaignNotification_result)
-
 
34210
        return this.equals((addCampaignNotification_result)that);
-
 
34211
      return false;
-
 
34212
    }
-
 
34213
 
-
 
34214
    public boolean equals(addCampaignNotification_result that) {
-
 
34215
      if (that == null)
-
 
34216
        return false;
-
 
34217
 
-
 
34218
      boolean this_present_success = true && this.isSetSuccess();
-
 
34219
      boolean that_present_success = true && that.isSetSuccess();
-
 
34220
      if (this_present_success || that_present_success) {
-
 
34221
        if (!(this_present_success && that_present_success))
-
 
34222
          return false;
-
 
34223
        if (!this.success.equals(that.success))
-
 
34224
          return false;
-
 
34225
      }
-
 
34226
 
-
 
34227
      return true;
-
 
34228
    }
-
 
34229
 
-
 
34230
    @Override
-
 
34231
    public int hashCode() {
-
 
34232
      return 0;
-
 
34233
    }
-
 
34234
 
-
 
34235
    public int compareTo(addCampaignNotification_result other) {
-
 
34236
      if (!getClass().equals(other.getClass())) {
-
 
34237
        return getClass().getName().compareTo(other.getClass().getName());
-
 
34238
      }
-
 
34239
 
-
 
34240
      int lastComparison = 0;
-
 
34241
      addCampaignNotification_result typedOther = (addCampaignNotification_result)other;
-
 
34242
 
-
 
34243
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
34244
      if (lastComparison != 0) {
-
 
34245
        return lastComparison;
-
 
34246
      }
-
 
34247
      if (isSetSuccess()) {
-
 
34248
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
34249
        if (lastComparison != 0) {
-
 
34250
          return lastComparison;
-
 
34251
        }
-
 
34252
      }
-
 
34253
      return 0;
-
 
34254
    }
-
 
34255
 
-
 
34256
    public _Fields fieldForId(int fieldId) {
-
 
34257
      return _Fields.findByThriftId(fieldId);
-
 
34258
    }
-
 
34259
 
-
 
34260
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
34261
      org.apache.thrift.protocol.TField field;
-
 
34262
      iprot.readStructBegin();
-
 
34263
      while (true)
-
 
34264
      {
-
 
34265
        field = iprot.readFieldBegin();
-
 
34266
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
34267
          break;
-
 
34268
        }
-
 
34269
        switch (field.id) {
-
 
34270
          case 0: // SUCCESS
-
 
34271
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
34272
              this.success = iprot.readString();
-
 
34273
            } else { 
-
 
34274
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
34275
            }
-
 
34276
            break;
-
 
34277
          default:
-
 
34278
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
34279
        }
-
 
34280
        iprot.readFieldEnd();
-
 
34281
      }
-
 
34282
      iprot.readStructEnd();
-
 
34283
      validate();
-
 
34284
    }
-
 
34285
 
-
 
34286
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
34287
      oprot.writeStructBegin(STRUCT_DESC);
-
 
34288
 
-
 
34289
      if (this.isSetSuccess()) {
-
 
34290
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
34291
        oprot.writeString(this.success);
-
 
34292
        oprot.writeFieldEnd();
-
 
34293
      }
-
 
34294
      oprot.writeFieldStop();
-
 
34295
      oprot.writeStructEnd();
-
 
34296
    }
-
 
34297
 
-
 
34298
    @Override
-
 
34299
    public String toString() {
-
 
34300
      StringBuilder sb = new StringBuilder("addCampaignNotification_result(");
-
 
34301
      boolean first = true;
-
 
34302
 
-
 
34303
      sb.append("success:");
-
 
34304
      if (this.success == null) {
-
 
34305
        sb.append("null");
33547
      } else {
34306
      } else {
33548
        sb.append(this.success);
34307
        sb.append(this.success);
33549
      }
34308
      }
33550
      first = false;
34309
      first = false;
33551
      sb.append(")");
34310
      sb.append(")");