Subversion Repositories SmartDukaan

Rev

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

Rev 5553 Rev 5623
Line 278... Line 278...
278
     * @param sourceId
278
     * @param sourceId
279
     * @param pincode
279
     * @param pincode
280
     */
280
     */
281
    public boolean showCODOption(long cartId, long sourceId, String pincode) throws org.apache.thrift.TException;
281
    public boolean showCODOption(long cartId, long sourceId, String pincode) throws org.apache.thrift.TException;
282
 
282
 
-
 
283
    /**
-
 
284
     * Get email addresses for users activated within a given date range
-
 
285
     * 
-
 
286
     * @param startDate
-
 
287
     * @param endDate
-
 
288
     */
-
 
289
    public List<String> getUserEmails(long startDate, long endDate) throws org.apache.thrift.TException;
-
 
290
 
283
  }
291
  }
284
 
292
 
285
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
293
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
286
 
294
 
287
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
295
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
Line 418... Line 426...
418
 
426
 
419
    public void getTrustLevel(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrustLevel_call> resultHandler) throws org.apache.thrift.TException;
427
    public void getTrustLevel(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrustLevel_call> resultHandler) throws org.apache.thrift.TException;
420
 
428
 
421
    public void showCODOption(long cartId, long sourceId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.showCODOption_call> resultHandler) throws org.apache.thrift.TException;
429
    public void showCODOption(long cartId, long sourceId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.showCODOption_call> resultHandler) throws org.apache.thrift.TException;
422
 
430
 
-
 
431
    public void getUserEmails(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserEmails_call> resultHandler) throws org.apache.thrift.TException;
-
 
432
 
423
  }
433
  }
424
 
434
 
425
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
435
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
426
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
436
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
427
      public Factory() {}
437
      public Factory() {}
Line 2190... Line 2200...
2190
        return result.success;
2200
        return result.success;
2191
      }
2201
      }
2192
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "showCODOption failed: unknown result");
2202
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "showCODOption failed: unknown result");
2193
    }
2203
    }
2194
 
2204
 
-
 
2205
    public List<String> getUserEmails(long startDate, long endDate) throws org.apache.thrift.TException
-
 
2206
    {
-
 
2207
      send_getUserEmails(startDate, endDate);
-
 
2208
      return recv_getUserEmails();
-
 
2209
    }
-
 
2210
 
-
 
2211
    public void send_getUserEmails(long startDate, long endDate) throws org.apache.thrift.TException
-
 
2212
    {
-
 
2213
      getUserEmails_args args = new getUserEmails_args();
-
 
2214
      args.setStartDate(startDate);
-
 
2215
      args.setEndDate(endDate);
-
 
2216
      sendBase("getUserEmails", args);
-
 
2217
    }
-
 
2218
 
-
 
2219
    public List<String> recv_getUserEmails() throws org.apache.thrift.TException
-
 
2220
    {
-
 
2221
      getUserEmails_result result = new getUserEmails_result();
-
 
2222
      receiveBase(result, "getUserEmails");
-
 
2223
      if (result.isSetSuccess()) {
-
 
2224
        return result.success;
-
 
2225
      }
-
 
2226
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserEmails failed: unknown result");
-
 
2227
    }
-
 
2228
 
2195
  }
2229
  }
2196
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2230
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2197
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2231
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2198
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2232
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2199
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2233
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4560... Line 4594...
4560
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4594
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4561
        return (new Client(prot)).recv_showCODOption();
4595
        return (new Client(prot)).recv_showCODOption();
4562
      }
4596
      }
4563
    }
4597
    }
4564
 
4598
 
-
 
4599
    public void getUserEmails(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getUserEmails_call> resultHandler) throws org.apache.thrift.TException {
-
 
4600
      checkReady();
-
 
4601
      getUserEmails_call method_call = new getUserEmails_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
-
 
4602
      this.___currentMethod = method_call;
-
 
4603
      ___manager.call(method_call);
-
 
4604
    }
-
 
4605
 
-
 
4606
    public static class getUserEmails_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4607
      private long startDate;
-
 
4608
      private long endDate;
-
 
4609
      public getUserEmails_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getUserEmails_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 {
-
 
4610
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4611
        this.startDate = startDate;
-
 
4612
        this.endDate = endDate;
-
 
4613
      }
-
 
4614
 
-
 
4615
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4616
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserEmails", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4617
        getUserEmails_args args = new getUserEmails_args();
-
 
4618
        args.setStartDate(startDate);
-
 
4619
        args.setEndDate(endDate);
-
 
4620
        args.write(prot);
-
 
4621
        prot.writeMessageEnd();
-
 
4622
      }
-
 
4623
 
-
 
4624
      public List<String> getResult() throws org.apache.thrift.TException {
-
 
4625
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4626
          throw new IllegalStateException("Method call not finished!");
-
 
4627
        }
-
 
4628
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4629
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4630
        return (new Client(prot)).recv_getUserEmails();
-
 
4631
      }
-
 
4632
    }
-
 
4633
 
4565
  }
4634
  }
4566
 
4635
 
4567
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4636
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4568
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4637
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4569
    public Processor(I iface) {
4638
    public Processor(I iface) {
Line 4641... Line 4710...
4641
      processMap.put("updateBrowseHistory", new updateBrowseHistory());
4710
      processMap.put("updateBrowseHistory", new updateBrowseHistory());
4642
      processMap.put("getCartsWithCouponCount", new getCartsWithCouponCount());
4711
      processMap.put("getCartsWithCouponCount", new getCartsWithCouponCount());
4643
      processMap.put("increaseTrustLevel", new increaseTrustLevel());
4712
      processMap.put("increaseTrustLevel", new increaseTrustLevel());
4644
      processMap.put("getTrustLevel", new getTrustLevel());
4713
      processMap.put("getTrustLevel", new getTrustLevel());
4645
      processMap.put("showCODOption", new showCODOption());
4714
      processMap.put("showCODOption", new showCODOption());
-
 
4715
      processMap.put("getUserEmails", new getUserEmails());
4646
      return processMap;
4716
      return processMap;
4647
    }
4717
    }
4648
 
4718
 
4649
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
4719
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
4650
      public createAnonymousUser() {
4720
      public createAnonymousUser() {
Line 5982... Line 6052...
5982
        result.setSuccessIsSet(true);
6052
        result.setSuccessIsSet(true);
5983
        return result;
6053
        return result;
5984
      }
6054
      }
5985
    }
6055
    }
5986
 
6056
 
-
 
6057
    private static class getUserEmails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserEmails_args> {
-
 
6058
      public getUserEmails() {
-
 
6059
        super("getUserEmails");
-
 
6060
      }
-
 
6061
 
-
 
6062
      protected getUserEmails_args getEmptyArgsInstance() {
-
 
6063
        return new getUserEmails_args();
-
 
6064
      }
-
 
6065
 
-
 
6066
      protected getUserEmails_result getResult(I iface, getUserEmails_args args) throws org.apache.thrift.TException {
-
 
6067
        getUserEmails_result result = new getUserEmails_result();
-
 
6068
        result.success = iface.getUserEmails(args.startDate, args.endDate);
-
 
6069
        return result;
-
 
6070
      }
-
 
6071
    }
-
 
6072
 
5987
  }
6073
  }
5988
 
6074
 
5989
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
6075
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
5990
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
6076
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
5991
 
6077
 
Line 55264... Line 55350...
55264
      first = false;
55350
      first = false;
55265
      sb.append(")");
55351
      sb.append(")");
55266
      return sb.toString();
55352
      return sb.toString();
55267
    }
55353
    }
55268
 
55354
 
-
 
55355
    public void validate() throws org.apache.thrift.TException {
-
 
55356
      // check for required fields
-
 
55357
    }
-
 
55358
 
-
 
55359
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
55360
      try {
-
 
55361
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
55362
      } catch (org.apache.thrift.TException te) {
-
 
55363
        throw new java.io.IOException(te);
-
 
55364
      }
-
 
55365
    }
-
 
55366
 
-
 
55367
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
55368
      try {
-
 
55369
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
55370
      } catch (org.apache.thrift.TException te) {
-
 
55371
        throw new java.io.IOException(te);
-
 
55372
      }
-
 
55373
    }
-
 
55374
 
-
 
55375
  }
-
 
55376
 
-
 
55377
  public static class getUserEmails_args implements org.apache.thrift.TBase<getUserEmails_args, getUserEmails_args._Fields>, java.io.Serializable, Cloneable   {
-
 
55378
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserEmails_args");
-
 
55379
 
-
 
55380
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
55381
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
55382
 
-
 
55383
    private long startDate; // required
-
 
55384
    private long endDate; // required
-
 
55385
 
-
 
55386
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
55387
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
55388
      START_DATE((short)1, "startDate"),
-
 
55389
      END_DATE((short)2, "endDate");
-
 
55390
 
-
 
55391
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
55392
 
-
 
55393
      static {
-
 
55394
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
55395
          byName.put(field.getFieldName(), field);
-
 
55396
        }
-
 
55397
      }
-
 
55398
 
-
 
55399
      /**
-
 
55400
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
55401
       */
-
 
55402
      public static _Fields findByThriftId(int fieldId) {
-
 
55403
        switch(fieldId) {
-
 
55404
          case 1: // START_DATE
-
 
55405
            return START_DATE;
-
 
55406
          case 2: // END_DATE
-
 
55407
            return END_DATE;
-
 
55408
          default:
-
 
55409
            return null;
-
 
55410
        }
-
 
55411
      }
-
 
55412
 
-
 
55413
      /**
-
 
55414
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
55415
       * if it is not found.
-
 
55416
       */
-
 
55417
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
55418
        _Fields fields = findByThriftId(fieldId);
-
 
55419
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
55420
        return fields;
-
 
55421
      }
-
 
55422
 
-
 
55423
      /**
-
 
55424
       * Find the _Fields constant that matches name, or null if its not found.
-
 
55425
       */
-
 
55426
      public static _Fields findByName(String name) {
-
 
55427
        return byName.get(name);
-
 
55428
      }
-
 
55429
 
-
 
55430
      private final short _thriftId;
-
 
55431
      private final String _fieldName;
-
 
55432
 
-
 
55433
      _Fields(short thriftId, String fieldName) {
-
 
55434
        _thriftId = thriftId;
-
 
55435
        _fieldName = fieldName;
-
 
55436
      }
-
 
55437
 
-
 
55438
      public short getThriftFieldId() {
-
 
55439
        return _thriftId;
-
 
55440
      }
-
 
55441
 
-
 
55442
      public String getFieldName() {
-
 
55443
        return _fieldName;
-
 
55444
      }
-
 
55445
    }
-
 
55446
 
-
 
55447
    // isset id assignments
-
 
55448
    private static final int __STARTDATE_ISSET_ID = 0;
-
 
55449
    private static final int __ENDDATE_ISSET_ID = 1;
-
 
55450
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
55451
 
-
 
55452
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
55453
    static {
-
 
55454
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
55455
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
55456
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
55457
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
55458
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
55459
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
55460
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserEmails_args.class, metaDataMap);
-
 
55461
    }
-
 
55462
 
-
 
55463
    public getUserEmails_args() {
-
 
55464
    }
-
 
55465
 
-
 
55466
    public getUserEmails_args(
-
 
55467
      long startDate,
-
 
55468
      long endDate)
-
 
55469
    {
-
 
55470
      this();
-
 
55471
      this.startDate = startDate;
-
 
55472
      setStartDateIsSet(true);
-
 
55473
      this.endDate = endDate;
-
 
55474
      setEndDateIsSet(true);
-
 
55475
    }
-
 
55476
 
-
 
55477
    /**
-
 
55478
     * Performs a deep copy on <i>other</i>.
-
 
55479
     */
-
 
55480
    public getUserEmails_args(getUserEmails_args other) {
-
 
55481
      __isset_bit_vector.clear();
-
 
55482
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
55483
      this.startDate = other.startDate;
-
 
55484
      this.endDate = other.endDate;
-
 
55485
    }
-
 
55486
 
-
 
55487
    public getUserEmails_args deepCopy() {
-
 
55488
      return new getUserEmails_args(this);
-
 
55489
    }
-
 
55490
 
-
 
55491
    @Override
-
 
55492
    public void clear() {
-
 
55493
      setStartDateIsSet(false);
-
 
55494
      this.startDate = 0;
-
 
55495
      setEndDateIsSet(false);
-
 
55496
      this.endDate = 0;
-
 
55497
    }
-
 
55498
 
-
 
55499
    public long getStartDate() {
-
 
55500
      return this.startDate;
-
 
55501
    }
-
 
55502
 
-
 
55503
    public void setStartDate(long startDate) {
-
 
55504
      this.startDate = startDate;
-
 
55505
      setStartDateIsSet(true);
-
 
55506
    }
-
 
55507
 
-
 
55508
    public void unsetStartDate() {
-
 
55509
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
-
 
55510
    }
-
 
55511
 
-
 
55512
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
-
 
55513
    public boolean isSetStartDate() {
-
 
55514
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
-
 
55515
    }
-
 
55516
 
-
 
55517
    public void setStartDateIsSet(boolean value) {
-
 
55518
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
-
 
55519
    }
-
 
55520
 
-
 
55521
    public long getEndDate() {
-
 
55522
      return this.endDate;
-
 
55523
    }
-
 
55524
 
-
 
55525
    public void setEndDate(long endDate) {
-
 
55526
      this.endDate = endDate;
-
 
55527
      setEndDateIsSet(true);
-
 
55528
    }
-
 
55529
 
-
 
55530
    public void unsetEndDate() {
-
 
55531
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
-
 
55532
    }
-
 
55533
 
-
 
55534
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
-
 
55535
    public boolean isSetEndDate() {
-
 
55536
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
-
 
55537
    }
-
 
55538
 
-
 
55539
    public void setEndDateIsSet(boolean value) {
-
 
55540
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
-
 
55541
    }
-
 
55542
 
-
 
55543
    public void setFieldValue(_Fields field, Object value) {
-
 
55544
      switch (field) {
-
 
55545
      case START_DATE:
-
 
55546
        if (value == null) {
-
 
55547
          unsetStartDate();
-
 
55548
        } else {
-
 
55549
          setStartDate((Long)value);
-
 
55550
        }
-
 
55551
        break;
-
 
55552
 
-
 
55553
      case END_DATE:
-
 
55554
        if (value == null) {
-
 
55555
          unsetEndDate();
-
 
55556
        } else {
-
 
55557
          setEndDate((Long)value);
-
 
55558
        }
-
 
55559
        break;
-
 
55560
 
-
 
55561
      }
-
 
55562
    }
-
 
55563
 
-
 
55564
    public Object getFieldValue(_Fields field) {
-
 
55565
      switch (field) {
-
 
55566
      case START_DATE:
-
 
55567
        return Long.valueOf(getStartDate());
-
 
55568
 
-
 
55569
      case END_DATE:
-
 
55570
        return Long.valueOf(getEndDate());
-
 
55571
 
-
 
55572
      }
-
 
55573
      throw new IllegalStateException();
-
 
55574
    }
-
 
55575
 
-
 
55576
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
55577
    public boolean isSet(_Fields field) {
-
 
55578
      if (field == null) {
-
 
55579
        throw new IllegalArgumentException();
-
 
55580
      }
-
 
55581
 
-
 
55582
      switch (field) {
-
 
55583
      case START_DATE:
-
 
55584
        return isSetStartDate();
-
 
55585
      case END_DATE:
-
 
55586
        return isSetEndDate();
-
 
55587
      }
-
 
55588
      throw new IllegalStateException();
-
 
55589
    }
-
 
55590
 
-
 
55591
    @Override
-
 
55592
    public boolean equals(Object that) {
-
 
55593
      if (that == null)
-
 
55594
        return false;
-
 
55595
      if (that instanceof getUserEmails_args)
-
 
55596
        return this.equals((getUserEmails_args)that);
-
 
55597
      return false;
-
 
55598
    }
-
 
55599
 
-
 
55600
    public boolean equals(getUserEmails_args that) {
-
 
55601
      if (that == null)
-
 
55602
        return false;
-
 
55603
 
-
 
55604
      boolean this_present_startDate = true;
-
 
55605
      boolean that_present_startDate = true;
-
 
55606
      if (this_present_startDate || that_present_startDate) {
-
 
55607
        if (!(this_present_startDate && that_present_startDate))
-
 
55608
          return false;
-
 
55609
        if (this.startDate != that.startDate)
-
 
55610
          return false;
-
 
55611
      }
-
 
55612
 
-
 
55613
      boolean this_present_endDate = true;
-
 
55614
      boolean that_present_endDate = true;
-
 
55615
      if (this_present_endDate || that_present_endDate) {
-
 
55616
        if (!(this_present_endDate && that_present_endDate))
-
 
55617
          return false;
-
 
55618
        if (this.endDate != that.endDate)
-
 
55619
          return false;
-
 
55620
      }
-
 
55621
 
-
 
55622
      return true;
-
 
55623
    }
-
 
55624
 
-
 
55625
    @Override
-
 
55626
    public int hashCode() {
-
 
55627
      return 0;
-
 
55628
    }
-
 
55629
 
-
 
55630
    public int compareTo(getUserEmails_args other) {
-
 
55631
      if (!getClass().equals(other.getClass())) {
-
 
55632
        return getClass().getName().compareTo(other.getClass().getName());
-
 
55633
      }
-
 
55634
 
-
 
55635
      int lastComparison = 0;
-
 
55636
      getUserEmails_args typedOther = (getUserEmails_args)other;
-
 
55637
 
-
 
55638
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
-
 
55639
      if (lastComparison != 0) {
-
 
55640
        return lastComparison;
-
 
55641
      }
-
 
55642
      if (isSetStartDate()) {
-
 
55643
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
-
 
55644
        if (lastComparison != 0) {
-
 
55645
          return lastComparison;
-
 
55646
        }
-
 
55647
      }
-
 
55648
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
-
 
55649
      if (lastComparison != 0) {
-
 
55650
        return lastComparison;
-
 
55651
      }
-
 
55652
      if (isSetEndDate()) {
-
 
55653
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
-
 
55654
        if (lastComparison != 0) {
-
 
55655
          return lastComparison;
-
 
55656
        }
-
 
55657
      }
-
 
55658
      return 0;
-
 
55659
    }
-
 
55660
 
-
 
55661
    public _Fields fieldForId(int fieldId) {
-
 
55662
      return _Fields.findByThriftId(fieldId);
-
 
55663
    }
-
 
55664
 
-
 
55665
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
55666
      org.apache.thrift.protocol.TField field;
-
 
55667
      iprot.readStructBegin();
-
 
55668
      while (true)
-
 
55669
      {
-
 
55670
        field = iprot.readFieldBegin();
-
 
55671
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
55672
          break;
-
 
55673
        }
-
 
55674
        switch (field.id) {
-
 
55675
          case 1: // START_DATE
-
 
55676
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
55677
              this.startDate = iprot.readI64();
-
 
55678
              setStartDateIsSet(true);
-
 
55679
            } else { 
-
 
55680
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
55681
            }
-
 
55682
            break;
-
 
55683
          case 2: // END_DATE
-
 
55684
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
55685
              this.endDate = iprot.readI64();
-
 
55686
              setEndDateIsSet(true);
-
 
55687
            } else { 
-
 
55688
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
55689
            }
-
 
55690
            break;
-
 
55691
          default:
-
 
55692
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
55693
        }
-
 
55694
        iprot.readFieldEnd();
-
 
55695
      }
-
 
55696
      iprot.readStructEnd();
-
 
55697
      validate();
-
 
55698
    }
-
 
55699
 
-
 
55700
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
55701
      validate();
-
 
55702
 
-
 
55703
      oprot.writeStructBegin(STRUCT_DESC);
-
 
55704
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
-
 
55705
      oprot.writeI64(this.startDate);
-
 
55706
      oprot.writeFieldEnd();
-
 
55707
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
-
 
55708
      oprot.writeI64(this.endDate);
-
 
55709
      oprot.writeFieldEnd();
-
 
55710
      oprot.writeFieldStop();
-
 
55711
      oprot.writeStructEnd();
-
 
55712
    }
-
 
55713
 
-
 
55714
    @Override
-
 
55715
    public String toString() {
-
 
55716
      StringBuilder sb = new StringBuilder("getUserEmails_args(");
-
 
55717
      boolean first = true;
-
 
55718
 
-
 
55719
      sb.append("startDate:");
-
 
55720
      sb.append(this.startDate);
-
 
55721
      first = false;
-
 
55722
      if (!first) sb.append(", ");
-
 
55723
      sb.append("endDate:");
-
 
55724
      sb.append(this.endDate);
-
 
55725
      first = false;
-
 
55726
      sb.append(")");
-
 
55727
      return sb.toString();
-
 
55728
    }
-
 
55729
 
-
 
55730
    public void validate() throws org.apache.thrift.TException {
-
 
55731
      // check for required fields
-
 
55732
    }
-
 
55733
 
-
 
55734
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
55735
      try {
-
 
55736
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
55737
      } catch (org.apache.thrift.TException te) {
-
 
55738
        throw new java.io.IOException(te);
-
 
55739
      }
-
 
55740
    }
-
 
55741
 
-
 
55742
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
55743
      try {
-
 
55744
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
55745
        __isset_bit_vector = new BitSet(1);
-
 
55746
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
55747
      } catch (org.apache.thrift.TException te) {
-
 
55748
        throw new java.io.IOException(te);
-
 
55749
      }
-
 
55750
    }
-
 
55751
 
-
 
55752
  }
-
 
55753
 
-
 
55754
  public static class getUserEmails_result implements org.apache.thrift.TBase<getUserEmails_result, getUserEmails_result._Fields>, java.io.Serializable, Cloneable   {
-
 
55755
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserEmails_result");
-
 
55756
 
-
 
55757
    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);
-
 
55758
 
-
 
55759
    private List<String> success; // required
-
 
55760
 
-
 
55761
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
55762
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
55763
      SUCCESS((short)0, "success");
-
 
55764
 
-
 
55765
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
55766
 
-
 
55767
      static {
-
 
55768
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
55769
          byName.put(field.getFieldName(), field);
-
 
55770
        }
-
 
55771
      }
-
 
55772
 
-
 
55773
      /**
-
 
55774
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
55775
       */
-
 
55776
      public static _Fields findByThriftId(int fieldId) {
-
 
55777
        switch(fieldId) {
-
 
55778
          case 0: // SUCCESS
-
 
55779
            return SUCCESS;
-
 
55780
          default:
-
 
55781
            return null;
-
 
55782
        }
-
 
55783
      }
-
 
55784
 
-
 
55785
      /**
-
 
55786
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
55787
       * if it is not found.
-
 
55788
       */
-
 
55789
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
55790
        _Fields fields = findByThriftId(fieldId);
-
 
55791
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
55792
        return fields;
-
 
55793
      }
-
 
55794
 
-
 
55795
      /**
-
 
55796
       * Find the _Fields constant that matches name, or null if its not found.
-
 
55797
       */
-
 
55798
      public static _Fields findByName(String name) {
-
 
55799
        return byName.get(name);
-
 
55800
      }
-
 
55801
 
-
 
55802
      private final short _thriftId;
-
 
55803
      private final String _fieldName;
-
 
55804
 
-
 
55805
      _Fields(short thriftId, String fieldName) {
-
 
55806
        _thriftId = thriftId;
-
 
55807
        _fieldName = fieldName;
-
 
55808
      }
-
 
55809
 
-
 
55810
      public short getThriftFieldId() {
-
 
55811
        return _thriftId;
-
 
55812
      }
-
 
55813
 
-
 
55814
      public String getFieldName() {
-
 
55815
        return _fieldName;
-
 
55816
      }
-
 
55817
    }
-
 
55818
 
-
 
55819
    // isset id assignments
-
 
55820
 
-
 
55821
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
55822
    static {
-
 
55823
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
55824
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
55825
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
55826
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
55827
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
55828
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserEmails_result.class, metaDataMap);
-
 
55829
    }
-
 
55830
 
-
 
55831
    public getUserEmails_result() {
-
 
55832
    }
-
 
55833
 
-
 
55834
    public getUserEmails_result(
-
 
55835
      List<String> success)
-
 
55836
    {
-
 
55837
      this();
-
 
55838
      this.success = success;
-
 
55839
    }
-
 
55840
 
-
 
55841
    /**
-
 
55842
     * Performs a deep copy on <i>other</i>.
-
 
55843
     */
-
 
55844
    public getUserEmails_result(getUserEmails_result other) {
-
 
55845
      if (other.isSetSuccess()) {
-
 
55846
        List<String> __this__success = new ArrayList<String>();
-
 
55847
        for (String other_element : other.success) {
-
 
55848
          __this__success.add(other_element);
-
 
55849
        }
-
 
55850
        this.success = __this__success;
-
 
55851
      }
-
 
55852
    }
-
 
55853
 
-
 
55854
    public getUserEmails_result deepCopy() {
-
 
55855
      return new getUserEmails_result(this);
-
 
55856
    }
-
 
55857
 
-
 
55858
    @Override
-
 
55859
    public void clear() {
-
 
55860
      this.success = null;
-
 
55861
    }
-
 
55862
 
-
 
55863
    public int getSuccessSize() {
-
 
55864
      return (this.success == null) ? 0 : this.success.size();
-
 
55865
    }
-
 
55866
 
-
 
55867
    public java.util.Iterator<String> getSuccessIterator() {
-
 
55868
      return (this.success == null) ? null : this.success.iterator();
-
 
55869
    }
-
 
55870
 
-
 
55871
    public void addToSuccess(String elem) {
-
 
55872
      if (this.success == null) {
-
 
55873
        this.success = new ArrayList<String>();
-
 
55874
      }
-
 
55875
      this.success.add(elem);
-
 
55876
    }
-
 
55877
 
-
 
55878
    public List<String> getSuccess() {
-
 
55879
      return this.success;
-
 
55880
    }
-
 
55881
 
-
 
55882
    public void setSuccess(List<String> success) {
-
 
55883
      this.success = success;
-
 
55884
    }
-
 
55885
 
-
 
55886
    public void unsetSuccess() {
-
 
55887
      this.success = null;
-
 
55888
    }
-
 
55889
 
-
 
55890
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
55891
    public boolean isSetSuccess() {
-
 
55892
      return this.success != null;
-
 
55893
    }
-
 
55894
 
-
 
55895
    public void setSuccessIsSet(boolean value) {
-
 
55896
      if (!value) {
-
 
55897
        this.success = null;
-
 
55898
      }
-
 
55899
    }
-
 
55900
 
-
 
55901
    public void setFieldValue(_Fields field, Object value) {
-
 
55902
      switch (field) {
-
 
55903
      case SUCCESS:
-
 
55904
        if (value == null) {
-
 
55905
          unsetSuccess();
-
 
55906
        } else {
-
 
55907
          setSuccess((List<String>)value);
-
 
55908
        }
-
 
55909
        break;
-
 
55910
 
-
 
55911
      }
-
 
55912
    }
-
 
55913
 
-
 
55914
    public Object getFieldValue(_Fields field) {
-
 
55915
      switch (field) {
-
 
55916
      case SUCCESS:
-
 
55917
        return getSuccess();
-
 
55918
 
-
 
55919
      }
-
 
55920
      throw new IllegalStateException();
-
 
55921
    }
-
 
55922
 
-
 
55923
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
55924
    public boolean isSet(_Fields field) {
-
 
55925
      if (field == null) {
-
 
55926
        throw new IllegalArgumentException();
-
 
55927
      }
-
 
55928
 
-
 
55929
      switch (field) {
-
 
55930
      case SUCCESS:
-
 
55931
        return isSetSuccess();
-
 
55932
      }
-
 
55933
      throw new IllegalStateException();
-
 
55934
    }
-
 
55935
 
-
 
55936
    @Override
-
 
55937
    public boolean equals(Object that) {
-
 
55938
      if (that == null)
-
 
55939
        return false;
-
 
55940
      if (that instanceof getUserEmails_result)
-
 
55941
        return this.equals((getUserEmails_result)that);
-
 
55942
      return false;
-
 
55943
    }
-
 
55944
 
-
 
55945
    public boolean equals(getUserEmails_result that) {
-
 
55946
      if (that == null)
-
 
55947
        return false;
-
 
55948
 
-
 
55949
      boolean this_present_success = true && this.isSetSuccess();
-
 
55950
      boolean that_present_success = true && that.isSetSuccess();
-
 
55951
      if (this_present_success || that_present_success) {
-
 
55952
        if (!(this_present_success && that_present_success))
-
 
55953
          return false;
-
 
55954
        if (!this.success.equals(that.success))
-
 
55955
          return false;
-
 
55956
      }
-
 
55957
 
-
 
55958
      return true;
-
 
55959
    }
-
 
55960
 
-
 
55961
    @Override
-
 
55962
    public int hashCode() {
-
 
55963
      return 0;
-
 
55964
    }
-
 
55965
 
-
 
55966
    public int compareTo(getUserEmails_result other) {
-
 
55967
      if (!getClass().equals(other.getClass())) {
-
 
55968
        return getClass().getName().compareTo(other.getClass().getName());
-
 
55969
      }
-
 
55970
 
-
 
55971
      int lastComparison = 0;
-
 
55972
      getUserEmails_result typedOther = (getUserEmails_result)other;
-
 
55973
 
-
 
55974
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
55975
      if (lastComparison != 0) {
-
 
55976
        return lastComparison;
-
 
55977
      }
-
 
55978
      if (isSetSuccess()) {
-
 
55979
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
55980
        if (lastComparison != 0) {
-
 
55981
          return lastComparison;
-
 
55982
        }
-
 
55983
      }
-
 
55984
      return 0;
-
 
55985
    }
-
 
55986
 
-
 
55987
    public _Fields fieldForId(int fieldId) {
-
 
55988
      return _Fields.findByThriftId(fieldId);
-
 
55989
    }
-
 
55990
 
-
 
55991
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
55992
      org.apache.thrift.protocol.TField field;
-
 
55993
      iprot.readStructBegin();
-
 
55994
      while (true)
-
 
55995
      {
-
 
55996
        field = iprot.readFieldBegin();
-
 
55997
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
55998
          break;
-
 
55999
        }
-
 
56000
        switch (field.id) {
-
 
56001
          case 0: // SUCCESS
-
 
56002
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
56003
              {
-
 
56004
                org.apache.thrift.protocol.TList _list94 = iprot.readListBegin();
-
 
56005
                this.success = new ArrayList<String>(_list94.size);
-
 
56006
                for (int _i95 = 0; _i95 < _list94.size; ++_i95)
-
 
56007
                {
-
 
56008
                  String _elem96; // required
-
 
56009
                  _elem96 = iprot.readString();
-
 
56010
                  this.success.add(_elem96);
-
 
56011
                }
-
 
56012
                iprot.readListEnd();
-
 
56013
              }
-
 
56014
            } else { 
-
 
56015
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56016
            }
-
 
56017
            break;
-
 
56018
          default:
-
 
56019
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56020
        }
-
 
56021
        iprot.readFieldEnd();
-
 
56022
      }
-
 
56023
      iprot.readStructEnd();
-
 
56024
      validate();
-
 
56025
    }
-
 
56026
 
-
 
56027
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
56028
      oprot.writeStructBegin(STRUCT_DESC);
-
 
56029
 
-
 
56030
      if (this.isSetSuccess()) {
-
 
56031
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
56032
        {
-
 
56033
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
-
 
56034
          for (String _iter97 : this.success)
-
 
56035
          {
-
 
56036
            oprot.writeString(_iter97);
-
 
56037
          }
-
 
56038
          oprot.writeListEnd();
-
 
56039
        }
-
 
56040
        oprot.writeFieldEnd();
-
 
56041
      }
-
 
56042
      oprot.writeFieldStop();
-
 
56043
      oprot.writeStructEnd();
-
 
56044
    }
-
 
56045
 
-
 
56046
    @Override
-
 
56047
    public String toString() {
-
 
56048
      StringBuilder sb = new StringBuilder("getUserEmails_result(");
-
 
56049
      boolean first = true;
-
 
56050
 
-
 
56051
      sb.append("success:");
-
 
56052
      if (this.success == null) {
-
 
56053
        sb.append("null");
-
 
56054
      } else {
-
 
56055
        sb.append(this.success);
-
 
56056
      }
-
 
56057
      first = false;
-
 
56058
      sb.append(")");
-
 
56059
      return sb.toString();
-
 
56060
    }
-
 
56061
 
55269
    public void validate() throws org.apache.thrift.TException {
56062
    public void validate() throws org.apache.thrift.TException {
55270
      // check for required fields
56063
      // check for required fields
55271
    }
56064
    }
55272
 
56065
 
55273
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56066
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {