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

namespace WeatherForecast.Models.Responses.L10n {

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

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

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

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

    /// <summary>
    /// 
    /// </summary>
    /// <param name="categoryL10n"></param>
    public CategoryL10nModel(CategoryL10n categoryL10n) {
      Locale = categoryL10n.Locale.Name;
      Slug = categoryL10n.Slug;
      Text = categoryL10n.Text;
    }
  }
}
