profile

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Profile Profile
}

Args contains the event arguments for profile events.

type Manager

type Manager struct {
	Profile
	// contains filtered or unexported fields
}

Manager tracks the state of the user's profile.

func NewManager

func NewManager(ix g.Interceptor) *Manager

func (*Manager) Updated

func (mgr *Manager) Updated(handler g.EventHandler[Args])

Updated registers an event handler that is invoked when the user's profile is updated.

type Profile

type Profile struct {
	Name                    string
	Figure                  string
	Gender                  string
	CustomData              string
	PhTickets               int
	PhFigure                string
	PhotoFilm               int
	DirectMail              int
	OnlineStatus            bool
	PublicProfileEnabled    bool
	FriendRequestsEnabled   bool
	OfflineMessagingEnabled bool
}

func (*Profile) Parse

func (profile *Profile) Parse(p *g.Packet, pos *int)

Jump to

Keyboard shortcuts

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