SBDGroupChannelListQuery Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | NSCopying SBDMappable |
| Declared in | SBDGroupChannelListQuery.h |
Overview
The SBDGroupChannelListQuery class is a query class for getting the list of group channels.
The instance of this class is created by [createMyGroupChannelListQuery]
(../Classes/SBDGroupChannel.html#//api/name/createMyGroupChannelListQuery) in SBDGroupChannel class.
limit
Sets the number of channels per page.
@property (atomic) NSUInteger limitDeclared In
SBDGroupChannelListQuery.h
includeEmptyChannel
If the value is YES, the channel list includes empty channel.
@property (atomic) BOOL includeEmptyChannelDeclared In
SBDGroupChannelListQuery.h
includeFrozenChannel
If the value is YES, the channel list includes frozen channel. Default is YES
@property (atomic) BOOL includeFrozenChannelAvailability
3.0.182
Declared In
SBDGroupChannelListQuery.h
includeMemberList
If the value is YES, the channel object of the list includes members list.
@property (atomic) BOOL includeMemberListDeclared In
SBDGroupChannelListQuery.h
includeMetaData
If the value is YES, the channel object of the list includes meta data property.
@property (atomic) BOOL includeMetaDataAvailability
3.0.216
Declared In
SBDGroupChannelListQuery.h
order
Sets the order of the list. The order is defined in SBDGroupChannelListOrder.
@property (atomic) SBDGroupChannelListOrder orderDeclared In
SBDGroupChannelListQuery.h
hasNext
Shows if there is a next page
@property (nonatomic, readonly) BOOL hasNextDeclared In
SBDGroupChannelListQuery.h
queryType
Sets query type for includeMemberList.
@property (atomic) SBDGroupChannelListQueryType queryTypeDeclared In
SBDGroupChannelListQuery.h
customTypeFilter
in 3.0.64. (Use customTypesFilter instead.) (Deprecated: in 3.0.64. (Use customTypesFilter instead.))
@property (strong, nonatomic, nullable) NSString *customTypeFilterDeclared In
SBDGroupChannelListQuery.h
memberStateFilter
Sets the member state filter.
@property (nonatomic) SBDMemberStateFilter memberStateFilterDeclared In
SBDGroupChannelListQuery.h
channelUrlsFilter
Sets SBDGroupChannel URLs filter. SBDGroupChannel list containing
only and exactly the passed SBDGroupChannel URLs will be returned.
This does not cooperate with other filters.
@property (copy, nonatomic, nullable) NSArray<NSString*> *channelUrlsFilterDeclared In
SBDGroupChannelListQuery.h
channelNameFilter
3.0.64. (Use setChannelNameContainsFilter: instead.) (Deprecated: 3.0.64. (Use setChannelNameContainsFilter: instead.))
@property (strong, nonatomic, nullable) NSString *channelNameFilterDeclared In
SBDGroupChannelListQuery.h
superChannelFilter
Sets to filter super channel.
@property (nonatomic) SBDGroupChannelSuperChannelFilter superChannelFilterDiscussion
SBDGroupChannelSuperChannelFilterAll by default.
Declared In
SBDGroupChannelListQuery.h
publicChannelFilter
Sets to filter public channel. SBDGroupChannelSuperChannelFilterAll by default.
@property (nonatomic) SBDGroupChannelPublicChannelFilter publicChannelFilterDeclared In
SBDGroupChannelListQuery.h
customTypeStartsWithFilter
Sets to filter channels by custom type that starts with.
@property (copy, nonatomic, nullable) NSString *customTypeStartsWithFilterDeclared In
SBDGroupChannelListQuery.h
customTypesFilter
Sets the custom types filter. The custom types to search.
@property (copy, nonatomic, nullable) NSArray<NSString*> *customTypesFilterDeclared In
SBDGroupChannelListQuery.h
nicknameContainsFilter
Sets the filter with nickname. The group channels which have the member that has nickname are returned by loadNextPageWithCompletionHandler:(LIKE search).
@property (copy, nonatomic, nullable) NSString *nicknameContainsFilterDeclared In
SBDGroupChannelListQuery.h
userIdsIncludeFilter
Sets the filter with user IDs. The group channels which have the members that contain user IDs are returned by loadNextPageWithCompletionHandler:.
@property (copy, nonatomic, readonly, nullable) NSArray<NSString*> *userIdsIncludeFilterDeclared In
SBDGroupChannelListQuery.h
userIdsExactFilter
Sets the filter with user IDs. The group channels which have the members that have user IDs are returned by loadNextPageWithCompletionHandler:. The channels have the userIds members only.
@property (copy, nonatomic, nullable) NSArray<NSString*> *userIdsExactFilterDeclared In
SBDGroupChannelListQuery.h
channelNameContainsFilter
Sets a filter to return only channels that contains the specified group channel name.
The channel name to search. The query will return the channels include channelName.
@property (copy, nonatomic, nullable) NSString *channelNameContainsFilterDeclared In
SBDGroupChannelListQuery.h
unreadChannelFilter
Sets to filter channels by the unread messages. The default value is SBDUnreadChannelFilterAll.
@property (nonatomic) SBDUnreadChannelFilter unreadChannelFilterAvailability
3.0.113
Declared In
SBDGroupChannelListQuery.h
metaDataOrderKeyFilter
Sets a key for ordering by value in the metadata. This is valid when the order is SBDGroupChannelListOrderChannelMetaDataValueAlphabetical only.
@property (copy, nonatomic, nullable) NSString *metaDataOrderKeyFilterAvailability
3.0.118
Declared In
SBDGroupChannelListQuery.h
metaDataKeyFilter
Searches for group channels with metadata containing an item with the specified value as its key
@property (copy, nonatomic, nullable) NSString *metaDataKeyFilterAvailability
3.0.232
Declared In
SBDGroupChannelListQuery.h
metaDataValuesFilter
Searches for group channels with metadata containing an item with the key specified by the metaDataKey
@property (copy, nonatomic, nullable) NSArray<NSString*> *metaDataValuesFilterAvailability
3.0.232
Declared In
SBDGroupChannelListQuery.h
metaDataValueStartsWithFilter
Searches for group channels with metadata containing an item with the key specified by the metaDataKey and the values of that item start with the specified value
@property (copy, nonatomic, nullable) NSString *metaDataValueStartsWithFilterAvailability
3.0.232
Declared In
SBDGroupChannelListQuery.h
channelHiddenStateFilter
Sets to filter channels by the hidden state. The default value is SBDChannelHiddenStateFilterUnhiddenOnly.
@property (atomic) SBDChannelHiddenStateFilter channelHiddenStateFilterAvailability
3.0.122
Declared In
SBDGroupChannelListQuery.h
searchQuery
The query property of the query specified by setSearchFilterQuery:fields:
@property (copy, nonatomic, nullable, readonly) NSString *searchQueryAvailability
3.0.144
Declared In
SBDGroupChannelListQuery.h
searchFields
The fields properties of the query specified by setSearchFilterQuery:fields:
@property (nonatomic, readonly) SBDGroupChannelListQuerySearchField searchFieldsAvailability
3.0.144
Declared In
SBDGroupChannelListQuery.h
– init
DO NOT USE this initializer. Use [SBDGroupChannel createMyGroupChannelListQuery] instead.
- (nullable instancetype)initDeclared In
SBDGroupChannelListQuery.h
– isLoading
Shows if the query is loading.
- (BOOL)isLoadingReturn Value
Returns YES if the query is loading, otherwise returns NO.
Declared In
SBDGroupChannelListQuery.h
– setUserIdsFilter:exactMatch:
The group channels which have the members that have user IDs are returned by loadNextPageWithCompletionHandler:. (Deprecated: in 3.0.19)
- (void)setUserIdsFilter:(NSArray<NSString*> *_Nonnull)userIds exactMatch:(BOOL)exactMatchParameters
userIds |
User IDs to search. |
|---|---|
exactMatch |
If YES, the group channels which have the |
Declared In
SBDGroupChannelListQuery.h
– setUserIdsIncludeFilter:queryType:
The group channels which have the members that contain user IDs are returned by loadNextPageWithCompletionHandler:.
- (void)setUserIdsIncludeFilter:(NSArray<NSString*> *_Nonnull)userIds queryType:(SBDGroupChannelListQueryType)queryTypeParameters
userIds |
User IDs to search. |
|---|---|
queryType |
Logical condition applied to filter. If you pass |
Declared In
SBDGroupChannelListQuery.h
– setCustomTypeFilter:
in 3.0.79. (Deprecated: in 3.0.79.)
- (void)setCustomTypeFilter:(NSString *_Nullable)customTypeParameters
customType |
The custom type to search. |
|---|
Declared In
SBDGroupChannelListQuery.h
– setSearchFilter:fields:
[query loadNextPageWithCompletionHandler:^(NSArraySBDGroupChannel > channels, SBDError *error) { if (error != nil) { handle error } else { do something } }]; @endcode
- (void)setSearchFilter:(nonnull NSString *)query fields:(SBDGroupChannelListQuerySearchField)fieldsDeclared In
SBDGroupChannelListQuery.h
– setMetaDataFilterWithKey:values:
The key of the meta data to use for filter.
- (void)setMetaDataFilterWithKey:(nonnull NSString *)key values:(nonnull NSArray<NSString*> *)valuesParameters
key |
The key of the meta data to use for filter. |
|---|---|
values |
The values of the meta data to use for filter. |
Availability
3.0.232
Declared In
SBDGroupChannelListQuery.h
– setMetaDataFilterWithKey:valueStartsWith:
The key of the meta data to use for filter.
- (void)setMetaDataFilterWithKey:(nonnull NSString *)key valueStartsWith:(nonnull NSString *)valueStartsWithParameters
key |
The key of the meta data to use for filter. |
|---|---|
valueStartsWith |
The values of the meta data to use for filter. |
Availability
3.0.232
Declared In
SBDGroupChannelListQuery.h
– loadNextPageWithCompletionHandler:
If this method is repeatedly called, it will retrieve the following pages of the channel list.
- (void)loadNextPageWithCompletionHandler:(nullable void ( ^ ) ( NSArray<SBDGroupChannel*> *_Nullable channels , SBDError *_Nullable error ))completionHandlerParameters
completionHandler |
The handler block to execute. The |
|---|
Declared In
SBDGroupChannelListQuery.h
+ buildFromSerializedData:
The binary data from serialize. Must not be nil.
+ (nullable instancetype)buildFromSerializedData:(NSData *_Nonnull)dataParameters
data |
The binary data from |
|---|
Return Value
SBDGroupChannelListQuery The query instance from which to deserialized data. Can be nil if an internal error occurs.
Declared In
SBDGroupChannelListQuery.h
– serialize
A serialized binary data from query, or nil if an internal error occurs.
- (nullable NSData *)serializeReturn Value
A serialized binary data from query, or nil if an internal error occurs.
Declared In
SBDGroupChannelListQuery.h
– belongsTo:
Checks whether the channel belongs to this query or not.
- (BOOL)belongsTo:(nonnull SBDGroupChannel *)channelParameters
channel |
Channel object. |
|---|
Availability
3.0.227
Declared In
SBDGroupChannelListQuery.h