Exemple #1
0
            internal static WaveEngine.Social.Player MapPlayer(GKPlayer player)
            {
                WaveEngine.Social.Player wavePlayer = null;

                if (player != null)
                {
                    wavePlayer = new WaveEngine.Social.Player()
                    {
                        DisplayName             = player.DisplayName, //player.Alias,
                        PlayerId                = player.PlayerID,    //player.PlayerId,
                        Alias                   = player.Alias,
                        HasHiResImage           = false,              //player.HasHiResImage,
                        HasIconImage            = false,              //player.HasIconImage,
                        HiResImageUrl           = null,               //player.HiResImageUrl,
                        IconImageUrl            = null,               //player.IconImageUrl,
                        LastPlayedWithTimestamp = 0,                  //player.LastPlayedWithTimestamp,
                        RetrievedTimestamp      = 0,                  //player.RetrievedTimestamp,
                    };
                }

                return(wavePlayer);
            }
 /// <summary>
 /// Logouts local user.
 /// </summary>
 /// <returns>
 /// <c>true</c> if logout was successful; otherwise, <c>false</c>.
 /// </returns>
 public Task<bool> Logout()
 {
     this.LocalUser = null;
     return this.currentSocial.Logout();
 }
        /// <summary>
        /// Logins local user.
        /// </summary>
        /// <returns>
        /// <c>true</c> if login was successful; otherwise, <c>false</c>.
        /// </returns>
        public async Task<bool> Login()
        {
            this.LocalUser = await this.currentSocial.Login().ConfigureAwait(false);

            return this.LocalUser != null;
        }