package com.qianwen.smartman.modules.notify.dto;
|
|
import io.swagger.annotations.ApiModelProperty;
|
import java.io.Serializable;
|
import java.util.Map;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/notify/dto/NotifySubscriberDTO.class */
|
public class NotifySubscriberDTO implements Serializable {
|
private String id;
|
@ApiModelProperty("订阅者ID")
|
private String subscriber;
|
@ApiModelProperty("主题提供商标识,如:device_alarm")
|
private String businessKey;
|
@ApiModelProperty("订阅名称")
|
private String businessName;
|
@ApiModelProperty("订阅配置,根据主题标识不同而不同.")
|
private Map<String, Object> topicConfig;
|
@ApiModelProperty("描述说明")
|
private String description;
|
@ApiModelProperty("通知主题订阅,status: 1.订阅中,2.停止")
|
private Integer status;
|
|
public NotifySubscriberDTO setId(final String id) {
|
this.id = id;
|
return this;
|
}
|
|
public NotifySubscriberDTO setSubscriber(final String subscriber) {
|
this.subscriber = subscriber;
|
return this;
|
}
|
|
public NotifySubscriberDTO setBusinessKey(final String businessKey) {
|
this.businessKey = businessKey;
|
return this;
|
}
|
|
public NotifySubscriberDTO setBusinessName(final String businessName) {
|
this.businessName = businessName;
|
return this;
|
}
|
|
public NotifySubscriberDTO setTopicConfig(final Map<String, Object> topicConfig) {
|
this.topicConfig = topicConfig;
|
return this;
|
}
|
|
public NotifySubscriberDTO setDescription(final String description) {
|
this.description = description;
|
return this;
|
}
|
|
public NotifySubscriberDTO setStatus(final Integer status) {
|
this.status = status;
|
return this;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof NotifySubscriberDTO) {
|
NotifySubscriberDTO other = (NotifySubscriberDTO) o;
|
if (other.canEqual(this)) {
|
Object this$status = getStatus();
|
Object other$status = other.getStatus();
|
if (this$status == null) {
|
if (other$status != null) {
|
return false;
|
}
|
} else if (!this$status.equals(other$status)) {
|
return false;
|
}
|
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$subscriber = getSubscriber();
|
Object other$subscriber = other.getSubscriber();
|
if (this$subscriber == null) {
|
if (other$subscriber != null) {
|
return false;
|
}
|
} else if (!this$subscriber.equals(other$subscriber)) {
|
return false;
|
}
|
Object this$businessKey = getBusinessKey();
|
Object other$businessKey = other.getBusinessKey();
|
if (this$businessKey == null) {
|
if (other$businessKey != null) {
|
return false;
|
}
|
} else if (!this$businessKey.equals(other$businessKey)) {
|
return false;
|
}
|
Object this$businessName = getBusinessName();
|
Object other$businessName = other.getBusinessName();
|
if (this$businessName == null) {
|
if (other$businessName != null) {
|
return false;
|
}
|
} else if (!this$businessName.equals(other$businessName)) {
|
return false;
|
}
|
Object this$topicConfig = getTopicConfig();
|
Object other$topicConfig = other.getTopicConfig();
|
if (this$topicConfig == null) {
|
if (other$topicConfig != null) {
|
return false;
|
}
|
} else if (!this$topicConfig.equals(other$topicConfig)) {
|
return false;
|
}
|
Object this$description = getDescription();
|
Object other$description = other.getDescription();
|
return this$description == null ? other$description == null : this$description.equals(other$description);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof NotifySubscriberDTO;
|
}
|
|
public int hashCode() {
|
Object $status = getStatus();
|
int result = (1 * 59) + ($status == null ? 43 : $status.hashCode());
|
Object $id = getId();
|
int result2 = (result * 59) + ($id == null ? 43 : $id.hashCode());
|
Object $subscriber = getSubscriber();
|
int result3 = (result2 * 59) + ($subscriber == null ? 43 : $subscriber.hashCode());
|
Object $businessKey = getBusinessKey();
|
int result4 = (result3 * 59) + ($businessKey == null ? 43 : $businessKey.hashCode());
|
Object $businessName = getBusinessName();
|
int result5 = (result4 * 59) + ($businessName == null ? 43 : $businessName.hashCode());
|
Object $topicConfig = getTopicConfig();
|
int result6 = (result5 * 59) + ($topicConfig == null ? 43 : $topicConfig.hashCode());
|
Object $description = getDescription();
|
return (result6 * 59) + ($description == null ? 43 : $description.hashCode());
|
}
|
|
public String toString() {
|
return "NotifySubscriberDTO(id=" + getId() + ", subscriber=" + getSubscriber() + ", businessKey=" + getBusinessKey() + ", businessName=" + getBusinessName() + ", topicConfig=" + getTopicConfig() + ", description=" + getDescription() + ", status=" + getStatus() + ")";
|
}
|
|
public String getId() {
|
return this.id;
|
}
|
|
public String getSubscriber() {
|
return this.subscriber;
|
}
|
|
public String getBusinessKey() {
|
return this.businessKey;
|
}
|
|
public String getBusinessName() {
|
return this.businessName;
|
}
|
|
public Map<String, Object> getTopicConfig() {
|
return this.topicConfig;
|
}
|
|
public String getDescription() {
|
return this.description;
|
}
|
|
public Integer getStatus() {
|
return this.status;
|
}
|
}
|