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

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

Posts a comment to the specified clan.
public PostClanComment ( ulong clanId, string comment, int count ) : CSharpTradeOffers.Community.ClanCommentResponse
clanId ulong SteamID64 of the clan to post the comment to.
comment string The comment to post.
count int Almost certainly useless and never needs to be touched. /// I assume that it is the member count but it can be null, non-existant, or any number under the sun.
Результат CSharpTradeOffers.Community.ClanCommentResponse
        public ClanCommentResponse PostClanComment(ulong clanId, string comment,
            int count = 0)
        {
            string url = "http://steamcommunity.com/comment/Clan/post/" + clanId + "/-1/";

            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>
            {
                {"comment", comment},
                {"count", count.ToString()},
                {"sessionid", sessionid}
            };

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