yangys
2024-04-18 b3cbbc1b1bf540359ac22f8733f6c322d845b38f
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
package com.qianwen.core.notify.provider.wechat.qy.entity;
 
import com.alibaba.fastjson.JSONObject;
import java.util.List;
import com.qianwen.core.tool.utils.StringUtil;
 
/* loaded from: blade-starter-notify-9.3.0.0-SNAPSHOT.jar:org/springblade/core/notify/provider/wechat/qy/entity/WeixinQyTextQuery.class */
public class WeixinQyTextQuery {
    private String touser;
    private String toparty;
    private String totag;
    private Integer agentid;
    private Integer duplicate_check_interval;
    private String msgtype = "text";
    private JSONObject text = new JSONObject();
    private Integer safe = 0;
    private Integer enable_id_trans = 0;
    private Integer enable_duplicate_check = 0;
 
    public WeixinQyTextQuery setToparty(final String toparty) {
        this.toparty = toparty;
        return this;
    }
 
    public WeixinQyTextQuery setTotag(final String totag) {
        this.totag = totag;
        return this;
    }
 
    public WeixinQyTextQuery setMsgtype(final String msgtype) {
        this.msgtype = msgtype;
        return this;
    }
 
    public WeixinQyTextQuery setAgentid(final Integer agentid) {
        this.agentid = agentid;
        return this;
    }
 
    public WeixinQyTextQuery setText(final JSONObject text) {
        this.text = text;
        return this;
    }
 
    public WeixinQyTextQuery setSafe(final Integer safe) {
        this.safe = safe;
        return this;
    }
 
    public WeixinQyTextQuery setEnable_id_trans(final Integer enable_id_trans) {
        this.enable_id_trans = enable_id_trans;
        return this;
    }
 
    public WeixinQyTextQuery setEnable_duplicate_check(final Integer enable_duplicate_check) {
        this.enable_duplicate_check = enable_duplicate_check;
        return this;
    }
 
    public WeixinQyTextQuery setDuplicate_check_interval(final Integer duplicate_check_interval) {
        this.duplicate_check_interval = duplicate_check_interval;
        return this;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof WeixinQyTextQuery) {
            WeixinQyTextQuery other = (WeixinQyTextQuery) o;
            if (other.canEqual(this)) {
                Object this$agentid = getAgentid();
                Object other$agentid = other.getAgentid();
                if (this$agentid == null) {
                    if (other$agentid != null) {
                        return false;
                    }
                } else if (!this$agentid.equals(other$agentid)) {
                    return false;
                }
                Object this$safe = getSafe();
                Object other$safe = other.getSafe();
                if (this$safe == null) {
                    if (other$safe != null) {
                        return false;
                    }
                } else if (!this$safe.equals(other$safe)) {
                    return false;
                }
                Object this$enable_id_trans = getEnable_id_trans();
                Object other$enable_id_trans = other.getEnable_id_trans();
                if (this$enable_id_trans == null) {
                    if (other$enable_id_trans != null) {
                        return false;
                    }
                } else if (!this$enable_id_trans.equals(other$enable_id_trans)) {
                    return false;
                }
                Object this$enable_duplicate_check = getEnable_duplicate_check();
                Object other$enable_duplicate_check = other.getEnable_duplicate_check();
                if (this$enable_duplicate_check == null) {
                    if (other$enable_duplicate_check != null) {
                        return false;
                    }
                } else if (!this$enable_duplicate_check.equals(other$enable_duplicate_check)) {
                    return false;
                }
                Object this$duplicate_check_interval = getDuplicate_check_interval();
                Object other$duplicate_check_interval = other.getDuplicate_check_interval();
                if (this$duplicate_check_interval == null) {
                    if (other$duplicate_check_interval != null) {
                        return false;
                    }
                } else if (!this$duplicate_check_interval.equals(other$duplicate_check_interval)) {
                    return false;
                }
                Object this$touser = getTouser();
                Object other$touser = other.getTouser();
                if (this$touser == null) {
                    if (other$touser != null) {
                        return false;
                    }
                } else if (!this$touser.equals(other$touser)) {
                    return false;
                }
                Object this$toparty = getToparty();
                Object other$toparty = other.getToparty();
                if (this$toparty == null) {
                    if (other$toparty != null) {
                        return false;
                    }
                } else if (!this$toparty.equals(other$toparty)) {
                    return false;
                }
                Object this$totag = getTotag();
                Object other$totag = other.getTotag();
                if (this$totag == null) {
                    if (other$totag != null) {
                        return false;
                    }
                } else if (!this$totag.equals(other$totag)) {
                    return false;
                }
                Object this$msgtype = getMsgtype();
                Object other$msgtype = other.getMsgtype();
                if (this$msgtype == null) {
                    if (other$msgtype != null) {
                        return false;
                    }
                } else if (!this$msgtype.equals(other$msgtype)) {
                    return false;
                }
                Object this$text = getText();
                Object other$text = other.getText();
                return this$text == null ? other$text == null : this$text.equals(other$text);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof WeixinQyTextQuery;
    }
 
    public int hashCode() {
        Object $agentid = getAgentid();
        int result = (1 * 59) + ($agentid == null ? 43 : $agentid.hashCode());
        Object $safe = getSafe();
        int result2 = (result * 59) + ($safe == null ? 43 : $safe.hashCode());
        Object $enable_id_trans = getEnable_id_trans();
        int result3 = (result2 * 59) + ($enable_id_trans == null ? 43 : $enable_id_trans.hashCode());
        Object $enable_duplicate_check = getEnable_duplicate_check();
        int result4 = (result3 * 59) + ($enable_duplicate_check == null ? 43 : $enable_duplicate_check.hashCode());
        Object $duplicate_check_interval = getDuplicate_check_interval();
        int result5 = (result4 * 59) + ($duplicate_check_interval == null ? 43 : $duplicate_check_interval.hashCode());
        Object $touser = getTouser();
        int result6 = (result5 * 59) + ($touser == null ? 43 : $touser.hashCode());
        Object $toparty = getToparty();
        int result7 = (result6 * 59) + ($toparty == null ? 43 : $toparty.hashCode());
        Object $totag = getTotag();
        int result8 = (result7 * 59) + ($totag == null ? 43 : $totag.hashCode());
        Object $msgtype = getMsgtype();
        int result9 = (result8 * 59) + ($msgtype == null ? 43 : $msgtype.hashCode());
        Object $text = getText();
        return (result9 * 59) + ($text == null ? 43 : $text.hashCode());
    }
 
    public String toString() {
        return "WeixinQyTextQuery(touser=" + getTouser() + ", toparty=" + getToparty() + ", totag=" + getTotag() + ", msgtype=" + getMsgtype() + ", agentid=" + getAgentid() + ", text=" + getText() + ", safe=" + getSafe() + ", enable_id_trans=" + getEnable_id_trans() + ", enable_duplicate_check=" + getEnable_duplicate_check() + ", duplicate_check_interval=" + getDuplicate_check_interval() + ")";
    }
 
    public String getTouser() {
        return this.touser;
    }
 
    public String getToparty() {
        return this.toparty;
    }
 
    public String getTotag() {
        return this.totag;
    }
 
    public String getMsgtype() {
        return this.msgtype;
    }
 
    public Integer getAgentid() {
        return this.agentid;
    }
 
    public JSONObject getText() {
        return this.text;
    }
 
    public Integer getSafe() {
        return this.safe;
    }
 
    public Integer getEnable_id_trans() {
        return this.enable_id_trans;
    }
 
    public Integer getEnable_duplicate_check() {
        return this.enable_duplicate_check;
    }
 
    public Integer getDuplicate_check_interval() {
        return this.duplicate_check_interval;
    }
 
    public WeixinQyTextQuery setTouser(List<String> users) {
        this.touser = StringUtil.join(users, "|");
        new JSONObject();
        return this;
    }
 
    public WeixinQyTextQuery setContent(String content) {
        this.text.put("content", content);
        return this;
    }
}