ChatEventType.cs 3.79 KB
Newer Older
1 2 3
namespace StackExchangeChat
{
    // Copy & pasted from https://github.com/SOBotics/SharpExchange/blob/master/SharpExchange/Chat/Events/EventType.cs
4
    public enum ChatEventType
5
    {
6 7 8 9 10
        /// <summary>
        /// Custom event type, emitted when successfully joined the room
        /// </summary>
        ChatJoined = -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 39 40 41
        /// <summary>
        /// A new message has been posted.
        /// </summary>
        MessagePosted = 1,

        /// <summary>
        /// A message has been edited.
        /// </summary>
        MessageEdited = 2,

        /// <summary>
        /// A user has entered the room.
        /// </summary>
        UserEntered = 3,

        /// <summary>
        /// A user has left the room.
        /// </summary>
        UserLeft = 4,

        /// <summary>
        /// The room's name, description and/or tags have been changed.
        /// </summary>
        RoomNameChanged = 5,

        /// <summary>
        /// Someone has (un)starred a message.
        /// </summary>
        MessageStarToggled = 6,

        /// <summary>
42
        /// Browser simply logs the content of this event.
43 44 45 46
        /// </summary>
        DebugMessage = 7,

        /// <summary>
47
        /// The current account has been mentioned (@Username) in a message. May originate from another room.
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
        /// </summary>
        UserMentioned = 8,

        /// <summary>
        /// A message has been flagged as spam/offensive.
        /// </summary>
        MessageFlagged = 9,

        /// <summary>
        /// A message has been deleted.
        /// </summary>
        MessageDeleted = 10,

        /// <summary>
        /// A file has been uploaded to the room.
        /// Dev note: as far as I know, only one room supports this publicly,
        /// the Android SE testing app room.
        /// </summary>
        FileAdded = 11,

        /// <summary>
        /// A message has been flagged for moderator attention.
        /// </summary>
        ModeratorFlag = 12,

        /// <summary>
74
        /// User is ignored or un-ignored.
75 76 77 78
        /// </summary>
        UserSettingsChanged = 13,

        /// <summary>
79 80
        /// Notifications displayed as a banner in a room. Does not include room invitations. 
        /// For example, room events starting.
81 82 83 84 85 86 87 88 89
        /// </summary>
        GlobalNotification = 14,

        /// <summary>
        /// A user's room access level has been changed.
        /// </summary>
        UserAccessLevelChanged = 15,

        /// <summary>
90
        /// Not sure which events trigger this. Behaves the same as GlobalNotification in the web browser.
91 92 93 94 95 96 97 98 99
        /// </summary>
        UserNotification = 16,

        /// <summary>
        /// The current account has been invited to join another room.
        /// </summary>
        RoomInvitation = 17,

        /// <summary>
100
        /// Someone has posted a direct reply to a message posted by this account. May originate from another room.
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
        /// </summary>
        MessageReply = 18,

        /// <summary>
        /// A room owner/moderator has moved a message out of the room.
        /// </summary>
        MessageMovedOut = 19,

        /// <summary>
        /// A room owner/moderator has moved a message into the room.
        /// </summary>
        MessageMovedIn = 20,

        /// <summary>
        /// No idea.
        /// </summary>
        TimeBreak = 21,

        /// <summary>
120
        /// New item in the room's feed ticker received.
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
        /// </summary>
        FeedTicker = 22,

        /// <summary>
        /// A user has been suspended.
        /// </summary>
        UserSuspended = 29,

        /// <summary>
        /// Two user accounts have been merged.
        /// </summary>
        UserMerged = 30,

        /// <summary>
        /// A user's name or avatar has been updated.
        /// </summary>
        UserNameOrAvatarChanged = 34
    }
}