Add support for updated server badge image url formats.

This commit is contained in:
Alex Hart
2021-09-28 16:55:07 -03:00
committed by Greyson Parrelli
parent 6e00920c95
commit 8d0acb277c
32 changed files with 602 additions and 214 deletions

View File

@@ -128,15 +128,30 @@ public class SignalServiceProfile {
@JsonProperty
private String category;
@JsonProperty
private String imageUrl;
@JsonProperty
private String name;
@JsonProperty
private String description;
@JsonProperty
private String ldpi;
@JsonProperty
private String mdpi;
@JsonProperty
private String hdpi;
@JsonProperty
private String xhdpi;
@JsonProperty
private String xxhdpi;
@JsonProperty
private String xxxhdpi;
@JsonProperty
private BigDecimal expiration;
@@ -159,12 +174,32 @@ public class SignalServiceProfile {
return description;
}
public BigDecimal getExpiration() {
return expiration;
public String getLdpiUri() {
return ldpi;
}
public String getImageUrl() {
return imageUrl;
public String getMdpiUri() {
return mdpi;
}
public String getHdpiUri() {
return hdpi;
}
public String getXhdpiUri() {
return xhdpi;
}
public String getXxhdpiUri() {
return xxhdpi;
}
public String getXxxhdpiUri() {
return xxxhdpi;
}
public BigDecimal getExpiration() {
return expiration;
}
public boolean isVisible() {