package com.qianwen.core.notify.provider.internal.message;
|
|
import java.util.List;
|
import com.qianwen.core.notify.template.Template;
|
|
/* loaded from: blade-starter-notify-9.3.0.0-SNAPSHOT.jar:org/springblade/core/notify/provider/internal/message/DefaultInternalMessageTemplate.class */
|
public class DefaultInternalMessageTemplate implements Template {
|
private String subject;
|
private String content;
|
private List<Attachment> attachments;
|
|
public void setSubject(final String subject) {
|
this.subject = subject;
|
}
|
|
public void setContent(final String content) {
|
this.content = content;
|
}
|
|
public void setAttachments(final List<Attachment> attachments) {
|
this.attachments = attachments;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof DefaultInternalMessageTemplate) {
|
DefaultInternalMessageTemplate other = (DefaultInternalMessageTemplate) 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 DefaultInternalMessageTemplate;
|
}
|
|
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 "DefaultInternalMessageTemplate(subject=" + getSubject() + ", content=" + getContent() + ", attachments=" + getAttachments() + ")";
|
}
|
|
public String getSubject() {
|
return this.subject;
|
}
|
|
public String getContent() {
|
return this.content;
|
}
|
|
public List<Attachment> getAttachments() {
|
return this.attachments;
|
}
|
|
/* loaded from: blade-starter-notify-9.3.0.0-SNAPSHOT.jar:org/springblade/core/notify/provider/internal/message/DefaultInternalMessageTemplate$Attachment.class */
|
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;
|
}
|
}
|
}
|