using Core.DomainObjects;

namespace WeatherForecast.Models {

  /// <summary>
  /// 
  /// </summary>
  public class LinkModel {

    /// <summary>
    /// 
    /// </summary>
    public string? Target { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public string? AnchorText { get; set; }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="link"></param>
    public LinkModel(Link link) {
      Target = link.Target;
      AnchorText = link.AnchorText;
    }
  }
}
