Subversion Repositories SmartDukaan

Rev

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

Rev 4996 Rev 5055
Line 148... Line 148...
148
 
148
 
149
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException;
149
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException;
150
 
150
 
151
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException;
151
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException;
152
 
152
 
-
 
153
    /**
-
 
154
     * Returns a list of emails to which product notifications have been sent in a given date range
-
 
155
     * 
-
 
156
     * @param startDatetime
-
 
157
     * @param endDatetime
-
 
158
     */
-
 
159
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException;
-
 
160
 
153
  }
161
  }
154
 
162
 
155
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
163
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
156
 
164
 
157
    public void saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
165
    public void saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
Line 206... Line 214...
206
 
214
 
207
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQuickLinks_call> resultHandler) throws org.apache.thrift.TException;
215
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQuickLinks_call> resultHandler) throws org.apache.thrift.TException;
208
 
216
 
209
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateQuickLink_call> resultHandler) throws org.apache.thrift.TException;
217
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateQuickLink_call> resultHandler) throws org.apache.thrift.TException;
210
 
218
 
-
 
219
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException;
-
 
220
 
211
  }
221
  }
212
 
222
 
213
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
223
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
214
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
224
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
215
      public Factory() {}
225
      public Factory() {}
Line 905... Line 915...
905
        throw result.hse;
915
        throw result.hse;
906
      }
916
      }
907
      return;
917
      return;
908
    }
918
    }
909
 
919
 
-
 
920
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException
-
 
921
    {
-
 
922
      send_getEmailsForNotificationsSent(startDatetime, endDatetime);
-
 
923
      return recv_getEmailsForNotificationsSent();
-
 
924
    }
-
 
925
 
-
 
926
    public void send_getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws org.apache.thrift.TException
-
 
927
    {
-
 
928
      getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
-
 
929
      args.setStartDatetime(startDatetime);
-
 
930
      args.setEndDatetime(endDatetime);
-
 
931
      sendBase("getEmailsForNotificationsSent", args);
-
 
932
    }
-
 
933
 
-
 
934
    public List<String> recv_getEmailsForNotificationsSent() throws HelperServiceException, org.apache.thrift.TException
-
 
935
    {
-
 
936
      getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
-
 
937
      receiveBase(result, "getEmailsForNotificationsSent");
-
 
938
      if (result.isSetSuccess()) {
-
 
939
        return result.success;
-
 
940
      }
-
 
941
      if (result.hse != null) {
-
 
942
        throw result.hse;
-
 
943
      }
-
 
944
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");
-
 
945
    }
-
 
946
 
910
  }
947
  }
911
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
948
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
912
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
949
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
913
      private org.apache.thrift.async.TAsyncClientManager clientManager;
950
      private org.apache.thrift.async.TAsyncClientManager clientManager;
914
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
951
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1847... Line 1884...
1847
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1884
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1848
        (new Client(prot)).recv_updateQuickLink();
1885
        (new Client(prot)).recv_updateQuickLink();
1849
      }
1886
      }
1850
    }
1887
    }
1851
 
1888
 
-
 
1889
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException {
-
 
1890
      checkReady();
-
 
1891
      getEmailsForNotificationsSent_call method_call = new getEmailsForNotificationsSent_call(startDatetime, endDatetime, resultHandler, this, ___protocolFactory, ___transport);
-
 
1892
      this.___currentMethod = method_call;
-
 
1893
      ___manager.call(method_call);
-
 
1894
    }
-
 
1895
 
-
 
1896
    public static class getEmailsForNotificationsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1897
      private long startDatetime;
-
 
1898
      private long endDatetime;
-
 
1899
      public getEmailsForNotificationsSent_call(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getEmailsForNotificationsSent_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 {
-
 
1900
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1901
        this.startDatetime = startDatetime;
-
 
1902
        this.endDatetime = endDatetime;
-
 
1903
      }
-
 
1904
 
-
 
1905
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1906
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsForNotificationsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1907
        getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
-
 
1908
        args.setStartDatetime(startDatetime);
-
 
1909
        args.setEndDatetime(endDatetime);
-
 
1910
        args.write(prot);
-
 
1911
        prot.writeMessageEnd();
-
 
1912
      }
-
 
1913
 
-
 
1914
      public List<String> getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
1915
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1916
          throw new IllegalStateException("Method call not finished!");
-
 
1917
        }
-
 
1918
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1919
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1920
        return (new Client(prot)).recv_getEmailsForNotificationsSent();
-
 
1921
      }
-
 
1922
    }
-
 
1923
 
1852
  }
1924
  }
1853
 
1925
 
1854
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1926
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1855
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1927
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1856
    public Processor(I iface) {
1928
    public Processor(I iface) {
Line 1887... Line 1959...
1887
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
1959
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
1888
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
1960
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
1889
      processMap.put("saveQuickLink", new saveQuickLink());
1961
      processMap.put("saveQuickLink", new saveQuickLink());
1890
      processMap.put("getQuickLinks", new getQuickLinks());
1962
      processMap.put("getQuickLinks", new getQuickLinks());
1891
      processMap.put("updateQuickLink", new updateQuickLink());
1963
      processMap.put("updateQuickLink", new updateQuickLink());
-
 
1964
      processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());
1892
      return processMap;
1965
      return processMap;
1893
    }
1966
    }
1894
 
1967
 
1895
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
1968
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
1896
      public saveUserEmailForSending() {
1969
      public saveUserEmailForSending() {
Line 2411... Line 2484...
2411
        }
2484
        }
2412
        return result;
2485
        return result;
2413
      }
2486
      }
2414
    }
2487
    }
2415
 
2488
 
-
 
2489
    private static class getEmailsForNotificationsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsForNotificationsSent_args> {
-
 
2490
      public getEmailsForNotificationsSent() {
-
 
2491
        super("getEmailsForNotificationsSent");
-
 
2492
      }
-
 
2493
 
-
 
2494
      protected getEmailsForNotificationsSent_args getEmptyArgsInstance() {
-
 
2495
        return new getEmailsForNotificationsSent_args();
-
 
2496
      }
-
 
2497
 
-
 
2498
      protected getEmailsForNotificationsSent_result getResult(I iface, getEmailsForNotificationsSent_args args) throws org.apache.thrift.TException {
-
 
2499
        getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
-
 
2500
        try {
-
 
2501
          result.success = iface.getEmailsForNotificationsSent(args.startDatetime, args.endDatetime);
-
 
2502
        } catch (HelperServiceException hse) {
-
 
2503
          result.hse = hse;
-
 
2504
        }
-
 
2505
        return result;
-
 
2506
      }
-
 
2507
    }
-
 
2508
 
2416
  }
2509
  }
2417
 
2510
 
2418
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2511
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2419
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
2512
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
2420
 
2513
 
Line 21350... Line 21443...
21350
      sb.append("hse:");
21443
      sb.append("hse:");
21351
      if (this.hse == null) {
21444
      if (this.hse == null) {
21352
        sb.append("null");
21445
        sb.append("null");
21353
      } else {
21446
      } else {
21354
        sb.append(this.hse);
21447
        sb.append(this.hse);
-
 
21448
      }
-
 
21449
      first = false;
-
 
21450
      sb.append(")");
-
 
21451
      return sb.toString();
-
 
21452
    }
-
 
21453
 
-
 
21454
    public void validate() throws org.apache.thrift.TException {
-
 
21455
      // check for required fields
-
 
21456
    }
-
 
21457
 
-
 
21458
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
21459
      try {
-
 
21460
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
21461
      } catch (org.apache.thrift.TException te) {
-
 
21462
        throw new java.io.IOException(te);
-
 
21463
      }
-
 
21464
    }
-
 
21465
 
-
 
21466
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
21467
      try {
-
 
21468
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
21469
      } catch (org.apache.thrift.TException te) {
-
 
21470
        throw new java.io.IOException(te);
-
 
21471
      }
-
 
21472
    }
-
 
21473
 
-
 
21474
  }
-
 
21475
 
-
 
21476
  public static class getEmailsForNotificationsSent_args implements org.apache.thrift.TBase<getEmailsForNotificationsSent_args, getEmailsForNotificationsSent_args._Fields>, java.io.Serializable, Cloneable   {
-
 
21477
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_args");
-
 
21478
 
-
 
21479
    private static final org.apache.thrift.protocol.TField START_DATETIME_FIELD_DESC = new org.apache.thrift.protocol.TField("startDatetime", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
21480
    private static final org.apache.thrift.protocol.TField END_DATETIME_FIELD_DESC = new org.apache.thrift.protocol.TField("endDatetime", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
21481
 
-
 
21482
    private long startDatetime; // required
-
 
21483
    private long endDatetime; // required
-
 
21484
 
-
 
21485
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
21486
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
21487
      START_DATETIME((short)1, "startDatetime"),
-
 
21488
      END_DATETIME((short)2, "endDatetime");
-
 
21489
 
-
 
21490
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
21491
 
-
 
21492
      static {
-
 
21493
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
21494
          byName.put(field.getFieldName(), field);
-
 
21495
        }
-
 
21496
      }
-
 
21497
 
-
 
21498
      /**
-
 
21499
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
21500
       */
-
 
21501
      public static _Fields findByThriftId(int fieldId) {
-
 
21502
        switch(fieldId) {
-
 
21503
          case 1: // START_DATETIME
-
 
21504
            return START_DATETIME;
-
 
21505
          case 2: // END_DATETIME
-
 
21506
            return END_DATETIME;
-
 
21507
          default:
-
 
21508
            return null;
-
 
21509
        }
-
 
21510
      }
-
 
21511
 
-
 
21512
      /**
-
 
21513
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
21514
       * if it is not found.
-
 
21515
       */
-
 
21516
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
21517
        _Fields fields = findByThriftId(fieldId);
-
 
21518
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
21519
        return fields;
-
 
21520
      }
-
 
21521
 
-
 
21522
      /**
-
 
21523
       * Find the _Fields constant that matches name, or null if its not found.
-
 
21524
       */
-
 
21525
      public static _Fields findByName(String name) {
-
 
21526
        return byName.get(name);
-
 
21527
      }
-
 
21528
 
-
 
21529
      private final short _thriftId;
-
 
21530
      private final String _fieldName;
-
 
21531
 
-
 
21532
      _Fields(short thriftId, String fieldName) {
-
 
21533
        _thriftId = thriftId;
-
 
21534
        _fieldName = fieldName;
-
 
21535
      }
-
 
21536
 
-
 
21537
      public short getThriftFieldId() {
-
 
21538
        return _thriftId;
-
 
21539
      }
-
 
21540
 
-
 
21541
      public String getFieldName() {
-
 
21542
        return _fieldName;
-
 
21543
      }
-
 
21544
    }
-
 
21545
 
-
 
21546
    // isset id assignments
-
 
21547
    private static final int __STARTDATETIME_ISSET_ID = 0;
-
 
21548
    private static final int __ENDDATETIME_ISSET_ID = 1;
-
 
21549
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
21550
 
-
 
21551
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
21552
    static {
-
 
21553
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
21554
      tmpMap.put(_Fields.START_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("startDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21555
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
21556
      tmpMap.put(_Fields.END_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("endDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21557
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
21558
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
21559
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_args.class, metaDataMap);
-
 
21560
    }
-
 
21561
 
-
 
21562
    public getEmailsForNotificationsSent_args() {
-
 
21563
    }
-
 
21564
 
-
 
21565
    public getEmailsForNotificationsSent_args(
-
 
21566
      long startDatetime,
-
 
21567
      long endDatetime)
-
 
21568
    {
-
 
21569
      this();
-
 
21570
      this.startDatetime = startDatetime;
-
 
21571
      setStartDatetimeIsSet(true);
-
 
21572
      this.endDatetime = endDatetime;
-
 
21573
      setEndDatetimeIsSet(true);
-
 
21574
    }
-
 
21575
 
-
 
21576
    /**
-
 
21577
     * Performs a deep copy on <i>other</i>.
-
 
21578
     */
-
 
21579
    public getEmailsForNotificationsSent_args(getEmailsForNotificationsSent_args other) {
-
 
21580
      __isset_bit_vector.clear();
-
 
21581
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
21582
      this.startDatetime = other.startDatetime;
-
 
21583
      this.endDatetime = other.endDatetime;
-
 
21584
    }
-
 
21585
 
-
 
21586
    public getEmailsForNotificationsSent_args deepCopy() {
-
 
21587
      return new getEmailsForNotificationsSent_args(this);
-
 
21588
    }
-
 
21589
 
-
 
21590
    @Override
-
 
21591
    public void clear() {
-
 
21592
      setStartDatetimeIsSet(false);
-
 
21593
      this.startDatetime = 0;
-
 
21594
      setEndDatetimeIsSet(false);
-
 
21595
      this.endDatetime = 0;
-
 
21596
    }
-
 
21597
 
-
 
21598
    public long getStartDatetime() {
-
 
21599
      return this.startDatetime;
-
 
21600
    }
-
 
21601
 
-
 
21602
    public void setStartDatetime(long startDatetime) {
-
 
21603
      this.startDatetime = startDatetime;
-
 
21604
      setStartDatetimeIsSet(true);
-
 
21605
    }
-
 
21606
 
-
 
21607
    public void unsetStartDatetime() {
-
 
21608
      __isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);
-
 
21609
    }
-
 
21610
 
-
 
21611
    /** Returns true if field startDatetime is set (has been assigned a value) and false otherwise */
-
 
21612
    public boolean isSetStartDatetime() {
-
 
21613
      return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);
-
 
21614
    }
-
 
21615
 
-
 
21616
    public void setStartDatetimeIsSet(boolean value) {
-
 
21617
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
-
 
21618
    }
-
 
21619
 
-
 
21620
    public long getEndDatetime() {
-
 
21621
      return this.endDatetime;
-
 
21622
    }
-
 
21623
 
-
 
21624
    public void setEndDatetime(long endDatetime) {
-
 
21625
      this.endDatetime = endDatetime;
-
 
21626
      setEndDatetimeIsSet(true);
-
 
21627
    }
-
 
21628
 
-
 
21629
    public void unsetEndDatetime() {
-
 
21630
      __isset_bit_vector.clear(__ENDDATETIME_ISSET_ID);
-
 
21631
    }
-
 
21632
 
-
 
21633
    /** Returns true if field endDatetime is set (has been assigned a value) and false otherwise */
-
 
21634
    public boolean isSetEndDatetime() {
-
 
21635
      return __isset_bit_vector.get(__ENDDATETIME_ISSET_ID);
-
 
21636
    }
-
 
21637
 
-
 
21638
    public void setEndDatetimeIsSet(boolean value) {
-
 
21639
      __isset_bit_vector.set(__ENDDATETIME_ISSET_ID, value);
-
 
21640
    }
-
 
21641
 
-
 
21642
    public void setFieldValue(_Fields field, Object value) {
-
 
21643
      switch (field) {
-
 
21644
      case START_DATETIME:
-
 
21645
        if (value == null) {
-
 
21646
          unsetStartDatetime();
-
 
21647
        } else {
-
 
21648
          setStartDatetime((Long)value);
-
 
21649
        }
-
 
21650
        break;
-
 
21651
 
-
 
21652
      case END_DATETIME:
-
 
21653
        if (value == null) {
-
 
21654
          unsetEndDatetime();
-
 
21655
        } else {
-
 
21656
          setEndDatetime((Long)value);
-
 
21657
        }
-
 
21658
        break;
-
 
21659
 
-
 
21660
      }
-
 
21661
    }
-
 
21662
 
-
 
21663
    public Object getFieldValue(_Fields field) {
-
 
21664
      switch (field) {
-
 
21665
      case START_DATETIME:
-
 
21666
        return Long.valueOf(getStartDatetime());
-
 
21667
 
-
 
21668
      case END_DATETIME:
-
 
21669
        return Long.valueOf(getEndDatetime());
-
 
21670
 
-
 
21671
      }
-
 
21672
      throw new IllegalStateException();
-
 
21673
    }
-
 
21674
 
-
 
21675
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
21676
    public boolean isSet(_Fields field) {
-
 
21677
      if (field == null) {
-
 
21678
        throw new IllegalArgumentException();
-
 
21679
      }
-
 
21680
 
-
 
21681
      switch (field) {
-
 
21682
      case START_DATETIME:
-
 
21683
        return isSetStartDatetime();
-
 
21684
      case END_DATETIME:
-
 
21685
        return isSetEndDatetime();
-
 
21686
      }
-
 
21687
      throw new IllegalStateException();
-
 
21688
    }
-
 
21689
 
-
 
21690
    @Override
-
 
21691
    public boolean equals(Object that) {
-
 
21692
      if (that == null)
-
 
21693
        return false;
-
 
21694
      if (that instanceof getEmailsForNotificationsSent_args)
-
 
21695
        return this.equals((getEmailsForNotificationsSent_args)that);
-
 
21696
      return false;
-
 
21697
    }
-
 
21698
 
-
 
21699
    public boolean equals(getEmailsForNotificationsSent_args that) {
-
 
21700
      if (that == null)
-
 
21701
        return false;
-
 
21702
 
-
 
21703
      boolean this_present_startDatetime = true;
-
 
21704
      boolean that_present_startDatetime = true;
-
 
21705
      if (this_present_startDatetime || that_present_startDatetime) {
-
 
21706
        if (!(this_present_startDatetime && that_present_startDatetime))
-
 
21707
          return false;
-
 
21708
        if (this.startDatetime != that.startDatetime)
-
 
21709
          return false;
-
 
21710
      }
-
 
21711
 
-
 
21712
      boolean this_present_endDatetime = true;
-
 
21713
      boolean that_present_endDatetime = true;
-
 
21714
      if (this_present_endDatetime || that_present_endDatetime) {
-
 
21715
        if (!(this_present_endDatetime && that_present_endDatetime))
-
 
21716
          return false;
-
 
21717
        if (this.endDatetime != that.endDatetime)
-
 
21718
          return false;
-
 
21719
      }
-
 
21720
 
-
 
21721
      return true;
-
 
21722
    }
-
 
21723
 
-
 
21724
    @Override
-
 
21725
    public int hashCode() {
-
 
21726
      return 0;
-
 
21727
    }
-
 
21728
 
-
 
21729
    public int compareTo(getEmailsForNotificationsSent_args other) {
-
 
21730
      if (!getClass().equals(other.getClass())) {
-
 
21731
        return getClass().getName().compareTo(other.getClass().getName());
-
 
21732
      }
-
 
21733
 
-
 
21734
      int lastComparison = 0;
-
 
21735
      getEmailsForNotificationsSent_args typedOther = (getEmailsForNotificationsSent_args)other;
-
 
21736
 
-
 
21737
      lastComparison = Boolean.valueOf(isSetStartDatetime()).compareTo(typedOther.isSetStartDatetime());
-
 
21738
      if (lastComparison != 0) {
-
 
21739
        return lastComparison;
-
 
21740
      }
-
 
21741
      if (isSetStartDatetime()) {
-
 
21742
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDatetime, typedOther.startDatetime);
-
 
21743
        if (lastComparison != 0) {
-
 
21744
          return lastComparison;
-
 
21745
        }
-
 
21746
      }
-
 
21747
      lastComparison = Boolean.valueOf(isSetEndDatetime()).compareTo(typedOther.isSetEndDatetime());
-
 
21748
      if (lastComparison != 0) {
-
 
21749
        return lastComparison;
-
 
21750
      }
-
 
21751
      if (isSetEndDatetime()) {
-
 
21752
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDatetime, typedOther.endDatetime);
-
 
21753
        if (lastComparison != 0) {
-
 
21754
          return lastComparison;
-
 
21755
        }
-
 
21756
      }
-
 
21757
      return 0;
-
 
21758
    }
-
 
21759
 
-
 
21760
    public _Fields fieldForId(int fieldId) {
-
 
21761
      return _Fields.findByThriftId(fieldId);
-
 
21762
    }
-
 
21763
 
-
 
21764
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
21765
      org.apache.thrift.protocol.TField field;
-
 
21766
      iprot.readStructBegin();
-
 
21767
      while (true)
-
 
21768
      {
-
 
21769
        field = iprot.readFieldBegin();
-
 
21770
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
21771
          break;
-
 
21772
        }
-
 
21773
        switch (field.id) {
-
 
21774
          case 1: // START_DATETIME
-
 
21775
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
21776
              this.startDatetime = iprot.readI64();
-
 
21777
              setStartDatetimeIsSet(true);
-
 
21778
            } else { 
-
 
21779
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21780
            }
-
 
21781
            break;
-
 
21782
          case 2: // END_DATETIME
-
 
21783
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
21784
              this.endDatetime = iprot.readI64();
-
 
21785
              setEndDatetimeIsSet(true);
-
 
21786
            } else { 
-
 
21787
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21788
            }
-
 
21789
            break;
-
 
21790
          default:
-
 
21791
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21792
        }
-
 
21793
        iprot.readFieldEnd();
-
 
21794
      }
-
 
21795
      iprot.readStructEnd();
-
 
21796
      validate();
-
 
21797
    }
-
 
21798
 
-
 
21799
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
21800
      validate();
-
 
21801
 
-
 
21802
      oprot.writeStructBegin(STRUCT_DESC);
-
 
21803
      oprot.writeFieldBegin(START_DATETIME_FIELD_DESC);
-
 
21804
      oprot.writeI64(this.startDatetime);
-
 
21805
      oprot.writeFieldEnd();
-
 
21806
      oprot.writeFieldBegin(END_DATETIME_FIELD_DESC);
-
 
21807
      oprot.writeI64(this.endDatetime);
-
 
21808
      oprot.writeFieldEnd();
-
 
21809
      oprot.writeFieldStop();
-
 
21810
      oprot.writeStructEnd();
-
 
21811
    }
-
 
21812
 
-
 
21813
    @Override
-
 
21814
    public String toString() {
-
 
21815
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_args(");
-
 
21816
      boolean first = true;
-
 
21817
 
-
 
21818
      sb.append("startDatetime:");
-
 
21819
      sb.append(this.startDatetime);
-
 
21820
      first = false;
-
 
21821
      if (!first) sb.append(", ");
-
 
21822
      sb.append("endDatetime:");
-
 
21823
      sb.append(this.endDatetime);
-
 
21824
      first = false;
-
 
21825
      sb.append(")");
-
 
21826
      return sb.toString();
-
 
21827
    }
-
 
21828
 
-
 
21829
    public void validate() throws org.apache.thrift.TException {
-
 
21830
      // check for required fields
-
 
21831
    }
-
 
21832
 
-
 
21833
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
21834
      try {
-
 
21835
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
21836
      } catch (org.apache.thrift.TException te) {
-
 
21837
        throw new java.io.IOException(te);
-
 
21838
      }
-
 
21839
    }
-
 
21840
 
-
 
21841
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
21842
      try {
-
 
21843
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
21844
      } catch (org.apache.thrift.TException te) {
-
 
21845
        throw new java.io.IOException(te);
-
 
21846
      }
-
 
21847
    }
-
 
21848
 
-
 
21849
  }
-
 
21850
 
-
 
21851
  public static class getEmailsForNotificationsSent_result implements org.apache.thrift.TBase<getEmailsForNotificationsSent_result, getEmailsForNotificationsSent_result._Fields>, java.io.Serializable, Cloneable   {
-
 
21852
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_result");
-
 
21853
 
-
 
21854
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
21855
    private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
21856
 
-
 
21857
    private List<String> success; // required
-
 
21858
    private HelperServiceException hse; // required
-
 
21859
 
-
 
21860
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
21861
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
21862
      SUCCESS((short)0, "success"),
-
 
21863
      HSE((short)1, "hse");
-
 
21864
 
-
 
21865
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
21866
 
-
 
21867
      static {
-
 
21868
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
21869
          byName.put(field.getFieldName(), field);
-
 
21870
        }
-
 
21871
      }
-
 
21872
 
-
 
21873
      /**
-
 
21874
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
21875
       */
-
 
21876
      public static _Fields findByThriftId(int fieldId) {
-
 
21877
        switch(fieldId) {
-
 
21878
          case 0: // SUCCESS
-
 
21879
            return SUCCESS;
-
 
21880
          case 1: // HSE
-
 
21881
            return HSE;
-
 
21882
          default:
-
 
21883
            return null;
-
 
21884
        }
-
 
21885
      }
-
 
21886
 
-
 
21887
      /**
-
 
21888
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
21889
       * if it is not found.
-
 
21890
       */
-
 
21891
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
21892
        _Fields fields = findByThriftId(fieldId);
-
 
21893
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
21894
        return fields;
-
 
21895
      }
-
 
21896
 
-
 
21897
      /**
-
 
21898
       * Find the _Fields constant that matches name, or null if its not found.
-
 
21899
       */
-
 
21900
      public static _Fields findByName(String name) {
-
 
21901
        return byName.get(name);
-
 
21902
      }
-
 
21903
 
-
 
21904
      private final short _thriftId;
-
 
21905
      private final String _fieldName;
-
 
21906
 
-
 
21907
      _Fields(short thriftId, String fieldName) {
-
 
21908
        _thriftId = thriftId;
-
 
21909
        _fieldName = fieldName;
-
 
21910
      }
-
 
21911
 
-
 
21912
      public short getThriftFieldId() {
-
 
21913
        return _thriftId;
-
 
21914
      }
-
 
21915
 
-
 
21916
      public String getFieldName() {
-
 
21917
        return _fieldName;
-
 
21918
      }
-
 
21919
    }
-
 
21920
 
-
 
21921
    // isset id assignments
-
 
21922
 
-
 
21923
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
21924
    static {
-
 
21925
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
21926
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21927
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
21928
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
21929
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21930
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
21931
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
21932
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_result.class, metaDataMap);
-
 
21933
    }
-
 
21934
 
-
 
21935
    public getEmailsForNotificationsSent_result() {
-
 
21936
    }
-
 
21937
 
-
 
21938
    public getEmailsForNotificationsSent_result(
-
 
21939
      List<String> success,
-
 
21940
      HelperServiceException hse)
-
 
21941
    {
-
 
21942
      this();
-
 
21943
      this.success = success;
-
 
21944
      this.hse = hse;
-
 
21945
    }
-
 
21946
 
-
 
21947
    /**
-
 
21948
     * Performs a deep copy on <i>other</i>.
-
 
21949
     */
-
 
21950
    public getEmailsForNotificationsSent_result(getEmailsForNotificationsSent_result other) {
-
 
21951
      if (other.isSetSuccess()) {
-
 
21952
        List<String> __this__success = new ArrayList<String>();
-
 
21953
        for (String other_element : other.success) {
-
 
21954
          __this__success.add(other_element);
-
 
21955
        }
-
 
21956
        this.success = __this__success;
-
 
21957
      }
-
 
21958
      if (other.isSetHse()) {
-
 
21959
        this.hse = new HelperServiceException(other.hse);
-
 
21960
      }
-
 
21961
    }
-
 
21962
 
-
 
21963
    public getEmailsForNotificationsSent_result deepCopy() {
-
 
21964
      return new getEmailsForNotificationsSent_result(this);
-
 
21965
    }
-
 
21966
 
-
 
21967
    @Override
-
 
21968
    public void clear() {
-
 
21969
      this.success = null;
-
 
21970
      this.hse = null;
-
 
21971
    }
-
 
21972
 
-
 
21973
    public int getSuccessSize() {
-
 
21974
      return (this.success == null) ? 0 : this.success.size();
-
 
21975
    }
-
 
21976
 
-
 
21977
    public java.util.Iterator<String> getSuccessIterator() {
-
 
21978
      return (this.success == null) ? null : this.success.iterator();
-
 
21979
    }
-
 
21980
 
-
 
21981
    public void addToSuccess(String elem) {
-
 
21982
      if (this.success == null) {
-
 
21983
        this.success = new ArrayList<String>();
-
 
21984
      }
-
 
21985
      this.success.add(elem);
-
 
21986
    }
-
 
21987
 
-
 
21988
    public List<String> getSuccess() {
-
 
21989
      return this.success;
-
 
21990
    }
-
 
21991
 
-
 
21992
    public void setSuccess(List<String> success) {
-
 
21993
      this.success = success;
-
 
21994
    }
-
 
21995
 
-
 
21996
    public void unsetSuccess() {
-
 
21997
      this.success = null;
-
 
21998
    }
-
 
21999
 
-
 
22000
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
22001
    public boolean isSetSuccess() {
-
 
22002
      return this.success != null;
-
 
22003
    }
-
 
22004
 
-
 
22005
    public void setSuccessIsSet(boolean value) {
-
 
22006
      if (!value) {
-
 
22007
        this.success = null;
-
 
22008
      }
-
 
22009
    }
-
 
22010
 
-
 
22011
    public HelperServiceException getHse() {
-
 
22012
      return this.hse;
-
 
22013
    }
-
 
22014
 
-
 
22015
    public void setHse(HelperServiceException hse) {
-
 
22016
      this.hse = hse;
-
 
22017
    }
-
 
22018
 
-
 
22019
    public void unsetHse() {
-
 
22020
      this.hse = null;
-
 
22021
    }
-
 
22022
 
-
 
22023
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
-
 
22024
    public boolean isSetHse() {
-
 
22025
      return this.hse != null;
-
 
22026
    }
-
 
22027
 
-
 
22028
    public void setHseIsSet(boolean value) {
-
 
22029
      if (!value) {
-
 
22030
        this.hse = null;
-
 
22031
      }
-
 
22032
    }
-
 
22033
 
-
 
22034
    public void setFieldValue(_Fields field, Object value) {
-
 
22035
      switch (field) {
-
 
22036
      case SUCCESS:
-
 
22037
        if (value == null) {
-
 
22038
          unsetSuccess();
-
 
22039
        } else {
-
 
22040
          setSuccess((List<String>)value);
-
 
22041
        }
-
 
22042
        break;
-
 
22043
 
-
 
22044
      case HSE:
-
 
22045
        if (value == null) {
-
 
22046
          unsetHse();
-
 
22047
        } else {
-
 
22048
          setHse((HelperServiceException)value);
-
 
22049
        }
-
 
22050
        break;
-
 
22051
 
-
 
22052
      }
-
 
22053
    }
-
 
22054
 
-
 
22055
    public Object getFieldValue(_Fields field) {
-
 
22056
      switch (field) {
-
 
22057
      case SUCCESS:
-
 
22058
        return getSuccess();
-
 
22059
 
-
 
22060
      case HSE:
-
 
22061
        return getHse();
-
 
22062
 
-
 
22063
      }
-
 
22064
      throw new IllegalStateException();
-
 
22065
    }
-
 
22066
 
-
 
22067
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
22068
    public boolean isSet(_Fields field) {
-
 
22069
      if (field == null) {
-
 
22070
        throw new IllegalArgumentException();
-
 
22071
      }
-
 
22072
 
-
 
22073
      switch (field) {
-
 
22074
      case SUCCESS:
-
 
22075
        return isSetSuccess();
-
 
22076
      case HSE:
-
 
22077
        return isSetHse();
-
 
22078
      }
-
 
22079
      throw new IllegalStateException();
-
 
22080
    }
-
 
22081
 
-
 
22082
    @Override
-
 
22083
    public boolean equals(Object that) {
-
 
22084
      if (that == null)
-
 
22085
        return false;
-
 
22086
      if (that instanceof getEmailsForNotificationsSent_result)
-
 
22087
        return this.equals((getEmailsForNotificationsSent_result)that);
-
 
22088
      return false;
-
 
22089
    }
-
 
22090
 
-
 
22091
    public boolean equals(getEmailsForNotificationsSent_result that) {
-
 
22092
      if (that == null)
-
 
22093
        return false;
-
 
22094
 
-
 
22095
      boolean this_present_success = true && this.isSetSuccess();
-
 
22096
      boolean that_present_success = true && that.isSetSuccess();
-
 
22097
      if (this_present_success || that_present_success) {
-
 
22098
        if (!(this_present_success && that_present_success))
-
 
22099
          return false;
-
 
22100
        if (!this.success.equals(that.success))
-
 
22101
          return false;
-
 
22102
      }
-
 
22103
 
-
 
22104
      boolean this_present_hse = true && this.isSetHse();
-
 
22105
      boolean that_present_hse = true && that.isSetHse();
-
 
22106
      if (this_present_hse || that_present_hse) {
-
 
22107
        if (!(this_present_hse && that_present_hse))
-
 
22108
          return false;
-
 
22109
        if (!this.hse.equals(that.hse))
-
 
22110
          return false;
-
 
22111
      }
-
 
22112
 
-
 
22113
      return true;
-
 
22114
    }
-
 
22115
 
-
 
22116
    @Override
-
 
22117
    public int hashCode() {
-
 
22118
      return 0;
-
 
22119
    }
-
 
22120
 
-
 
22121
    public int compareTo(getEmailsForNotificationsSent_result other) {
-
 
22122
      if (!getClass().equals(other.getClass())) {
-
 
22123
        return getClass().getName().compareTo(other.getClass().getName());
-
 
22124
      }
-
 
22125
 
-
 
22126
      int lastComparison = 0;
-
 
22127
      getEmailsForNotificationsSent_result typedOther = (getEmailsForNotificationsSent_result)other;
-
 
22128
 
-
 
22129
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
22130
      if (lastComparison != 0) {
-
 
22131
        return lastComparison;
-
 
22132
      }
-
 
22133
      if (isSetSuccess()) {
-
 
22134
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
22135
        if (lastComparison != 0) {
-
 
22136
          return lastComparison;
-
 
22137
        }
-
 
22138
      }
-
 
22139
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
-
 
22140
      if (lastComparison != 0) {
-
 
22141
        return lastComparison;
-
 
22142
      }
-
 
22143
      if (isSetHse()) {
-
 
22144
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
-
 
22145
        if (lastComparison != 0) {
-
 
22146
          return lastComparison;
-
 
22147
        }
-
 
22148
      }
-
 
22149
      return 0;
-
 
22150
    }
-
 
22151
 
-
 
22152
    public _Fields fieldForId(int fieldId) {
-
 
22153
      return _Fields.findByThriftId(fieldId);
-
 
22154
    }
-
 
22155
 
-
 
22156
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
22157
      org.apache.thrift.protocol.TField field;
-
 
22158
      iprot.readStructBegin();
-
 
22159
      while (true)
-
 
22160
      {
-
 
22161
        field = iprot.readFieldBegin();
-
 
22162
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
22163
          break;
-
 
22164
        }
-
 
22165
        switch (field.id) {
-
 
22166
          case 0: // SUCCESS
-
 
22167
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
22168
              {
-
 
22169
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
-
 
22170
                this.success = new ArrayList<String>(_list41.size);
-
 
22171
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
-
 
22172
                {
-
 
22173
                  String _elem43; // required
-
 
22174
                  _elem43 = iprot.readString();
-
 
22175
                  this.success.add(_elem43);
-
 
22176
                }
-
 
22177
                iprot.readListEnd();
-
 
22178
              }
-
 
22179
            } else { 
-
 
22180
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22181
            }
-
 
22182
            break;
-
 
22183
          case 1: // HSE
-
 
22184
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
22185
              this.hse = new HelperServiceException();
-
 
22186
              this.hse.read(iprot);
-
 
22187
            } else { 
-
 
22188
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22189
            }
-
 
22190
            break;
-
 
22191
          default:
-
 
22192
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22193
        }
-
 
22194
        iprot.readFieldEnd();
-
 
22195
      }
-
 
22196
      iprot.readStructEnd();
-
 
22197
      validate();
-
 
22198
    }
-
 
22199
 
-
 
22200
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
22201
      oprot.writeStructBegin(STRUCT_DESC);
-
 
22202
 
-
 
22203
      if (this.isSetSuccess()) {
-
 
22204
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
22205
        {
-
 
22206
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
-
 
22207
          for (String _iter44 : this.success)
-
 
22208
          {
-
 
22209
            oprot.writeString(_iter44);
-
 
22210
          }
-
 
22211
          oprot.writeListEnd();
-
 
22212
        }
-
 
22213
        oprot.writeFieldEnd();
-
 
22214
      } else if (this.isSetHse()) {
-
 
22215
        oprot.writeFieldBegin(HSE_FIELD_DESC);
-
 
22216
        this.hse.write(oprot);
-
 
22217
        oprot.writeFieldEnd();
-
 
22218
      }
-
 
22219
      oprot.writeFieldStop();
-
 
22220
      oprot.writeStructEnd();
-
 
22221
    }
-
 
22222
 
-
 
22223
    @Override
-
 
22224
    public String toString() {
-
 
22225
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_result(");
-
 
22226
      boolean first = true;
-
 
22227
 
-
 
22228
      sb.append("success:");
-
 
22229
      if (this.success == null) {
-
 
22230
        sb.append("null");
-
 
22231
      } else {
-
 
22232
        sb.append(this.success);
-
 
22233
      }
-
 
22234
      first = false;
-
 
22235
      if (!first) sb.append(", ");
-
 
22236
      sb.append("hse:");
-
 
22237
      if (this.hse == null) {
-
 
22238
        sb.append("null");
-
 
22239
      } else {
-
 
22240
        sb.append(this.hse);
21355
      }
22241
      }
21356
      first = false;
22242
      first = false;
21357
      sb.append(")");
22243
      sb.append(")");
21358
      return sb.toString();
22244
      return sb.toString();
21359
    }
22245
    }