You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
969 B
37 lines
969 B
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?
|
|
)
|
|
|