/// <inheritdoc /> public async Task UnlinkGameCenterAsync(ISession session, string bundleId, string playerId, string publicKeyUrl, string salt, string signature, string timestampSeconds) { var request = new ApiAccountGameCenter { BundleId = bundleId, PlayerId = playerId, PublicKeyUrl = publicKeyUrl, Salt = salt, Signature = signature, TimestampSeconds = timestampSeconds }; await _apiClient.UnlinkGameCenterAsync(session.AuthToken, request); }
/// <inheritdoc /> public async Task <ISession> AuthenticateGameCenterAsync(string bundleId, string playerId, string publicKeyUrl, string salt, string signature, string timestampSeconds) { var request = new ApiAccountGameCenter { BundleId = bundleId, PlayerId = playerId, PublicKeyUrl = publicKeyUrl, Salt = salt, Signature = signature, TimestampSeconds = timestampSeconds }; var resp = await _apiClient.AuthenticateGameCenterAsync(ServerKey, string.Empty, request); return(Session.Restore(resp.Token)); }