GroupChannelListQueryParams
public final class GroupChannelListQueryParams: NSObject, Codable
extension GroupChannelListQueryParams: NSCopying
Undocumented
-
Determines channel list includes empty channel. Default is
true
Declaration
Swift
public var includeEmptyChannel: Bool = true
-
Determines channel list includes frozen channel. Default is
true
Since
3.0.182Declaration
Swift
public var includeFrozenChannel: Bool = true
-
Determines channel object of the list includes members list.
Declaration
Swift
public var includeMemberList: Bool = true
-
Determines channel object of the list includes meta data property.
Since
3.0.216Declaration
Swift
public var includeMetaData: Bool = true
-
Sets the order of the list. The order is defined in
GroupChannelListOrder
.Declaration
Swift
public var order: GroupChannelListOrder = .chronological
-
Sets query type for
includeMemberList
.Declaration
Swift
public var queryType: GroupChannelListQueryType = .and
-
Sets the member state filter.
Declaration
Swift
public var myMemberStateFilter: MyMemberStateFilter = .all
-
Sets
GroupChannel
URLs filter.GroupChannel
list containing only and exactly the passedGroupChannel
URLs will be returned. This does not cooperate with other filters.Declaration
Swift
public var channelURLsFilter: [String]?
-
Sets to filter super channel. Default is
.all
Declaration
Swift
public var superChannelFilter: GroupChannelSuperChannelFilter = .all
-
Sets to filter public channel.Default is
.all
Declaration
Swift
public var publicChannelFilter: GroupChannelPublicChannelFilter = .all
-
Sets to filter channels by custom type that starts with.
Declaration
Swift
public var customTypeStartsWithFilter: String?
-
Sets the custom types filter. The custom types to search.
Declaration
Swift
public var customTypesFilter: [String]?
-
Sets the filter with nickname. The group channels which have the member that has nickname are returned by
loadNextPage:
(LIKE search).Declaration
Swift
public var nicknameContainsFilter: String?
-
Sets the filter with nickname prefix. Group channels whose members’ nicknames start with the filter are retruned by
loadNextPage:
. Since: 4.0.14Declaration
Swift
public var nicknameStartsWithFilter: String?
-
Sets the filter with nickname. Group channels whose members’ nicknames match exactly with the filter are retruned by
loadNextPage:
. Since: 4.0.14Declaration
Swift
public var nicknameExactMatchFilter: String?
-
Sets the filter with user IDs. The group channels which have the members that contain user IDs are returned by
loadNextPage:
.Declaration
Swift
public private(set) var userIdsIncludeFilter: [String]?
-
Sets the filter with user IDs. The group channels which have the members that have user IDs are returned by
loadNextPage:
. The channels have theuserIds
members only.Declaration
Swift
public var userIdsExactFilter: [String]?
-
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
.Declaration
Swift
public var channelNameContainsFilter: String?
-
Sets to filter channels by the unread messages. The default value is
.all
.Since
3.0.113Declaration
Swift
public var unreadChannelFilter: UnreadChannelFilter = .all
-
Sets a key for ordering by value in the metadata. This is valid when the
order
isGroupChannelListOrder.channelMetaDataValueAlphabetical
only.Since
3.0.118Declaration
Swift
public var metaDataOrderKeyFilter: String?
-
Searches for group channels with metadata containing an item with the specified value as its key
Since
3.0.232Declaration
Swift
public var metaDataKeyFilter: String?
-
Searches for group channels with metadata containing an item with the key specified by the metaDataKey
Since
3.0.232Declaration
Swift
public var metaDataValuesFilter: [String]?
-
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
Since
3.0.232Declaration
Swift
public var metaDataValueStartsWithFilter: String?
-
Sets to filter channels by the hidden state. The default value is
ChannelHiddenStateFilter.unhiddenOnly
.Since
3.0.122Declaration
Swift
public var channelHiddenStateFilter: ChannelHiddenStateFilter = .unhiddenOnly
-
The query property of the query specified by
setSearchFilterQuery:fields:
Since
3.0.144Declaration
Swift
public private(set) var searchQuery: String?
-
The fields properties of the query specified by
setSearchFilterQuery:fields:
Since
3.0.144Declaration
Swift
public private(set) var searchFields: GroupChannelListQuerySearchField = .channelName
-
Specifies the number of results to return per call. (Default: 20)
Declaration
Swift
public var limit: UInt = 20
-
Since
4.6.0Declaration
Swift
public var includeChatNotification: Bool = false
-
Searches for group channels created before the specified value. (milliseconds)
Since
4.11.0Declaration
Swift
public var createdBefore: Int64 = 0
-
Searches for group channels created after the specified value. (milliseconds)
Since
4.11.0Declaration
Swift
public var createdAfter: Int64 = 0
-
Default constructor.
Declaration
Swift
public override init()
-
Initializes and returns a newly allocated params object that mutated through builder closure.
Declaration
Swift
public init(builder: (GroupChannelListQueryParams) -> Void)
Parameters
builder
The builder closure.
Return Value
An initialized params object.
-
Sets the filter with user IDs.
The group channels which have the members that contain user IDs are returned by
loadNext:
.Declaration
Swift
public func setUserIdsIncludeFilter(_ userIds: [String], queryType: GroupChannelListQueryType)
Parameters
userIds
User IDs to search.
queryType
Logical condition applied to filter. If you pass
GroupChannelListQueryTypeAnd
toqueryType
and A, B touserIds
, the channels whose members containing A and B will be returned. IfGroupChannelListQueryTypeOr
is set, the members of the queried channels will be A or B. -
Sets the search query and search fields of the query specified a given query and a given fields.
Note
fields MUST be an array withGroupChannelListQuerySearchField
.Since
3.0.144Declaration
Swift
public func setSearchFilter(_ query: String, fields: GroupChannelListQuerySearchField)
Parameters
query
The query to request for
searchFields
.fields
The fields to request query for
searchQuery
that MUST beGroupChannelListQuerySearchField
. -
Sets meta data filter
Note
Using this method will resetmetaDataValueStartsWithFilter
propertyDeclaration
Swift
public func setMetaDataFilter(_ key: String, values: [String])
Parameters
key
meta data key
values
meta data values
-
Sets meta data filter
Note
Using this method will resetmetaDataValuesFilter
propertyDeclaration
Swift
public func setMetaDataFilter(_ key: String, valueStartsWith value: String)
Parameters
key
meta data key
value
meta data values that starts with
-
Undocumented
Declaration
Swift
public override func isEqual(_ object: Any?) -> Bool
-
Undocumented
Declaration
Swift
public func copy(with zone: NSZone? = nil) -> Any