com.meltmedia.cadmium.email.model.EmailForm Maven / Gradle / Ivy
/**
* Copyright 2012 meltmedia
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.meltmedia.cadmium.email.model;
public class EmailForm {
private String toName;
private String toAddress;
private String fromName;
private String fromAddress;
private String message;
private String pagePath;
private String subject;
public EmailForm() {
this.toName = "";
this.toAddress = "";
this.fromName = "";
this.fromAddress = "";
this.message = "";
this.pagePath = "";
this.subject = "";
}
public EmailForm(String toName, String toAddress, String fromName,
String fromAddress, String message, String pagePath,String subject) {
this.toName = toName;
this.toAddress = toAddress;
this.fromName = fromName;
this.fromAddress = fromAddress;
this.message = message;
this.pagePath = pagePath;
this.subject = subject;
}
public String getToName() {
return toName;
}
public void setToName(String toName) {
this.toName = toName;
}
public String getToAddress() {
return toAddress;
}
public void setToAddress(String toAddress) {
this.toAddress = toAddress;
}
public String getFromName() {
return fromName;
}
public void setFromName(String fromName) {
this.fromName = fromName;
}
public String getFromAddress() {
return fromAddress;
}
public void setFromAddress(String fromAddress) {
this.fromAddress = fromAddress;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getPagePath() {
return pagePath;
}
public void setPagePath(String pagePath) {
this.pagePath = pagePath;
}
public String getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject;
}
@Override
public String toString() {
return "EmailForm [toName=" + toName + ", toAddress=" + toAddress
+ ", fromName=" + fromName + ", fromAddress=" + fromAddress
+ ", message=" + message + ", pagePath=" + pagePath + ", subject="
+ subject + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy