/*
 * 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 GetInboxTopAccounts200ResponseAccountsInner {
    #[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>,
    /// (disconnected) when the SocialAccount no longer exists
    #[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
    pub display_name: Option<String>,
    #[serde(rename = "username", skip_serializing_if = "Option::is_none")]
    pub username: Option<String>,
    #[serde(rename = "received", skip_serializing_if = "Option::is_none")]
    pub received: Option<i32>,
    #[serde(rename = "sent", skip_serializing_if = "Option::is_none")]
    pub sent: Option<i32>,
    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
    pub total: Option<i32>,
    #[serde(rename = "conversations", skip_serializing_if = "Option::is_none")]
    pub conversations: Option<i32>,
    #[serde(
        rename = "medianResponseSeconds",
        skip_serializing_if = "Option::is_none"
    )]
    pub median_response_seconds: Option<i32>,
    /// Distinguishes 'instant replies' from 'no replies at all' so a zero medianResponseSeconds with repliedCount=0 renders as '—' instead of '0s'
    #[serde(rename = "repliedCount", skip_serializing_if = "Option::is_none")]
    pub replied_count: Option<i32>,
}

impl GetInboxTopAccounts200ResponseAccountsInner {
    pub fn new() -> GetInboxTopAccounts200ResponseAccountsInner {
        GetInboxTopAccounts200ResponseAccountsInner {
            account_id: None,
            platform: None,
            display_name: None,
            username: None,
            received: None,
            sent: None,
            total: None,
            conversations: None,
            median_response_seconds: None,
            replied_count: None,
        }
    }
}
