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: 3 Imported by: 3

Documentation

Overview

Package types implements all the types used by the Notifications protocol

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationEvent

type NotificationEvent struct {
	nex.Structure
	PIDSource uint32
	Type      uint32
	Param1    uint32
	Param2    uint32
	StrParam  string
	Param3    uint32
}

NotificationEvent holds general purpose notification data

func NewNotificationEvent

func NewNotificationEvent() *NotificationEvent

NewNotificationEvent returns a new NotificationEvent

func (*NotificationEvent) Bytes

func (notificationEvent *NotificationEvent) Bytes(stream *nex.StreamOut) []byte

Bytes encodes the NotificationEvent and returns a byte array

func (*NotificationEvent) Copy

func (notificationEvent *NotificationEvent) Copy() nex.StructureInterface

Copy returns a new copied instance of NotificationEvent

func (*NotificationEvent) Equals

func (notificationEvent *NotificationEvent) Equals(structure nex.StructureInterface) bool

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

func (*NotificationEvent) FormatToString

func (notificationEvent *NotificationEvent) FormatToString(indentationLevel int) string

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

func (*NotificationEvent) String

func (notificationEvent *NotificationEvent) 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