thumbnails now changed to Object

This commit is contained in:
YuCheng Hu 2024-04-17 10:44:56 -04:00
parent 2a3f605b31
commit 2d38e6cdc1
4 changed files with 83 additions and 5 deletions

View File

@ -1,11 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="ossez-repo-snapshots" />
<option name="name" value="OSSEZ Private Snapshots" />
<option name="url" value="https://repo.isharkfly.com/repository/maven-snapshots/" />
</remote-repository>
<remote-repository>
<option name="id" value="ossez-repo-snapshots" />
<option name="name" value="OSSEZ Private Snapshots" />
<option name="url" value="https://repo.ossez.com/repository/maven-snapshots/" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="https://repo.isharkfly.com/repository/maven-public/" />
</remote-repository>
<remote-repository>
<option name="id" value="ossez-repo-releases" />
<option name="name" value="OSSEZ Private Releases" />
@ -26,5 +36,10 @@
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="ossez-repo-releases" />
<option name="name" value="OSSEZ Private Releases" />
<option name="url" value="https://repo.isharkfly.com/repository/maven-releases/" />
</remote-repository>
</component>
</project>

View File

@ -1,4 +1,4 @@
# --- APP ---
api.site.url=https://www.zchub.net/
api.username=******
api.key=*****
api.username=zchub
api.key=a6e6882164f606343bb0a9cde05992f27e73db2cf76c9347b885323a98f8afd3

View File

@ -0,0 +1,63 @@
package com.ossez.discourse.common.model.dto;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import java.io.Serializable;
/**
* PostUpdate Data Object
*
* @author YuCheng Hu
*/
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class Thumbnail implements Serializable {
private static final long serialVersionUID = 6031191663190724895L;
private Long maxWidth;
private Long maxHeight;
private long width;
private long height;
private String url;
public Long getMaxWidth() {
return maxWidth;
}
public void setMaxWidth(Long maxWidth) {
this.maxWidth = maxWidth;
}
public Long getMaxHeight() {
return maxHeight;
}
public void setMaxHeight(Long maxHeight) {
this.maxHeight = maxHeight;
}
public long getWidth() {
return width;
}
public void setWidth(long width) {
this.width = width;
}
public long getHeight() {
return height;
}
public void setHeight(long height) {
this.height = height;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
}

View File

@ -55,7 +55,7 @@ public class Topic {
private Long messageBus_LastId;
private Integer participantCount;
private Boolean showReadIndicator;
private String thumbnails;
private List<Thumbnail> thumbnails;
private String slowModeEnabledUUntil;
private Boolean summarizable;
@ -412,11 +412,11 @@ public class Topic {
this.showReadIndicator = showReadIndicator;
}
public String getThumbnails() {
public List<Thumbnail> getThumbnails() {
return thumbnails;
}
public void setThumbnails(String thumbnails) {
public void setThumbnails(List<Thumbnail> thumbnails) {
this.thumbnails = thumbnails;
}