/*
 * SPDX-License-Identifier: GPL-3.0-or-later
 */
package com.runicgateway.app.data.api.dto

import kotlinx.serialization.Serializable

/** `POST /public/contact` request body. */
@Serializable
data class ContactRequest(
    val name: String,
    val email: String,
    val message: String,
)

/**
 * `POST /public/contact` response (website `mailer.sendContactMessage`). Either
 * `{ sent: true }`, or `{ sent: false, fallback: "mailto", email }` when the
 * site has no mailer configured and the user should email directly instead.
 */
@Serializable
data class ContactResponse(
    val sent: Boolean = false,
    val fallback: String? = null,
    val email: String? = null,
)
