using Core.Abstractions.Models;
using Core.DomainObjects.L10n;

namespace WeatherForecast.Models.Responses.L10n {

  /// <summary>
  /// 
  /// </summary>
  public class PostItemL10nModel : ResponseModelBase {

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

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

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

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

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

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

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

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

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


    /// <summary>
    /// 
    /// </summary>
    /// <param name="postItemL10n"></param>
    public PostItemL10nModel(PostItemL10n postItemL10n) {
      Locale = postItemL10n.Locale.Name;
      Slug = postItemL10n.Slug;
      Description = postItemL10n.Description;
      Title = postItemL10n.Title;
      ShortText = postItemL10n.ShortText;
      PlainText = postItemL10n.PlainText;
      Text = postItemL10n.Text;
      TextFormat = postItemL10n.TextFormat.Name;
      Badges = postItemL10n.Badges;
    }
  }
}
