Пример #1
0
 public MobileSession()
 {
     WebCookies.Add(new Cookie("mobileClientVersion", ClientVersion, "/",
                               CommunityCookieDomain));
     WebCookies.Add(new Cookie("mobileClient", ClientName, "/",
                               CommunityCookieDomain));
 }
Пример #2
0
        // ReSharper disable once TooManyDependencies
        public MobileSession(
            string oAuthToken,
            ulong?steamId,
            string steamLogin,
            string steamLoginSecure,
            string sessionId,
            string rememberLoginToken,
            Dictionary <ulong, string> steamMachineAuthenticationTokens) :
            base(steamId, steamLogin, steamLoginSecure, sessionId,
                 rememberLoginToken, steamMachineAuthenticationTokens)
        {
            WebCookies.Add(new Cookie("mobileClientVersion", ClientVersion, "/",
                                      CommunityCookieDomain));
            WebCookies.Add(new Cookie("mobileClient", ClientName, "/",
                                      CommunityCookieDomain));

            OAuthToken = oAuthToken;
            SteamId    = steamId;
        }