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

namespace WeatherForecast.Models.Responses {

  /// <summary>
  /// 
  /// </summary>
  public class BlogItemResponseModel : 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>
    public BlogItemResponseModel(BlogItem blogItem, List<Category> 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(BlogItem blogItem, List<Category> categories, Locales locale) : base(blogItem, categories, locale) {
      ReadTime = blogItem.ReadTime;
      Likes = blogItem.Likes;
    }
  }
}
