This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
2018-02-14 18:49:26 +01:00
|
|
|
package xmpp
|
2018-02-13 20:05:18 +01:00
|
|
|
|
2018-02-14 18:49:26 +01:00
|
|
|
// PresenceType is a Enum of presence attribute type
|
2018-02-13 20:05:18 +01:00
|
|
|
type PresenceType string
|
|
|
|
|
2018-02-22 03:12:07 +01:00
|
|
|
// RFC 6120: part of A.5 Client Namespace and A.6 Server Namespace
|
2018-02-13 20:05:18 +01:00
|
|
|
const (
|
|
|
|
PresenceTypeError PresenceType = "error"
|
|
|
|
PresenceTypeProbe PresenceType = "probe"
|
|
|
|
PresenceTypeSubscribe PresenceType = "subscribe"
|
|
|
|
PresenceTypeSubscribed PresenceType = "subscribed"
|
|
|
|
PresenceTypeUnavailable PresenceType = "unavailable"
|
|
|
|
PresenceTypeUnsubscribe PresenceType = "unsubscribe"
|
|
|
|
PresenceTypeUnsubscribed PresenceType = "unsubscribed"
|
|
|
|
)
|
|
|
|
|
2018-02-14 18:49:26 +01:00
|
|
|
// PresenceShow is a Enum of presence element show
|
2018-02-13 20:05:18 +01:00
|
|
|
type PresenceShow string
|
|
|
|
|
2018-02-22 03:12:07 +01:00
|
|
|
// RFC 6120: part of A.5 Client Namespace and A.6 Server Namespace
|
2018-02-13 20:05:18 +01:00
|
|
|
const (
|
|
|
|
PresenceShowAway PresenceShow = "away"
|
|
|
|
PresenceShowChat PresenceShow = "chat"
|
|
|
|
PresenceShowDND PresenceShow = "dnd"
|
|
|
|
PresenceShowXA PresenceShow = "xa"
|
|
|
|
)
|