Documentation
¶
Overview ¶
Package protocol implements the Friends 3DS protocol
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol ¶
Package protocol implements the Friends 3DS protocol
Index ¶
- Constants
- type Interface
- type Protocol
- func (protocol *Protocol) Endpoint() nex.EndpointInterface
- func (protocol *Protocol) HandlePacket(packet nex.PacketInterface)
- func (protocol *Protocol) SetEndpoint(endpoint nex.EndpointInterface)
- func (protocol *Protocol) SetHandlerAddFriendByPrincipalID(...)
- func (protocol *Protocol) SetHandlerAddFriendBylstPrincipalID(...)
- func (protocol *Protocol) SetHandlerGetAllFriends(...)
- func (protocol *Protocol) SetHandlerGetFriendComment(...)
- func (protocol *Protocol) SetHandlerGetFriendMii(...)
- func (protocol *Protocol) SetHandlerGetFriendMiiList(...)
- func (protocol *Protocol) SetHandlerGetFriendPersistentInfo(...)
- func (protocol *Protocol) SetHandlerGetFriendPicture(...)
- func (protocol *Protocol) SetHandlerGetFriendPresence(...)
- func (protocol *Protocol) SetHandlerGetFriendRelationships(...)
- func (protocol *Protocol) SetHandlerGetPrincipalIDByLocalFriendCode(...)
- func (protocol *Protocol) SetHandlerIsActiveGame(...)
- func (protocol *Protocol) SetHandlerRemoveFriendByLocalFriendCode(...)
- func (protocol *Protocol) SetHandlerRemoveFriendByPrincipalID(...)
- func (protocol *Protocol) SetHandlerSendInvitation(...)
- func (protocol *Protocol) SetHandlerSyncFriend(...)
- func (protocol *Protocol) SetHandlerUpdateBlackList(...)
- func (protocol *Protocol) SetHandlerUpdateComment(...)
- func (protocol *Protocol) SetHandlerUpdateFavoriteGameKey(...)
- func (protocol *Protocol) SetHandlerUpdateMii(...)
- func (protocol *Protocol) SetHandlerUpdateMiiList(...)
- func (protocol *Protocol) SetHandlerUpdatePicture(...)
- func (protocol *Protocol) SetHandlerUpdatePlayedGames(...)
- func (protocol *Protocol) SetHandlerUpdatePreference(...)
- func (protocol *Protocol) SetHandlerUpdatePresence(...)
- func (protocol *Protocol) SetHandlerUpdateProfile(...)
Constants ¶
const ( // ProtocolID is the protocol ID for the Friends (3DS) protocol ProtocolID = 0x65 // MethodUpdateProfile is the method ID for method UpdateProfile MethodUpdateProfile = 0x1 // MethodUpdateMii is the method ID for method UpdateMii MethodUpdateMii = 0x2 // MethodUpdateMiiList is the method ID for method UpdateMiiList MethodUpdateMiiList = 0x3 // MethodUpdatePlayedGames is the method ID for method UpdatePlayedGames MethodUpdatePlayedGames = 0x4 // MethodUpdatePreference is the method ID for method UpdatePreference MethodUpdatePreference = 0x5 // MethodGetFriendMii is the method ID for method GetFriendMii MethodGetFriendMii = 0x6 // MethodGetFriendMiiList is the method ID for method GetFriendMiiList MethodGetFriendMiiList = 0x7 // MethodIsActiveGame is the method ID for method IsActiveGame MethodIsActiveGame = 0x8 // MethodGetPrincipalIDByLocalFriendCode is the method ID for method GetPrincipalIDByLocalFriendCode MethodGetPrincipalIDByLocalFriendCode = 0x9 // MethodGetFriendRelationships is the method ID for method GetFriendRelationships MethodGetFriendRelationships = 0xA // MethodAddFriendByPrincipalID is the method ID for method AddFriendByPrincipalID MethodAddFriendByPrincipalID = 0xB // MethodAddFriendBylstPrincipalID is the method ID for method AddFriendBylstPrincipalID MethodAddFriendBylstPrincipalID = 0xC // MethodRemoveFriendByLocalFriendCode is the method ID for method RemoveFriendByLocalFriendCode MethodRemoveFriendByLocalFriendCode = 0xD // MethodRemoveFriendByPrincipalID is the method ID for method RemoveFriendByPrincipalID MethodRemoveFriendByPrincipalID = 0xE // MethodGetAllFriends is the method ID for method GetAllFriends MethodGetAllFriends = 0xF // MethodUpdateBlackList is the method ID for method UpdateBlackList MethodUpdateBlackList = 0x10 // MethodSyncFriend is the method ID for method SyncFriend MethodSyncFriend = 0x11 // MethodUpdatePresence is the method ID for method UpdatePresence MethodUpdatePresence = 0x12 // MethodUpdateFavoriteGameKey is the method ID for method UpdateFavoriteGameKey MethodUpdateFavoriteGameKey = 0x13 // MethodUpdateComment is the method ID for method UpdateComment MethodUpdateComment = 0x14 // MethodUpdatePicture is the method ID for method UpdatePicture MethodUpdatePicture = 0x15 // MethodGetFriendPresence is the method ID for method GetFriendPresence MethodGetFriendPresence = 0x16 // MethodGetFriendComment is the method ID for method GetFriendComment MethodGetFriendComment = 0x17 // MethodGetFriendPicture is the method ID for method GetFriendPicture MethodGetFriendPicture = 0x18 // MethodGetFriendPersistentInfo is the method ID for method GetFriendPersistentInfo MethodGetFriendPersistentInfo = 0x19 // MethodSendInvitation is the method ID for method SendInvitation MethodSendInvitation = 0x1A )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Endpoint() nex.EndpointInterface SetEndpoint(endpoint nex.EndpointInterface) SetHandlerUpdateProfile(handler func(err error, packet nex.PacketInterface, callID uint32, profileData *friends_3ds_types.MyProfile) (*nex.RMCMessage, *nex.Error)) SetHandlerUpdateMii(handler func(err error, packet nex.PacketInterface, callID uint32, mii *friends_3ds_types.Mii) (*nex.RMCMessage, *nex.Error)) SetHandlerUpdateMiiList(handler func(err error, packet nex.PacketInterface, callID uint32, miiList *friends_3ds_types.MiiList) (*nex.RMCMessage, *nex.Error)) SetHandlerUpdatePlayedGames(handler func(err error, packet nex.PacketInterface, callID uint32, playedGames *types.List[*friends_3ds_types.PlayedGame]) (*nex.RMCMessage, *nex.Error)) SetHandlerUpdatePreference(handler func(err error, packet nex.PacketInterface, callID uint32, publicMode *types.PrimitiveBool, showGame *types.PrimitiveBool, showPlayedGame *types.PrimitiveBool) (*nex.RMCMessage, *nex.Error)) SetHandlerGetFriendMii(handler func(err error, packet nex.PacketInterface, callID uint32, friends *types.List[*friends_3ds_types.FriendInfo]) (*nex.RMCMessage, *nex.Error)) SetHandlerGetFriendMiiList(handler func(err error, packet nex.PacketInterface, callID uint32, friends *types.List[*friends_3ds_types.FriendInfo]) (*nex.RMCMessage, *nex.Error)) SetHandlerIsActiveGame(handler func(err error, packet nex.PacketInterface, callID uint32, pids *types.List[*types.PID], gameKey *friends_3ds_types.GameKey) (*nex.RMCMessage, *nex.Error)) SetHandlerGetPrincipalIDByLocalFriendCode(handler func(err error, packet nex.PacketInterface, callID uint32, lfc *types.PrimitiveU64, lfcList *types.List[*types.PrimitiveU64]) (*nex.RMCMessage, *nex.Error)) SetHandlerGetFriendRelationships(handler func(err error, packet nex.PacketInterface, callID uint32, pids *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error)) SetHandlerAddFriendByPrincipalID(handler func(err error, packet nex.PacketInterface, callID uint32, lfc *types.PrimitiveU64, pid *types.PID) (*nex.RMCMessage, *nex.Error)) SetHandlerAddFriendBylstPrincipalID(handler func(err error, packet nex.PacketInterface, callID uint32, lfc *types.PrimitiveU64, pids *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error)) SetHandlerRemoveFriendByLocalFriendCode(handler func(err error, packet nex.PacketInterface, callID uint32, lfc *types.PrimitiveU64) (*nex.RMCMessage, *nex.Error)) SetHandlerRemoveFriendByPrincipalID(handler func(err error, packet nex.PacketInterface, callID uint32, pid *types.PID) (*nex.RMCMessage, *nex.Error)) SetHandlerGetAllFriends(handler func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error)) SetHandlerUpdateBlackList(handler func(err error, packet nex.PacketInterface, callID uint32, unknown *types.List[*types.PrimitiveU32]) (*nex.RMCMessage, *nex.Error)) SetHandlerSyncFriend(handler func(err error, packet nex.PacketInterface, callID uint32, lfc *types.PrimitiveU64, pids *types.List[*types.PID], lfcList *types.List[*types.PrimitiveU64]) (*nex.RMCMessage, *nex.Error)) SetHandlerUpdatePresence(handler func(err error, packet nex.PacketInterface, callID uint32, presence *friends_3ds_types.NintendoPresence, showGame *types.PrimitiveBool) (*nex.RMCMessage, *nex.Error)) SetHandlerUpdateFavoriteGameKey(handler func(err error, packet nex.PacketInterface, callID uint32, gameKey *friends_3ds_types.GameKey) (*nex.RMCMessage, *nex.Error)) SetHandlerUpdateComment(handler func(err error, packet nex.PacketInterface, callID uint32, comment *types.String) (*nex.RMCMessage, *nex.Error)) SetHandlerUpdatePicture(handler func(err error, packet nex.PacketInterface, callID uint32, unknown *types.PrimitiveU32, picture *types.Buffer) (*nex.RMCMessage, *nex.Error)) SetHandlerGetFriendPresence(handler func(err error, packet nex.PacketInterface, callID uint32, pidList *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error)) SetHandlerGetFriendComment(handler func(err error, packet nex.PacketInterface, callID uint32, friends *types.List[*friends_3ds_types.FriendInfo]) (*nex.RMCMessage, *nex.Error)) SetHandlerGetFriendPicture(handler func(err error, packet nex.PacketInterface, callID uint32, unknown *types.List[*types.PrimitiveU32]) (*nex.RMCMessage, *nex.Error)) SetHandlerGetFriendPersistentInfo(handler func(err error, packet nex.PacketInterface, callID uint32, pidList *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error)) SetHandlerSendInvitation(handler func(err error, packet nex.PacketInterface, callID uint32, pids *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error)) }
Interface implements the methods present on the Friends (3DS) protocol struct
type Protocol ¶
type Protocol struct { UpdateProfile func(err error, packet nex.PacketInterface, callID uint32, profileData *friends_3ds_types.MyProfile) (*nex.RMCMessage, *nex.Error) UpdateMii func(err error, packet nex.PacketInterface, callID uint32, mii *friends_3ds_types.Mii) (*nex.RMCMessage, *nex.Error) UpdateMiiList func(err error, packet nex.PacketInterface, callID uint32, miiList *friends_3ds_types.MiiList) (*nex.RMCMessage, *nex.Error) UpdatePlayedGames func(err error, packet nex.PacketInterface, callID uint32, playedGames *types.List[*friends_3ds_types.PlayedGame]) (*nex.RMCMessage, *nex.Error) UpdatePreference func(err error, packet nex.PacketInterface, callID uint32, publicMode *types.PrimitiveBool, showGame *types.PrimitiveBool, showPlayedGame *types.PrimitiveBool) (*nex.RMCMessage, *nex.Error) GetFriendMii func(err error, packet nex.PacketInterface, callID uint32, friends *types.List[*friends_3ds_types.FriendInfo]) (*nex.RMCMessage, *nex.Error) GetFriendMiiList func(err error, packet nex.PacketInterface, callID uint32, friends *types.List[*friends_3ds_types.FriendInfo]) (*nex.RMCMessage, *nex.Error) IsActiveGame func(err error, packet nex.PacketInterface, callID uint32, pids *types.List[*types.PID], gameKey *friends_3ds_types.GameKey) (*nex.RMCMessage, *nex.Error) GetPrincipalIDByLocalFriendCode func(err error, packet nex.PacketInterface, callID uint32, lfc *types.PrimitiveU64, lfcList *types.List[*types.PrimitiveU64]) (*nex.RMCMessage, *nex.Error) GetFriendRelationships func(err error, packet nex.PacketInterface, callID uint32, pids *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error) AddFriendByPrincipalID func(err error, packet nex.PacketInterface, callID uint32, lfc *types.PrimitiveU64, pid *types.PID) (*nex.RMCMessage, *nex.Error) AddFriendBylstPrincipalID func(err error, packet nex.PacketInterface, callID uint32, lfc *types.PrimitiveU64, pids *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error) RemoveFriendByLocalFriendCode func(err error, packet nex.PacketInterface, callID uint32, lfc *types.PrimitiveU64) (*nex.RMCMessage, *nex.Error) RemoveFriendByPrincipalID func(err error, packet nex.PacketInterface, callID uint32, pid *types.PID) (*nex.RMCMessage, *nex.Error) GetAllFriends func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error) UpdateBlackList func(err error, packet nex.PacketInterface, callID uint32, unknown *types.List[*types.PrimitiveU32]) (*nex.RMCMessage, *nex.Error) SyncFriend func(err error, packet nex.PacketInterface, callID uint32, lfc *types.PrimitiveU64, pids *types.List[*types.PID], lfcList *types.List[*types.PrimitiveU64]) (*nex.RMCMessage, *nex.Error) UpdatePresence func(err error, packet nex.PacketInterface, callID uint32, presence *friends_3ds_types.NintendoPresence, showGame *types.PrimitiveBool) (*nex.RMCMessage, *nex.Error) UpdateFavoriteGameKey func(err error, packet nex.PacketInterface, callID uint32, gameKey *friends_3ds_types.GameKey) (*nex.RMCMessage, *nex.Error) UpdateComment func(err error, packet nex.PacketInterface, callID uint32, comment *types.String) (*nex.RMCMessage, *nex.Error) UpdatePicture func(err error, packet nex.PacketInterface, callID uint32, unknown *types.PrimitiveU32, picture *types.Buffer) (*nex.RMCMessage, *nex.Error) GetFriendPresence func(err error, packet nex.PacketInterface, callID uint32, pidList *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error) GetFriendComment func(err error, packet nex.PacketInterface, callID uint32, friends *types.List[*friends_3ds_types.FriendInfo]) (*nex.RMCMessage, *nex.Error) GetFriendPicture func(err error, packet nex.PacketInterface, callID uint32, unknown *types.List[*types.PrimitiveU32]) (*nex.RMCMessage, *nex.Error) GetFriendPersistentInfo func(err error, packet nex.PacketInterface, callID uint32, pidList *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error) SendInvitation func(err error, packet nex.PacketInterface, callID uint32, pids *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error) Patches nex.ServiceProtocol PatchedMethods []uint32 // contains filtered or unexported fields }
Protocol stores all the RMC method handlers for the Friends (3DS) protocol and listens for requests
func (*Protocol) Endpoint ¶
func (protocol *Protocol) Endpoint() nex.EndpointInterface
Endpoint returns the endpoint implementing the protocol
func (*Protocol) HandlePacket ¶
func (protocol *Protocol) HandlePacket(packet nex.PacketInterface)
HandlePacket sends the packet to the correct RMC method handler
func (*Protocol) SetEndpoint ¶
func (protocol *Protocol) SetEndpoint(endpoint nex.EndpointInterface)
SetEndpoint sets the endpoint implementing the protocol
func (*Protocol) SetHandlerAddFriendByPrincipalID ¶
func (protocol *Protocol) SetHandlerAddFriendByPrincipalID(handler func(err error, packet nex.PacketInterface, callID uint32, lfc *types.PrimitiveU64, pid *types.PID) (*nex.RMCMessage, *nex.Error))
SetHandlerAddFriendByPrincipalID sets the handler for the AddFriendByPrincipalID method
func (*Protocol) SetHandlerAddFriendBylstPrincipalID ¶
func (protocol *Protocol) SetHandlerAddFriendBylstPrincipalID(handler func(err error, packet nex.PacketInterface, callID uint32, lfc *types.PrimitiveU64, pids *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error))
SetHandlerAddFriendBylstPrincipalID sets the handler for the AddFriendBylstPrincipalID method
func (*Protocol) SetHandlerGetAllFriends ¶
func (protocol *Protocol) SetHandlerGetAllFriends(handler func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error))
SetHandlerGetAllFriends sets the handler for the GetAllFriends method
func (*Protocol) SetHandlerGetFriendComment ¶
func (protocol *Protocol) SetHandlerGetFriendComment(handler func(err error, packet nex.PacketInterface, callID uint32, friends *types.List[*friends_3ds_types.FriendInfo]) (*nex.RMCMessage, *nex.Error))
SetHandlerGetFriendComment sets the handler for the GetFriendComment method
func (*Protocol) SetHandlerGetFriendMii ¶
func (protocol *Protocol) SetHandlerGetFriendMii(handler func(err error, packet nex.PacketInterface, callID uint32, friends *types.List[*friends_3ds_types.FriendInfo]) (*nex.RMCMessage, *nex.Error))
SetHandlerGetFriendMii sets the handler for the GetFriendMii method
func (*Protocol) SetHandlerGetFriendMiiList ¶
func (protocol *Protocol) SetHandlerGetFriendMiiList(handler func(err error, packet nex.PacketInterface, callID uint32, friends *types.List[*friends_3ds_types.FriendInfo]) (*nex.RMCMessage, *nex.Error))
SetHandlerGetFriendMiiList sets the handler for the GetFriendMiiList method
func (*Protocol) SetHandlerGetFriendPersistentInfo ¶
func (protocol *Protocol) SetHandlerGetFriendPersistentInfo(handler func(err error, packet nex.PacketInterface, callID uint32, pidList *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error))
SetHandlerGetFriendPersistentInfo sets the handler for the GetFriendPersistentInfo method
func (*Protocol) SetHandlerGetFriendPicture ¶
func (protocol *Protocol) SetHandlerGetFriendPicture(handler func(err error, packet nex.PacketInterface, callID uint32, unknown *types.List[*types.PrimitiveU32]) (*nex.RMCMessage, *nex.Error))
SetHandlerGetFriendPicture sets the handler for the GetFriendPicture method
func (*Protocol) SetHandlerGetFriendPresence ¶
func (protocol *Protocol) SetHandlerGetFriendPresence(handler func(err error, packet nex.PacketInterface, callID uint32, pidList *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error))
SetHandlerGetFriendPresence sets the handler for the GetFriendPresence method
func (*Protocol) SetHandlerGetFriendRelationships ¶
func (protocol *Protocol) SetHandlerGetFriendRelationships(handler func(err error, packet nex.PacketInterface, callID uint32, pids *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error))
SetHandlerGetFriendRelationships sets the handler for the GetFriendRelationships method
func (*Protocol) SetHandlerGetPrincipalIDByLocalFriendCode ¶
func (protocol *Protocol) SetHandlerGetPrincipalIDByLocalFriendCode(handler func(err error, packet nex.PacketInterface, callID uint32, lfc *types.PrimitiveU64, lfcList *types.List[*types.PrimitiveU64]) (*nex.RMCMessage, *nex.Error))
SetHandlerGetPrincipalIDByLocalFriendCode sets the handler for the GetPrincipalIDByLocalFriendCode method
func (*Protocol) SetHandlerIsActiveGame ¶
func (protocol *Protocol) SetHandlerIsActiveGame(handler func(err error, packet nex.PacketInterface, callID uint32, pids *types.List[*types.PID], gameKey *friends_3ds_types.GameKey) (*nex.RMCMessage, *nex.Error))
SetHandlerIsActiveGame sets the handler for the IsActiveGame method
func (*Protocol) SetHandlerRemoveFriendByLocalFriendCode ¶
func (protocol *Protocol) SetHandlerRemoveFriendByLocalFriendCode(handler func(err error, packet nex.PacketInterface, callID uint32, lfc *types.PrimitiveU64) (*nex.RMCMessage, *nex.Error))
SetHandlerRemoveFriendByLocalFriendCode sets the handler for the RemoveFriendByLocalFriendCode method
func (*Protocol) SetHandlerRemoveFriendByPrincipalID ¶
func (protocol *Protocol) SetHandlerRemoveFriendByPrincipalID(handler func(err error, packet nex.PacketInterface, callID uint32, pid *types.PID) (*nex.RMCMessage, *nex.Error))
SetHandlerRemoveFriendByPrincipalID sets the handler for the RemoveFriendByPrincipalID method
func (*Protocol) SetHandlerSendInvitation ¶
func (protocol *Protocol) SetHandlerSendInvitation(handler func(err error, packet nex.PacketInterface, callID uint32, pids *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error))
SetHandlerSendInvitation sets the handler for the SendInvitation method
func (*Protocol) SetHandlerSyncFriend ¶
func (protocol *Protocol) SetHandlerSyncFriend(handler func(err error, packet nex.PacketInterface, callID uint32, lfc *types.PrimitiveU64, pids *types.List[*types.PID], lfcList *types.List[*types.PrimitiveU64]) (*nex.RMCMessage, *nex.Error))
SetHandlerSyncFriend sets the handler for the SyncFriend method
func (*Protocol) SetHandlerUpdateBlackList ¶
func (protocol *Protocol) SetHandlerUpdateBlackList(handler func(err error, packet nex.PacketInterface, callID uint32, unknown *types.List[*types.PrimitiveU32]) (*nex.RMCMessage, *nex.Error))
SetHandlerUpdateBlackList sets the handler for the UpdateBlackList method
func (*Protocol) SetHandlerUpdateComment ¶
func (protocol *Protocol) SetHandlerUpdateComment(handler func(err error, packet nex.PacketInterface, callID uint32, comment *types.String) (*nex.RMCMessage, *nex.Error))
SetHandlerUpdateComment sets the handler for the UpdateComment method
func (*Protocol) SetHandlerUpdateFavoriteGameKey ¶
func (protocol *Protocol) SetHandlerUpdateFavoriteGameKey(handler func(err error, packet nex.PacketInterface, callID uint32, gameKey *friends_3ds_types.GameKey) (*nex.RMCMessage, *nex.Error))
SetHandlerUpdateFavoriteGameKey sets the handler for the UpdateFavoriteGameKey method
func (*Protocol) SetHandlerUpdateMii ¶
func (protocol *Protocol) SetHandlerUpdateMii(handler func(err error, packet nex.PacketInterface, callID uint32, mii *friends_3ds_types.Mii) (*nex.RMCMessage, *nex.Error))
SetHandlerUpdateMii sets the handler for the UpdateMii method
func (*Protocol) SetHandlerUpdateMiiList ¶
func (protocol *Protocol) SetHandlerUpdateMiiList(handler func(err error, packet nex.PacketInterface, callID uint32, miiList *friends_3ds_types.MiiList) (*nex.RMCMessage, *nex.Error))
SetHandlerUpdateMiiList sets the handler for the UpdateMiiList method
func (*Protocol) SetHandlerUpdatePicture ¶
func (protocol *Protocol) SetHandlerUpdatePicture(handler func(err error, packet nex.PacketInterface, callID uint32, unknown *types.PrimitiveU32, picture *types.Buffer) (*nex.RMCMessage, *nex.Error))
SetHandlerUpdatePicture sets the handler for the UpdatePicture method
func (*Protocol) SetHandlerUpdatePlayedGames ¶
func (protocol *Protocol) SetHandlerUpdatePlayedGames(handler func(err error, packet nex.PacketInterface, callID uint32, playedGames *types.List[*friends_3ds_types.PlayedGame]) (*nex.RMCMessage, *nex.Error))
SetHandlerUpdatePlayedGames sets the handler for the UpdatePlayedGames method
func (*Protocol) SetHandlerUpdatePreference ¶
func (protocol *Protocol) SetHandlerUpdatePreference(handler func(err error, packet nex.PacketInterface, callID uint32, publicMode *types.PrimitiveBool, showGame *types.PrimitiveBool, showPlayedGame *types.PrimitiveBool) (*nex.RMCMessage, *nex.Error))
SetHandlerUpdatePreference sets the handler for the UpdatePreference method
func (*Protocol) SetHandlerUpdatePresence ¶
func (protocol *Protocol) SetHandlerUpdatePresence(handler func(err error, packet nex.PacketInterface, callID uint32, presence *friends_3ds_types.NintendoPresence, showGame *types.PrimitiveBool) (*nex.RMCMessage, *nex.Error))
SetHandlerUpdatePresence sets the handler for the UpdatePresence method
func (*Protocol) SetHandlerUpdateProfile ¶
func (protocol *Protocol) SetHandlerUpdateProfile(handler func(err error, packet nex.PacketInterface, callID uint32, profileData *friends_3ds_types.MyProfile) (*nex.RMCMessage, *nex.Error))
SetHandlerUpdateProfile sets the handler for the UpdateProfile method
Source Files
¶
- add_friend_by_lst_principal_id.go
- add_friend_by_principal_id.go
- get_all_friends.go
- get_friend_comment.go
- get_friend_mii.go
- get_friend_mii_list.go
- get_friend_persistent_info.go
- get_friend_picture.go
- get_friend_presence.go
- get_friend_relationships.go
- get_principal_id_by_local_friend_code.go
- is_active_game.go
- protocol.go
- remove_friend_by_local_friend_code.go
- remove_friend_by_principal_id.go
- send_invitation.go
- sync_friend.go
- update_black_list.go
- update_comment.go
- update_favorite_game_key.go
- update_mii.go
- update_mii_list.go
- update_picture.go
- update_played_games.go
- update_preference.go
- update_presence.go
- update_profile.go