public ModerateTopicResult ModerateTopic(string action, string flag, bool value, ulong forumId, ulong topicId)
{
string url = TopicUrl + "moderatetopic/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>
{
{"action", action},
{"flag", flag},
{"value", value.ToString()},
{"gidforumtopic", topicId.ToString()},
{"sessionid", sessionid}
};
return _web.Fetch(url, "POST", data, _account.AuthContainer).DeserializeJson<ModerateTopicResult>();
}