Reactions

public struct Reactions<T, U> : Decodable where T : Decodable, T : Encodable, U : UserProtocol

A reactions type.

  • A list of reactions.

    Declaration

    Swift

    public let reactions: [Reaction<T, U>]
  • A pagination option for the next page.

    Declaration

    Swift

    public private(set) var next: Pagination? { get }
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Get an activity for reactions that was requested by activityId and the withActivityData property.

    Declaration

    Swift

    public func activity<A>(typeOf type: A.Type) throws -> A where A : ActivityProtocol

    Parameters

    type

    the type of ActivityProtocol of reactions.

    Return Value

    the activity of reactions.