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

24 lines
610 B
Kotlin

package com.h.pixeldroid.objects
data class Card(
//Required attributes
val url: String, //URL
val title: String,
val description: String,
val type: CardType,
//Optional attributes
val author_name: String? = null,
val author_url: String? = null, //URL
val provider_name: String? = null,
val provider_url: String? = null, //URL
val html: String? = null, //HTML
val width: Int? = null,
val height: Int? = null,
val image: String? = null, //URL
val embed_url: String? = null //URL
) {
enum class CardType {
link, photo, video, rich
}
}