示例#1
0
        /*
         * ********
         * METHODS
         * ********
         */
        public async Task<bool> LoadData() {
            await FavoritesController.Initialize();

            if (IsDataLoaded()) {
                return true;
            }

            int added = await TodayCollection.BuildAndFetch();
            if (added > 0) {
                return true;
            }
            return false;
        }
示例#2
0
 /// <summary>
 /// Initialize the favorite quotes collection from the FavoritesController
 /// </summary>
 /// <returns></returns>
 public async Task<bool> InitalizeFavorites() {
     return await FavoritesController.Initialize();
 }