CSharpTradeOffers.Community.CommunityHandler.DeleteTopicComment C# (CSharp) Метод

DeleteTopicComment() публичный Метод

Used to delete a comment
public DeleteTopicComment ( ulong commentId, ulong topicId, ulong forumId, ulong groupId, CSharpTradeOffers.Community.ForumInfo forumInfo, ulong start, ulong count = 15, bool oldestFirst = false, bool includeRawComments = false ) : CSharpTradeOffers.Community.DeleteTopicCommentResult
commentId ulong The id of the comment
topicId ulong The id of the topic
forumId ulong The id of the forum
groupId ulong
forumInfo CSharpTradeOffers.Community.ForumInfo
start ulong Use if includeRawComments is set. This will specify the comment # to start at.
count ulong The number of comments to grab if includeRawComments is set.
oldestFirst bool Order of the comments
includeRawComments bool Include the comments or not
Результат CSharpTradeOffers.Community.DeleteTopicCommentResult
        public DeleteTopicCommentResult DeleteTopicComment(ulong commentId, ulong topicId, ulong forumId, ulong groupId,
            ForumInfo forumInfo, ulong start = 0, ulong count = 15, bool oldestFirst = false,
            bool includeRawComments = false)
        {
            string url = TopicUrl + "deletetopic/0/";
            url = string.Format(url, forumId);

            string sessionid =
                (from Cookie cookie in _account.AuthContainer.GetCookies(new Uri("https://steamcommunity.com"))
                 where cookie.Name == "sessionid"
                 select cookie.Value).FirstOrDefault();

            var data = new Dictionary<string, string>
            {
                {"gidforumtopic", topicId.ToString()},
                {"sessionid", sessionid}
            };

            return _web.Fetch(url, "POST", data, _account.AuthContainer).DeserializeJson<DeleteTopicCommentResult>();
        }