Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
        /// <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));
        }