mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 22:48:03 +01:00
Add low and high detail svgs to badges
This commit is contained in:
@@ -20,6 +20,8 @@ public class BadgeConfiguration {
|
||||
private final String xhdpi;
|
||||
private final String xxhdpi;
|
||||
private final String xxxhdpi;
|
||||
private final String lowDetailSvg;
|
||||
private final String highDetailSvg;
|
||||
|
||||
@JsonCreator
|
||||
public BadgeConfiguration(
|
||||
@@ -30,7 +32,9 @@ public class BadgeConfiguration {
|
||||
@JsonProperty("hdpi") final String hdpi,
|
||||
@JsonProperty("xhdpi") final String xhdpi,
|
||||
@JsonProperty("xxhdpi") final String xxhdpi,
|
||||
@JsonProperty("xxxhdpi") final String xxxhdpi) {
|
||||
@JsonProperty("xxxhdpi") final String xxxhdpi,
|
||||
@JsonProperty("lowDetailSvg") final String lowDetailSvg,
|
||||
@JsonProperty("highDetailSvg") final String highDetailSvg) {
|
||||
this.id = id;
|
||||
this.category = category;
|
||||
this.ldpi = ldpi;
|
||||
@@ -39,6 +43,8 @@ public class BadgeConfiguration {
|
||||
this.xhdpi = xhdpi;
|
||||
this.xxhdpi = xxhdpi;
|
||||
this.xxxhdpi = xxxhdpi;
|
||||
this.lowDetailSvg = lowDetailSvg;
|
||||
this.highDetailSvg = highDetailSvg;
|
||||
}
|
||||
|
||||
@NotEmpty
|
||||
@@ -51,30 +57,46 @@ public class BadgeConfiguration {
|
||||
return category;
|
||||
}
|
||||
|
||||
@NotEmpty
|
||||
public String getLdpi() {
|
||||
return ldpi;
|
||||
}
|
||||
|
||||
@NotEmpty
|
||||
public String getMdpi() {
|
||||
return mdpi;
|
||||
}
|
||||
|
||||
@NotEmpty
|
||||
public String getHdpi() {
|
||||
return hdpi;
|
||||
}
|
||||
|
||||
@NotEmpty
|
||||
public String getXhdpi() {
|
||||
return xhdpi;
|
||||
}
|
||||
|
||||
@NotEmpty
|
||||
public String getXxhdpi() {
|
||||
return xxhdpi;
|
||||
}
|
||||
|
||||
@NotEmpty
|
||||
public String getXxxhdpi() {
|
||||
return xxxhdpi;
|
||||
}
|
||||
|
||||
@NotEmpty
|
||||
public String getLowDetailSvg() {
|
||||
return lowDetailSvg;
|
||||
}
|
||||
|
||||
@NotEmpty
|
||||
public String getHighDetailSvg() {
|
||||
return highDetailSvg;
|
||||
}
|
||||
|
||||
public boolean isTestBadge() {
|
||||
return CATEGORY_TESTING.equals(category);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user