MailInfo.java 2.25 KB
package cn.com.glsx.stdinterface.modules.model;

import java.io.File;
import java.util.List;

/**
 * 邮件实体类
 *
 * @author yll
 */
public class MailInfo {

    /**
     * 发送人
     */
    private String fromUser;

    /**
     * 接收人
     */
    private String toUser;

    /**
     * 主题
     */
    private String subject;


    /**
     * 抄送人
     */
    private List<String> ccUsers;

    /**
     * 附件
     */
    private List<File> attachList;

    /**
     * 邮件内容
     */
    private String content;

    /**
     * 编码格式
     */
    private String charset = "utf-8";

    public String getFromUser() {
        return fromUser;
    }

    public MailInfo setFromUser(String fromUser) {
        this.fromUser = fromUser;
        return this;
    }

    public String getToUser() {
        return toUser;
    }

    public MailInfo setToUser(String toUser) {
        this.toUser = toUser;
        return this;
    }

    public String getSubject() {
        return subject;
    }

    public MailInfo setSubject(String subject) {
        this.subject = subject;
        return this;
    }

    public List<String> getCcUsers() {
        return ccUsers;
    }

    public MailInfo setCcUsers(List<String> ccUsers) {
        this.ccUsers = ccUsers;
        return this;
    }

    public List<File> getAttachList() {
        return attachList;
    }

    public MailInfo setAttachList(List<File> attachList) {
        this.attachList = attachList;
        return this;
    }

    public String getContent() {
        return content;
    }

    public MailInfo setContent(String content) {
        this.content = content;
        return this;
    }

    public String getCharset() {
        return charset;
    }

    public MailInfo setCharset(String charset) {
        this.charset = charset;
        return this;
    }

    @Override
    public String toString() {
        return "MailInfo{" +
                ", fromUser='" + fromUser + '\'' +
                ", toUser='" + toUser + '\'' +
                ", subject='" + subject + '\'' +
                ", ccUsers=" + ccUsers +
                ", attachList=" + attachList +
                ", content='" + content + '\'' +
                ", charset='" + charset + '\'' +
                '}';
    }
}