All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.whispersystems.signalservice.api.messages.multidevice.StickerPackOperationMessage Maven / Gradle / Ivy

The newest version!
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
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy