internal PromotionTile(ArchetypeFieldsetModel archetypeFieldsetModel)
 {
     this.Image        = new Image(archetypeFieldsetModel.GetValue <IPublishedContent>("image"));
     this.OverlayImage = new Image(archetypeFieldsetModel.GetValue <IPublishedContent>("overlayImage"));
     this.AltText      = archetypeFieldsetModel.GetValue <string>("altText");
     this.Link         = archetypeFieldsetModel.GetValue <MultiUrls>("link").Single().Url;
 }
Ejemplo n.º 2
0
 internal Reward(ArchetypeFieldsetModel archetypeFieldsetModel)
 {
     this.Heading    = archetypeFieldsetModel.GetValue <string>("heading");
     this.Image      = new Image(archetypeFieldsetModel.GetValue <IPublishedContent>("image"));
     this.SubHeading = archetypeFieldsetModel.GetValue <string>("subHeading");
     this.Copy       = archetypeFieldsetModel.GetValue <string>("copy");
 }
Ejemplo n.º 3
0
 internal QuestionAndAnswer(ArchetypeFieldsetModel archetypeFieldsetModel)
 {
     this.Question = archetypeFieldsetModel.GetValue <string>("question");
     this.Answer   = archetypeFieldsetModel.GetValue <string>("answer");
 }