Create a new topic in a circle
The Circle in which to create the Topic; metadata about the Topic; and whether the Topic is private.
The ID of the new Topic.
public async Task<CreateTopicReply> CreateTopic(CreateTopicRequest request)
message CreateTopicRequest {
string CircleId = 1;
string TopicName = 2;
string TopicDescription = 3;
bool IsPrivate = 4;
}
message CreateTopicReply {
ReturnStatus Status = 1;
string TopicId = 2;
}
public void CreateTopic(string circleId, string topicName, Boolean isPrivate)
{
CreateTopicRequest request = new CreateTopicRequest()
{CircleId = circleId, TopicName = topicName, TopicDescription = "", IsPrivate = isPrivate };
CreateTopicReply reply = _circle.CreateTopic(request);
Console.WriteLine(reply.Status.Message);
Console.WriteLine(reply.TopicId);
}