Removed unneeded NotificationEvent structure

This commit is contained in:
Jonathan Barrow 2022-09-03 01:07:59 -04:00
parent 54ac895d82
commit fc3c4b3bfb
No known key found for this signature in database
GPG Key ID: E86E9FE9049C741F

View File

@ -8,27 +8,6 @@ import (
nexproto "github.com/PretendoNetwork/nex-protocols-go"
)
// NotificationEvent is a NotificationEvent
type NotificationEvent struct {
sourcePID uint32
typeParameter uint32
parameter1 uint32
parameter2 uint32
stringParameter string
nex.Structure
}
// Bytes encodes the NotificationEvent and returns a byte array
func (notificationEvent *NotificationEvent) Bytes(stream *nex.StreamOut) []byte {
stream.WriteUInt32LE(notificationEvent.sourcePID)
stream.WriteUInt32LE(notificationEvent.typeParameter)
stream.WriteUInt32LE(notificationEvent.parameter1)
stream.WriteUInt32LE(notificationEvent.parameter2)
stream.WriteString(notificationEvent.stringParameter)
return stream.Bytes()
}
func getFriendNotificationData(err error, client *nex.Client, callID uint32, uiType int32) {
fmt.Printf("uiType: %d\r\n", uiType)