Port MatrixSearchGroupBy to C
This commit is contained in:
parent
80e61b8f93
commit
11d18ef27a
@ -237,3 +237,19 @@ G_DEFINE_QUARK(matrix-error-quark, matrix_error);
|
||||
*
|
||||
* Search keys.
|
||||
*/
|
||||
|
||||
/**
|
||||
* MatrixSearchGroupBy:
|
||||
* @MATRIX_SEARCH_GROUP_BY_NONE: no grouping
|
||||
* @MATRIX_SEARCH_GROUP_BY_ROOM_ID: group by room ID
|
||||
* @MATRIX_SEARCH_GROUP_BY_SENDER: group by sender
|
||||
*
|
||||
* Search grouping
|
||||
*
|
||||
* The client can request that the results are returned along with
|
||||
* grouping information, e.g. grouped by room_id. In this case the
|
||||
* response will contain a group entry for each distinct value of
|
||||
* room_id. Each group entry contains at least a list of the
|
||||
* event_ids that are in that group, as well as potentially other
|
||||
* metadata about the group.
|
||||
*/
|
||||
|
@ -165,4 +165,10 @@ typedef enum {
|
||||
MATRIX_SEARCH_KEY_CONTENT_TOPIC
|
||||
} MatrixSearchKey;
|
||||
|
||||
typedef enum {
|
||||
MATRIX_SEARCH_GROUP_BY_NONE,
|
||||
MATRIX_SEARCH_GROUP_BY_ROOM_ID,
|
||||
MATRIX_SEARCH_GROUP_BY_SENDER
|
||||
} MatrixSearchGroupBy;
|
||||
|
||||
#endif /* __MATRIX_TYPE_H__ */
|
||||
|
@ -17,33 +17,6 @@
|
||||
*/
|
||||
|
||||
namespace Matrix {
|
||||
/**
|
||||
* Search grouping
|
||||
*
|
||||
* The client can request that the results are returned along with
|
||||
* grouping information, e.g. grouped by room_id. In this case the
|
||||
* response will contain a group entry for each distinct value of
|
||||
* room_id. Each group entry contains at least a list of the
|
||||
* event_ids that are in that group, as well as potentially other
|
||||
* metadata about the group.
|
||||
*/
|
||||
public enum SearchGroupBy {
|
||||
/**
|
||||
* no grouping
|
||||
*/
|
||||
NONE,
|
||||
|
||||
/**
|
||||
* group by room ID
|
||||
*/
|
||||
ROOM_ID,
|
||||
|
||||
/**
|
||||
* group by sender
|
||||
*/
|
||||
SENDER;
|
||||
}
|
||||
|
||||
/**
|
||||
* Room history visibility
|
||||
*/
|
||||
|
@ -169,6 +169,13 @@ namespace Matrix {
|
||||
CONTENT_TOPIC;
|
||||
}
|
||||
|
||||
[CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_SEARCH_GROUP_BY_")]
|
||||
public enum SearchGroupBy {
|
||||
NONE,
|
||||
ROOM_ID,
|
||||
SENDER;
|
||||
}
|
||||
|
||||
/**
|
||||
* The major version number of the Matrix.org GLib SDK.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user