UnreadItemKey
public final class UnreadItemKey: NSObject, OptionSet, Codable
The bitmask keys of count about unread messages or invitation.
-
Declaration
Swift
public var rawValue: Int -
Default constructor.
Declaration
Swift
required public init(rawValue: Int) -
The bitmask key for unread message count of non super channel.
Declaration
Swift
public static let nonSuperUnreadMessageCount = UnreadItemKey(rawValue: 1 << 0) -
The bitmask key for unread message count of super channel.
Declaration
Swift
public static let superUnreadMessageCount = UnreadItemKey(rawValue: 1 << 1) -
The bitmask key for invitation count of non super channel.
Declaration
Swift
public static let nonSuperInvitationCount = UnreadItemKey(rawValue: 1 << 2) -
The bitmask key for invitation count of super channel.
Declaration
Swift
public static let superInvitationCount = UnreadItemKey(rawValue: 1 << 3) -
The bitmask key for unread mention count of non super channel.
Declaration
Swift
public static let nonSuperUnreadMentionCount = UnreadItemKey(rawValue: 1 << 4) -
The bitmask key for unread mention count of non super channel.
Declaration
Swift
public static let superUnreadMentionCount = UnreadItemKey(rawValue: 1 << 5) -
The bitmask key for unread message count of group channel(super and non-super).
Declaration
Swift
public static let groupChannelUnreadMessageCount = UnreadItemKey(rawValue: 1 << 10) -
The bitmask key for unread mention count of group channel(super and non-super).
Declaration
Swift
public static let groupChannelUnreadMentionCount = UnreadItemKey(rawValue: 1 << 11) -
The bitmask key for invitation count of group channel(super and non-super).
Declaration
Swift
public static let groupChannelInvitationCount = UnreadItemKey(rawValue: 1 << 12) -
Constructor
Declaration
Swift
public required convenience init(from decoder: Decoder) throws -
Encodes this object.
Declaration
Swift
public func encode(to encoder: Encoder) throwsParameters
encoderEncoderinstance -
Parameter constructor
Declaration
Swift
public convenience init(keys: [UnreadItemKey])Parameters
keysarray of
UnreadItemKey
-
hash
Declaration
Swift
public override var hash: Int -
Compares this object with given other object.
Declaration
Swift
public override func isEqual(_ object: Any?) -> BoolParameters
objectAnyinstanceReturn Value
trueif same otherwisefalse
-
Union other into this key
Declaration
Swift
public func formUnion(_ other: UnreadItemKey) -
Intersects other into this key
Declaration
Swift
public func formIntersection(_ other: UnreadItemKey) -
Symmetric difference from other
Declaration
Swift
public func formSymmetricDifference(_ other: UnreadItemKey)
View on GitHub
Install in Dash