PixelDroid-App-Android/app/src/main/java/com/h/pixeldroid/objects/Attachment.kt

22 lines
552 B
Kotlin

package com.h.pixeldroid.objects
import java.io.Serializable
data class Attachment(
//Required attributes
val id: String?,
val type: AttachmentType? = AttachmentType.image,
val url: String?, //URL
val preview_url: String? = "", //URL
//Optional attributes
val remote_url: String? = null, //URL
val text_url: String? = null, //URL
//TODO meta
val description: String? = null,
val blurhash: String? = null
) : Serializable {
enum class AttachmentType {
unknown, image, gifv, video, audio
}
}