コード例 #1
0
        public List <Video> GetByCategory(string CategoryOid)
        {
            var videos = FirebaseService.Get <Video>("/Videos");

            if (videos != null)
            {
                return(videos
                       .Where(item => item.CategoryOid == CategoryOid).ToList());
            }
            return(new List <Video>());
        }
コード例 #2
0
 public List <CategoryVideo> GetCategoryVideo()
 {
     return(FirebaseService.Get <CategoryVideo>("/CategoryVideos"));
 }
コード例 #3
0
 public List <CategoryFamousPeople> GetCategoryFamousPeople()
 {
     return(FirebaseService.Get <CategoryFamousPeople>("/CategoryFamousPeople"));
 }
コード例 #4
0
        public List <FamousPeople> GetByCategory(string CategoryOid)
        {
            var data = FirebaseService.Get <FamousPeople>("/FamousPeople");

            return(data.Where(item => item.CategoryOids.Contains(CategoryOid)).ToList());
        }