import static org.whispersystems.signalservice.internal.util.Util.isEmpty;
-public final class StickerPackUrl {
-
- private final StickerPackId packId;
- private final byte[] packKey;
+public record StickerPackUrl(StickerPackId packId, byte[] packKey) {
/**
* @throws InvalidStickerPackLinkException If url cannot be parsed.
return new StickerPackUrl(packId, packKey);
}
- public StickerPackUrl(final StickerPackId packId, final byte[] packKey) {
- this.packId = packId;
- this.packKey = packKey;
- }
-
public URI getUrl() {
try {
return new URI("https",
}
}
- public StickerPackId getPackId() {
- return packId;
- }
-
- public byte[] getPackKey() {
- return packKey;
- }
-
public final static class InvalidStickerPackLinkException extends Exception {
public InvalidStickerPackLinkException(String message) {