package org.wntr.mdeditor

import com.fasterxml.jackson.annotation.JsonProperty

data class Credentials (
    @JsonProperty("instance") val instance: String = "nowhere",
    @JsonProperty("username") val username: String = "nobody",
    @JsonProperty("password") val password: String = "nothing"
)

data class sendPost (
    @JsonProperty("title") val title: String,
    @JsonProperty("updated_at") val updated_at: String,
    @JsonProperty("authors") val authors: List<String>,
    @JsonProperty("html") val html: String,
    @JsonProperty("feature_image") val feature_image: String?,
    @JsonProperty("status") val status: String = "published"
)

data class sendPostList (
    @JsonProperty("posts") val posts: List<sendPost>
    )

data class imagesObj(
    @JsonProperty("images") val images: List<imageObj>
)

data class imageObj(
    @JsonProperty("url") val url: String,
    @JsonProperty("ref") val ref: String?
)

data class MetaData(
    val url: String?
)

