//core/com.kustomer.core.models.chat/KusChatAttachment
[androidJvm]
@JsonClass(generateAdapter = true)
data class KusChatAttachment(var id: String = "", var rawJson: String? = null, var name: String, val createdAt: Long, val updatedAt: Long, val contentType: String, val contentLength: Long, var link: String? = "", val provider: String? = null, val renderMode: String? = null)
| KusChatAttachment | [androidJvm] constructor(id: String = "", rawJson: String? = null, name: String, createdAt: Long, updatedAt: Long, contentType: String, contentLength: Long, link: String? = "") Pre-4.6.7 constructor, kept so apps compiled against 4.6.6 (Java or Kotlin, including the default-argument bridge) still link. Equivalent to provider = null, renderMode = null.constructor(id: String = "", rawJson: String? = null, name: String, createdAt: Long, updatedAt: Long, contentType: String, contentLength: Long, link: String? = "", provider: String? = null, renderMode: String? = null) |
| Name | Summary |
|---|---|
| Companion | [androidJvm] object Companion |
| Name | Summary |
|---|---|
| contentLength | [androidJvm] val contentLength: Long |
| contentType | [androidJvm] val contentType: String |
| createdAt | [androidJvm] val createdAt: Long |
| id | [androidJvm] var id: String |
| isHostOwned | [androidJvm] val isHostOwned: Boolean true when the attachment bytes live on the host’s storage rather than Kustomer S3. |
| link | [androidJvm] @Transient var link: String? |
| name | [androidJvm] var name: String |
| provider | [androidJvm] val provider: String? = null Storage provider reported by chat-api. "external" marks a host-owned attachment. |
| rawJson | [androidJvm] var rawJson: String? |
| renderMode | [androidJvm] val renderMode: String? = null Legacy host-owned marker (iOS 8.3.x). Any non-blank value marks a host-owned attachment. |
| updatedAt | [androidJvm] val updatedAt: Long |