package com.qianwen.core.notify.provider.email.embedded; import java.util.List; import com.qianwen.core.notify.template.Template; public class EmailTemplate implements Template { private String subject; private String content; private List attachments; public void setSubject(final String subject) { this.subject = subject; } public void setContent(final String content) { this.content = content; } public void setAttachments(final List attachments) { this.attachments = attachments; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof EmailTemplate) { EmailTemplate other = (EmailTemplate) o; if (other.canEqual(this)) { Object this$subject = getSubject(); Object other$subject = other.getSubject(); if (this$subject == null) { if (other$subject != null) { return false; } } else if (!this$subject.equals(other$subject)) { return false; } Object this$content = getContent(); Object other$content = other.getContent(); if (this$content == null) { if (other$content != null) { return false; } } else if (!this$content.equals(other$content)) { return false; } Object this$attachments = getAttachments(); Object other$attachments = other.getAttachments(); return this$attachments == null ? other$attachments == null : this$attachments.equals(other$attachments); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof EmailTemplate; } public int hashCode() { Object $subject = getSubject(); int result = (1 * 59) + ($subject == null ? 43 : $subject.hashCode()); Object $content = getContent(); int result2 = (result * 59) + ($content == null ? 43 : $content.hashCode()); Object $attachments = getAttachments(); return (result2 * 59) + ($attachments == null ? 43 : $attachments.hashCode()); } public String toString() { return "EmailTemplate(subject=" + getSubject() + ", content=" + getContent() + ", attachments=" + getAttachments() + ")"; } public String getSubject() { return this.subject; } public String getContent() { return this.content; } public List getAttachments() { return this.attachments; } public static class Attachment { private String name; private String location; public void setName(final String name) { this.name = name; } public void setLocation(final String location) { this.location = location; } public String getName() { return this.name; } public String getLocation() { return this.location; } } }