ReactionPresenterProtocol
public protocol ReactionPresenterProtocol
A reaction presenter protocol.
-
Undocumented
Declaration
Swift
typealias Completion<T> = (_ result: Result<T, ClientError>) -> Void where T : ActivityProtocol
-
Add a reaction to an activity.
Declaration
Swift
func addReaction<T, E, U>(for activity: T, kindOf kind: ReactionKind, parentReaction: GetStream.Reaction<E, U>?, targetsFeedIds: [FeedId], extraData: E, userTypeOf userType: U.Type, _ completion: @escaping Completion<T>) where T : ActivityProtocol, E : Decodable, E : Encodable, U : UserProtocol, T.ReactionType == Reaction<E, U>
-
Add a comment to an activity.
Declaration
Swift
func addComment<T, E, U>(for activity: T, parentReaction: T.ReactionType?, extraData: E, userTypeOf userType: U.Type, _ completion: @escaping Completion<T>) where T : ActivityProtocol, E : Decodable, E : Encodable, U : UserProtocol, T.ReactionType == Reaction<E, U>
-
Remove a reaction from an activity.
Declaration
Swift
func remove<T>(reaction: T.ReactionType, activity: T, _ completion: @escaping Completion<T>) where T : ActivityProtocol, T.ReactionType : ReactionProtocol
-
Remove a reaction from a parent reaction.
Declaration
Swift
func remove<T>(reaction: T, parentReaction: T, _ completion: @escaping (_ result: Result<T, ClientError>) -> Void) where T : ReactionProtocol