Esempio n. 1
0
 /// <inheritdoc />
 public async Task UnlinkSteamAsync(ISession session, string token)
 {
     var request = new ApiAccountSteam {
         Token = token
     };
     await _apiClient.UnlinkSteamAsync(session.AuthToken, request);
 }
Esempio n. 2
0
        /// <inheritdoc />
        public async Task <ISession> AuthenticateSteamAsync(string token)
        {
            var request = new ApiAccountSteam {
                Token = token
            };
            var resp = await _apiClient.AuthenticateSteamAsync(ServerKey, string.Empty, request);

            return(Session.Restore(resp.Token));
        }
Esempio n. 3
0
        /// <inheritdoc />
        public async Task <ISession> AuthenticateSteamAsync(string token, string username = null, bool create = true)
        {
            var request = new ApiAccountSteam {
                Token = token
            };
            var resp = await _apiClient.AuthenticateSteamAsync(ServerKey, string.Empty, request, create, username);

            return(Session.Restore(resp.Token, resp.Created));
        }