package org.whispersystems.signalservice.api.messages.multidevice; import org.whispersystems.libsignal.util.guava.Optional; public class StickerPackOperationMessage { private final Optional packId; private final Optional packKey; private final Optional type; public StickerPackOperationMessage(byte[] packId, byte[] packKey, Type type) { this.packId = Optional.fromNullable(packId); this.packKey = Optional.fromNullable(packKey); this.type = Optional.fromNullable(type); } public Optional getPackId() { return packId; } public Optional getPackKey() { return packKey; } public Optional getType() { return type; } public enum Type { INSTALL, REMOVE } }