Move the PusherConditionKind enum to Vala
This commit is contained in:
parent
78b98b4a5c
commit
e5d110d0f4
@ -50,14 +50,6 @@ namespace Matrix {
|
||||
UNDERRIDE;
|
||||
}
|
||||
|
||||
[CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_PUSHER_CONDITION_KIND_")]
|
||||
public enum PusherConditionKind {
|
||||
EVENT_MATCH,
|
||||
PROFILE_TAG,
|
||||
CONTAINS_DISPLAY_NAME,
|
||||
ROOM_MEMBER_COUNT;
|
||||
}
|
||||
|
||||
[CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_ROOM_PRESET_")]
|
||||
public enum RoomPreset {
|
||||
NONE,
|
||||
|
@ -55,6 +55,16 @@ namespace Matrix {
|
||||
FREE_FOR_CHAT; /// user is free for chat
|
||||
}
|
||||
|
||||
/**
|
||||
* Condition types for pushers.
|
||||
*/
|
||||
public enum PusherConditionKind {
|
||||
EVENT_MATCH, /// glob pattern match on a field of the event. Requires a {{{key}}} and a {{{pattern}}} parameter
|
||||
PROFILE_TAG, /// matches the profile tag of the device that the notification would be delivered to. Requires a {{{profile_tag}}} parameter
|
||||
CONTAINS_DISPLAY_NAME, /// matches unencrypted messages where the content's body contains the owner's display name in that room.
|
||||
ROOM_MEMBER_COUNT; /// matches the current number of members in the room. Requires an {{{is}}} parameter, which must be an integer, optionally prefixed by {{==}}}, {{{<}}}, {{{>}}}, {{{<=}}} or {{{>=}}}. If the prefix is omitted, it defaults to {{{==}}}
|
||||
}
|
||||
|
||||
/**
|
||||
* Resizing methods for matrix_api_media_thumbnail().
|
||||
*/
|
||||
|
@ -152,52 +152,6 @@ G_DEFINE_QUARK(matrix-error-quark, matrix_error);
|
||||
* Pusher types.
|
||||
*/
|
||||
|
||||
/**
|
||||
* MatrixPusherConditionKind:
|
||||
* @MATRIX_PUSHER_CONDITION_KIND_EVENT_MATCH: glob pattern match on a
|
||||
* field of the
|
||||
* event. Requires a
|
||||
* <code>key</code> and a
|
||||
* <code>pattern</code>
|
||||
* parameter
|
||||
* @MATRIX_PUSHER_CONDITION_KIND_PROFILE_TAG: matches the profile tag
|
||||
* of the device that the
|
||||
* notification would be
|
||||
* delivered to. Requires a
|
||||
* <code>profile_tag</code>
|
||||
* parameter
|
||||
* @MATRIX_PUSHER_CONDITION_KIND_CONTAINS_DISPLAY_NAME: matches
|
||||
* unencrypted
|
||||
* messages where
|
||||
* the content's
|
||||
* body contains
|
||||
* the owner's
|
||||
* display name
|
||||
* in that room.
|
||||
* @MATRIX_PUSHER_CONDITION_KIND_ROOM_MEMBER_COUNT: matches the
|
||||
* current number of
|
||||
* members in the
|
||||
* room. Requires an
|
||||
* <code>is</code>
|
||||
* parameter, which
|
||||
* must be an
|
||||
* integer,
|
||||
* optionally
|
||||
* prefixed by
|
||||
* <code>==</code>,
|
||||
* <code><</code>,
|
||||
* <code>></code>,
|
||||
* <code><=</code>
|
||||
* or
|
||||
* <code>>=</code>. If
|
||||
* the prefix is
|
||||
* omitted, it
|
||||
* defaults to
|
||||
* <code>==</code>
|
||||
*
|
||||
* Condition types for pushers.
|
||||
*/
|
||||
|
||||
/**
|
||||
* MatrixReceiptType:
|
||||
* @MATRIX_RECEIPT_TYPE_READ: indicate that the message has been read
|
||||
|
@ -97,13 +97,6 @@ typedef enum {
|
||||
MATRIX_PUSHER_KIND_UNDERRIDE
|
||||
} MatrixPusherKind;
|
||||
|
||||
typedef enum {
|
||||
MATRIX_PUSHER_CONDITION_KIND_EVENT_MATCH,
|
||||
MATRIX_PUSHER_CONDITION_KIND_PROFILE_TAG,
|
||||
MATRIX_PUSHER_CONDITION_KIND_CONTAINS_DISPLAY_NAME,
|
||||
MATRIX_PUSHER_CONDITION_KIND_ROOM_MEMBER_COUNT
|
||||
} MatrixPusherConditionKind;
|
||||
|
||||
typedef struct _MatrixStateEvent MatrixStateEvent;
|
||||
|
||||
GType matrix_state_event_get_type(void);
|
||||
|
Loading…
Reference in New Issue
Block a user