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

org.whispersystems.textsecure.api.messages.multidevice.SentTranscriptMessage Maven / Gradle / Ivy

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

import org.whispersystems.libaxolotl.util.guava.Optional;
import org.whispersystems.textsecure.api.messages.TextSecureDataMessage;

public class SentTranscriptMessage {

  private final Optional      destination;
  private final long                  timestamp;
  private final TextSecureDataMessage message;

  public SentTranscriptMessage(String destination, long timestamp, TextSecureDataMessage message) {
    this.destination = Optional.of(destination);
    this.timestamp   = timestamp;
    this.message     = message;
  }

  public SentTranscriptMessage(long timestamp, TextSecureDataMessage message) {
    this.destination = Optional.absent();
    this.timestamp   = timestamp;
    this.message     = message;
  }

  public Optional getDestination() {
    return destination;
  }

  public long getTimestamp() {
    return timestamp;
  }

  public TextSecureDataMessage getMessage() {
    return message;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy