]> nmode's Git Repositories - signal-cli/blob - lib/src/main/java/org/asamk/signal/manager/JsonStickerPack.java
74ee6d0231b32865a6cde3c7f3d4570d0b6ff5d6
[signal-cli] / lib / src / main / java / org / asamk / signal / manager / JsonStickerPack.java
1 package org.asamk.signal.manager;
2
3 import com.fasterxml.jackson.annotation.JsonProperty;
4
5 import java.util.List;
6
7 public class JsonStickerPack {
8
9 @JsonProperty
10 public String title;
11
12 @JsonProperty
13 public String author;
14
15 @JsonProperty
16 public JsonSticker cover;
17
18 @JsonProperty
19 public List<JsonSticker> stickers;
20
21 // For deserialization
22 private JsonStickerPack() {
23 }
24
25 public JsonStickerPack(
26 final String title, final String author, final JsonSticker cover, final List<JsonSticker> stickers
27 ) {
28 this.title = title;
29 this.author = author;
30 this.cover = cover;
31 this.stickers = stickers;
32 }
33
34 public static class JsonSticker {
35
36 @JsonProperty
37 public String emoji;
38
39 @JsonProperty
40 public String file;
41
42 @JsonProperty
43 public String contentType;
44
45 // For deserialization
46 private JsonSticker() {
47 }
48
49 public JsonSticker(final String emoji, final String file, final String contentType) {
50 this.emoji = emoji;
51 this.file = file;
52 this.contentType = contentType;
53 }
54 }
55 }