yangys
2024-05-19 9e5da8899bc21bb5b6b0a3c267108caa00199291
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
package com.qianwen.core.notify.provider.email.embedded;
 
import java.util.Map;
 
public class ParsedEmailTemplate {
    private String subject;
    private String content;
    private Map<String, String> attachments;
    private Map<String, String> images;
 
    
    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;
    }
}