Example #1
0
 public static void Cancel()
 {
     Task.Run(() =>
     {
         NetAccess.CancelAsync();
     });
     state = EnumSearchState.Finished;
     notifyState();
 }
Example #2
0
        public async static Task <string> GetUrlLrc(string songId)
        {
            var json = await NetAccess.Json(XiamiUrl.url_song, "id", songId);

            if (json == null)
            {
                return(null);
            }
            try
            {
                return(json.lyric as string);
            }
            catch
            {
                return(null);
            }
        }