#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct UnreadChannel {
#[serde(rename = "channelId")]
pub channel_id: uuid::Uuid,
#[serde(rename = "count")]
pub count: i32,
#[serde(rename = "noticeable")]
pub noticeable: bool,
#[serde(rename = "since")]
pub since: String,
#[serde(rename = "updatedAt")]
pub updated_at: String,
#[serde(rename = "oldestMessageId")]
pub oldest_message_id: uuid::Uuid,
}
impl UnreadChannel {
pub fn new(
channel_id: uuid::Uuid,
count: i32,
noticeable: bool,
since: String,
updated_at: String,
oldest_message_id: uuid::Uuid,
) -> UnreadChannel {
UnreadChannel {
channel_id,
count,
noticeable,
since,
updated_at,
oldest_message_id,
}
}
}