Enumerates all the members in a topic.
The Circle and Topic IDs.
Whether the action was successful and the requested profiles.
public async Task<EnumTopicMembersReply> EnumTopicMembers(EnumTopicMembersRequest request)
public class EnumTopicMembersRequest
{
public string CircleId;
public string TopicId;
}
public class EnumTopicMembersReply
{
public ReturnStatus Status;
public List<ProfileInfo> Profiles;
}
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);
}