package dev.meloda.fast.model.api.responses

import dev.meloda.fast.model.api.data.VkAudioMessageData
import dev.meloda.fast.model.api.data.VkFileData
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

data class FilesGetMessagesUploadServerResponse(
    @Json(name = "upload_url")
    val uploadUrl: String
)

data class FilesUploadFileResponse(val file: String?, val error: String?)

@JsonClass(generateAdapter = true)
data class FilesSaveFileResponse(
    @Json(name = "type") val type: String,
    @Json(name = "doc") val file: VkFileData?,
    @Json(name = "audio_message") val voiceMessage: VkAudioMessageData?
)
