HubEvent explicit types
--HG-- branch : adc
This commit is contained in:
parent
7543d7058f
commit
2a60330e7c
28
HubEvent.go
28
HubEvent.go
@ -1,21 +1,21 @@
|
|||||||
package libnmdc
|
package libnmdc
|
||||||
|
|
||||||
const (
|
|
||||||
EVENT_PUBLIC = 1
|
|
||||||
EVENT_PRIVATE = 2
|
|
||||||
EVENT_SYSTEM_MESSAGE_FROM_HUB = 3
|
|
||||||
EVENT_SYSTEM_MESSAGE_FROM_CONN = 4
|
|
||||||
EVENT_USER_JOINED = 5
|
|
||||||
EVENT_USER_PART = 6
|
|
||||||
EVENT_USER_UPDATED_INFO = 7
|
|
||||||
EVENT_CONNECTION_STATE_CHANGED = 8
|
|
||||||
EVENT_HUBNAME_CHANGED = 9
|
|
||||||
EVENT_DEBUG_MESSAGE = 10
|
|
||||||
EVENT_USERCOMMAND = 11
|
|
||||||
)
|
|
||||||
|
|
||||||
type HubEventType int
|
type HubEventType int
|
||||||
|
|
||||||
|
const (
|
||||||
|
EVENT_PUBLIC HubEventType = 1
|
||||||
|
EVENT_PRIVATE HubEventType = 2
|
||||||
|
EVENT_SYSTEM_MESSAGE_FROM_HUB HubEventType = 3
|
||||||
|
EVENT_SYSTEM_MESSAGE_FROM_CONN HubEventType = 4
|
||||||
|
EVENT_USER_JOINED HubEventType = 5
|
||||||
|
EVENT_USER_PART HubEventType = 6
|
||||||
|
EVENT_USER_UPDATED_INFO HubEventType = 7
|
||||||
|
EVENT_CONNECTION_STATE_CHANGED HubEventType = 8
|
||||||
|
EVENT_HUBNAME_CHANGED HubEventType = 9
|
||||||
|
EVENT_DEBUG_MESSAGE HubEventType = 10
|
||||||
|
EVENT_USERCOMMAND HubEventType = 11
|
||||||
|
)
|
||||||
|
|
||||||
type HubEvent struct {
|
type HubEvent struct {
|
||||||
EventType HubEventType
|
EventType HubEventType
|
||||||
Nick string
|
Nick string
|
||||||
|
Loading…
Reference in New Issue
Block a user