/*
 * 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.1
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

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

/// TwitterPlatformDataPoll : Create a poll with this tweet. Mutually exclusive with media attachments and threads.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TwitterPlatformDataPoll {
    /// Poll options (2-4 choices, max 25 characters each)
    #[serde(rename = "options")]
    pub options: Vec<String>,
    /// Poll duration in minutes (5 min to 7 days)
    #[serde(rename = "duration_minutes")]
    pub duration_minutes: i32,
}

impl TwitterPlatformDataPoll {
    /// Create a poll with this tweet. Mutually exclusive with media attachments and threads.
    pub fn new(options: Vec<String>, duration_minutes: i32) -> TwitterPlatformDataPoll {
        TwitterPlatformDataPoll {
            options,
            duration_minutes,
        }
    }
}
