diff --git a/rnex-core/src/nex/friends_handler.rs b/rnex-core/src/nex/friends_handler.rs index 88190b2..b7f44e8 100644 --- a/rnex-core/src/nex/friends_handler.rs +++ b/rnex-core/src/nex/friends_handler.rs @@ -42,6 +42,8 @@ use rnex_core::rmc::protocols::account_management::NintendoCreateAccountData; use rnex_core::rmc::protocols::nintendo_notification::NintendoNotificationEvent; use rnex_core::rmc::structures::RmcSerialize; +use crate::rmc::structures::data::Data; + define_rmc_proto!( proto FriendsUser{ Secure, @@ -95,6 +97,7 @@ impl FriendsManager { pub fn friend_info_from_user(data: &UserData) -> FriendInfo { FriendInfo { + data: Data {}, nna_info: data.info.clone(), presence: data.presence.clone(), comment: Comment { diff --git a/rnex-core/src/rmc/protocols/friends.rs b/rnex-core/src/rmc/protocols/friends.rs index b575c08..766797f 100644 --- a/rnex-core/src/rmc/protocols/friends.rs +++ b/rnex-core/src/rmc/protocols/friends.rs @@ -2,7 +2,7 @@ use macros::{RmcSerialize, method_id, rmc_proto}; use rnex_core::{kerberos::KerberosDateTime, rmc::response::ErrorCode}; -use crate::rmc::structures::rmc_struct; +use crate::rmc::structures::{data::Data, rmc_struct}; #[derive(RmcSerialize, Debug, Clone)] #[rmc_struct(0)] @@ -76,6 +76,8 @@ pub struct Comment { #[derive(RmcSerialize)] #[rmc_struct(0)] pub struct FriendInfo { + #[extends] + pub data: Data, pub nna_info: NNAInfo, pub presence: NintendoPresenceV2, pub comment: Comment, diff --git a/rnex-core/src/rmc/structures/data.rs b/rnex-core/src/rmc/structures/data.rs new file mode 100644 index 0000000..0350c96 --- /dev/null +++ b/rnex-core/src/rmc/structures/data.rs @@ -0,0 +1,5 @@ +use macros::RmcSerialize; + +#[derive(RmcSerialize)] +#[rmc_struct(0)] +pub struct Data {} diff --git a/rnex-core/src/rmc/structures/mod.rs b/rnex-core/src/rmc/structures/mod.rs index 99bef0c..35dce08 100644 --- a/rnex-core/src/rmc/structures/mod.rs +++ b/rnex-core/src/rmc/structures/mod.rs @@ -26,6 +26,7 @@ pub type Result = std::result::Result; pub mod any; pub mod buffer; pub mod connection_data; +pub mod data; pub mod helpers; pub mod list; pub mod matchmake;