Add the MatrixRoomMembership enum type

This commit is contained in:
Gergely Polonkai 2016-02-03 10:42:52 +01:00
parent 14031f7faa
commit 80d4791658
2 changed files with 15 additions and 0 deletions

View File

@ -85,6 +85,7 @@ MatrixPusherConditionKind
MatrixEventDirection
MatrixReceiptType
MatrixAccountKind
MatrixRoomMembership
<SUBSECTION>
MatrixFilterRules
@ -261,6 +262,8 @@ MATRIX_TYPE_RECEIPT_TYPE
matrix_receipt_type_get_type
MATRIX_TYPE_ACCOUNT_KIND
matrix_account_kind_get_type
MATRIX_TYPE_ROOM_MEMBERSHIP
matrix_room_membership_get_type
MATRIX_TYPE_FILTER_RULES
matrix_filter_rules_get_type
MATRIX_TYPE_ROOM_FILTER

View File

@ -143,6 +143,18 @@ namespace Matrix {
SCALE; /// scale thumbnail to the requested size
}
/**
* Room membership types.
*/
public enum RoomMembership {
UNKNOWN, /// the membership sent by the server is unknown to this SDK
INVITE, /// the user has been invited to join a room, but has not yet joined it. They may not participate in the room until they join
JOIN, /// the user has joined the room (possibly after accepting an invite), and may participate in it
LEAVE, /// the user was once joined to the room, but has since left (possibly by choice, or possibly by being kicked)
BAN, /// the user has been banned from the room, and is no longer allowed to join it until they are un-banned from the room (by having their membership state set to a value other than {{{BAN}}})
KNOCK; /// this is a reserved word, which currently has no meaning
}
/**
* Preset values for matrix_api_create_room() calls.
*/