org.teamapps.dto.UiChatMessage Maven / Gradle / Ivy
package org.teamapps.dto;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver;
/**
* THIS IS GENERATED CODE!
* PLEASE DO NOT MODIFY - ALL YOUR WORK WOULD BE LOST!
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, property = "_type", defaultImpl = UiChatMessage.class)
public class UiChatMessage implements UiObject {
protected int id;
protected String userImageUrl;
protected String userNickname;
protected String text;
protected List photos;
protected List files;
protected boolean deleted;
public UiChatMessage() {
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_CHAT_MESSAGE;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("id=" + id).append(", ")
.append("userImageUrl=" + userImageUrl).append(", ")
.append("userNickname=" + userNickname).append(", ")
.append("text=" + text).append(", ")
.append("deleted=" + deleted).append(", ")
.append(photos != null ? "photos={" + photos.toString() + "}" : "").append(", ")
.append(files != null ? "files={" + files.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("id")
public int getId() {
return id;
}
@com.fasterxml.jackson.annotation.JsonGetter("userImageUrl")
public String getUserImageUrl() {
return userImageUrl;
}
@com.fasterxml.jackson.annotation.JsonGetter("userNickname")
public String getUserNickname() {
return userNickname;
}
@com.fasterxml.jackson.annotation.JsonGetter("text")
public String getText() {
return text;
}
@com.fasterxml.jackson.annotation.JsonGetter("photos")
public List getPhotos() {
return photos;
}
@com.fasterxml.jackson.annotation.JsonGetter("files")
public List getFiles() {
return files;
}
@com.fasterxml.jackson.annotation.JsonGetter("deleted")
public boolean getDeleted() {
return deleted;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiChatMessage setId(int id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("userImageUrl")
public UiChatMessage setUserImageUrl(String userImageUrl) {
this.userImageUrl = userImageUrl;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("userNickname")
public UiChatMessage setUserNickname(String userNickname) {
this.userNickname = userNickname;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("text")
public UiChatMessage setText(String text) {
this.text = text;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("photos")
public UiChatMessage setPhotos(List photos) {
this.photos = photos;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("files")
public UiChatMessage setFiles(List files) {
this.files = files;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("deleted")
public UiChatMessage setDeleted(boolean deleted) {
this.deleted = deleted;
return this;
}
}