2016-05-04 07:03:36 +00:00
|
|
|
package libnmdc
|
|
|
|
|
2017-11-22 06:11:11 +00:00
|
|
|
type HubEventType int
|
|
|
|
|
2016-05-04 07:03:36 +00:00
|
|
|
const (
|
2017-11-22 06:11:11 +00:00
|
|
|
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
|
2018-06-04 07:28:08 +00:00
|
|
|
EVENT_BAD_LOGIN_FAILURE HubEventType = 12
|
2016-05-04 07:03:36 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type HubEvent struct {
|
|
|
|
EventType HubEventType
|
|
|
|
Nick string
|
|
|
|
Message string
|
|
|
|
StateChange ConnectionState
|
2016-10-08 02:19:21 +00:00
|
|
|
UserCommand *UserCommand
|
2016-05-04 07:03:36 +00:00
|
|
|
}
|