Documentation
¶
Overview ¶
Package types implements all the types used by the Notifications protocol
Index ¶
- type NotificationEvent
- func (notificationEvent *NotificationEvent) Bytes(stream *nex.StreamOut) []byte
- func (notificationEvent *NotificationEvent) Copy() nex.StructureInterface
- func (notificationEvent *NotificationEvent) Equals(structure nex.StructureInterface) bool
- func (notificationEvent *NotificationEvent) FormatToString(indentationLevel int) string
- func (notificationEvent *NotificationEvent) String() string
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
Click to show internal directories.
Click to hide internal directories.