/**
|
* SubscriberCampaignContent.java
|
*
|
* This file was auto-generated from WSDL
|
* by the Apache Axis 1.4.1-SNAPSHOT Nov 07, 2023 (07:57:58 UTC) WSDL2Java emitter.
|
*/
|
|
package com.gear.common.utils.emailsq.service;
|
|
public class SubscriberCampaignContent implements java.io.Serializable {
|
private com.gear.common.utils.emailsq.service.EmailEntity[] toEmails;
|
|
private java.lang.String[] categoryNames;
|
|
private java.lang.String subject;
|
|
private java.lang.String content;
|
|
public SubscriberCampaignContent() {
|
}
|
|
public SubscriberCampaignContent(
|
com.gear.common.utils.emailsq.service.EmailEntity[] toEmails,
|
java.lang.String[] categoryNames,
|
java.lang.String subject,
|
java.lang.String content) {
|
this.toEmails = toEmails;
|
this.categoryNames = categoryNames;
|
this.subject = subject;
|
this.content = content;
|
}
|
|
|
/**
|
* Gets the toEmails value for this SubscriberCampaignContent.
|
*
|
* @return toEmails
|
*/
|
public com.gear.common.utils.emailsq.service.EmailEntity[] getToEmails() {
|
return toEmails;
|
}
|
|
|
/**
|
* Sets the toEmails value for this SubscriberCampaignContent.
|
*
|
* @param toEmails
|
*/
|
public void setToEmails(com.gear.common.utils.emailsq.service.EmailEntity[] toEmails) {
|
this.toEmails = toEmails;
|
}
|
|
|
/**
|
* Gets the categoryNames value for this SubscriberCampaignContent.
|
*
|
* @return categoryNames
|
*/
|
public java.lang.String[] getCategoryNames() {
|
return categoryNames;
|
}
|
|
|
/**
|
* Sets the categoryNames value for this SubscriberCampaignContent.
|
*
|
* @param categoryNames
|
*/
|
public void setCategoryNames(java.lang.String[] categoryNames) {
|
this.categoryNames = categoryNames;
|
}
|
|
|
/**
|
* Gets the subject value for this SubscriberCampaignContent.
|
*
|
* @return subject
|
*/
|
public java.lang.String getSubject() {
|
return subject;
|
}
|
|
|
/**
|
* Sets the subject value for this SubscriberCampaignContent.
|
*
|
* @param subject
|
*/
|
public void setSubject(java.lang.String subject) {
|
this.subject = subject;
|
}
|
|
|
/**
|
* Gets the content value for this SubscriberCampaignContent.
|
*
|
* @return content
|
*/
|
public java.lang.String getContent() {
|
return content;
|
}
|
|
|
/**
|
* Sets the content value for this SubscriberCampaignContent.
|
*
|
* @param content
|
*/
|
public void setContent(java.lang.String content) {
|
this.content = content;
|
}
|
|
private java.lang.Object __equalsCalc = null;
|
public synchronized boolean equals(java.lang.Object obj) {
|
if (!(obj instanceof SubscriberCampaignContent)) return false;
|
SubscriberCampaignContent other = (SubscriberCampaignContent) obj;
|
if (this == obj) return true;
|
if (__equalsCalc != null) {
|
return (__equalsCalc == obj);
|
}
|
__equalsCalc = obj;
|
boolean _equals;
|
_equals = true &&
|
((this.toEmails==null && other.getToEmails()==null) ||
|
(this.toEmails!=null &&
|
java.util.Arrays.equals(this.toEmails, other.getToEmails()))) &&
|
((this.categoryNames==null && other.getCategoryNames()==null) ||
|
(this.categoryNames!=null &&
|
java.util.Arrays.equals(this.categoryNames, other.getCategoryNames()))) &&
|
((this.subject==null && other.getSubject()==null) ||
|
(this.subject!=null &&
|
this.subject.equals(other.getSubject()))) &&
|
((this.content==null && other.getContent()==null) ||
|
(this.content!=null &&
|
this.content.equals(other.getContent())));
|
__equalsCalc = null;
|
return _equals;
|
}
|
|
private boolean __hashCodeCalc = false;
|
public synchronized int hashCode() {
|
if (__hashCodeCalc) {
|
return 0;
|
}
|
__hashCodeCalc = true;
|
int _hashCode = 1;
|
if (getToEmails() != null) {
|
for (int i=0;
|
i<java.lang.reflect.Array.getLength(getToEmails());
|
i++) {
|
java.lang.Object obj = java.lang.reflect.Array.get(getToEmails(), i);
|
if (obj != null &&
|
!obj.getClass().isArray()) {
|
_hashCode += obj.hashCode();
|
}
|
}
|
}
|
if (getCategoryNames() != null) {
|
for (int i=0;
|
i<java.lang.reflect.Array.getLength(getCategoryNames());
|
i++) {
|
java.lang.Object obj = java.lang.reflect.Array.get(getCategoryNames(), i);
|
if (obj != null &&
|
!obj.getClass().isArray()) {
|
_hashCode += obj.hashCode();
|
}
|
}
|
}
|
if (getSubject() != null) {
|
_hashCode += getSubject().hashCode();
|
}
|
if (getContent() != null) {
|
_hashCode += getContent().hashCode();
|
}
|
__hashCodeCalc = false;
|
return _hashCode;
|
}
|
|
// Type metadata
|
private static org.apache.axis.description.TypeDesc typeDesc =
|
new org.apache.axis.description.TypeDesc(SubscriberCampaignContent.class, true);
|
|
static {
|
typeDesc.setXmlType(new javax.xml.namespace.QName("http://service.reasonablespread.com/", "SubscriberCampaignContent"));
|
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
elemField.setFieldName("toEmails");
|
elemField.setXmlName(new javax.xml.namespace.QName("http://service.reasonablespread.com/", "ToEmails"));
|
elemField.setXmlType(new javax.xml.namespace.QName("http://service.reasonablespread.com/", "EmailEntity"));
|
elemField.setMinOccurs(0);
|
elemField.setNillable(false);
|
elemField.setItemQName(new javax.xml.namespace.QName("http://service.reasonablespread.com/", "EmailEntity"));
|
typeDesc.addFieldDesc(elemField);
|
elemField = new org.apache.axis.description.ElementDesc();
|
elemField.setFieldName("categoryNames");
|
elemField.setXmlName(new javax.xml.namespace.QName("http://service.reasonablespread.com/", "CategoryNames"));
|
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
elemField.setMinOccurs(0);
|
elemField.setNillable(false);
|
elemField.setItemQName(new javax.xml.namespace.QName("http://service.reasonablespread.com/", "string"));
|
typeDesc.addFieldDesc(elemField);
|
elemField = new org.apache.axis.description.ElementDesc();
|
elemField.setFieldName("subject");
|
elemField.setXmlName(new javax.xml.namespace.QName("http://service.reasonablespread.com/", "Subject"));
|
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
elemField.setMinOccurs(0);
|
elemField.setNillable(false);
|
typeDesc.addFieldDesc(elemField);
|
elemField = new org.apache.axis.description.ElementDesc();
|
elemField.setFieldName("content");
|
elemField.setXmlName(new javax.xml.namespace.QName("http://service.reasonablespread.com/", "Content"));
|
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
elemField.setMinOccurs(0);
|
elemField.setNillable(false);
|
typeDesc.addFieldDesc(elemField);
|
}
|
|
/**
|
* Return type metadata object
|
*/
|
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
return typeDesc;
|
}
|
|
/**
|
* Get Custom Serializer
|
*/
|
public static org.apache.axis.encoding.Serializer getSerializer(
|
java.lang.String mechType,
|
java.lang.Class _javaType,
|
javax.xml.namespace.QName _xmlType) {
|
return
|
new org.apache.axis.encoding.ser.BeanSerializer(
|
_javaType, _xmlType, typeDesc);
|
}
|
|
/**
|
* Get Custom Deserializer
|
*/
|
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
java.lang.String mechType,
|
java.lang.Class _javaType,
|
javax.xml.namespace.QName _xmlType) {
|
return
|
new org.apache.axis.encoding.ser.BeanDeserializer(
|
_javaType, _xmlType, typeDesc);
|
}
|
|
}
|