ZCH-18 添加 ActionsSummary 对象,并重构 Topic 对象

This commit is contained in:
YuCheng Hu 2023-10-04 08:17:09 -04:00
parent ea9e13e304
commit dc223754fc
2 changed files with 150 additions and 0 deletions

View File

@ -0,0 +1,50 @@
package com.ossez.discourse.common.model.dto;
import java.io.Serializable;
/**
* actions_summary JSON Objet
*
* @author YuCheng
*/
public class ActionsSummary implements Serializable {
private static final long serialVersionUID = 6968673707557955512L;
private Long id;
private Integer count;
private Boolean hidden;
private Boolean canAct;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public Boolean getHidden() {
return hidden;
}
public void setHidden(Boolean hidden) {
this.hidden = hidden;
}
public Boolean getCanAct() {
return canAct;
}
public void setCanAct(Boolean canAct) {
this.canAct = canAct;
}
}

View File

@ -44,6 +44,18 @@ public class Topic {
private Integer highestPostNumber; private Integer highestPostNumber;
private String deletedBy; private String deletedBy;
private Boolean hasDeleted; private Boolean hasDeleted;
private List<ActionsSummary> actionsSummary;
private Integer chunkSize;
private Boolean bookmarked;
private String bookmarks;
private String topicTimer;
private Long messageBus_LastId;
private Integer participantCount;
private Boolean showReadIndicator;
private String thumbnails;
private String slowModeEnabledUUntil;
private Boolean summarizable;
public PostStream getPostStream() { public PostStream getPostStream() {
return postStream; return postStream;
@ -332,6 +344,94 @@ public class Topic {
public void setHasDeleted(Boolean hasDeleted) { public void setHasDeleted(Boolean hasDeleted) {
this.hasDeleted = hasDeleted; this.hasDeleted = hasDeleted;
} }
public List<ActionsSummary> getActionsSummary() {
return actionsSummary;
}
public void setActionsSummary(List<ActionsSummary> actionsSummary) {
this.actionsSummary = actionsSummary;
}
public Integer getChunkSize() {
return chunkSize;
}
public void setChunkSize(Integer chunkSize) {
this.chunkSize = chunkSize;
}
public Boolean getBookmarked() {
return bookmarked;
}
public void setBookmarked(Boolean bookmarked) {
this.bookmarked = bookmarked;
}
public String getBookmarks() {
return bookmarks;
}
public void setBookmarks(String bookmarks) {
this.bookmarks = bookmarks;
}
public String getTopicTimer() {
return topicTimer;
}
public void setTopicTimer(String topicTimer) {
this.topicTimer = topicTimer;
}
public Long getMessageBus_LastId() {
return messageBus_LastId;
}
public void setMessageBus_LastId(Long messageBus_LastId) {
this.messageBus_LastId = messageBus_LastId;
}
public Integer getParticipantCount() {
return participantCount;
}
public void setParticipantCount(Integer participantCount) {
this.participantCount = participantCount;
}
public Boolean getShowReadIndicator() {
return showReadIndicator;
}
public void setShowReadIndicator(Boolean showReadIndicator) {
this.showReadIndicator = showReadIndicator;
}
public String getThumbnails() {
return thumbnails;
}
public void setThumbnails(String thumbnails) {
this.thumbnails = thumbnails;
}
public String getSlowModeEnabledUUntil() {
return slowModeEnabledUUntil;
}
public void setSlowModeEnabledUUntil(String slowModeEnabledUUntil) {
this.slowModeEnabledUUntil = slowModeEnabledUUntil;
}
public Boolean getSummarizable() {
return summarizable;
}
public void setSummarizable(Boolean summarizable) {
this.summarizable = summarizable;
}
} }