Module: nintendo.nex.nintendonotification

Provides a client and server for the NintendoNotificationProtocol. This page was generated automatically from nintendonotification.proto.

class NintendoNotificationClient
The client for the NintendoNotificationProtocol.

class NintendoNotificationServer
The server for the NintendoNotificationProtocol.

class NintendoNotificationType

class NintendoNotificationEvent(Structure)
class NintendoNotificationEventGeneral(Data)
class NintendoNotificationEventKeyValue(Data)
class NintendoNotificationEventProfile(Data)
class StringKeyValue(Data)
class u32KeyValue(Data)
class u64KeyValue(Data)
class u8KeyValue(Data)

NintendoNotificationClient

def __init__(client: RMCClient / HppClient)
Creates a new NintendoNotificationClient.

async def process_nintendo_notification_event(event: NintendoNotificationEvent) -> None
Calls method 1 on the server.

async def process_nintendo_notification_event_alt(event: NintendoNotificationEvent) -> None
Calls method 2 on the server.

NintendoNotificationServer

def __init__()
Creates a new NintendoNotificationServer.

async def logout(client: RMCClient) -> None
Called whenever a client is disconnected. May be overridden by a subclass.

async def process_nintendo_notification_event(client: RMCClient, event: NintendoNotificationEvent) -> None
Handler for method 1. This method should be overridden by a subclass.

async def process_nintendo_notification_event_alt(client: RMCClient, event: NintendoNotificationEvent) -> None
Handler for method 2. This method should be overridden by a subclass.

NintendoNotificationType

This class defines the following constants:
LOGOUT = 10
PRESENCE_CHANGE = 24
UNFRIENDED = 26
FRIENDED = 30
STATUS_CHANGE = 33

NintendoNotificationEvent

def __init__()
Creates a new NintendoNotificationEvent instance. Required fields must be filled in manually.

The following fields are defined in this class:
type: int
pid: int
data: Data

NintendoNotificationEventGeneral

def __init__()
Creates a new NintendoNotificationEventGeneral instance. Required fields must be filled in manually.

The following fields are defined in this class:
param1: int
param2: int
param3: int
text: str

NintendoNotificationEventKeyValue

def __init__()
Creates a new NintendoNotificationEventKeyValue instance. Required fields must be filled in manually.

The following fields are defined in this class:
u8: list[u8KeyValue]
u32: list[u32KeyValue]
u64: list[u64KeyValue]
string: list[StringKeyValue]

NintendoNotificationEventProfile

def __init__()
Creates a new NintendoNotificationEventProfile instance. Required fields must be filled in manually.

The following fields are defined in this class:
region: int
country: int
area: int
language: int
platform: int

StringKeyValue

def __init__()
Creates a new StringKeyValue instance. Required fields must be filled in manually.

The following fields are defined in this class:
key: int
value: str

u32KeyValue

def __init__()
Creates a new u32KeyValue instance. Required fields must be filled in manually.

The following fields are defined in this class:
key: int
value: int

u64KeyValue

def __init__()
Creates a new u64KeyValue instance. Required fields must be filled in manually.

The following fields are defined in this class:
key: int
value: int

u8KeyValue

def __init__()
Creates a new u8KeyValue instance. Required fields must be filled in manually.

The following fields are defined in this class:
key: int
value: int