Documentation

Enumerates all the members in a topic.

Arguments

The Circle and Topic IDs.

Returns

Whether the action was successful and the requested profiles.

API Definition

public async Task<EnumTopicMembersReply> EnumTopicMembers(EnumTopicMembersRequest request)

C# Structures

public class EnumTopicMembersRequest

{

  public string CircleId;

  public string TopicId;

}

public class EnumTopicMembersReply

{

  public ReturnStatus Status;

  public List<ProfileInfo> Profiles;

}

C# Example code:

public void EnumTopicMembers(string circleId, string topicId)

{

   EnumTopicMembersRequest request = new EnumTopicMembersRequest()

    { CircleId = circleId, TopicId = topicId };

   EnumTopicMembersReply reply = _circle.EnumTopicMembers(request);

  if (reply.Status.Result)

  {

   foreach (ProfileInfo pi in reply.Profiles)

      {

          Console.WriteLine($"{pi.ProfileId} - {pi.UserName} - {pi.DisplayName}");

      }

  }

  else

    Console.WriteLine(reply.Status.Message);

}