Ejemplo n.º 1
0
 public Topic(string name, string slug, string summary, string teaser, string metaDescription, string icon,
              string backgroundImage, string image, IEnumerable <SubItem> subItems, IEnumerable <SubItem> secondaryItems, IEnumerable <SubItem> tertiaryItems,
              IEnumerable <Crumb> breadcrumbs, IEnumerable <Alert> alerts, bool emailAlerts, string emailAlertsTopicId, EventBanner eventBanner,
              string expandingLinkTitle, IEnumerable <ExpandingLinkBox> expandingLinkBoxs, string primaryItemTitle, string title, bool displayContactUs)
 {
     Name               = name;
     Title              = title;
     Slug               = slug;
     Summary            = summary;
     Teaser             = teaser;
     MetaDescription    = metaDescription;
     Icon               = icon;
     BackgroundImage    = backgroundImage;
     Image              = image;
     SubItems           = subItems;
     SecondaryItems     = secondaryItems;
     TertiaryItems      = tertiaryItems;
     Breadcrumbs        = breadcrumbs;
     Alerts             = alerts;
     EmailAlerts        = emailAlerts;
     EmailAlertsTopicId = emailAlertsTopicId;
     NavigationLink     = TypeRoutes.GetUrlFor("topic", slug);
     _topSubItems       = Enumerable.Empty <SubItem>();
     EventBanner        = eventBanner;
     ExpandingLinkTitle = expandingLinkTitle;
     ExpandingLinkBoxes = expandingLinkBoxs;
     PrimaryItemTitle   = primaryItemTitle;
     DisplayContactUs   = displayContactUs;
 }
Ejemplo n.º 2
0
 public Profile(string title,
                string slug,
                string subtitle,
                string quote,
                string image,
                string body,
                IEnumerable <Crumb> breadcrumbs,
                List <Alert> alerts,
                string triviaSubheading,
                List <ProcessedTrivia> triviaSection,
                List <InlineQuote> inlineQuotes,
                EventBanner eventsBanner)
 {
     Title            = title;
     Slug             = slug;
     Subtitle         = subtitle;
     Quote            = quote;
     Image            = image;
     Body             = body;
     Breadcrumbs      = breadcrumbs;
     Alerts           = alerts;
     TriviaSubheading = triviaSubheading;
     TriviaSection    = triviaSection;
     InlineQuotes     = inlineQuotes;
     EventsBanner     = eventsBanner;
 }