private static async Task <Dictionary <string, GlobalMessage[]> > GetGlobalMessages()
 {
     if (_data == null && CdnData.bInternet)                    // if data is still null after getting backups, that means there's no internet, do not try again
     {
         _data = await CdnData.GetData().ConfigureAwait(false); // ^ will also avoid showing "No internet" notifier twice
     }
     if (_data != null)
     {
         return(JsonConvert.DeserializeObject <Dictionary <string, GlobalMessage[]> >(JsonConvert.SerializeObject(_data.GlobalMessages)));
     }
     return(new Dictionary <string, GlobalMessage[]>());
 }
        private static async Task <List <BackupMenuItemViewModel> > GetBackups()
        {
            if (_data == null)
            {
                _data = await CdnData.GetData().ConfigureAwait(false);
            }

            if (_data != null)
            {
                return(JsonConvert.DeserializeObject <List <BackupMenuItemViewModel> >(JsonConvert.SerializeObject(_data.Backups[Globals.Game.ActualGame.ToString()])));
            }
            return(new List <BackupMenuItemViewModel>());
        }
        public static async Task <FUpdater> GetUpdateData()
        {
            if (_data == null)
            {
                _data = await CdnData.GetData().ConfigureAwait(false);
            }

            if (_data != null)
            {
                return(_data.Updater);
            }
            return(null);
        }