Exemple #1
0
        private CategoryForLanguage ToCategoryForLanguage(DemoCategory category)
        {
            var demos = GetDemosForCategory(category)
                        .Select(ToDemoForLanguage)
                        .ToList();

            return(new CategoryForLanguage
            {
                Slug = category.Slug,
                Demos = demos
            });
        }
Exemple #2
0
        private CategoryWithDemoVersions ToCategoryWithVersions(DemoCategory category)
        {
            var demos = GetDemosForCategory(category)
                        .Select(ToDemoWithVersion)
                        .ToList();

            return(new CategoryWithDemoVersions
            {
                Slug = category.Slug,
                Title = category.Title,
                Demos = demos
            });
        }
Exemple #3
0
 private IEnumerable <Demo> GetDemosForCategory(DemoCategory category) => category.Demos
 .Where(x => _settings.ConferenceMode || x.ConferenceOnly == false);
Exemple #4
0
 public InfoAttribute(DemoCategory catg, string desc)
 {
     this.Category    = catg;
     this.Description = desc;
 }
Exemple #5
0
 public InfoAttribute(DemoCategory catg)
 {
     this.Category = catg;
 }