Inheritance: global::Java.Lang.Object, IOuyaResponseListener
Ejemplo n.º 1
0
 /// <summary>
 /// Requests the current gamer's UUID.
 /// </summary>
 /// <returns>The UUID of the gamer to whom the console is currently registered.</returns>
 public async Task<string> RequestGamerUuidAsync()
 {
     if (!String.IsNullOrEmpty(_gamerUuid))
         return _gamerUuid;
     var tcs = new TaskCompletionSource<string>();
     var listener = new StringListener(tcs);
     RequestGamerUuid(listener);
     _gamerUuid = await tcs.Task;
     Log("Gamer uuid " + _gamerUuid);
     return _gamerUuid;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Requests the current gamer's UUID.
        /// </summary>
        /// <returns>The UUID of the gamer to whom the console is currently registered.</returns>
        public async Task <string> RequestGamerUuidAsync()
        {
            if (!String.IsNullOrEmpty(_gamerUuid))
            {
                return(_gamerUuid);
            }
            var tcs      = new TaskCompletionSource <string>();
            var listener = new StringListener(tcs);

            RequestGamerUuid(listener);
            _gamerUuid = await tcs.Task;
            Log("Gamer uuid " + _gamerUuid);
            return(_gamerUuid);
        }