using Core.DomainObjects.PageSections;
using WeatherForecast.Models.Abstractions;

namespace WeatherForecast.Models.PageSections {

  /// <summary>
  /// 
  /// </summary>
  public class CallToActionSectionModel : PageSectionModelBase<CallToActionSection> {

    /// <summary>
    /// 
    /// </summary>
    public string PrivacyDisclaimer { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public FormItemModel Email { get; set; }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="callToActionSection"></param>
    public CallToActionSectionModel(CallToActionSection callToActionSection) : base(callToActionSection) {
      PrivacyDisclaimer = callToActionSection.PrivacyDisclaimer;
      Email = new FormItemModel(callToActionSection.Email);
    }
  }
}
