MembersQuery

@objcMembers
@objc(GetSocialMembersQuery)
public final class MembersQuery : NSObject

Describe query to get members of a group.

  • Create a query to get members of a group.

    Declaration

    Swift

    @objc(ofGroupWithId:)
    public static func ofGroup(_ id: String) -> MembersQuery

    Parameters

    id

    Group Id.

    Return Value

    New MembersQuery instance.

  • Filters members by role.

    Declaration

    Swift

    @objc(withRole:)
    public func withRole(_ role: Role) -> MembersQuery

    Parameters

    role

    Role.

    Return Value

    Query instance.

  • Filters members by status.
    

    Restrictions: if current user is not Admin or Owner of the group, only members with Member status are returned. - parameters: - status: Status. - returns: Query instance.

    Declaration

    Swift

    @objc(withStatus:)
    public func withStatus(_ status: MemberStatus) -> MembersQuery
  • Description.

    Declaration

    Swift

    public override var description: String { get }