use serde::{Serialize, Deserialize};

#[allow(dead_code)]
const VOICE_CHANNEL: i32 = 1;
#[allow(dead_code)]
const TEXT_CHANNEL: i32 = 2;

// Network Types
#[allow(dead_code)]
pub struct Message {
    pub id: u64,
    pub time: i64,
    pub content: String,
    pub content_type: String,
    pub channel_id: u64,
    pub userid: u64,
    pub username: String,
}


#[allow(dead_code)]
pub struct Channel {
    pub name: String,
    pub id: u64,
    pub type_: i32,
    pub description: Option<String>,
}

#[derive(Deserialize)]
pub struct Jwt {
    pub jwt: String
}
