aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/s_chat_session_update.rs
blob: f3499983b919d5b2147ed2b2404b57958f0b5bee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use azalea_buf::AzBuf;
use azalea_protocol_macros::ServerboundGamePacket;
use uuid::Uuid;

#[derive(Clone, Debug, AzBuf, ServerboundGamePacket)]
pub struct ServerboundChatSessionUpdate {
    pub chat_session: RemoteChatSessionData,
}

#[derive(Clone, Debug, PartialEq, Eq, AzBuf)]
pub struct RemoteChatSessionData {
    pub session_id: Uuid,
    pub profile_public_key: ProfilePublicKeyData,
}

#[derive(Clone, Debug, AzBuf, PartialEq, Eq)]
pub struct ProfilePublicKeyData {
    pub expires_at: u64,
    pub key: Vec<u8>,
    pub key_signature: Vec<u8>,
}