AttachmentDescriptor

data class AttachmentDescriptor @JvmOverloads constructor(val id: String = UUID.randomUUID().toString(), val mediaType: String? = null, val data: AttachmentData, val filename: Array<String>? = null, val format: String? = null, val lastModTime: String? = null, val byteCount: Int? = null, val description: String? = null)(source)

The AttachmentDescriptor data class represents metadata for a DIDComm attachment.

Constructors

Link copied to clipboard
constructor(id: String = UUID.randomUUID().toString(), mediaType: String? = null, data: AttachmentData, filename: Array<String>? = null, format: String? = null, lastModTime: String? = null, byteCount: Int? = null, description: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "byte_count")
val byteCount: Int? = null
Link copied to clipboard
Link copied to clipboard
val description: String? = null
Link copied to clipboard
val filename: Array<String>? = null
Link copied to clipboard
val format: String? = null
Link copied to clipboard
val id: String
Link copied to clipboard
@SerialName(value = "lastmod_time")
val lastModTime: String? = null
Link copied to clipboard
@SerialName(value = "media_type")
val mediaType: String? = null

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if this AttachmentDescriptor object is equal to the specified other object.

Link copied to clipboard
open override fun hashCode(): Int

Calculates the hash code for the AttachmentDescriptor object.