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 users) { this.touser = StringUtil.join(users, "|"); new JSONObject(); return this; } public WeixinQyTextQuery setContent(String content) { this.text.put("content", content); return this; } }