GenericAsset

@JsonClass(generateAdapter = true)
open class GenericAsset(val id: String = UUID.randomUUID().toString(), val parentEntryId: String? = null, val url: String? = null, val name: String = UUID.randomUUID().toString(), var file: File? = null, val mimeType: String = file?.getMimeType() ?: GenericMimeType.OCTET_STREAM.value, val attachmentUploadResult: AttachmentUploadResult? = null) : FileAsset

Inheritors

Constructors

Link copied to clipboard
constructor(id: String = UUID.randomUUID().toString(), parentEntryId: String? = null, url: String? = null, name: String = UUID.randomUUID().toString(), file: File? = null, mimeType: String = file?.getMimeType() ?: GenericMimeType.OCTET_STREAM.value, attachmentUploadResult: AttachmentUploadResult? = null)
constructor(file: File)

Properties

Link copied to clipboard

The broad category of this attachment (image, PDF, video, etc.).

Link copied to clipboard

The upload result status for this attachment, or null if upload has not been attempted.

Link copied to clipboard
open override var file: File?

The local file reference, if available on device.

Link copied to clipboard

The resolved MIME type, preferring the local file's type over the server-reported type.

Link copied to clipboard
open override val id: String

The unique identifier of this file asset.

Link copied to clipboard
open override val mimeType: String

The MIME type of the file as reported by the server.

Link copied to clipboard
open override val name: String

The display name of the file.

Link copied to clipboard
open override val parentEntryId: String?

The identifier of the conversation entry that contains this attachment.

Link copied to clipboard
open override val url: String?

The remote URL where this file can be downloaded, or null if not yet uploaded.