AddGroupMembersQuery

@objcMembers
@objc(GetSocialAddGroupMembersQuery)
public final class AddGroupMembersQuery : NSObject

Describe updating group members query.

  • Create a query to add new members to a group. By default users added with role .member and status .member.

    Declaration

    Swift

    public init(id: String, userIds: UserIdList)

    Parameters

    id

    Group Id.

    userIds

    User ids to add.

  • Sets role to new users.

    Declaration

    Swift

    public func withRole(_ role: Role) -> AddGroupMembersQuery

    Parameters

    role

    User role.

    Return Value

    Updated AddGroupMembersQuery instance.

  • Sets status to new users.

    Declaration

    Swift

    public func withMemberStatus(_ status: MemberStatus) -> AddGroupMembersQuery

    Parameters

    status

    User status.

    Return Value

    Updated AddGroupMembersQuery instance.

  • Description.

    Declaration

    Swift

    public override var description: String { get }