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

org.whispersystems.signalservice.api.messages.SignalServiceAttachmentPointer.kt Maven / Gradle / Ivy

There is a newer version: 2.15.3_unofficial_107
Show newest version
/*
 * Copyright (C) 2014-2017 Open Whisper Systems
 *
 * Licensed according to the LICENSE file in this repository.
 */
package org.whispersystems.signalservice.api.messages

import java.util.Optional
import java.util.UUID

/**
 * Represents a received SignalServiceAttachment "handle."  This
 * is a pointer to the actual attachment content, which needs to be
 * retrieved using [SignalServiceMessageReceiver.retrieveAttachment]
 *
 * @author Moxie Marlinspike
 */
class SignalServiceAttachmentPointer(
  val cdnNumber: Int,
  val remoteId: SignalServiceAttachmentRemoteId,
  contentType: String?,
  val key: ByteArray?,
  val size: Optional,
  val preview: Optional,
  val width: Int,
  val height: Int,
  val digest: Optional,
  val incrementalDigest: Optional,
  val incrementalMacChunkSize: Int,
  val fileName: Optional,
  val voiceNote: Boolean,
  val isBorderless: Boolean,
  val isGif: Boolean,
  val caption: Optional,
  val blurHash: Optional,
  val uploadTimestamp: Long,
  val uuid: UUID?
) : SignalServiceAttachment(contentType) {
  override fun isStream() = false
  override fun isPointer() = true
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy