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

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

Leave a group.
public LeaveGroup ( ulong groupId ) : IResponse
groupId ulong The GroupID of the steam group.
Результат IResponse
        public IResponse LeaveGroup(ulong groupId)
        {
            string url = "https://steamcommunity.com/profiles/" + _account.SteamId + "/home_process";

            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>
            {
                {"sessionID", sessionid},
                {"action", "leaveGroup"},
                {"groupId", groupId.ToString()}
            };

            return _web.Fetch(url, "POST", data, _account.AuthContainer, true, "https://steamcommunity.com/profiles/" + _account.SteamId + "/groups");
        }