types

package
v1.0.58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2023 License: AGPL-3.0 Imports: 4 Imported by: 5

Documentation

Overview

Package types implements all the types used by the Friends WiiU protocol

Package types implements all the types used by the Friends WiiU protocol

Package types implements all the types used by the Friends WiiU protocol

Package types implements all the types used by the Friends WiiU protocol

Package types implements all the types used by the Friends WiiU protocol

Package types implements all the types used by the Friends WiiU protocol

Package types implements all the types used by the Friends WiiU protocol

Package types implements all the types used by the Friends WiiU protocol

Package types implements all the types used by the Friends WiiU protocol

Package types implements all the types used by the Friends WiiU protocol

Package types implements all the types used by the Friends WiiU protocol

Package types implements all the types used by the Friends WiiU protocol

Package types implements all the types used by the Friends WiiU protocol

Package types implements all the types used by the Friends WiiU protocol

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlacklistedPrincipal

type BlacklistedPrincipal struct {
	nex.Structure
	*nex.Data
	PrincipalBasicInfo *PrincipalBasicInfo
	GameKey            *GameKey
	BlackListedSince   *nex.DateTime
}

BlacklistedPrincipal contains information about a blocked user

func NewBlacklistedPrincipal

func NewBlacklistedPrincipal() *BlacklistedPrincipal

NewBlacklistedPrincipal returns a new BlacklistedPrincipal

func (*BlacklistedPrincipal) Bytes

func (blacklistedPrincipal *BlacklistedPrincipal) Bytes(stream *nex.StreamOut) []byte

Bytes encodes the BlacklistedPrincipal and returns a byte array

func (*BlacklistedPrincipal) Copy

func (blacklistedPrincipal *BlacklistedPrincipal) Copy() nex.StructureInterface

Copy returns a new copied instance of BlacklistedPrincipal

func (*BlacklistedPrincipal) Equals

func (blacklistedPrincipal *BlacklistedPrincipal) Equals(structure nex.StructureInterface) bool

Equals checks if the passed Structure contains the same data as the current instance

func (*BlacklistedPrincipal) ExtractFromStream

func (blacklistedPrincipal *BlacklistedPrincipal) ExtractFromStream(stream *nex.StreamIn) error

ExtractFromStream extracts a BlacklistedPrincipal structure from a stream

func (*BlacklistedPrincipal) FormatToString

func (blacklistedPrincipal *BlacklistedPrincipal) FormatToString(indentationLevel int) string

FormatToString pretty-prints the struct data using the provided indentation level

func (*BlacklistedPrincipal) String

func (blacklistedPrincipal *BlacklistedPrincipal) String() string

String returns a string representation of the struct

type Comment

type Comment struct {
	nex.Structure
	*nex.Data
	Unknown     uint8
	Contents    string
	LastChanged *nex.DateTime
}

Comment contains data about a text comment

func NewComment

func NewComment() *Comment

NewComment returns a new Comment

func (*Comment) Bytes

func (comment *Comment) Bytes(stream *nex.StreamOut) []byte

Bytes encodes the Comment and returns a byte array

func (*Comment) Copy

func (comment *Comment) Copy() nex.StructureInterface

Copy returns a new copied instance of Comment

func (*Comment) Equals

func (comment *Comment) Equals(structure nex.StructureInterface) bool

Equals checks if the passed Structure contains the same data as the current instance

func (*Comment) ExtractFromStream

func (comment *Comment) ExtractFromStream(stream *nex.StreamIn) error

ExtractFromStream extracts a Comment structure from a stream

func (*Comment) FormatToString

func (comment *Comment) FormatToString(indentationLevel int) string

FormatToString pretty-prints the struct data using the provided indentation level

func (*Comment) String

func (comment *Comment) String() string

String returns a string representation of the struct

type FriendInfo

type FriendInfo struct {
	nex.Structure
	*nex.Data
	NNAInfo      *NNAInfo
	Presence     *NintendoPresenceV2
	Status       *Comment
	BecameFriend *nex.DateTime
	LastOnline   *nex.DateTime
	Unknown      uint64
}

FriendInfo contains information about a friend

func NewFriendInfo

func NewFriendInfo() *FriendInfo

NewFriendInfo returns a new FriendInfo

func (*FriendInfo) Bytes

func (friendInfo *FriendInfo) Bytes(stream *nex.StreamOut) []byte

Bytes encodes the FriendInfo and returns a byte array

func (*FriendInfo) Copy

func (friendInfo *FriendInfo) Copy() nex.StructureInterface

Copy returns a new copied instance of FriendInfo

func (*FriendInfo) Equals

func (friendInfo *FriendInfo) Equals(structure nex.StructureInterface) bool

Equals checks if the passed Structure contains the same data as the current instance

func (*FriendInfo) FormatToString

func (friendInfo *FriendInfo) FormatToString(indentationLevel int) string

FormatToString pretty-prints the struct data using the provided indentation level

func (*FriendInfo) String

func (friendInfo *FriendInfo) String() string

String returns a string representation of the struct

type FriendRequest

type FriendRequest struct {
	nex.Structure
	*nex.Data
	PrincipalInfo *PrincipalBasicInfo
	Message       *FriendRequestMessage
	SentOn        *nex.DateTime
}

FriendRequest contains information about a friend request

func NewFriendRequest

func NewFriendRequest() *FriendRequest

NewFriendRequest returns a new FriendRequest

func (*FriendRequest) Bytes

func (friendRequest *FriendRequest) Bytes(stream *nex.StreamOut) []byte

Bytes encodes the FriendRequest and returns a byte array

func (*FriendRequest) Copy

func (friendRequest *FriendRequest) Copy() nex.StructureInterface

Copy returns a new copied instance of FriendRequest

func (*FriendRequest) Equals

func (friendRequest *FriendRequest) Equals(structure nex.StructureInterface) bool

Equals checks if the passed Structure contains the same data as the current instance

func (*FriendRequest) FormatToString

func (friendRequest *FriendRequest) FormatToString(indentationLevel int) string

FormatToString pretty-prints the struct data using the provided indentation level

func (*FriendRequest) String

func (friendRequest *FriendRequest) String() string

String returns a string representation of the struct

type FriendRequestMessage

type FriendRequestMessage struct {
	nex.Structure
	*nex.Data
	FriendRequestID uint64
	Received        bool
	Unknown2        uint8
	Message         string
	Unknown3        uint8
	Unknown4        string
	GameKey         *GameKey
	Unknown5        *nex.DateTime
	ExpiresOn       *nex.DateTime
}

FriendRequestMessage contains message data for a FriendRequest

func NewFriendRequestMessage

func NewFriendRequestMessage() *FriendRequestMessage

NewFriendRequestMessage returns a new FriendRequestMessage

func (*FriendRequestMessage) Bytes

func (friendRequestMessage *FriendRequestMessage) Bytes(stream *nex.StreamOut) []byte

Bytes encodes the FriendRequestMessage and returns a byte array

func (*FriendRequestMessage) Copy

func (friendRequestMessage *FriendRequestMessage) Copy() nex.StructureInterface

Copy returns a new copied instance of FriendRequestMessage

func (*FriendRequestMessage) Equals

func (friendRequestMessage *FriendRequestMessage) Equals(structure nex.StructureInterface) bool

Equals checks if the passed Structure contains the same data as the current instance

func (*FriendRequestMessage) FormatToString

func (friendRequestMessage *FriendRequestMessage) FormatToString(indentationLevel int) string

FormatToString pretty-prints the struct data using the provided indentation level

func (*FriendRequestMessage) String

func (friendRequestMessage *FriendRequestMessage) String() string

String returns a string representation of the struct

type GameKey

type GameKey struct {
	nex.Structure
	*nex.Data
	TitleID      uint64
	TitleVersion uint16
}

GameKey contains the title ID and version for a title

func NewGameKey

func NewGameKey() *GameKey

NewGameKey returns a new GameKey

func (*GameKey) Bytes

func (gameKey *GameKey) Bytes(stream *nex.StreamOut) []byte

Bytes encodes the GameKey and returns a byte array

func (*GameKey) Copy

func (gameKey *GameKey) Copy() nex.StructureInterface

Copy returns a new copied instance of GameKey

func (*GameKey) Equals

func (gameKey *GameKey) Equals(structure nex.StructureInterface) bool

Equals checks if the passed Structure contains the same data as the current instance

func (*GameKey) ExtractFromStream

func (gameKey *GameKey) ExtractFromStream(stream *nex.StreamIn) error

ExtractFromStream extracts a GameKey structure from a stream

func (*GameKey) FormatToString

func (gameKey *GameKey) FormatToString(indentationLevel int) string

FormatToString pretty-prints the struct data using the provided indentation level

func (*GameKey) String

func (gameKey *GameKey) String() string

String returns a string representation of the struct

type MiiV2

type MiiV2 struct {
	nex.Structure
	*nex.Data
	Name     string
	Unknown1 uint8
	Unknown2 uint8
	MiiData  []byte
	Datetime *nex.DateTime
}

MiiV2 contains data about a Mii

func NewMiiV2

func NewMiiV2() *MiiV2

NewMiiV2 returns a new MiiV2

func (*MiiV2) Bytes

func (mii *MiiV2) Bytes(stream *nex.StreamOut) []byte

Bytes encodes the MiiV2 and returns a byte array

func (*MiiV2) Copy

func (mii *MiiV2) Copy() nex.StructureInterface

Copy returns a new copied instance of MiiV2

func (*MiiV2) Equals

func (mii *MiiV2) Equals(structure nex.StructureInterface) bool

Equals checks if the passed Structure contains the same data as the current instance

func (*MiiV2) ExtractFromStream

func (mii *MiiV2) ExtractFromStream(stream *nex.StreamIn) error

ExtractFromStream extracts a MiiV2 structure from a stream

func (*MiiV2) FormatToString

func (mii *MiiV2) FormatToString(indentationLevel int) string

FormatToString pretty-prints the struct data using the provided indentation level

func (*MiiV2) String

func (mii *MiiV2) String() string

String returns a string representation of the struct

type NNAInfo

type NNAInfo struct {
	nex.Structure
	*nex.Data
	PrincipalBasicInfo *PrincipalBasicInfo
	Unknown1           uint8
	Unknown2           uint8
}

NNAInfo contains information about a Nintendo Network Account

func NewNNAInfo

func NewNNAInfo() *NNAInfo

NewNNAInfo returns a new NNAInfo

func (*NNAInfo) Bytes

func (nnaInfo *NNAInfo) Bytes(stream *nex.StreamOut) []byte

Bytes encodes the NNAInfo and returns a byte array

func (*NNAInfo) Copy

func (nnaInfo *NNAInfo) Copy() nex.StructureInterface

Copy returns a new copied instance of NNAInfo

func (*NNAInfo) Equals

func (nnaInfo *NNAInfo) Equals(structure nex.StructureInterface) bool

Equals checks if the passed Structure contains the same data as the current instance

func (*NNAInfo) ExtractFromStream

func (nnaInfo *NNAInfo) ExtractFromStream(stream *nex.StreamIn) error

ExtractFromStream extracts a NNAInfo structure from a stream

func (*NNAInfo) FormatToString

func (nnaInfo *NNAInfo) FormatToString(indentationLevel int) string

FormatToString pretty-prints the struct data using the provided indentation level

func (*NNAInfo) String

func (nnaInfo *NNAInfo) String() string

String returns a string representation of the struct

type NintendoPresenceV2

type NintendoPresenceV2 struct {
	nex.Structure
	*nex.Data
	ChangedFlags    uint32
	Online          bool
	GameKey         *GameKey
	Unknown1        uint8
	Message         string
	Unknown2        uint32
	Unknown3        uint8
	GameServerID    uint32
	Unknown4        uint32
	PID             uint32
	GatheringID     uint32
	ApplicationData []byte
	Unknown5        uint8
	Unknown6        uint8
	Unknown7        uint8
}

NintendoPresenceV2 contains information about a users online presence

func NewNintendoPresenceV2

func NewNintendoPresenceV2() *NintendoPresenceV2

NewNintendoPresenceV2 returns a new NintendoPresenceV2

func (*NintendoPresenceV2) Bytes

func (presence *NintendoPresenceV2) Bytes(stream *nex.StreamOut) []byte

Bytes encodes the NintendoPresenceV2 and returns a byte array

func (*NintendoPresenceV2) Copy

func (presence *NintendoPresenceV2) Copy() nex.StructureInterface

Copy returns a new copied instance of NintendoPresenceV2

func (*NintendoPresenceV2) Equals

func (presence *NintendoPresenceV2) Equals(structure nex.StructureInterface) bool

Equals checks if the passed Structure contains the same data as the current instance

func (*NintendoPresenceV2) ExtractFromStream

func (presence *NintendoPresenceV2) ExtractFromStream(stream *nex.StreamIn) error

ExtractFromStream extracts a NintendoPresenceV2 structure from a stream

func (*NintendoPresenceV2) FormatToString

func (presence *NintendoPresenceV2) FormatToString(indentationLevel int) string

FormatToString pretty-prints the struct data using the provided indentation level

func (*NintendoPresenceV2) String

func (presence *NintendoPresenceV2) String() string

String returns a string representation of the struct

type PersistentNotification

type PersistentNotification struct {
	nex.Structure
	*nex.Data
	Unknown1 uint64
	Unknown2 uint32
	Unknown3 uint32
	Unknown4 uint32
	Unknown5 string
}

PersistentNotification contains unknown data

func NewPersistentNotification

func NewPersistentNotification() *PersistentNotification

NewPersistentNotification returns a new PersistentNotification

func (*PersistentNotification) Copy

func (notification *PersistentNotification) Copy() nex.StructureInterface

Copy returns a new copied instance of PersistentNotification

func (*PersistentNotification) Equals

func (notification *PersistentNotification) Equals(structure nex.StructureInterface) bool

Equals checks if the passed Structure contains the same data as the current instance

func (*PersistentNotification) ExtractFromStream

func (notification *PersistentNotification) ExtractFromStream(stream *nex.StreamIn) error

ExtractFromStream extracts a PersistentNotification structure from a stream

func (*PersistentNotification) FormatToString

func (notification *PersistentNotification) FormatToString(indentationLevel int) string

FormatToString pretty-prints the struct data using the provided indentation level

func (*PersistentNotification) String

func (notification *PersistentNotification) String() string

String returns a string representation of the struct

type PersistentNotificationList added in v1.0.43

type PersistentNotificationList struct {
	nex.Structure
	*nex.Data
	Notifications []*PersistentNotification
}

PersistentNotificationList contains unknown data

func NewPersistentNotificationList added in v1.0.43

func NewPersistentNotificationList() *PersistentNotificationList

NewPersistentNotificationList returns a new PersistentNotificationList

func (*PersistentNotificationList) Copy added in v1.0.43

func (notificationList *PersistentNotificationList) Copy() nex.StructureInterface

Copy returns a new copied instance of PersistentNotificationList

func (*PersistentNotificationList) Equals added in v1.0.43

func (notificationList *PersistentNotificationList) Equals(structure nex.StructureInterface) bool

Equals checks if the passed Structure contains the same data as the current instance

func (*PersistentNotificationList) ExtractFromStream added in v1.0.43

func (notificationList *PersistentNotificationList) ExtractFromStream(stream *nex.StreamIn) error

ExtractFromStream extracts a PersistentNotificationList structure from a stream

func (*PersistentNotificationList) FormatToString added in v1.0.43

func (notificationList *PersistentNotificationList) FormatToString(indentationLevel int) string

FormatToString pretty-prints the struct data using the provided indentation level

func (*PersistentNotificationList) String added in v1.0.43

func (notificationList *PersistentNotificationList) String() string

String returns a string representation of the struct

type PrincipalBasicInfo

type PrincipalBasicInfo struct {
	nex.Structure
	*nex.Data
	PID     uint32
	NNID    string
	Mii     *MiiV2
	Unknown uint8
}

PrincipalBasicInfo contains user account and Mii data

func NewPrincipalBasicInfo

func NewPrincipalBasicInfo() *PrincipalBasicInfo

NewPrincipalBasicInfo returns a new PrincipalBasicInfo

func (*PrincipalBasicInfo) Bytes

func (principalInfo *PrincipalBasicInfo) Bytes(stream *nex.StreamOut) []byte

Bytes encodes the PrincipalBasicInfo and returns a byte array

func (*PrincipalBasicInfo) Copy

func (principalInfo *PrincipalBasicInfo) Copy() nex.StructureInterface

Copy returns a new copied instance of PrincipalBasicInfo

func (*PrincipalBasicInfo) Equals

func (principalInfo *PrincipalBasicInfo) Equals(structure nex.StructureInterface) bool

Equals checks if the passed Structure contains the same data as the current instance

func (*PrincipalBasicInfo) ExtractFromStream

func (principalInfo *PrincipalBasicInfo) ExtractFromStream(stream *nex.StreamIn) error

ExtractFromStream extracts a PrincipalBasicInfo structure from a stream

func (*PrincipalBasicInfo) FormatToString

func (principalInfo *PrincipalBasicInfo) FormatToString(indentationLevel int) string

FormatToString pretty-prints the struct data using the provided indentation level

func (*PrincipalBasicInfo) String

func (principalInfo *PrincipalBasicInfo) String() string

String returns a string representation of the struct

type PrincipalPreference

type PrincipalPreference struct {
	nex.Structure
	*nex.Data
	ShowOnlinePresence  bool
	ShowCurrentTitle    bool
	BlockFriendRequests bool
}

PrincipalPreference contains unknown data

func NewPrincipalPreference

func NewPrincipalPreference() *PrincipalPreference

NewPrincipalPreference returns a new PrincipalPreference

func (*PrincipalPreference) Bytes

func (principalPreference *PrincipalPreference) Bytes(stream *nex.StreamOut) []byte

Bytes encodes the PrincipalPreference and returns a byte array

func (*PrincipalPreference) Copy

func (principalPreference *PrincipalPreference) Copy() nex.StructureInterface

Copy returns a new copied instance of PrincipalPreference

func (*PrincipalPreference) Equals

func (principalPreference *PrincipalPreference) Equals(structure nex.StructureInterface) bool

Equals checks if the passed Structure contains the same data as the current instance

func (*PrincipalPreference) ExtractFromStream

func (principalPreference *PrincipalPreference) ExtractFromStream(stream *nex.StreamIn) error

ExtractFromStream extracts a PrincipalPreference structure from a stream

func (*PrincipalPreference) FormatToString

func (principalPreference *PrincipalPreference) FormatToString(indentationLevel int) string

FormatToString pretty-prints the struct data using the provided indentation level

func (*PrincipalPreference) String

func (principalPreference *PrincipalPreference) String() string

String returns a string representation of the struct

type PrincipalRequestBlockSetting

type PrincipalRequestBlockSetting struct {
	nex.Structure
	*nex.Data
	PID       uint32
	IsBlocked bool
}

PrincipalRequestBlockSetting contains unknow data

func NewPrincipalRequestBlockSetting

func NewPrincipalRequestBlockSetting() *PrincipalRequestBlockSetting

NewPrincipalRequestBlockSetting returns a new PrincipalRequestBlockSetting

func (*PrincipalRequestBlockSetting) Bytes

func (principalRequestBlockSetting *PrincipalRequestBlockSetting) Bytes(stream *nex.StreamOut) []byte

Bytes encodes the PrincipalRequestBlockSetting and returns a byte array

func (*PrincipalRequestBlockSetting) Copy

func (principalRequestBlockSetting *PrincipalRequestBlockSetting) Copy() nex.StructureInterface

Copy returns a new copied instance of PrincipalRequestBlockSetting

func (*PrincipalRequestBlockSetting) Equals

func (principalRequestBlockSetting *PrincipalRequestBlockSetting) Equals(structure nex.StructureInterface) bool

Equals checks if the passed Structure contains the same data as the current instance

func (*PrincipalRequestBlockSetting) FormatToString

func (principalRequestBlockSetting *PrincipalRequestBlockSetting) FormatToString(indentationLevel int) string

FormatToString pretty-prints the struct data using the provided indentation level

func (*PrincipalRequestBlockSetting) String

func (principalRequestBlockSetting *PrincipalRequestBlockSetting) String() string

String returns a string representation of the struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL