Type Aliases

The following type aliases are available globally.

  • A default activity type.

    Declaration

    Swift

    public typealias Activity = EnrichedActivity<User, String, DefaultReaction>
  • Properties where keys are the target fields and the values are the values to be set.

    Note

    It’s possible to reference the target fields directly or using the dotted notation grandfather.father.child, given that it respects the existing hierarchy.

    Declaration

    Swift

    public typealias Properties = [String : Encodable]
  • A verb type of the Activity.

    Note

    Verb type is useful for the making of static verb strings in the extension of the Verb type.

    Declaration

    Swift

    public typealias Verb = String
  • An activity completion block.

    Declaration

    Swift

    public typealias ActivityCompletion<T> = (_ result: Result<T, ClientError>) -> Void where T : Decodable
  • An activities completion block.

    Declaration

    Swift

    public typealias ActivitiesCompletion<T> = (_ result: Result<Response<T>, ClientError>) -> Void where T : Decodable
  • A JWT token including a signature generated with the HS256 algorithm. You can find more information on JWT at https://jwt.io/introduction

    Declaration

    Swift

    public typealias Token = String
  • A collection object completion block.

    Declaration

    Swift

    public typealias CollectionObjectCompletion<T> = (_ result: Result<T, ClientError>) -> Void where T : CollectionObjectProtocol
  • An aggregated group completion block.

    Declaration

    Swift

    public typealias GroupCompletion<T, G> = (_ result: Result<Response<G>, ClientError>) -> Void where T : ActivityProtocol, G : Group<T>
  • A followers completion block.

    Declaration

    Swift

    public typealias FollowersCompletion = (_ result: Result<Response<Follower>, ClientError>) -> Void

FeedIds