mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 09:47:58 +01:00
Add category to badges
This commit is contained in:
@@ -16,13 +16,16 @@ import javax.validation.constraints.NotNull;
|
||||
public class BadgeConfiguration {
|
||||
private final String id;
|
||||
private final URL imageUrl;
|
||||
private final String category;
|
||||
|
||||
@JsonCreator
|
||||
public BadgeConfiguration(
|
||||
@JsonProperty("id") final String id,
|
||||
@JsonProperty("imageUrl") @JsonDeserialize(converter = URLDeserializationConverter.class) final URL imageUrl) {
|
||||
@JsonProperty("imageUrl") @JsonDeserialize(converter = URLDeserializationConverter.class) final URL imageUrl,
|
||||
@JsonProperty("category") final String category) {
|
||||
this.id = id;
|
||||
this.imageUrl = imageUrl;
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
@NotEmpty
|
||||
@@ -35,4 +38,9 @@ public class BadgeConfiguration {
|
||||
public URL getImageUrl() {
|
||||
return imageUrl;
|
||||
}
|
||||
|
||||
@NotEmpty
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user