package com.qianwen.core.notify.external;
|
|
import java.util.Map;
|
|
/* loaded from: blade-starter-notify-9.3.0.0-SNAPSHOT.jar:org/springblade/core/notify/external/MessagingRequest.class */
|
public class MessagingRequest {
|
private String id;
|
private Type type;
|
private String topic;
|
private Map<String, Object> parameter;
|
|
/* loaded from: blade-starter-notify-9.3.0.0-SNAPSHOT.jar:org/springblade/core/notify/external/MessagingRequest$Type.class */
|
public enum Type {
|
pub,
|
sub,
|
unsub,
|
ping
|
}
|
|
public void setId(final String id) {
|
this.id = id;
|
}
|
|
public void setType(final Type type) {
|
this.type = type;
|
}
|
|
public void setTopic(final String topic) {
|
this.topic = topic;
|
}
|
|
public void setParameter(final Map<String, Object> parameter) {
|
this.parameter = parameter;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof MessagingRequest) {
|
MessagingRequest other = (MessagingRequest) o;
|
if (other.canEqual(this)) {
|
Object this$id = getId();
|
Object other$id = other.getId();
|
if (this$id == null) {
|
if (other$id != null) {
|
return false;
|
}
|
} else if (!this$id.equals(other$id)) {
|
return false;
|
}
|
Object this$type = getType();
|
Object other$type = other.getType();
|
if (this$type == null) {
|
if (other$type != null) {
|
return false;
|
}
|
} else if (!this$type.equals(other$type)) {
|
return false;
|
}
|
Object this$topic = getTopic();
|
Object other$topic = other.getTopic();
|
if (this$topic == null) {
|
if (other$topic != null) {
|
return false;
|
}
|
} else if (!this$topic.equals(other$topic)) {
|
return false;
|
}
|
Object this$parameter = getParameter();
|
Object other$parameter = other.getParameter();
|
return this$parameter == null ? other$parameter == null : this$parameter.equals(other$parameter);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof MessagingRequest;
|
}
|
|
public int hashCode() {
|
Object $id = getId();
|
int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
|
Object $type = getType();
|
int result2 = (result * 59) + ($type == null ? 43 : $type.hashCode());
|
Object $topic = getTopic();
|
int result3 = (result2 * 59) + ($topic == null ? 43 : $topic.hashCode());
|
Object $parameter = getParameter();
|
return (result3 * 59) + ($parameter == null ? 43 : $parameter.hashCode());
|
}
|
|
public String toString() {
|
return "MessagingRequest(id=" + getId() + ", type=" + getType() + ", topic=" + getTopic() + ", parameter=" + getParameter() + ")";
|
}
|
|
public String getId() {
|
return this.id;
|
}
|
|
public Type getType() {
|
return this.type;
|
}
|
|
public String getTopic() {
|
return this.topic;
|
}
|
|
public Map<String, Object> getParameter() {
|
return this.parameter;
|
}
|
}
|