package com.qianwen.core.notify.provider.email.embedded;
|
|
import java.util.Map;
|
|
/* loaded from: blade-starter-notify-9.3.0.0-SNAPSHOT.jar:org/springblade/core/notify/provider/email/embedded/ParsedEmailTemplate.class */
|
public class ParsedEmailTemplate {
|
private String subject;
|
private String content;
|
private Map<String, String> attachments;
|
private Map<String, String> images;
|
|
/* loaded from: blade-starter-notify-9.3.0.0-SNAPSHOT.jar:org/springblade/core/notify/provider/email/embedded/ParsedEmailTemplate$ParsedEmailTemplateBuilder.class */
|
public static class ParsedEmailTemplateBuilder {
|
private String subject;
|
private String content;
|
private Map<String, String> attachments;
|
private Map<String, String> images;
|
|
ParsedEmailTemplateBuilder() {
|
}
|
|
public ParsedEmailTemplateBuilder subject(final String subject) {
|
this.subject = subject;
|
return this;
|
}
|
|
public ParsedEmailTemplateBuilder content(final String content) {
|
this.content = content;
|
return this;
|
}
|
|
public ParsedEmailTemplateBuilder attachments(final Map<String, String> attachments) {
|
this.attachments = attachments;
|
return this;
|
}
|
|
public ParsedEmailTemplateBuilder images(final Map<String, String> images) {
|
this.images = images;
|
return this;
|
}
|
|
public ParsedEmailTemplate build() {
|
return new ParsedEmailTemplate(this.subject, this.content, this.attachments, this.images);
|
}
|
|
public String toString() {
|
return "ParsedEmailTemplate.ParsedEmailTemplateBuilder(subject=" + this.subject + ", content=" + this.content + ", attachments=" + this.attachments + ", images=" + this.images + ")";
|
}
|
}
|
|
public static ParsedEmailTemplateBuilder builder() {
|
return new ParsedEmailTemplateBuilder();
|
}
|
|
public ParsedEmailTemplate(final String subject, final String content, final Map<String, String> attachments, final Map<String, String> images) {
|
this.subject = subject;
|
this.content = content;
|
this.attachments = attachments;
|
this.images = images;
|
}
|
|
public ParsedEmailTemplate() {
|
}
|
|
public void setSubject(final String subject) {
|
this.subject = subject;
|
}
|
|
public void setContent(final String content) {
|
this.content = content;
|
}
|
|
public void setAttachments(final Map<String, String> attachments) {
|
this.attachments = attachments;
|
}
|
|
public void setImages(final Map<String, String> images) {
|
this.images = images;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof ParsedEmailTemplate) {
|
ParsedEmailTemplate other = (ParsedEmailTemplate) 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();
|
if (this$attachments == null) {
|
if (other$attachments != null) {
|
return false;
|
}
|
} else if (!this$attachments.equals(other$attachments)) {
|
return false;
|
}
|
Object this$images = getImages();
|
Object other$images = other.getImages();
|
return this$images == null ? other$images == null : this$images.equals(other$images);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof ParsedEmailTemplate;
|
}
|
|
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();
|
int result3 = (result2 * 59) + ($attachments == null ? 43 : $attachments.hashCode());
|
Object $images = getImages();
|
return (result3 * 59) + ($images == null ? 43 : $images.hashCode());
|
}
|
|
public String toString() {
|
return "ParsedEmailTemplate(subject=" + getSubject() + ", content=" + getContent() + ", attachments=" + getAttachments() + ", images=" + getImages() + ")";
|
}
|
|
public String getSubject() {
|
return this.subject;
|
}
|
|
public String getContent() {
|
return this.content;
|
}
|
|
public Map<String, String> getAttachments() {
|
return this.attachments;
|
}
|
|
public Map<String, String> getImages() {
|
return this.images;
|
}
|
}
|