add delete persistent notif
This commit is contained in:
parent
666a0b1ad7
commit
51e7c63d66
2 changed files with 15 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ pub fn friend_info_from_user(data: &UserData) -> FriendInfo {
|
|||
presence: data.presence.clone(),
|
||||
comment: Comment {
|
||||
unk: 0,
|
||||
message: "litterally everyone is friends here =w=".to_string(),
|
||||
message: "haii =w=".to_string(),
|
||||
last_changed: KerberosDateTime::now(),
|
||||
},
|
||||
became_friends: KerberosDateTime::now(),
|
||||
|
|
@ -276,6 +276,13 @@ impl Friends for FriendsUser {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
async fn delete_persistent_notification(
|
||||
&self,
|
||||
notifs: Vec<PersistentNotification>,
|
||||
) -> Result<(), ErrorCode> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn check_setting_status(&self) -> Result<u8, ErrorCode> {
|
||||
Ok(0xFF)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ use macros::{RmcSerialize, method_id, rmc_proto};
|
|||
|
||||
use rnex_core::{kerberos::KerberosDateTime, rmc::response::ErrorCode};
|
||||
|
||||
use crate::rmc::structures::rmc_struct;
|
||||
|
||||
#[derive(RmcSerialize, Debug, Clone)]
|
||||
#[rmc_struct(0)]
|
||||
pub struct MiiV2 {
|
||||
|
|
@ -145,6 +147,11 @@ pub trait Friends {
|
|||
>;
|
||||
#[method_id(13)]
|
||||
async fn update_presence(&self, presence: NintendoPresenceV2) -> Result<(), ErrorCode>;
|
||||
#[method_id(18)]
|
||||
async fn delete_persistent_notification(
|
||||
&self,
|
||||
notifs: Vec<PersistentNotification>,
|
||||
) -> Result<(), ErrorCode>;
|
||||
#[method_id(19)]
|
||||
async fn check_setting_status(&self) -> Result<u8, ErrorCode>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue