|
enum | ChannelListOrder { CHRONOLOGICAL,
LATEST_LAST_MESSAGE,
CHANNEL_NAME_ALPHABETICAL,
METADATA_VALUE_ALPHABETICAL
} |
|
enum | QueryType { AND,
OR
} |
|
enum | SuperChannelFilter { ALL,
SUPER_CHANNEL_ONLY,
NONSUPER_CHANNEL_ONLY
} |
|
enum | PublicChannelFilter { ALL,
PUBLIC,
PRIVATE
} |
|
enum | UnreadChannelFilter { ALL,
UNREAD_MESSAGE
} |
|
enum | SearchField { MEMBER_NICKNAME,
CHANNEL_NAME
} |
|
enum | MemberStateFilter {
ALL,
INVITED,
INVITED_BY_FRIEND,
INVITED_BY_NON_FRIEND,
JOINED
} |
|
enum | HiddenChannelFilter { UNHIDDEN,
HIDDEN,
HIDDEN_ALLOW_AUTO_UNHIDE,
HIDDEN_PREVENT_AUTO_UNHIDE
} |
|
A class representing query to retrieve GroupChannel list for the current User
.
Currently, 1 kind of GroupChannel
list can be queried.
◆ ChannelListOrder
The query result order type. CHRONOLOGICAL
query returns the result as by event time ascending order. LATEST_LAST_MESSAGE
query returns the result as by event time descending order.
◆ HiddenChannelFilter
◆ MemberStateFilter
◆ PublicChannelFilter
◆ QueryType
The query type for currently supported only with SetUserIdsIncludeFilter(List, QueryType). If QueryType
is AND
and userIdsList
contains A and B, the channels which have members A AND
B will be returned. If the type is OR
, the channels which have members A OR
B will be returned.
◆ SearchField
◆ SuperChannelFilter
◆ UnreadChannelFilter
◆ GetHiddenChannelFilter()
◆ GetMemberStateFilter()
Returns a filter to return channels with the current User
state matching to MemberStateFilter.
- Returns
- Returns MemberStateFilter
- Since
- 3.0.15
◆ GetPublicChannelFilter()
◆ GetSuperChannelFilter()
◆ GetUnreadChannelFilter()
◆ GroupChannelListQueryResultHandler()
◆ HasNext()
bool SendBird.GroupChannelListQuery.HasNext |
( |
| ) |
|
|
inline |
Checks if there is a next page.
- Returns
true
if there is a next page.
◆ IsLoading()
bool SendBird.GroupChannelListQuery.IsLoading |
( |
| ) |
|
|
inline |
Checks if the current query is in communication progress with server.
- Returns
true
if the current query is not finished.
◆ Next()
Gets the list of GroupChannel
s. The queried result is passed to handler
as list
. If this method is repeatedly called after each next()
is finished, it retrieves the following pages of the GroupChannel
list. If there is no more pages to be read, an empty List
(not null
) is returned to handler
.
- Parameters
-
handler | A callback handler to get the queried result. |
◆ SetCustomTypeFilter()
void SendBird.GroupChannelListQuery.SetCustomTypeFilter |
( |
string |
customType | ) |
|
|
inline |
Sets a filter to return only channels with the specified Custom Type.
- Parameters
-
customType | The Custom Type of the channels to return. |
- Since
- 3.0.27
- Deprecated:
- As of 3.0.47, replaced by setCustomTypesFilter(List).
◆ SetCustomTypesFilter()
void SendBird.GroupChannelListQuery.SetCustomTypesFilter |
( |
List< string > |
customTypesFilter | ) |
|
|
inline |
◆ SetHiddenChannelFilter()
void SendBird.GroupChannelListQuery.SetHiddenChannelFilter |
( |
HiddenChannelFilter |
hiddenChannelFilter | ) |
|
|
inline |
Sets hidden channel filter.
- Parameters
-
◆ SetIncludeEmpty()
void SendBird.GroupChannelListQuery.SetIncludeEmpty |
( |
bool |
includeEmpty | ) |
|
|
inline |
Sets true
/false
to include empty channels (channels without messages). This flag is false by default.
- Parameters
-
includeEmpty | Flag to include empty channels. |
- Since
- 3.0.15
◆ SetLimit()
void SendBird.GroupChannelListQuery.SetLimit |
( |
int |
limit | ) |
|
|
inline |
Sets the maximum number of group channel members per queried page.
- Parameters
-
limit | The maximum number of group channel members per page. |
- Since
- 3.0.15
◆ SetMemberStateFilter()
void SendBird.GroupChannelListQuery.SetMemberStateFilter |
( |
MemberStateFilter |
memberStateFilter | ) |
|
|
inline |
◆ SetNicknameContainsFilter()
void SendBird.GroupChannelListQuery.SetNicknameContainsFilter |
( |
string |
nickname | ) |
|
|
inline |
Sets nickname filter. GroupChannel
list containing the passed nickname will be returned. If you pass nickname such as "abc", then the returned channel list will be containing member like "*abc*". This does not cooperate with other filters.
- Parameters
-
nickname | User nickname to search as the member of the channels. |
◆ SetOrder()
◆ SetPublicChannelFilter()
void SendBird.GroupChannelListQuery.SetPublicChannelFilter |
( |
PublicChannelFilter |
publicChannelFilter | ) |
|
|
inline |
Sets public channel filter.
- Parameters
-
- Since
- 3.0.23
◆ SetSearchFilter()
void SendBird.GroupChannelListQuery.SetSearchFilter |
( |
List< SearchField > |
searchFields, |
|
|
string |
query |
|
) |
| |
|
inline |
Sets 'Search' filter. GroupChannel
s will be included in the result if its data in specified SearchField
s contains specified query string. Refer to SearchField. If you set multiple SearchField
s, the result will be union of each result.
- Parameters
-
searchFields | Target fields that you want to search. Refer to SearchField. |
query | Query string you want to search with. |
- Since
- 3.0.23
◆ SetSuperChannelFilter()
void SendBird.GroupChannelListQuery.SetSuperChannelFilter |
( |
SuperChannelFilter |
superChannelFilter | ) |
|
|
inline |
Sets super channel filter.
- Parameters
-
- Since
- 3.0.23
◆ SetUnreadChannelFilter()
void SendBird.GroupChannelListQuery.SetUnreadChannelFilter |
( |
UnreadChannelFilter |
unreadChannelFilter | ) |
|
|
inline |
Sets unread channel filter.
- Parameters
-
- Since
- 3.0.23
◆ SetUserIdsExactFilter()
void SendBird.GroupChannelListQuery.SetUserIdsExactFilter |
( |
List< string > |
userIds | ) |
|
|
inline |
Sets User
IDs filter. GroupChannel
list containing only and exactly the passed User
IDs will be returned. This does not cooperate with other filters.
- Parameters
-
userIds | User IDs to search as the member of the channels. |
◆ SetUserIdsIncludeFilter()
void SendBird.GroupChannelListQuery.SetUserIdsIncludeFilter |
( |
List< string > |
userIds, |
|
|
QueryType |
queryType |
|
) |
| |
|
inline |
Sets User
IDs filter. GroupChannel
list containing the passed User
IDs and other members will be returned. This does not cooperate with other filters.
- Parameters
-
userIds | User IDs to search as the member of the channels. |
queryType | The logical operation options. If passed QueryType#AND with userIds = {A, B} , the channels containing A AND B + other members will be returned. If QueryType#OR, the channels with A OR B + other members will be returned. |
◆ ChannelNameContainsFilter
string SendBird.GroupChannelListQuery.ChannelNameContainsFilter |
|
getset |
Returns channel name filter. It will return null
if channel name filter hasn't been set before.
- Returns
- channel name filter.
- Since
- 3.0.23
◆ ChannelUrlsFilter
List<string> SendBird.GroupChannelListQuery.ChannelUrlsFilter |
|
getset |
◆ CustomTypesFilter
List<string> SendBird.GroupChannelListQuery.CustomTypesFilter |
|
getset |
Returns list of custom type filter. It will return null
if custom types filter hasn't been set before.
- Returns
- list of custom type filter.
- Since
- 3.0.23
◆ CustomTypeStartsWithFilter
string SendBird.GroupChannelListQuery.CustomTypeStartsWithFilter |
|
getset |
Returns a filter to return channels that start with the specified Custom Type. It will return null
if custom type starts with filter hasn't been set before.
- Returns
- The CustomType
- Since
- 3.0.23
◆ IncludeEmpty
bool SendBird.GroupChannelListQuery.IncludeEmpty |
|
getset |
Sets true
/false
to include empty channels (channels without messages). This flag is false by default.
- Parameters
-
includeEmpty | Flag to include empty channels. |
◆ Limit
int SendBird.GroupChannelListQuery.Limit |
|
getset |
Sets the maximum number of GroupChannel
s per queried page.
- Parameters
-
◆ MetaDataOrderKeyFilter
string SendBird.GroupChannelListQuery.MetaDataOrderKeyFilter |
|
getset |
Returns meta data order key filter. It will return null
if meta data order key filter hasn't been set before.
- Returns
- Returns meta data order key filter.
- Since
- 3.0.23
◆ Order
Sets result order of channels.
- Parameters
-
◆ SearchQuery
string SendBird.GroupChannelListQuery.SearchQuery |
|
get |
The documentation for this class was generated from the following file:
- SendBird/src/GroupChannelListQuery.cs