commonMain.tools.ozone.communication.createTemplate.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bluesky Show documentation
Show all versions of bluesky Show documentation
Bluesky Social API bindings for Kotlin.
The newest version!
@file:Suppress("DEPRECATION")
package tools.ozone.communication
import kotlin.String
import kotlin.Suppress
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.Did
import sh.christian.ozone.api.Language
/**
* @param name Name of the template.
* @param contentMarkdown Content of the template, markdown supported, can contain variable
* placeholders.
* @param subject Subject of the message, used in emails.
* @param lang Message language.
* @param createdBy DID of the user who is creating the template.
*/
@Serializable
public data class CreateTemplateRequest(
/**
* Name of the template.
*/
public val name: String,
/**
* Content of the template, markdown supported, can contain variable placeholders.
*/
public val contentMarkdown: String,
/**
* Subject of the message, used in emails.
*/
public val subject: String,
/**
* Message language.
*/
public val lang: Language? = null,
/**
* DID of the user who is creating the template.
*/
public val createdBy: Did? = null,
)
public typealias CreateTemplateResponse = TemplateView