Example #1
0
 public static DayliList GetInstance()
 {
     if (instance == null)
     {
         instance = new DayliList();
     }
     return(instance);
 }
Example #2
0
        static async Task Run()
        {
            await new YandexAuth().Auth();
            var tracks = await DayliList.GetInstance().GetTracks();

            var trackUrl = new TrackUrl();

            foreach (var t in tracks)
            {
                t.Url = await trackUrl.Get(t);
            }
            (await new DbClient().ClearDailyList())
            .FillColection(tracks);
        }