using DomainObjects.Documents;

using WeatherForecast.Models.Abstractions.PostItem.Responses;
using DomainObjects.Enumerations;

namespace WeatherForecast.Models.Blog.Responses {

  /// <summary>
  /// 
  /// </summary>
  public class BlogItemResponseModel : PostItemResponseModelBase<BlogDocument> {

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

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

    /// <summary>
    /// 
    /// </summary>
    /// <param name="blogItem"></param>
    /// <param name="categories"></param>
    public BlogItemResponseModel(BlogDocument blogItem, List<CategoryDocument> categories) : base(blogItem, categories) {
      ReadTime = blogItem.ReadTime;
      Likes = blogItem.Likes;
    }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="blogItem"></param>
    /// <param name="categories"></param>
    /// <param name="locale"></param>
    public BlogItemResponseModel(BlogDocument blogItem, List<CategoryDocument> categories, Locales locale) : base(blogItem, categories, locale) {
      ReadTime = blogItem.ReadTime;
      Likes = blogItem.Likes;
    }
  }
}
