add data
This commit is contained in:
parent
51e7c63d66
commit
3c8ba491dd
4 changed files with 12 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
5
rnex-core/src/rmc/structures/data.rs
Normal file
5
rnex-core/src/rmc/structures/data.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
use macros::RmcSerialize;
|
||||
|
||||
#[derive(RmcSerialize)]
|
||||
#[rmc_struct(0)]
|
||||
pub struct Data {}
|
||||
|
|
@ -26,6 +26,7 @@ pub type Result<T> = std::result::Result<T, Error>;
|
|||
pub mod any;
|
||||
pub mod buffer;
|
||||
pub mod connection_data;
|
||||
pub mod data;
|
||||
pub mod helpers;
|
||||
pub mod list;
|
||||
pub mod matchmake;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue