/*
 * 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 ValidatePostRequestPlatformsInner {
    #[serde(rename = "platform")]
    pub platform: Platform,
    #[serde(rename = "customContent", skip_serializing_if = "Option::is_none")]
    pub custom_content: Option<String>,
    #[serde(
        rename = "platformSpecificData",
        skip_serializing_if = "Option::is_none"
    )]
    pub platform_specific_data: Option<serde_json::Value>,
    #[serde(rename = "customMedia", skip_serializing_if = "Option::is_none")]
    pub custom_media: Option<Vec<models::MediaItem>>,
}

impl ValidatePostRequestPlatformsInner {
    pub fn new(platform: Platform) -> ValidatePostRequestPlatformsInner {
        ValidatePostRequestPlatformsInner {
            platform,
            custom_content: None,
            platform_specific_data: None,
            custom_media: None,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Platform {
    #[serde(rename = "twitter")]
    Twitter,
    #[serde(rename = "instagram")]
    Instagram,
    #[serde(rename = "tiktok")]
    Tiktok,
    #[serde(rename = "youtube")]
    Youtube,
    #[serde(rename = "facebook")]
    Facebook,
    #[serde(rename = "linkedin")]
    Linkedin,
    #[serde(rename = "bluesky")]
    Bluesky,
    #[serde(rename = "threads")]
    Threads,
    #[serde(rename = "reddit")]
    Reddit,
    #[serde(rename = "pinterest")]
    Pinterest,
    #[serde(rename = "telegram")]
    Telegram,
    #[serde(rename = "snapchat")]
    Snapchat,
    #[serde(rename = "googlebusiness")]
    Googlebusiness,
    #[serde(rename = "discord")]
    Discord,
}

impl Default for Platform {
    fn default() -> Platform {
        Self::Twitter
    }
}
