ReactionData
public struct ReactionData : Content
Used to return grouped reaction metadata.
-
Emoji understood by clients using the original single LikeType reaction API.
Declaration
Swift
static let allLegacy: Set<String> -
A Unicode emoji or a custom emoji token such as
:arr:.Declaration
Swift
var reaction: String -
Users who reacted with this emoji.
Declaration
Swift
var users: [UserHeader] -
Declaration
Swift
static func legacyEmoji(for likeType: LikeType) -> String -
Declaration
Swift
static func legacyLikeType(for emoji: String) -> LikeType? -
Declaration
Swift
static func users(in reactions: [ReactionData], for likeType: LikeType) -> [UserHeader] -
Declaration
Swift
static func legacyLikeCount(in reactions: [ReactionData]) -> Int -
Declaration
Swift
static func legacyLikeType(in reactions: [ReactionData], for userID: UUID) -> LikeType?
View on GitHub