Subversion Repositories SmartDukaan

Rev

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

Rev 5055 Rev 5864
Line 31... Line 31...
31
     * @param emailFrom
31
     * @param emailFrom
32
     * @param subject
32
     * @param subject
33
     * @param body
33
     * @param body
34
     * @param source
34
     * @param source
35
     * @param emailType
35
     * @param emailType
-
 
36
     * @param cc
-
 
37
     * @param bcc
36
     */
38
     */
37
    public long saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, org.apache.thrift.TException;
39
    public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc) throws HelperServiceException, org.apache.thrift.TException;
38
 
40
 
39
    /**
41
    /**
40
     * Retreives all the emails pending for dispatch
42
     * Retreives all the emails pending for dispatch
41
     */
43
     */
42
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
44
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
Line 160... Line 162...
160
 
162
 
161
  }
163
  }
162
 
164
 
163
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
165
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
164
 
166
 
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;
167
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
166
 
168
 
167
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
169
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
168
 
170
 
169
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
171
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
170
 
172
 
Line 238... Line 240...
238
 
240
 
239
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
241
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
240
      super(iprot, oprot);
242
      super(iprot, oprot);
241
    }
243
    }
242
 
244
 
243
    public long saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, org.apache.thrift.TException
245
    public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc) throws HelperServiceException, org.apache.thrift.TException
244
    {
246
    {
245
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType);
247
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType, cc, bcc);
246
      return recv_saveUserEmailForSending();
248
      return recv_saveUserEmailForSending();
247
    }
249
    }
248
 
250
 
249
    public void send_saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws org.apache.thrift.TException
251
    public void send_saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc) throws org.apache.thrift.TException
250
    {
252
    {
251
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
253
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
252
      args.setEmailTo(emailTo);
254
      args.setEmailTo(emailTo);
253
      args.setEmailFrom(emailFrom);
255
      args.setEmailFrom(emailFrom);
254
      args.setSubject(subject);
256
      args.setSubject(subject);
255
      args.setBody(body);
257
      args.setBody(body);
256
      args.setSource(source);
258
      args.setSource(source);
257
      args.setEmailType(emailType);
259
      args.setEmailType(emailType);
-
 
260
      args.setCc(cc);
-
 
261
      args.setBcc(bcc);
258
      sendBase("saveUserEmailForSending", args);
262
      sendBase("saveUserEmailForSending", args);
259
    }
263
    }
260
 
264
 
261
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
265
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
262
    {
266
    {
Line 960... Line 964...
960
 
964
 
961
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
965
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
962
      super(protocolFactory, clientManager, transport);
966
      super(protocolFactory, clientManager, transport);
963
    }
967
    }
964
 
968
 
965
    public void saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException {
969
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException {
966
      checkReady();
970
      checkReady();
967
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, resultHandler, this, ___protocolFactory, ___transport);
971
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, resultHandler, this, ___protocolFactory, ___transport);
968
      this.___currentMethod = method_call;
972
      this.___currentMethod = method_call;
969
      ___manager.call(method_call);
973
      ___manager.call(method_call);
970
    }
974
    }
971
 
975
 
972
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
976
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
973
      private String emailTo;
977
      private List<String> emailTo;
974
      private String emailFrom;
978
      private String emailFrom;
975
      private String subject;
979
      private String subject;
976
      private String body;
980
      private String body;
977
      private String source;
981
      private String source;
978
      private String emailType;
982
      private String emailType;
-
 
983
      private List<String> cc;
-
 
984
      private List<String> bcc;
979
      public saveUserEmailForSending_call(String emailTo, String emailFrom, String subject, String body, String source, String emailType, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_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 {
985
      public saveUserEmailForSending_call(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_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 {
980
        super(client, protocolFactory, transport, resultHandler, false);
986
        super(client, protocolFactory, transport, resultHandler, false);
981
        this.emailTo = emailTo;
987
        this.emailTo = emailTo;
982
        this.emailFrom = emailFrom;
988
        this.emailFrom = emailFrom;
983
        this.subject = subject;
989
        this.subject = subject;
984
        this.body = body;
990
        this.body = body;
985
        this.source = source;
991
        this.source = source;
986
        this.emailType = emailType;
992
        this.emailType = emailType;
-
 
993
        this.cc = cc;
-
 
994
        this.bcc = bcc;
987
      }
995
      }
988
 
996
 
989
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
997
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
990
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
998
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
991
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
999
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
Line 993... Line 1001...
993
        args.setEmailFrom(emailFrom);
1001
        args.setEmailFrom(emailFrom);
994
        args.setSubject(subject);
1002
        args.setSubject(subject);
995
        args.setBody(body);
1003
        args.setBody(body);
996
        args.setSource(source);
1004
        args.setSource(source);
997
        args.setEmailType(emailType);
1005
        args.setEmailType(emailType);
-
 
1006
        args.setCc(cc);
-
 
1007
        args.setBcc(bcc);
998
        args.write(prot);
1008
        args.write(prot);
999
        prot.writeMessageEnd();
1009
        prot.writeMessageEnd();
1000
      }
1010
      }
1001
 
1011
 
1002
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
1012
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
Line 1975... Line 1985...
1975
      }
1985
      }
1976
 
1986
 
1977
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
1987
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
1978
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
1988
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
1979
        try {
1989
        try {
1980
          result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType);
1990
          result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType, args.cc, args.bcc);
1981
          result.setSuccessIsSet(true);
1991
          result.setSuccessIsSet(true);
1982
        } catch (HelperServiceException se) {
1992
        } catch (HelperServiceException se) {
1983
          result.se = se;
1993
          result.se = se;
1984
        }
1994
        }
1985
        return result;
1995
        return result;
Line 2509... Line 2519...
2509
  }
2519
  }
2510
 
2520
 
2511
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2521
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2512
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
2522
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
2513
 
2523
 
2514
    private static final org.apache.thrift.protocol.TField EMAIL_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("emailTo", org.apache.thrift.protocol.TType.STRING, (short)1);
2524
    private static final org.apache.thrift.protocol.TField EMAIL_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("emailTo", org.apache.thrift.protocol.TType.LIST, (short)1);
2515
    private static final org.apache.thrift.protocol.TField EMAIL_FROM_FIELD_DESC = new org.apache.thrift.protocol.TField("emailFrom", org.apache.thrift.protocol.TType.STRING, (short)2);
2525
    private static final org.apache.thrift.protocol.TField EMAIL_FROM_FIELD_DESC = new org.apache.thrift.protocol.TField("emailFrom", org.apache.thrift.protocol.TType.STRING, (short)2);
2516
    private static final org.apache.thrift.protocol.TField SUBJECT_FIELD_DESC = new org.apache.thrift.protocol.TField("subject", org.apache.thrift.protocol.TType.STRING, (short)3);
2526
    private static final org.apache.thrift.protocol.TField SUBJECT_FIELD_DESC = new org.apache.thrift.protocol.TField("subject", org.apache.thrift.protocol.TType.STRING, (short)3);
2517
    private static final org.apache.thrift.protocol.TField BODY_FIELD_DESC = new org.apache.thrift.protocol.TField("body", org.apache.thrift.protocol.TType.STRING, (short)4);
2527
    private static final org.apache.thrift.protocol.TField BODY_FIELD_DESC = new org.apache.thrift.protocol.TField("body", org.apache.thrift.protocol.TType.STRING, (short)4);
2518
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.STRING, (short)5);
2528
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.STRING, (short)5);
2519
    private static final org.apache.thrift.protocol.TField EMAIL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("emailType", org.apache.thrift.protocol.TType.STRING, (short)6);
2529
    private static final org.apache.thrift.protocol.TField EMAIL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("emailType", org.apache.thrift.protocol.TType.STRING, (short)6);
-
 
2530
    private static final org.apache.thrift.protocol.TField CC_FIELD_DESC = new org.apache.thrift.protocol.TField("cc", org.apache.thrift.protocol.TType.LIST, (short)7);
-
 
2531
    private static final org.apache.thrift.protocol.TField BCC_FIELD_DESC = new org.apache.thrift.protocol.TField("bcc", org.apache.thrift.protocol.TType.LIST, (short)8);
2520
 
2532
 
2521
    private String emailTo; // required
2533
    private List<String> emailTo; // required
2522
    private String emailFrom; // required
2534
    private String emailFrom; // required
2523
    private String subject; // required
2535
    private String subject; // required
2524
    private String body; // required
2536
    private String body; // required
2525
    private String source; // required
2537
    private String source; // required
2526
    private String emailType; // required
2538
    private String emailType; // required
-
 
2539
    private List<String> cc; // required
-
 
2540
    private List<String> bcc; // required
2527
 
2541
 
2528
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2542
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2529
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2543
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2530
      EMAIL_TO((short)1, "emailTo"),
2544
      EMAIL_TO((short)1, "emailTo"),
2531
      EMAIL_FROM((short)2, "emailFrom"),
2545
      EMAIL_FROM((short)2, "emailFrom"),
2532
      SUBJECT((short)3, "subject"),
2546
      SUBJECT((short)3, "subject"),
2533
      BODY((short)4, "body"),
2547
      BODY((short)4, "body"),
2534
      SOURCE((short)5, "source"),
2548
      SOURCE((short)5, "source"),
2535
      EMAIL_TYPE((short)6, "emailType");
2549
      EMAIL_TYPE((short)6, "emailType"),
-
 
2550
      CC((short)7, "cc"),
-
 
2551
      BCC((short)8, "bcc");
2536
 
2552
 
2537
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2553
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2538
 
2554
 
2539
      static {
2555
      static {
2540
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2556
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 2557... Line 2573...
2557
            return BODY;
2573
            return BODY;
2558
          case 5: // SOURCE
2574
          case 5: // SOURCE
2559
            return SOURCE;
2575
            return SOURCE;
2560
          case 6: // EMAIL_TYPE
2576
          case 6: // EMAIL_TYPE
2561
            return EMAIL_TYPE;
2577
            return EMAIL_TYPE;
-
 
2578
          case 7: // CC
-
 
2579
            return CC;
-
 
2580
          case 8: // BCC
-
 
2581
            return BCC;
2562
          default:
2582
          default:
2563
            return null;
2583
            return null;
2564
        }
2584
        }
2565
      }
2585
      }
2566
 
2586
 
Line 2602... Line 2622...
2602
 
2622
 
2603
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2623
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2604
    static {
2624
    static {
2605
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2625
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2606
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2626
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2627
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2607
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2628
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
2608
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2629
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2609
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2630
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2610
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2631
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2611
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2632
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2612
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2633
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2613
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2634
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2614
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2635
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2615
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2636
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2616
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2637
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2617
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2638
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
2639
      tmpMap.put(_Fields.CC, new org.apache.thrift.meta_data.FieldMetaData("cc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2640
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
2641
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
2642
      tmpMap.put(_Fields.BCC, new org.apache.thrift.meta_data.FieldMetaData("bcc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2643
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
2644
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
2618
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2645
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2619
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
2646
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
2620
    }
2647
    }
2621
 
2648
 
2622
    public saveUserEmailForSending_args() {
2649
    public saveUserEmailForSending_args() {
2623
    }
2650
    }
2624
 
2651
 
2625
    public saveUserEmailForSending_args(
2652
    public saveUserEmailForSending_args(
2626
      String emailTo,
2653
      List<String> emailTo,
2627
      String emailFrom,
2654
      String emailFrom,
2628
      String subject,
2655
      String subject,
2629
      String body,
2656
      String body,
2630
      String source,
2657
      String source,
2631
      String emailType)
2658
      String emailType,
-
 
2659
      List<String> cc,
-
 
2660
      List<String> bcc)
2632
    {
2661
    {
2633
      this();
2662
      this();
2634
      this.emailTo = emailTo;
2663
      this.emailTo = emailTo;
2635
      this.emailFrom = emailFrom;
2664
      this.emailFrom = emailFrom;
2636
      this.subject = subject;
2665
      this.subject = subject;
2637
      this.body = body;
2666
      this.body = body;
2638
      this.source = source;
2667
      this.source = source;
2639
      this.emailType = emailType;
2668
      this.emailType = emailType;
-
 
2669
      this.cc = cc;
-
 
2670
      this.bcc = bcc;
2640
    }
2671
    }
2641
 
2672
 
2642
    /**
2673
    /**
2643
     * Performs a deep copy on <i>other</i>.
2674
     * Performs a deep copy on <i>other</i>.
2644
     */
2675
     */
2645
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
2676
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
2646
      if (other.isSetEmailTo()) {
2677
      if (other.isSetEmailTo()) {
-
 
2678
        List<String> __this__emailTo = new ArrayList<String>();
-
 
2679
        for (String other_element : other.emailTo) {
-
 
2680
          __this__emailTo.add(other_element);
-
 
2681
        }
2647
        this.emailTo = other.emailTo;
2682
        this.emailTo = __this__emailTo;
2648
      }
2683
      }
2649
      if (other.isSetEmailFrom()) {
2684
      if (other.isSetEmailFrom()) {
2650
        this.emailFrom = other.emailFrom;
2685
        this.emailFrom = other.emailFrom;
2651
      }
2686
      }
2652
      if (other.isSetSubject()) {
2687
      if (other.isSetSubject()) {
Line 2659... Line 2694...
2659
        this.source = other.source;
2694
        this.source = other.source;
2660
      }
2695
      }
2661
      if (other.isSetEmailType()) {
2696
      if (other.isSetEmailType()) {
2662
        this.emailType = other.emailType;
2697
        this.emailType = other.emailType;
2663
      }
2698
      }
-
 
2699
      if (other.isSetCc()) {
-
 
2700
        List<String> __this__cc = new ArrayList<String>();
-
 
2701
        for (String other_element : other.cc) {
-
 
2702
          __this__cc.add(other_element);
-
 
2703
        }
-
 
2704
        this.cc = __this__cc;
-
 
2705
      }
-
 
2706
      if (other.isSetBcc()) {
-
 
2707
        List<String> __this__bcc = new ArrayList<String>();
-
 
2708
        for (String other_element : other.bcc) {
-
 
2709
          __this__bcc.add(other_element);
-
 
2710
        }
-
 
2711
        this.bcc = __this__bcc;
-
 
2712
      }
2664
    }
2713
    }
2665
 
2714
 
2666
    public saveUserEmailForSending_args deepCopy() {
2715
    public saveUserEmailForSending_args deepCopy() {
2667
      return new saveUserEmailForSending_args(this);
2716
      return new saveUserEmailForSending_args(this);
2668
    }
2717
    }
Line 2673... Line 2722...
2673
      this.emailFrom = null;
2722
      this.emailFrom = null;
2674
      this.subject = null;
2723
      this.subject = null;
2675
      this.body = null;
2724
      this.body = null;
2676
      this.source = null;
2725
      this.source = null;
2677
      this.emailType = null;
2726
      this.emailType = null;
-
 
2727
      this.cc = null;
-
 
2728
      this.bcc = null;
2678
    }
2729
    }
2679
 
2730
 
-
 
2731
    public int getEmailToSize() {
-
 
2732
      return (this.emailTo == null) ? 0 : this.emailTo.size();
-
 
2733
    }
-
 
2734
 
-
 
2735
    public java.util.Iterator<String> getEmailToIterator() {
-
 
2736
      return (this.emailTo == null) ? null : this.emailTo.iterator();
-
 
2737
    }
-
 
2738
 
-
 
2739
    public void addToEmailTo(String elem) {
-
 
2740
      if (this.emailTo == null) {
-
 
2741
        this.emailTo = new ArrayList<String>();
-
 
2742
      }
-
 
2743
      this.emailTo.add(elem);
-
 
2744
    }
-
 
2745
 
2680
    public String getEmailTo() {
2746
    public List<String> getEmailTo() {
2681
      return this.emailTo;
2747
      return this.emailTo;
2682
    }
2748
    }
2683
 
2749
 
2684
    public void setEmailTo(String emailTo) {
2750
    public void setEmailTo(List<String> emailTo) {
2685
      this.emailTo = emailTo;
2751
      this.emailTo = emailTo;
2686
    }
2752
    }
2687
 
2753
 
2688
    public void unsetEmailTo() {
2754
    public void unsetEmailTo() {
2689
      this.emailTo = null;
2755
      this.emailTo = null;
Line 2813... Line 2879...
2813
      if (!value) {
2879
      if (!value) {
2814
        this.emailType = null;
2880
        this.emailType = null;
2815
      }
2881
      }
2816
    }
2882
    }
2817
 
2883
 
-
 
2884
    public int getCcSize() {
-
 
2885
      return (this.cc == null) ? 0 : this.cc.size();
-
 
2886
    }
-
 
2887
 
-
 
2888
    public java.util.Iterator<String> getCcIterator() {
-
 
2889
      return (this.cc == null) ? null : this.cc.iterator();
-
 
2890
    }
-
 
2891
 
-
 
2892
    public void addToCc(String elem) {
-
 
2893
      if (this.cc == null) {
-
 
2894
        this.cc = new ArrayList<String>();
-
 
2895
      }
-
 
2896
      this.cc.add(elem);
-
 
2897
    }
-
 
2898
 
-
 
2899
    public List<String> getCc() {
-
 
2900
      return this.cc;
-
 
2901
    }
-
 
2902
 
-
 
2903
    public void setCc(List<String> cc) {
-
 
2904
      this.cc = cc;
-
 
2905
    }
-
 
2906
 
-
 
2907
    public void unsetCc() {
-
 
2908
      this.cc = null;
-
 
2909
    }
-
 
2910
 
-
 
2911
    /** Returns true if field cc is set (has been assigned a value) and false otherwise */
-
 
2912
    public boolean isSetCc() {
-
 
2913
      return this.cc != null;
-
 
2914
    }
-
 
2915
 
-
 
2916
    public void setCcIsSet(boolean value) {
-
 
2917
      if (!value) {
-
 
2918
        this.cc = null;
-
 
2919
      }
-
 
2920
    }
-
 
2921
 
-
 
2922
    public int getBccSize() {
-
 
2923
      return (this.bcc == null) ? 0 : this.bcc.size();
-
 
2924
    }
-
 
2925
 
-
 
2926
    public java.util.Iterator<String> getBccIterator() {
-
 
2927
      return (this.bcc == null) ? null : this.bcc.iterator();
-
 
2928
    }
-
 
2929
 
-
 
2930
    public void addToBcc(String elem) {
-
 
2931
      if (this.bcc == null) {
-
 
2932
        this.bcc = new ArrayList<String>();
-
 
2933
      }
-
 
2934
      this.bcc.add(elem);
-
 
2935
    }
-
 
2936
 
-
 
2937
    public List<String> getBcc() {
-
 
2938
      return this.bcc;
-
 
2939
    }
-
 
2940
 
-
 
2941
    public void setBcc(List<String> bcc) {
-
 
2942
      this.bcc = bcc;
-
 
2943
    }
-
 
2944
 
-
 
2945
    public void unsetBcc() {
-
 
2946
      this.bcc = null;
-
 
2947
    }
-
 
2948
 
-
 
2949
    /** Returns true if field bcc is set (has been assigned a value) and false otherwise */
-
 
2950
    public boolean isSetBcc() {
-
 
2951
      return this.bcc != null;
-
 
2952
    }
-
 
2953
 
-
 
2954
    public void setBccIsSet(boolean value) {
-
 
2955
      if (!value) {
-
 
2956
        this.bcc = null;
-
 
2957
      }
-
 
2958
    }
-
 
2959
 
2818
    public void setFieldValue(_Fields field, Object value) {
2960
    public void setFieldValue(_Fields field, Object value) {
2819
      switch (field) {
2961
      switch (field) {
2820
      case EMAIL_TO:
2962
      case EMAIL_TO:
2821
        if (value == null) {
2963
        if (value == null) {
2822
          unsetEmailTo();
2964
          unsetEmailTo();
2823
        } else {
2965
        } else {
2824
          setEmailTo((String)value);
2966
          setEmailTo((List<String>)value);
2825
        }
2967
        }
2826
        break;
2968
        break;
2827
 
2969
 
2828
      case EMAIL_FROM:
2970
      case EMAIL_FROM:
2829
        if (value == null) {
2971
        if (value == null) {
Line 2863... Line 3005...
2863
        } else {
3005
        } else {
2864
          setEmailType((String)value);
3006
          setEmailType((String)value);
2865
        }
3007
        }
2866
        break;
3008
        break;
2867
 
3009
 
-
 
3010
      case CC:
-
 
3011
        if (value == null) {
-
 
3012
          unsetCc();
-
 
3013
        } else {
-
 
3014
          setCc((List<String>)value);
-
 
3015
        }
-
 
3016
        break;
-
 
3017
 
-
 
3018
      case BCC:
-
 
3019
        if (value == null) {
-
 
3020
          unsetBcc();
-
 
3021
        } else {
-
 
3022
          setBcc((List<String>)value);
-
 
3023
        }
-
 
3024
        break;
-
 
3025
 
2868
      }
3026
      }
2869
    }
3027
    }
2870
 
3028
 
2871
    public Object getFieldValue(_Fields field) {
3029
    public Object getFieldValue(_Fields field) {
2872
      switch (field) {
3030
      switch (field) {
Line 2886... Line 3044...
2886
        return getSource();
3044
        return getSource();
2887
 
3045
 
2888
      case EMAIL_TYPE:
3046
      case EMAIL_TYPE:
2889
        return getEmailType();
3047
        return getEmailType();
2890
 
3048
 
-
 
3049
      case CC:
-
 
3050
        return getCc();
-
 
3051
 
-
 
3052
      case BCC:
-
 
3053
        return getBcc();
-
 
3054
 
2891
      }
3055
      }
2892
      throw new IllegalStateException();
3056
      throw new IllegalStateException();
2893
    }
3057
    }
2894
 
3058
 
2895
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3059
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 2909... Line 3073...
2909
        return isSetBody();
3073
        return isSetBody();
2910
      case SOURCE:
3074
      case SOURCE:
2911
        return isSetSource();
3075
        return isSetSource();
2912
      case EMAIL_TYPE:
3076
      case EMAIL_TYPE:
2913
        return isSetEmailType();
3077
        return isSetEmailType();
-
 
3078
      case CC:
-
 
3079
        return isSetCc();
-
 
3080
      case BCC:
-
 
3081
        return isSetBcc();
2914
      }
3082
      }
2915
      throw new IllegalStateException();
3083
      throw new IllegalStateException();
2916
    }
3084
    }
2917
 
3085
 
2918
    @Override
3086
    @Override
Line 2980... Line 3148...
2980
          return false;
3148
          return false;
2981
        if (!this.emailType.equals(that.emailType))
3149
        if (!this.emailType.equals(that.emailType))
2982
          return false;
3150
          return false;
2983
      }
3151
      }
2984
 
3152
 
-
 
3153
      boolean this_present_cc = true && this.isSetCc();
-
 
3154
      boolean that_present_cc = true && that.isSetCc();
-
 
3155
      if (this_present_cc || that_present_cc) {
-
 
3156
        if (!(this_present_cc && that_present_cc))
-
 
3157
          return false;
-
 
3158
        if (!this.cc.equals(that.cc))
-
 
3159
          return false;
-
 
3160
      }
-
 
3161
 
-
 
3162
      boolean this_present_bcc = true && this.isSetBcc();
-
 
3163
      boolean that_present_bcc = true && that.isSetBcc();
-
 
3164
      if (this_present_bcc || that_present_bcc) {
-
 
3165
        if (!(this_present_bcc && that_present_bcc))
-
 
3166
          return false;
-
 
3167
        if (!this.bcc.equals(that.bcc))
-
 
3168
          return false;
-
 
3169
      }
-
 
3170
 
2985
      return true;
3171
      return true;
2986
    }
3172
    }
2987
 
3173
 
2988
    @Override
3174
    @Override
2989
    public int hashCode() {
3175
    public int hashCode() {
Line 3056... Line 3242...
3056
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
3242
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
3057
        if (lastComparison != 0) {
3243
        if (lastComparison != 0) {
3058
          return lastComparison;
3244
          return lastComparison;
3059
        }
3245
        }
3060
      }
3246
      }
-
 
3247
      lastComparison = Boolean.valueOf(isSetCc()).compareTo(typedOther.isSetCc());
-
 
3248
      if (lastComparison != 0) {
-
 
3249
        return lastComparison;
-
 
3250
      }
-
 
3251
      if (isSetCc()) {
-
 
3252
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cc, typedOther.cc);
-
 
3253
        if (lastComparison != 0) {
-
 
3254
          return lastComparison;
-
 
3255
        }
-
 
3256
      }
-
 
3257
      lastComparison = Boolean.valueOf(isSetBcc()).compareTo(typedOther.isSetBcc());
-
 
3258
      if (lastComparison != 0) {
-
 
3259
        return lastComparison;
-
 
3260
      }
-
 
3261
      if (isSetBcc()) {
-
 
3262
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bcc, typedOther.bcc);
-
 
3263
        if (lastComparison != 0) {
-
 
3264
          return lastComparison;
-
 
3265
        }
-
 
3266
      }
3061
      return 0;
3267
      return 0;
3062
    }
3268
    }
3063
 
3269
 
3064
    public _Fields fieldForId(int fieldId) {
3270
    public _Fields fieldForId(int fieldId) {
3065
      return _Fields.findByThriftId(fieldId);
3271
      return _Fields.findByThriftId(fieldId);
Line 3074... Line 3280...
3074
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3280
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3075
          break;
3281
          break;
3076
        }
3282
        }
3077
        switch (field.id) {
3283
        switch (field.id) {
3078
          case 1: // EMAIL_TO
3284
          case 1: // EMAIL_TO
3079
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3285
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
3286
              {
-
 
3287
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
-
 
3288
                this.emailTo = new ArrayList<String>(_list20.size);
-
 
3289
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
-
 
3290
                {
-
 
3291
                  String _elem22; // required
3080
              this.emailTo = iprot.readString();
3292
                  _elem22 = iprot.readString();
-
 
3293
                  this.emailTo.add(_elem22);
-
 
3294
                }
-
 
3295
                iprot.readListEnd();
-
 
3296
              }
3081
            } else { 
3297
            } else { 
3082
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3298
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3083
            }
3299
            }
3084
            break;
3300
            break;
3085
          case 2: // EMAIL_FROM
3301
          case 2: // EMAIL_FROM
Line 3115... Line 3331...
3115
              this.emailType = iprot.readString();
3331
              this.emailType = iprot.readString();
3116
            } else { 
3332
            } else { 
3117
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3333
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3118
            }
3334
            }
3119
            break;
3335
            break;
-
 
3336
          case 7: // CC
-
 
3337
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
3338
              {
-
 
3339
                org.apache.thrift.protocol.TList _list23 = iprot.readListBegin();
-
 
3340
                this.cc = new ArrayList<String>(_list23.size);
-
 
3341
                for (int _i24 = 0; _i24 < _list23.size; ++_i24)
-
 
3342
                {
-
 
3343
                  String _elem25; // required
-
 
3344
                  _elem25 = iprot.readString();
-
 
3345
                  this.cc.add(_elem25);
-
 
3346
                }
-
 
3347
                iprot.readListEnd();
-
 
3348
              }
-
 
3349
            } else { 
-
 
3350
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
3351
            }
-
 
3352
            break;
-
 
3353
          case 8: // BCC
-
 
3354
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
3355
              {
-
 
3356
                org.apache.thrift.protocol.TList _list26 = iprot.readListBegin();
-
 
3357
                this.bcc = new ArrayList<String>(_list26.size);
-
 
3358
                for (int _i27 = 0; _i27 < _list26.size; ++_i27)
-
 
3359
                {
-
 
3360
                  String _elem28; // required
-
 
3361
                  _elem28 = iprot.readString();
-
 
3362
                  this.bcc.add(_elem28);
-
 
3363
                }
-
 
3364
                iprot.readListEnd();
-
 
3365
              }
-
 
3366
            } else { 
-
 
3367
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
3368
            }
-
 
3369
            break;
3120
          default:
3370
          default:
3121
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3371
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3122
        }
3372
        }
3123
        iprot.readFieldEnd();
3373
        iprot.readFieldEnd();
3124
      }
3374
      }
Line 3130... Line 3380...
3130
      validate();
3380
      validate();
3131
 
3381
 
3132
      oprot.writeStructBegin(STRUCT_DESC);
3382
      oprot.writeStructBegin(STRUCT_DESC);
3133
      if (this.emailTo != null) {
3383
      if (this.emailTo != null) {
3134
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
3384
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
-
 
3385
        {
-
 
3386
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.emailTo.size()));
-
 
3387
          for (String _iter29 : this.emailTo)
-
 
3388
          {
3135
        oprot.writeString(this.emailTo);
3389
            oprot.writeString(_iter29);
-
 
3390
          }
-
 
3391
          oprot.writeListEnd();
-
 
3392
        }
3136
        oprot.writeFieldEnd();
3393
        oprot.writeFieldEnd();
3137
      }
3394
      }
3138
      if (this.emailFrom != null) {
3395
      if (this.emailFrom != null) {
3139
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
3396
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
3140
        oprot.writeString(this.emailFrom);
3397
        oprot.writeString(this.emailFrom);
Line 3158... Line 3415...
3158
      if (this.emailType != null) {
3415
      if (this.emailType != null) {
3159
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
3416
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
3160
        oprot.writeString(this.emailType);
3417
        oprot.writeString(this.emailType);
3161
        oprot.writeFieldEnd();
3418
        oprot.writeFieldEnd();
3162
      }
3419
      }
-
 
3420
      if (this.cc != null) {
-
 
3421
        oprot.writeFieldBegin(CC_FIELD_DESC);
-
 
3422
        {
-
 
3423
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.cc.size()));
-
 
3424
          for (String _iter30 : this.cc)
-
 
3425
          {
-
 
3426
            oprot.writeString(_iter30);
-
 
3427
          }
-
 
3428
          oprot.writeListEnd();
-
 
3429
        }
-
 
3430
        oprot.writeFieldEnd();
-
 
3431
      }
-
 
3432
      if (this.bcc != null) {
-
 
3433
        oprot.writeFieldBegin(BCC_FIELD_DESC);
-
 
3434
        {
-
 
3435
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.bcc.size()));
-
 
3436
          for (String _iter31 : this.bcc)
-
 
3437
          {
-
 
3438
            oprot.writeString(_iter31);
-
 
3439
          }
-
 
3440
          oprot.writeListEnd();
-
 
3441
        }
-
 
3442
        oprot.writeFieldEnd();
-
 
3443
      }
3163
      oprot.writeFieldStop();
3444
      oprot.writeFieldStop();
3164
      oprot.writeStructEnd();
3445
      oprot.writeStructEnd();
3165
    }
3446
    }
3166
 
3447
 
3167
    @Override
3448
    @Override
Line 3214... Line 3495...
3214
        sb.append("null");
3495
        sb.append("null");
3215
      } else {
3496
      } else {
3216
        sb.append(this.emailType);
3497
        sb.append(this.emailType);
3217
      }
3498
      }
3218
      first = false;
3499
      first = false;
-
 
3500
      if (!first) sb.append(", ");
-
 
3501
      sb.append("cc:");
-
 
3502
      if (this.cc == null) {
-
 
3503
        sb.append("null");
-
 
3504
      } else {
-
 
3505
        sb.append(this.cc);
-
 
3506
      }
-
 
3507
      first = false;
-
 
3508
      if (!first) sb.append(", ");
-
 
3509
      sb.append("bcc:");
-
 
3510
      if (this.bcc == null) {
-
 
3511
        sb.append("null");
-
 
3512
      } else {
-
 
3513
        sb.append(this.bcc);
-
 
3514
      }
-
 
3515
      first = false;
3219
      sb.append(")");
3516
      sb.append(")");
3220
      return sb.toString();
3517
      return sb.toString();
3221
    }
3518
    }
3222
 
3519
 
3223
    public void validate() throws org.apache.thrift.TException {
3520
    public void validate() throws org.apache.thrift.TException {
Line 4139... Line 4436...
4139
        }
4436
        }
4140
        switch (field.id) {
4437
        switch (field.id) {
4141
          case 0: // SUCCESS
4438
          case 0: // SUCCESS
4142
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4439
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4143
              {
4440
              {
4144
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
4441
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
4145
                this.success = new ArrayList<UserEmail>(_list8.size);
4442
                this.success = new ArrayList<UserEmail>(_list32.size);
4146
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
4443
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
4147
                {
4444
                {
4148
                  UserEmail _elem10; // required
4445
                  UserEmail _elem34; // required
4149
                  _elem10 = new UserEmail();
4446
                  _elem34 = new UserEmail();
4150
                  _elem10.read(iprot);
4447
                  _elem34.read(iprot);
4151
                  this.success.add(_elem10);
4448
                  this.success.add(_elem34);
4152
                }
4449
                }
4153
                iprot.readListEnd();
4450
                iprot.readListEnd();
4154
              }
4451
              }
4155
            } else { 
4452
            } else { 
4156
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4453
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 4178... Line 4475...
4178
 
4475
 
4179
      if (this.isSetSuccess()) {
4476
      if (this.isSetSuccess()) {
4180
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4477
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4181
        {
4478
        {
4182
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4479
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4183
          for (UserEmail _iter11 : this.success)
4480
          for (UserEmail _iter35 : this.success)
4184
          {
4481
          {
4185
            _iter11.write(oprot);
4482
            _iter35.write(oprot);
4186
          }
4483
          }
4187
          oprot.writeListEnd();
4484
          oprot.writeListEnd();
4188
        }
4485
        }
4189
        oprot.writeFieldEnd();
4486
        oprot.writeFieldEnd();
4190
      } else if (this.isSetSe()) {
4487
      } else if (this.isSetSe()) {
Line 8281... Line 8578...
8281
            }
8578
            }
8282
            break;
8579
            break;
8283
          case 2: // PARAMS
8580
          case 2: // PARAMS
8284
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
8581
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
8285
              {
8582
              {
8286
                org.apache.thrift.protocol.TMap _map12 = iprot.readMapBegin();
8583
                org.apache.thrift.protocol.TMap _map36 = iprot.readMapBegin();
8287
                this.params = new HashMap<String,String>(2*_map12.size);
8584
                this.params = new HashMap<String,String>(2*_map36.size);
8288
                for (int _i13 = 0; _i13 < _map12.size; ++_i13)
8585
                for (int _i37 = 0; _i37 < _map36.size; ++_i37)
8289
                {
8586
                {
8290
                  String _key14; // required
8587
                  String _key38; // required
8291
                  String _val15; // required
8588
                  String _val39; // required
8292
                  _key14 = iprot.readString();
8589
                  _key38 = iprot.readString();
8293
                  _val15 = iprot.readString();
8590
                  _val39 = iprot.readString();
8294
                  this.params.put(_key14, _val15);
8591
                  this.params.put(_key38, _val39);
8295
                }
8592
                }
8296
                iprot.readMapEnd();
8593
                iprot.readMapEnd();
8297
              }
8594
              }
8298
            } else { 
8595
            } else { 
8299
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8596
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 8317... Line 8614...
8317
      oprot.writeFieldEnd();
8614
      oprot.writeFieldEnd();
8318
      if (this.params != null) {
8615
      if (this.params != null) {
8319
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
8616
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
8320
        {
8617
        {
8321
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.params.size()));
8618
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.params.size()));
8322
          for (Map.Entry<String, String> _iter16 : this.params.entrySet())
8619
          for (Map.Entry<String, String> _iter40 : this.params.entrySet())
8323
          {
8620
          {
8324
            oprot.writeString(_iter16.getKey());
8621
            oprot.writeString(_iter40.getKey());
8325
            oprot.writeString(_iter16.getValue());
8622
            oprot.writeString(_iter40.getValue());
8326
          }
8623
          }
8327
          oprot.writeMapEnd();
8624
          oprot.writeMapEnd();
8328
        }
8625
        }
8329
        oprot.writeFieldEnd();
8626
        oprot.writeFieldEnd();
8330
      }
8627
      }
Line 14733... Line 15030...
14733
        }
15030
        }
14734
        switch (field.id) {
15031
        switch (field.id) {
14735
          case 0: // SUCCESS
15032
          case 0: // SUCCESS
14736
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15033
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14737
              {
15034
              {
14738
                org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
15035
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
14739
                this.success = new ArrayList<Report>(_list17.size);
15036
                this.success = new ArrayList<Report>(_list41.size);
14740
                for (int _i18 = 0; _i18 < _list17.size; ++_i18)
15037
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
14741
                {
15038
                {
14742
                  Report _elem19; // required
15039
                  Report _elem43; // required
14743
                  _elem19 = new Report();
15040
                  _elem43 = new Report();
14744
                  _elem19.read(iprot);
15041
                  _elem43.read(iprot);
14745
                  this.success.add(_elem19);
15042
                  this.success.add(_elem43);
14746
                }
15043
                }
14747
                iprot.readListEnd();
15044
                iprot.readListEnd();
14748
              }
15045
              }
14749
            } else { 
15046
            } else { 
14750
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15047
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 14764... Line 15061...
14764
 
15061
 
14765
      if (this.isSetSuccess()) {
15062
      if (this.isSetSuccess()) {
14766
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15063
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14767
        {
15064
        {
14768
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
15065
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
14769
          for (Report _iter20 : this.success)
15066
          for (Report _iter44 : this.success)
14770
          {
15067
          {
14771
            _iter20.write(oprot);
15068
            _iter44.write(oprot);
14772
          }
15069
          }
14773
          oprot.writeListEnd();
15070
          oprot.writeListEnd();
14774
        }
15071
        }
14775
        oprot.writeFieldEnd();
15072
        oprot.writeFieldEnd();
14776
      }
15073
      }
Line 15982... Line 16279...
15982
        }
16279
        }
15983
        switch (field.id) {
16280
        switch (field.id) {
15984
          case 1: // ENTITY_IDS
16281
          case 1: // ENTITY_IDS
15985
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16282
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15986
              {
16283
              {
15987
                org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
16284
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
15988
                this.entityIds = new ArrayList<Long>(_list21.size);
16285
                this.entityIds = new ArrayList<Long>(_list45.size);
15989
                for (int _i22 = 0; _i22 < _list21.size; ++_i22)
16286
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
15990
                {
16287
                {
15991
                  long _elem23; // required
16288
                  long _elem47; // required
15992
                  _elem23 = iprot.readI64();
16289
                  _elem47 = iprot.readI64();
15993
                  this.entityIds.add(_elem23);
16290
                  this.entityIds.add(_elem47);
15994
                }
16291
                }
15995
                iprot.readListEnd();
16292
                iprot.readListEnd();
15996
              }
16293
              }
15997
            } else { 
16294
            } else { 
15998
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16295
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 16020... Line 16317...
16020
      oprot.writeStructBegin(STRUCT_DESC);
16317
      oprot.writeStructBegin(STRUCT_DESC);
16021
      if (this.entityIds != null) {
16318
      if (this.entityIds != null) {
16022
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
16319
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
16023
        {
16320
        {
16024
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
16321
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
16025
          for (long _iter24 : this.entityIds)
16322
          for (long _iter48 : this.entityIds)
16026
          {
16323
          {
16027
            oprot.writeI64(_iter24);
16324
            oprot.writeI64(_iter48);
16028
          }
16325
          }
16029
          oprot.writeListEnd();
16326
          oprot.writeListEnd();
16030
        }
16327
        }
16031
        oprot.writeFieldEnd();
16328
        oprot.writeFieldEnd();
16032
      }
16329
      }
Line 16827... Line 17124...
16827
        }
17124
        }
16828
        switch (field.id) {
17125
        switch (field.id) {
16829
          case 0: // SUCCESS
17126
          case 0: // SUCCESS
16830
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17127
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16831
              {
17128
              {
16832
                org.apache.thrift.protocol.TList _list25 = iprot.readListBegin();
17129
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
16833
                this.success = new ArrayList<Agent>(_list25.size);
17130
                this.success = new ArrayList<Agent>(_list49.size);
16834
                for (int _i26 = 0; _i26 < _list25.size; ++_i26)
17131
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
16835
                {
17132
                {
16836
                  Agent _elem27; // required
17133
                  Agent _elem51; // required
16837
                  _elem27 = new Agent();
17134
                  _elem51 = new Agent();
16838
                  _elem27.read(iprot);
17135
                  _elem51.read(iprot);
16839
                  this.success.add(_elem27);
17136
                  this.success.add(_elem51);
16840
                }
17137
                }
16841
                iprot.readListEnd();
17138
                iprot.readListEnd();
16842
              }
17139
              }
16843
            } else { 
17140
            } else { 
16844
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17141
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 16858... Line 17155...
16858
 
17155
 
16859
      if (this.isSetSuccess()) {
17156
      if (this.isSetSuccess()) {
16860
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17157
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16861
        {
17158
        {
16862
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
17159
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
16863
          for (Agent _iter28 : this.success)
17160
          for (Agent _iter52 : this.success)
16864
          {
17161
          {
16865
            _iter28.write(oprot);
17162
            _iter52.write(oprot);
16866
          }
17163
          }
16867
          oprot.writeListEnd();
17164
          oprot.writeListEnd();
16868
        }
17165
        }
16869
        oprot.writeFieldEnd();
17166
        oprot.writeFieldEnd();
16870
      }
17167
      }
Line 18708... Line 19005...
18708
        }
19005
        }
18709
        switch (field.id) {
19006
        switch (field.id) {
18710
          case 0: // SUCCESS
19007
          case 0: // SUCCESS
18711
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19008
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18712
              {
19009
              {
18713
                org.apache.thrift.protocol.TList _list29 = iprot.readListBegin();
19010
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
18714
                this.success = new ArrayList<String>(_list29.size);
19011
                this.success = new ArrayList<String>(_list53.size);
18715
                for (int _i30 = 0; _i30 < _list29.size; ++_i30)
19012
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
18716
                {
19013
                {
18717
                  String _elem31; // required
19014
                  String _elem55; // required
18718
                  _elem31 = iprot.readString();
19015
                  _elem55 = iprot.readString();
18719
                  this.success.add(_elem31);
19016
                  this.success.add(_elem55);
18720
                }
19017
                }
18721
                iprot.readListEnd();
19018
                iprot.readListEnd();
18722
              }
19019
              }
18723
            } else { 
19020
            } else { 
18724
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19021
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 18738... Line 19035...
18738
 
19035
 
18739
      if (this.isSetSuccess()) {
19036
      if (this.isSetSuccess()) {
18740
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19037
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18741
        {
19038
        {
18742
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
19039
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
18743
          for (String _iter32 : this.success)
19040
          for (String _iter56 : this.success)
18744
          {
19041
          {
18745
            oprot.writeString(_iter32);
19042
            oprot.writeString(_iter56);
18746
          }
19043
          }
18747
          oprot.writeListEnd();
19044
          oprot.writeListEnd();
18748
        }
19045
        }
18749
        oprot.writeFieldEnd();
19046
        oprot.writeFieldEnd();
18750
      }
19047
      }
Line 19332... Line 19629...
19332
        }
19629
        }
19333
        switch (field.id) {
19630
        switch (field.id) {
19334
          case 0: // SUCCESS
19631
          case 0: // SUCCESS
19335
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19632
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19336
              {
19633
              {
19337
                org.apache.thrift.protocol.TList _list33 = iprot.readListBegin();
19634
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
19338
                this.success = new ArrayList<String>(_list33.size);
19635
                this.success = new ArrayList<String>(_list57.size);
19339
                for (int _i34 = 0; _i34 < _list33.size; ++_i34)
19636
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
19340
                {
19637
                {
19341
                  String _elem35; // required
19638
                  String _elem59; // required
19342
                  _elem35 = iprot.readString();
19639
                  _elem59 = iprot.readString();
19343
                  this.success.add(_elem35);
19640
                  this.success.add(_elem59);
19344
                }
19641
                }
19345
                iprot.readListEnd();
19642
                iprot.readListEnd();
19346
              }
19643
              }
19347
            } else { 
19644
            } else { 
19348
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19645
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 19362... Line 19659...
19362
 
19659
 
19363
      if (this.isSetSuccess()) {
19660
      if (this.isSetSuccess()) {
19364
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19661
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19365
        {
19662
        {
19366
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
19663
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
19367
          for (String _iter36 : this.success)
19664
          for (String _iter60 : this.success)
19368
          {
19665
          {
19369
            oprot.writeString(_iter36);
19666
            oprot.writeString(_iter60);
19370
          }
19667
          }
19371
          oprot.writeListEnd();
19668
          oprot.writeListEnd();
19372
        }
19669
        }
19373
        oprot.writeFieldEnd();
19670
        oprot.writeFieldEnd();
19374
      }
19671
      }
Line 20606... Line 20903...
20606
        }
20903
        }
20607
        switch (field.id) {
20904
        switch (field.id) {
20608
          case 0: // SUCCESS
20905
          case 0: // SUCCESS
20609
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20906
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20610
              {
20907
              {
20611
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
20908
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
20612
                this.success = new ArrayList<QuickLink>(_list37.size);
20909
                this.success = new ArrayList<QuickLink>(_list61.size);
20613
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
20910
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
20614
                {
20911
                {
20615
                  QuickLink _elem39; // required
20912
                  QuickLink _elem63; // required
20616
                  _elem39 = new QuickLink();
20913
                  _elem63 = new QuickLink();
20617
                  _elem39.read(iprot);
20914
                  _elem63.read(iprot);
20618
                  this.success.add(_elem39);
20915
                  this.success.add(_elem63);
20619
                }
20916
                }
20620
                iprot.readListEnd();
20917
                iprot.readListEnd();
20621
              }
20918
              }
20622
            } else { 
20919
            } else { 
20623
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 20645... Line 20942...
20645
 
20942
 
20646
      if (this.isSetSuccess()) {
20943
      if (this.isSetSuccess()) {
20647
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20944
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20648
        {
20945
        {
20649
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20946
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20650
          for (QuickLink _iter40 : this.success)
20947
          for (QuickLink _iter64 : this.success)
20651
          {
20948
          {
20652
            _iter40.write(oprot);
20949
            _iter64.write(oprot);
20653
          }
20950
          }
20654
          oprot.writeListEnd();
20951
          oprot.writeListEnd();
20655
        }
20952
        }
20656
        oprot.writeFieldEnd();
20953
        oprot.writeFieldEnd();
20657
      } else if (this.isSetHse()) {
20954
      } else if (this.isSetHse()) {
Line 22164... Line 22461...
22164
        }
22461
        }
22165
        switch (field.id) {
22462
        switch (field.id) {
22166
          case 0: // SUCCESS
22463
          case 0: // SUCCESS
22167
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22464
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22168
              {
22465
              {
22169
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
22466
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
22170
                this.success = new ArrayList<String>(_list41.size);
22467
                this.success = new ArrayList<String>(_list65.size);
22171
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
22468
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
22172
                {
22469
                {
22173
                  String _elem43; // required
22470
                  String _elem67; // required
22174
                  _elem43 = iprot.readString();
22471
                  _elem67 = iprot.readString();
22175
                  this.success.add(_elem43);
22472
                  this.success.add(_elem67);
22176
                }
22473
                }
22177
                iprot.readListEnd();
22474
                iprot.readListEnd();
22178
              }
22475
              }
22179
            } else { 
22476
            } else { 
22180
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22477
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 22202... Line 22499...
22202
 
22499
 
22203
      if (this.isSetSuccess()) {
22500
      if (this.isSetSuccess()) {
22204
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22501
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22205
        {
22502
        {
22206
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
22503
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
22207
          for (String _iter44 : this.success)
22504
          for (String _iter68 : this.success)
22208
          {
22505
          {
22209
            oprot.writeString(_iter44);
22506
            oprot.writeString(_iter68);
22210
          }
22507
          }
22211
          oprot.writeListEnd();
22508
          oprot.writeListEnd();
22212
        }
22509
        }
22213
        oprot.writeFieldEnd();
22510
        oprot.writeFieldEnd();
22214
      } else if (this.isSetHse()) {
22511
      } else if (this.isSetHse()) {