package com.qianwen.smartman.modules.notify.vo;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.Size;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/notify/vo/NoticeAddVO.class */
|
public class NoticeAddVO {
|
@NotBlank(message = "{notify.notice.title.can.not.be.empty}")
|
@Size(max = 100, message = "{notify.notice.title.length.too.long}")
|
String title;
|
@NotNull(message = "{notify.notice.category.can.not.be.empty}")
|
Integer category;
|
@NotBlank(message = "{notify.notice.content.can.not.be.empty}")
|
String content;
|
|
public void setTitle(final String title) {
|
this.title = title;
|
}
|
|
public void setCategory(final Integer category) {
|
this.category = category;
|
}
|
|
public void setContent(final String content) {
|
this.content = content;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof NoticeAddVO) {
|
NoticeAddVO other = (NoticeAddVO) o;
|
if (other.canEqual(this)) {
|
Object this$category = getCategory();
|
Object other$category = other.getCategory();
|
if (this$category == null) {
|
if (other$category != null) {
|
return false;
|
}
|
} else if (!this$category.equals(other$category)) {
|
return false;
|
}
|
Object this$title = getTitle();
|
Object other$title = other.getTitle();
|
if (this$title == null) {
|
if (other$title != null) {
|
return false;
|
}
|
} else if (!this$title.equals(other$title)) {
|
return false;
|
}
|
Object this$content = getContent();
|
Object other$content = other.getContent();
|
return this$content == null ? other$content == null : this$content.equals(other$content);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof NoticeAddVO;
|
}
|
|
public int hashCode() {
|
Object $category = getCategory();
|
int result = (1 * 59) + ($category == null ? 43 : $category.hashCode());
|
Object $title = getTitle();
|
int result2 = (result * 59) + ($title == null ? 43 : $title.hashCode());
|
Object $content = getContent();
|
return (result2 * 59) + ($content == null ? 43 : $content.hashCode());
|
}
|
|
public String toString() {
|
return "NoticeAddVO(title=" + getTitle() + ", category=" + getCategory() + ", content=" + getContent() + ")";
|
}
|
|
public String getTitle() {
|
return this.title;
|
}
|
|
public Integer getCategory() {
|
return this.category;
|
}
|
|
public String getContent() {
|
return this.content;
|
}
|
}
|