using Core.Abstractions.DomainObjects;
using Core.DomainObjects;
using Core.DomainObjects.Documents;
using Core.Enumerations;
using WeatherForecast.Models.Abstractions;

namespace WeatherForecast.Models {

  /// <summary>
  /// 
  /// </summary>
  public class BlogItemModel : PostItemResponseModelBase<BlogItem> {

    /// <summary>
    /// 
    /// </summary>
    public uint? ReadTime { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public uint? Likes { get; set; }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="blogItem"></param>
    /// <param name="categories"></param>
    /// <param name="locale"></param>
    public BlogItemModel(BlogItem blogItem, List<Category> categories, Locales locale) : base(blogItem, categories, locale) {

      ReadTime = blogItem.ReadTime;
      Likes = blogItem.Likes;
    }
  }
}
