/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.4
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SendDiscordDirectMessage200Response {
    /// Discord message snowflake ID
    #[serde(rename = "messageId", skip_serializing_if = "Option::is_none")]
    pub message_id: Option<String>,
    /// DM channel snowflake (Discord auto-creates one per recipient pair)
    #[serde(rename = "channelId", skip_serializing_if = "Option::is_none")]
    pub channel_id: Option<String>,
    /// Direct link to the message — uses Discord's @me path for DMs
    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
    #[serde(rename = "timestamp", skip_serializing_if = "Option::is_none")]
    pub timestamp: Option<String>,
    #[serde(rename = "recipient", skip_serializing_if = "Option::is_none")]
    pub recipient: Option<Box<models::SendDiscordDirectMessage200ResponseRecipient>>,
    #[serde(rename = "account", skip_serializing_if = "Option::is_none")]
    pub account: Option<Box<models::SendDiscordDirectMessage200ResponseAccount>>,
}

impl SendDiscordDirectMessage200Response {
    pub fn new() -> SendDiscordDirectMessage200Response {
        SendDiscordDirectMessage200Response {
            message_id: None,
            channel_id: None,
            url: None,
            timestamp: None,
            recipient: None,
            account: None,
        }
    }
}
