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

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

The newest version!
package org.whispersystems.signalservice.api.messages.multidevice;


import org.whispersystems.libsignal.IdentityKey;

public class VerifiedMessage {

  public enum VerifiedState {
    DEFAULT, VERIFIED, UNVERIFIED
  }

  private final String        destination;
  private final IdentityKey   identityKey;
  private final VerifiedState verified;
  private final long          timestamp;

  public VerifiedMessage(String destination, IdentityKey identityKey, VerifiedState verified, long timestamp) {
    this.destination = destination;
    this.identityKey = identityKey;
    this.verified    = verified;
    this.timestamp   = timestamp;
  }

  public String getDestination() {
    return destination;
  }

  public IdentityKey getIdentityKey() {
    return identityKey;
  }

  public VerifiedState getVerified() {
    return verified;
  }

  public long getTimestamp() {
    return timestamp;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy