use super::conversation::Conversation;
use super::message::Message;
use serde::Deserialize;

#[derive(Debug, Clone, Deserialize, Default)]
pub struct UpdateItem {
    #[serde(rename = "messageSequenceNumber")]
    pub seq: u64,

    #[serde(rename = "conversation")]
    pub conversation: Option<Conversation>,

    #[serde(rename = "message")]
    pub message: Option<Message>,

    #[serde(default)]
    pub pong: bool,
}
