-
Notifications
You must be signed in to change notification settings - Fork 1
/
notification.go
38 lines (29 loc) · 1.02 KB
/
notification.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package posbus
type NotificationType uint32
type Notification struct {
NotifyType NotificationType `json:"notify_type"`
Value string `json:"value"`
}
const (
NotificationNone NotificationType = 0
NotificationWow NotificationType = 1
NotificationHighFive NotificationType = 2
NotificationStageModeAccept NotificationType = 10
NotificationStageModeInvitation NotificationType = 11
NotificationStageModeSet NotificationType = 12
NotificationStageModeStageJoin NotificationType = 13
NotificationStageModeStageRequest NotificationType = 14
NotificationStageModeStageDeclined NotificationType = 15
NotificationGatheringStart NotificationType = 20
NotificationTextMessage NotificationType = 500
NotificationRelay NotificationType = 501
NotificationGeneric NotificationType = 999
NotificationLegacy NotificationType = 1000
)
func init() {
registerMessage(Notification{})
addExtraType(NotificationType(0))
}
func (g *Notification) GetType() MsgType {
return 0xC1FB41D7
}