chinwag-android/app/src/main/java/com/keylesspalace/tusky/entity/Translation.kt
2024-03-09 16:12:18 +01:00

25 lines
676 B
Kotlin

package com.keylesspalace.tusky.entity
import com.google.gson.annotations.SerializedName
data class MediaTranslation(
val id: String,
val description: String,
)
/**
* Represents the result of machine translating some status content.
*
* See [doc](https://docs.joinmastodon.org/entities/Translation/).
*/
data class Translation(
val content: String,
@SerializedName("spoiler_warning")
val spoilerWarning: String?,
val poll: List<String>?,
@SerializedName("media_attachments")
val mediaAttachments: List<MediaTranslation>,
@SerializedName("detected_source_language")
val detectedSourceLanguage: String,
val provider: String,
)