Example #1
0
        public void StartGame()
        {
            Random = new Random(DateTime.Now.Millisecond);

            int        rand = Random.Next(0, genres.Count - 1);
            var        gen  = genres[rand];
            JSONArtist cA   = ApiHandler.GetRandomArtist(gen).Result;

            CurrentArtist = JsonToArtist(cA);

            JSONArtist fA = ApiHandler.GetRandomArtist(gen).Result;

            FinalArtist = JsonToArtist(fA);

            Related = GetRelated().Result;
        }
Example #2
0
 private Artist JsonToArtist(JSONArtist a)
 {
     return(new Artist(a.name, a.id, a.genres));
 }