/ SDKs / .NET
SDKs
Chat SDKs .NET v4
Chat SDKs .NET
Chat SDKs
.NET
Version 4

Retrieve a list of members and operators in a specific order

Copy link

The members and operators of a group channel can be retrieved by calling the LoadNextPage() method of a SbMemberListQuery instance.

Member list order

Copy link

For a specific order, set one of the values in the following table to the Order property of a SbMemberListQueryParams.

ValueDescription

NicknameAlphabetical

Members are arranged in an alphabetical order. This is the default value.

OperatorThenMemberNicknameAlphabetical

Operators are listed first, then the members, both in alphabetical order.

SbMemberListQueryParams queryParams = new SbMemberListQueryParams();
queryParams.Order = SbMemberListOrder.OperatorThenMemberNicknameAlphabetical;

SbMemberListQuery query = groupChannel.CreateMemberListQuery(queryParams);
query.LoadNextPage((inUsers, inError) =>
{
    if (inError != null)
    {
        return; // Handle error.
    }
});

Operator filter

Copy link

Set one of these values to the OperatorFilter of a SbMemberListQuery.

ValueDescription

all

No filter is applied to the group channel list. This is the default value.

operator

Only operators are retrieved in the list.

nonOperator

All members, except for operators, are retrieved in the list.

SbMemberListQueryParams queryParams = new SbMemberListQueryParams();
queryParams.OperatorFilter = SbGroupChannelOperatorFilter.Operator;

SbMemberListQuery query = groupChannel.CreateMemberListQuery(queryParams);
query.LoadNextPage((inUsers, inError) =>
{
    if (inError != null)
    {
        return; // Handle error.
    }
});