Groups

public class Groups

Provides methods to retrieve all groups or by its identifier

Delegate

  • Delegate to receive groups events

    Declaration

    Swift

    public weak var delegate: GroupsDelegate? { get set }

Api

  • Current user leaves all groups where he/she is participating

    Declaration

    Swift

    public func leavesAllGroups(result: @escaping (Result<Void, ResourceError>) -> Void)

    Parameters

    task

    Result success when operation is completed

  • Fetch all groups

    Declaration

    Swift

    public func groups(userIsParticipating: Bool = true, result: @escaping (Result<[SippoGroup], ResourceError>) -> Void)

    Parameters

    userIsParticipating

    Set true to fetch only groups where user is participating

    result

    Result with SippoGroups

  • Fetch a group with a specific groupId

    Declaration

    Swift

    public func group(with groupId: String, result: @escaping (Result<SippoGroup, ResourceError>) -> Void)

    Parameters

    groupId

    The groupId to fetch

    result

    Result with the SippoGroup