/*
 * 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};

/// LinkedInAggregateAnalyticsDailyResponse : Response for DAILY aggregation (time series breakdown)
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct LinkedInAggregateAnalyticsDailyResponse {
    #[serde(rename = "accountId", skip_serializing_if = "Option::is_none")]
    pub account_id: Option<String>,
    #[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
    pub platform: Option<String>,
    #[serde(rename = "accountType", skip_serializing_if = "Option::is_none")]
    pub account_type: Option<String>,
    #[serde(rename = "username", skip_serializing_if = "Option::is_none")]
    pub username: Option<String>,
    #[serde(rename = "aggregation", skip_serializing_if = "Option::is_none")]
    pub aggregation: Option<Aggregation>,
    #[serde(rename = "dateRange", skip_serializing_if = "Option::is_none")]
    pub date_range: Option<Box<models::YouTubeDailyViewsResponseDateRange>>,
    #[serde(rename = "analytics", skip_serializing_if = "Option::is_none")]
    pub analytics: Option<Box<models::LinkedInAggregateAnalyticsDailyResponseAnalytics>>,
    /// Metrics that were skipped due to API limitations
    #[serde(rename = "skippedMetrics", skip_serializing_if = "Option::is_none")]
    pub skipped_metrics: Option<Vec<String>>,
    #[serde(rename = "note", skip_serializing_if = "Option::is_none")]
    pub note: Option<String>,
    #[serde(rename = "lastUpdated", skip_serializing_if = "Option::is_none")]
    pub last_updated: Option<String>,
}

impl LinkedInAggregateAnalyticsDailyResponse {
    /// Response for DAILY aggregation (time series breakdown)
    pub fn new() -> LinkedInAggregateAnalyticsDailyResponse {
        LinkedInAggregateAnalyticsDailyResponse {
            account_id: None,
            platform: None,
            account_type: None,
            username: None,
            aggregation: None,
            date_range: None,
            analytics: None,
            skipped_metrics: None,
            note: None,
            last_updated: None,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Aggregation {
    #[serde(rename = "DAILY")]
    Daily,
}

impl Default for Aggregation {
    fn default() -> Aggregation {
        Self::Daily
    }
}
