Inheritance: global::Java.Lang.Object, IOuyaResponseListener
Example #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;
 }
Example #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);
        }