示例#1
0
 public IndividualTopicCommentResponse UpdateTopicComment(TopicComment topicComment)
 {
     var body = new { topic_comment = topicComment};
     return GenericPut<IndividualTopicCommentResponse>(string.Format("topics/{0}/comments/{1}.json", topicComment.TopicId, topicComment.Id), body);
 }
示例#2
0
 public async Task<IndividualTopicCommentResponse> UpdateTopicCommentAsync(TopicComment topicComment)
 {
     var body = new { topic_comment = topicComment};
     return await GenericPutAsync<IndividualTopicCommentResponse>(string.Format("topics/{0}/comments/{1}.json", topicComment.TopicId, topicComment.Id), body);
 }
示例#3
0
 public IndividualTopicCommentResponse CreateTopicComment(long topicId, TopicComment topicComment)
 {
     var body = new { topic_comment = topicComment };
     return GenericPost<IndividualTopicCommentResponse>(string.Format("topics/{0}/comments.json", topicId), body);
 }
示例#4
0
 public async Task<IndividualTopicCommentResponse> CreateTopicCommentAsync(long topicId, TopicComment topicComment)
 {
     var body = new { topic_comment = topicComment };
     return await GenericPostAsync<IndividualTopicCommentResponse>(string.Format("topics/{0}/comments.json", topicId), body);
 }