| Line 33... |
Line 33... |
| 33 |
* @param body
|
33 |
* @param body
|
| 34 |
* @param source
|
34 |
* @param source
|
| 35 |
* @param emailType
|
35 |
* @param emailType
|
| 36 |
* @param cc
|
36 |
* @param cc
|
| 37 |
* @param bcc
|
37 |
* @param bcc
|
| - |
|
38 |
* @param sourceId
|
| 38 |
*/
|
39 |
*/
|
| 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;
|
40 |
public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId) throws HelperServiceException, org.apache.thrift.TException;
|
| 40 |
|
41 |
|
| 41 |
/**
|
42 |
/**
|
| 42 |
* Retreives all the emails pending for dispatch
|
43 |
* Retreives all the emails pending for dispatch
|
| 43 |
*/
|
44 |
*/
|
| 44 |
public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
|
45 |
public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
|
| Line 167... |
Line 168... |
| 167 |
|
168 |
|
| 168 |
}
|
169 |
}
|
| 169 |
|
170 |
|
| 170 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
171 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
| 171 |
|
172 |
|
| 172 |
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;
|
173 |
public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
|
| 173 |
|
174 |
|
| 174 |
public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
|
175 |
public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
|
| 175 |
|
176 |
|
| 176 |
public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
|
177 |
public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
|
| 177 |
|
178 |
|
| Line 251... |
Line 252... |
| 251 |
|
252 |
|
| 252 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
253 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
| 253 |
super(iprot, oprot);
|
254 |
super(iprot, oprot);
|
| 254 |
}
|
255 |
}
|
| 255 |
|
256 |
|
| 256 |
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
|
257 |
public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId) throws HelperServiceException, org.apache.thrift.TException
|
| 257 |
{
|
258 |
{
|
| 258 |
send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType, cc, bcc);
|
259 |
send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId);
|
| 259 |
return recv_saveUserEmailForSending();
|
260 |
return recv_saveUserEmailForSending();
|
| 260 |
}
|
261 |
}
|
| 261 |
|
262 |
|
| 262 |
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
|
263 |
public void send_saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId) throws org.apache.thrift.TException
|
| 263 |
{
|
264 |
{
|
| 264 |
saveUserEmailForSending_args args = new saveUserEmailForSending_args();
|
265 |
saveUserEmailForSending_args args = new saveUserEmailForSending_args();
|
| 265 |
args.setEmailTo(emailTo);
|
266 |
args.setEmailTo(emailTo);
|
| 266 |
args.setEmailFrom(emailFrom);
|
267 |
args.setEmailFrom(emailFrom);
|
| 267 |
args.setSubject(subject);
|
268 |
args.setSubject(subject);
|
| 268 |
args.setBody(body);
|
269 |
args.setBody(body);
|
| 269 |
args.setSource(source);
|
270 |
args.setSource(source);
|
| 270 |
args.setEmailType(emailType);
|
271 |
args.setEmailType(emailType);
|
| 271 |
args.setCc(cc);
|
272 |
args.setCc(cc);
|
| 272 |
args.setBcc(bcc);
|
273 |
args.setBcc(bcc);
|
| - |
|
274 |
args.setSourceId(sourceId);
|
| 273 |
sendBase("saveUserEmailForSending", args);
|
275 |
sendBase("saveUserEmailForSending", args);
|
| 274 |
}
|
276 |
}
|
| 275 |
|
277 |
|
| 276 |
public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
|
278 |
public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
|
| 277 |
{
|
279 |
{
|
| Line 1043... |
Line 1045... |
| 1043 |
|
1045 |
|
| 1044 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
1046 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
| 1045 |
super(protocolFactory, clientManager, transport);
|
1047 |
super(protocolFactory, clientManager, transport);
|
| 1046 |
}
|
1048 |
}
|
| 1047 |
|
1049 |
|
| 1048 |
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 {
|
1050 |
public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException {
|
| 1049 |
checkReady();
|
1051 |
checkReady();
|
| 1050 |
saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, resultHandler, this, ___protocolFactory, ___transport);
|
1052 |
saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId, resultHandler, this, ___protocolFactory, ___transport);
|
| 1051 |
this.___currentMethod = method_call;
|
1053 |
this.___currentMethod = method_call;
|
| 1052 |
___manager.call(method_call);
|
1054 |
___manager.call(method_call);
|
| 1053 |
}
|
1055 |
}
|
| 1054 |
|
1056 |
|
| 1055 |
public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
|
1057 |
public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| Line 1059... |
Line 1061... |
| 1059 |
private String body;
|
1061 |
private String body;
|
| 1060 |
private String source;
|
1062 |
private String source;
|
| 1061 |
private String emailType;
|
1063 |
private String emailType;
|
| 1062 |
private List<String> cc;
|
1064 |
private List<String> cc;
|
| 1063 |
private List<String> bcc;
|
1065 |
private List<String> bcc;
|
| - |
|
1066 |
private long sourceId;
|
| 1064 |
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 {
|
1067 |
public saveUserEmailForSending_call(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId, org.apache.thrift.async.AsyncMethodCallback<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 {
|
| 1065 |
super(client, protocolFactory, transport, resultHandler, false);
|
1068 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 1066 |
this.emailTo = emailTo;
|
1069 |
this.emailTo = emailTo;
|
| 1067 |
this.emailFrom = emailFrom;
|
1070 |
this.emailFrom = emailFrom;
|
| 1068 |
this.subject = subject;
|
1071 |
this.subject = subject;
|
| 1069 |
this.body = body;
|
1072 |
this.body = body;
|
| 1070 |
this.source = source;
|
1073 |
this.source = source;
|
| 1071 |
this.emailType = emailType;
|
1074 |
this.emailType = emailType;
|
| 1072 |
this.cc = cc;
|
1075 |
this.cc = cc;
|
| 1073 |
this.bcc = bcc;
|
1076 |
this.bcc = bcc;
|
| - |
|
1077 |
this.sourceId = sourceId;
|
| 1074 |
}
|
1078 |
}
|
| 1075 |
|
1079 |
|
| 1076 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
1080 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 1077 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
1081 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 1078 |
saveUserEmailForSending_args args = new saveUserEmailForSending_args();
|
1082 |
saveUserEmailForSending_args args = new saveUserEmailForSending_args();
|
| Line 1082... |
Line 1086... |
| 1082 |
args.setBody(body);
|
1086 |
args.setBody(body);
|
| 1083 |
args.setSource(source);
|
1087 |
args.setSource(source);
|
| 1084 |
args.setEmailType(emailType);
|
1088 |
args.setEmailType(emailType);
|
| 1085 |
args.setCc(cc);
|
1089 |
args.setCc(cc);
|
| 1086 |
args.setBcc(bcc);
|
1090 |
args.setBcc(bcc);
|
| - |
|
1091 |
args.setSourceId(sourceId);
|
| 1087 |
args.write(prot);
|
1092 |
args.write(prot);
|
| 1088 |
prot.writeMessageEnd();
|
1093 |
prot.writeMessageEnd();
|
| 1089 |
}
|
1094 |
}
|
| 1090 |
|
1095 |
|
| 1091 |
public long getResult() throws HelperServiceException, org.apache.thrift.TException {
|
1096 |
public long getResult() throws HelperServiceException, org.apache.thrift.TException {
|
| Line 2160... |
Line 2165... |
| 2160 |
}
|
2165 |
}
|
| 2161 |
|
2166 |
|
| 2162 |
protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
|
2167 |
protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
|
| 2163 |
saveUserEmailForSending_result result = new saveUserEmailForSending_result();
|
2168 |
saveUserEmailForSending_result result = new saveUserEmailForSending_result();
|
| 2164 |
try {
|
2169 |
try {
|
| 2165 |
result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType, args.cc, args.bcc);
|
2170 |
result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType, args.cc, args.bcc, args.sourceId);
|
| 2166 |
result.setSuccessIsSet(true);
|
2171 |
result.setSuccessIsSet(true);
|
| 2167 |
} catch (HelperServiceException se) {
|
2172 |
} catch (HelperServiceException se) {
|
| 2168 |
result.se = se;
|
2173 |
result.se = se;
|
| 2169 |
}
|
2174 |
}
|
| 2170 |
return result;
|
2175 |
return result;
|
| Line 2750... |
Line 2755... |
| 2750 |
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);
|
2755 |
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);
|
| 2751 |
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);
|
2756 |
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);
|
| 2752 |
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);
|
2757 |
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);
|
| 2753 |
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);
|
2758 |
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);
|
| 2754 |
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);
|
2759 |
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);
|
| - |
|
2760 |
private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)9);
|
| 2755 |
|
2761 |
|
| 2756 |
private List<String> emailTo; // required
|
2762 |
private List<String> emailTo; // required
|
| 2757 |
private String emailFrom; // required
|
2763 |
private String emailFrom; // required
|
| 2758 |
private String subject; // required
|
2764 |
private String subject; // required
|
| 2759 |
private String body; // required
|
2765 |
private String body; // required
|
| 2760 |
private String source; // required
|
2766 |
private String source; // required
|
| 2761 |
private String emailType; // required
|
2767 |
private String emailType; // required
|
| 2762 |
private List<String> cc; // required
|
2768 |
private List<String> cc; // required
|
| 2763 |
private List<String> bcc; // required
|
2769 |
private List<String> bcc; // required
|
| - |
|
2770 |
private long sourceId; // required
|
| 2764 |
|
2771 |
|
| 2765 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
2772 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 2766 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
2773 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2767 |
EMAIL_TO((short)1, "emailTo"),
|
2774 |
EMAIL_TO((short)1, "emailTo"),
|
| 2768 |
EMAIL_FROM((short)2, "emailFrom"),
|
2775 |
EMAIL_FROM((short)2, "emailFrom"),
|
| 2769 |
SUBJECT((short)3, "subject"),
|
2776 |
SUBJECT((short)3, "subject"),
|
| 2770 |
BODY((short)4, "body"),
|
2777 |
BODY((short)4, "body"),
|
| 2771 |
SOURCE((short)5, "source"),
|
2778 |
SOURCE((short)5, "source"),
|
| 2772 |
EMAIL_TYPE((short)6, "emailType"),
|
2779 |
EMAIL_TYPE((short)6, "emailType"),
|
| 2773 |
CC((short)7, "cc"),
|
2780 |
CC((short)7, "cc"),
|
| 2774 |
BCC((short)8, "bcc");
|
2781 |
BCC((short)8, "bcc"),
|
| - |
|
2782 |
SOURCE_ID((short)9, "sourceId");
|
| 2775 |
|
2783 |
|
| 2776 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
2784 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 2777 |
|
2785 |
|
| 2778 |
static {
|
2786 |
static {
|
| 2779 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
2787 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 2800... |
Line 2808... |
| 2800 |
return EMAIL_TYPE;
|
2808 |
return EMAIL_TYPE;
|
| 2801 |
case 7: // CC
|
2809 |
case 7: // CC
|
| 2802 |
return CC;
|
2810 |
return CC;
|
| 2803 |
case 8: // BCC
|
2811 |
case 8: // BCC
|
| 2804 |
return BCC;
|
2812 |
return BCC;
|
| - |
|
2813 |
case 9: // SOURCE_ID
|
| - |
|
2814 |
return SOURCE_ID;
|
| 2805 |
default:
|
2815 |
default:
|
| 2806 |
return null;
|
2816 |
return null;
|
| 2807 |
}
|
2817 |
}
|
| 2808 |
}
|
2818 |
}
|
| 2809 |
|
2819 |
|
| Line 2840... |
Line 2850... |
| 2840 |
return _fieldName;
|
2850 |
return _fieldName;
|
| 2841 |
}
|
2851 |
}
|
| 2842 |
}
|
2852 |
}
|
| 2843 |
|
2853 |
|
| 2844 |
// isset id assignments
|
2854 |
// isset id assignments
|
| - |
|
2855 |
private static final int __SOURCEID_ISSET_ID = 0;
|
| - |
|
2856 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 2845 |
|
2857 |
|
| 2846 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
2858 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2847 |
static {
|
2859 |
static {
|
| 2848 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
2860 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 2849 |
tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
2861 |
tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| Line 2863... |
Line 2875... |
| 2863 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
2875 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
| 2864 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
|
2876 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
|
| 2865 |
tmpMap.put(_Fields.BCC, new org.apache.thrift.meta_data.FieldMetaData("bcc", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
2877 |
tmpMap.put(_Fields.BCC, new org.apache.thrift.meta_data.FieldMetaData("bcc", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 2866 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
2878 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
| 2867 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
|
2879 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
|
| - |
|
2880 |
tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
2881 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 2868 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
2882 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 2869 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
|
2883 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
|
| 2870 |
}
|
2884 |
}
|
| 2871 |
|
2885 |
|
| 2872 |
public saveUserEmailForSending_args() {
|
2886 |
public saveUserEmailForSending_args() {
|
| Line 2878... |
Line 2892... |
| 2878 |
String subject,
|
2892 |
String subject,
|
| 2879 |
String body,
|
2893 |
String body,
|
| 2880 |
String source,
|
2894 |
String source,
|
| 2881 |
String emailType,
|
2895 |
String emailType,
|
| 2882 |
List<String> cc,
|
2896 |
List<String> cc,
|
| 2883 |
List<String> bcc)
|
2897 |
List<String> bcc,
|
| - |
|
2898 |
long sourceId)
|
| 2884 |
{
|
2899 |
{
|
| 2885 |
this();
|
2900 |
this();
|
| 2886 |
this.emailTo = emailTo;
|
2901 |
this.emailTo = emailTo;
|
| 2887 |
this.emailFrom = emailFrom;
|
2902 |
this.emailFrom = emailFrom;
|
| 2888 |
this.subject = subject;
|
2903 |
this.subject = subject;
|
| 2889 |
this.body = body;
|
2904 |
this.body = body;
|
| 2890 |
this.source = source;
|
2905 |
this.source = source;
|
| 2891 |
this.emailType = emailType;
|
2906 |
this.emailType = emailType;
|
| 2892 |
this.cc = cc;
|
2907 |
this.cc = cc;
|
| 2893 |
this.bcc = bcc;
|
2908 |
this.bcc = bcc;
|
| - |
|
2909 |
this.sourceId = sourceId;
|
| - |
|
2910 |
setSourceIdIsSet(true);
|
| 2894 |
}
|
2911 |
}
|
| 2895 |
|
2912 |
|
| 2896 |
/**
|
2913 |
/**
|
| 2897 |
* Performs a deep copy on <i>other</i>.
|
2914 |
* Performs a deep copy on <i>other</i>.
|
| 2898 |
*/
|
2915 |
*/
|
| 2899 |
public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
|
2916 |
public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
|
| - |
|
2917 |
__isset_bit_vector.clear();
|
| - |
|
2918 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 2900 |
if (other.isSetEmailTo()) {
|
2919 |
if (other.isSetEmailTo()) {
|
| 2901 |
List<String> __this__emailTo = new ArrayList<String>();
|
2920 |
List<String> __this__emailTo = new ArrayList<String>();
|
| 2902 |
for (String other_element : other.emailTo) {
|
2921 |
for (String other_element : other.emailTo) {
|
| 2903 |
__this__emailTo.add(other_element);
|
2922 |
__this__emailTo.add(other_element);
|
| 2904 |
}
|
2923 |
}
|
| Line 2931... |
Line 2950... |
| 2931 |
for (String other_element : other.bcc) {
|
2950 |
for (String other_element : other.bcc) {
|
| 2932 |
__this__bcc.add(other_element);
|
2951 |
__this__bcc.add(other_element);
|
| 2933 |
}
|
2952 |
}
|
| 2934 |
this.bcc = __this__bcc;
|
2953 |
this.bcc = __this__bcc;
|
| 2935 |
}
|
2954 |
}
|
| - |
|
2955 |
this.sourceId = other.sourceId;
|
| 2936 |
}
|
2956 |
}
|
| 2937 |
|
2957 |
|
| 2938 |
public saveUserEmailForSending_args deepCopy() {
|
2958 |
public saveUserEmailForSending_args deepCopy() {
|
| 2939 |
return new saveUserEmailForSending_args(this);
|
2959 |
return new saveUserEmailForSending_args(this);
|
| 2940 |
}
|
2960 |
}
|
| Line 2947... |
Line 2967... |
| 2947 |
this.body = null;
|
2967 |
this.body = null;
|
| 2948 |
this.source = null;
|
2968 |
this.source = null;
|
| 2949 |
this.emailType = null;
|
2969 |
this.emailType = null;
|
| 2950 |
this.cc = null;
|
2970 |
this.cc = null;
|
| 2951 |
this.bcc = null;
|
2971 |
this.bcc = null;
|
| - |
|
2972 |
setSourceIdIsSet(false);
|
| - |
|
2973 |
this.sourceId = 0;
|
| 2952 |
}
|
2974 |
}
|
| 2953 |
|
2975 |
|
| 2954 |
public int getEmailToSize() {
|
2976 |
public int getEmailToSize() {
|
| 2955 |
return (this.emailTo == null) ? 0 : this.emailTo.size();
|
2977 |
return (this.emailTo == null) ? 0 : this.emailTo.size();
|
| 2956 |
}
|
2978 |
}
|
| Line 3178... |
Line 3200... |
| 3178 |
if (!value) {
|
3200 |
if (!value) {
|
| 3179 |
this.bcc = null;
|
3201 |
this.bcc = null;
|
| 3180 |
}
|
3202 |
}
|
| 3181 |
}
|
3203 |
}
|
| 3182 |
|
3204 |
|
| - |
|
3205 |
public long getSourceId() {
|
| - |
|
3206 |
return this.sourceId;
|
| - |
|
3207 |
}
|
| - |
|
3208 |
|
| - |
|
3209 |
public void setSourceId(long sourceId) {
|
| - |
|
3210 |
this.sourceId = sourceId;
|
| - |
|
3211 |
setSourceIdIsSet(true);
|
| - |
|
3212 |
}
|
| - |
|
3213 |
|
| - |
|
3214 |
public void unsetSourceId() {
|
| - |
|
3215 |
__isset_bit_vector.clear(__SOURCEID_ISSET_ID);
|
| - |
|
3216 |
}
|
| - |
|
3217 |
|
| - |
|
3218 |
/** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
|
| - |
|
3219 |
public boolean isSetSourceId() {
|
| - |
|
3220 |
return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
|
| - |
|
3221 |
}
|
| - |
|
3222 |
|
| - |
|
3223 |
public void setSourceIdIsSet(boolean value) {
|
| - |
|
3224 |
__isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
|
| - |
|
3225 |
}
|
| - |
|
3226 |
|
| 3183 |
public void setFieldValue(_Fields field, Object value) {
|
3227 |
public void setFieldValue(_Fields field, Object value) {
|
| 3184 |
switch (field) {
|
3228 |
switch (field) {
|
| 3185 |
case EMAIL_TO:
|
3229 |
case EMAIL_TO:
|
| 3186 |
if (value == null) {
|
3230 |
if (value == null) {
|
| 3187 |
unsetEmailTo();
|
3231 |
unsetEmailTo();
|
| Line 3244... |
Line 3288... |
| 3244 |
} else {
|
3288 |
} else {
|
| 3245 |
setBcc((List<String>)value);
|
3289 |
setBcc((List<String>)value);
|
| 3246 |
}
|
3290 |
}
|
| 3247 |
break;
|
3291 |
break;
|
| 3248 |
|
3292 |
|
| - |
|
3293 |
case SOURCE_ID:
|
| - |
|
3294 |
if (value == null) {
|
| - |
|
3295 |
unsetSourceId();
|
| - |
|
3296 |
} else {
|
| - |
|
3297 |
setSourceId((Long)value);
|
| - |
|
3298 |
}
|
| - |
|
3299 |
break;
|
| - |
|
3300 |
|
| 3249 |
}
|
3301 |
}
|
| 3250 |
}
|
3302 |
}
|
| 3251 |
|
3303 |
|
| 3252 |
public Object getFieldValue(_Fields field) {
|
3304 |
public Object getFieldValue(_Fields field) {
|
| 3253 |
switch (field) {
|
3305 |
switch (field) {
|
| Line 3273... |
Line 3325... |
| 3273 |
return getCc();
|
3325 |
return getCc();
|
| 3274 |
|
3326 |
|
| 3275 |
case BCC:
|
3327 |
case BCC:
|
| 3276 |
return getBcc();
|
3328 |
return getBcc();
|
| 3277 |
|
3329 |
|
| - |
|
3330 |
case SOURCE_ID:
|
| - |
|
3331 |
return Long.valueOf(getSourceId());
|
| - |
|
3332 |
|
| 3278 |
}
|
3333 |
}
|
| 3279 |
throw new IllegalStateException();
|
3334 |
throw new IllegalStateException();
|
| 3280 |
}
|
3335 |
}
|
| 3281 |
|
3336 |
|
| 3282 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
3337 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 3300... |
Line 3355... |
| 3300 |
return isSetEmailType();
|
3355 |
return isSetEmailType();
|
| 3301 |
case CC:
|
3356 |
case CC:
|
| 3302 |
return isSetCc();
|
3357 |
return isSetCc();
|
| 3303 |
case BCC:
|
3358 |
case BCC:
|
| 3304 |
return isSetBcc();
|
3359 |
return isSetBcc();
|
| - |
|
3360 |
case SOURCE_ID:
|
| - |
|
3361 |
return isSetSourceId();
|
| 3305 |
}
|
3362 |
}
|
| 3306 |
throw new IllegalStateException();
|
3363 |
throw new IllegalStateException();
|
| 3307 |
}
|
3364 |
}
|
| 3308 |
|
3365 |
|
| 3309 |
@Override
|
3366 |
@Override
|
| Line 3389... |
Line 3446... |
| 3389 |
return false;
|
3446 |
return false;
|
| 3390 |
if (!this.bcc.equals(that.bcc))
|
3447 |
if (!this.bcc.equals(that.bcc))
|
| 3391 |
return false;
|
3448 |
return false;
|
| 3392 |
}
|
3449 |
}
|
| 3393 |
|
3450 |
|
| - |
|
3451 |
boolean this_present_sourceId = true;
|
| - |
|
3452 |
boolean that_present_sourceId = true;
|
| - |
|
3453 |
if (this_present_sourceId || that_present_sourceId) {
|
| - |
|
3454 |
if (!(this_present_sourceId && that_present_sourceId))
|
| - |
|
3455 |
return false;
|
| - |
|
3456 |
if (this.sourceId != that.sourceId)
|
| - |
|
3457 |
return false;
|
| - |
|
3458 |
}
|
| - |
|
3459 |
|
| 3394 |
return true;
|
3460 |
return true;
|
| 3395 |
}
|
3461 |
}
|
| 3396 |
|
3462 |
|
| 3397 |
@Override
|
3463 |
@Override
|
| 3398 |
public int hashCode() {
|
3464 |
public int hashCode() {
|
| Line 3485... |
Line 3551... |
| 3485 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bcc, typedOther.bcc);
|
3551 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bcc, typedOther.bcc);
|
| 3486 |
if (lastComparison != 0) {
|
3552 |
if (lastComparison != 0) {
|
| 3487 |
return lastComparison;
|
3553 |
return lastComparison;
|
| 3488 |
}
|
3554 |
}
|
| 3489 |
}
|
3555 |
}
|
| - |
|
3556 |
lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
|
| - |
|
3557 |
if (lastComparison != 0) {
|
| - |
|
3558 |
return lastComparison;
|
| - |
|
3559 |
}
|
| - |
|
3560 |
if (isSetSourceId()) {
|
| - |
|
3561 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
|
| - |
|
3562 |
if (lastComparison != 0) {
|
| - |
|
3563 |
return lastComparison;
|
| - |
|
3564 |
}
|
| - |
|
3565 |
}
|
| 3490 |
return 0;
|
3566 |
return 0;
|
| 3491 |
}
|
3567 |
}
|
| 3492 |
|
3568 |
|
| 3493 |
public _Fields fieldForId(int fieldId) {
|
3569 |
public _Fields fieldForId(int fieldId) {
|
| 3494 |
return _Fields.findByThriftId(fieldId);
|
3570 |
return _Fields.findByThriftId(fieldId);
|
| Line 3588... |
Line 3664... |
| 3588 |
}
|
3664 |
}
|
| 3589 |
} else {
|
3665 |
} else {
|
| 3590 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
3666 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3591 |
}
|
3667 |
}
|
| 3592 |
break;
|
3668 |
break;
|
| - |
|
3669 |
case 9: // SOURCE_ID
|
| - |
|
3670 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
3671 |
this.sourceId = iprot.readI64();
|
| - |
|
3672 |
setSourceIdIsSet(true);
|
| - |
|
3673 |
} else {
|
| - |
|
3674 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
3675 |
}
|
| - |
|
3676 |
break;
|
| 3593 |
default:
|
3677 |
default:
|
| 3594 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
3678 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3595 |
}
|
3679 |
}
|
| 3596 |
iprot.readFieldEnd();
|
3680 |
iprot.readFieldEnd();
|
| 3597 |
}
|
3681 |
}
|
| Line 3662... |
Line 3746... |
| 3662 |
}
|
3746 |
}
|
| 3663 |
oprot.writeListEnd();
|
3747 |
oprot.writeListEnd();
|
| 3664 |
}
|
3748 |
}
|
| 3665 |
oprot.writeFieldEnd();
|
3749 |
oprot.writeFieldEnd();
|
| 3666 |
}
|
3750 |
}
|
| - |
|
3751 |
oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
|
| - |
|
3752 |
oprot.writeI64(this.sourceId);
|
| - |
|
3753 |
oprot.writeFieldEnd();
|
| 3667 |
oprot.writeFieldStop();
|
3754 |
oprot.writeFieldStop();
|
| 3668 |
oprot.writeStructEnd();
|
3755 |
oprot.writeStructEnd();
|
| 3669 |
}
|
3756 |
}
|
| 3670 |
|
3757 |
|
| 3671 |
@Override
|
3758 |
@Override
|
| Line 3734... |
Line 3821... |
| 3734 |
sb.append("null");
|
3821 |
sb.append("null");
|
| 3735 |
} else {
|
3822 |
} else {
|
| 3736 |
sb.append(this.bcc);
|
3823 |
sb.append(this.bcc);
|
| 3737 |
}
|
3824 |
}
|
| 3738 |
first = false;
|
3825 |
first = false;
|
| - |
|
3826 |
if (!first) sb.append(", ");
|
| - |
|
3827 |
sb.append("sourceId:");
|
| - |
|
3828 |
sb.append(this.sourceId);
|
| - |
|
3829 |
first = false;
|
| 3739 |
sb.append(")");
|
3830 |
sb.append(")");
|
| 3740 |
return sb.toString();
|
3831 |
return sb.toString();
|
| 3741 |
}
|
3832 |
}
|
| 3742 |
|
3833 |
|
| 3743 |
public void validate() throws org.apache.thrift.TException {
|
3834 |
public void validate() throws org.apache.thrift.TException {
|
| Line 5044... |
Line 5135... |
| 5044 |
}
|
5135 |
}
|
| 5045 |
}
|
5136 |
}
|
| 5046 |
|
5137 |
|
| 5047 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
5138 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| 5048 |
try {
|
5139 |
try {
|
| - |
|
5140 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
| - |
|
5141 |
__isset_bit_vector = new BitSet(1);
|
| 5049 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
5142 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| 5050 |
} catch (org.apache.thrift.TException te) {
|
5143 |
} catch (org.apache.thrift.TException te) {
|
| 5051 |
throw new java.io.IOException(te);
|
5144 |
throw new java.io.IOException(te);
|
| 5052 |
}
|
5145 |
}
|
| 5053 |
}
|
5146 |
}
|