using System;
using System.Collections.Generic;
namespace Timeline.Models.Http
{
    /// 
    /// Info of a post.
    /// 
    public class HttpTimelinePost
    {
        public HttpTimelinePost() { }
        public HttpTimelinePost(long id, List dataList, bool deleted, DateTime time, HttpUser? author, string? color, DateTime lastUpdated, string timelineName, bool editable)
        {
            Id = id;
            DataList = dataList;
            Deleted = deleted;
            Time = time;
            Author = author;
            Color = color;
            LastUpdated = lastUpdated;
            TimelineName = timelineName;
            Editable = editable;
        }
        /// 
        /// Post id.
        /// 
        public long Id { get; set; }
        /// 
        /// The data list.
        /// 
#pragma warning disable CA2227
        public List DataList { get; set; } = default!;
#pragma warning restore CA2227
        /// 
        /// True if post is deleted.
        /// 
        public bool Deleted { get; set; }
        /// 
        /// Post time.
        /// 
        public DateTime Time { get; set; }
        /// 
        /// The author. May be null if the user has been deleted.
        /// 
        public HttpUser? Author { get; set; } = default!;
        /// 
        /// The color.
        /// 
        public string? Color { get; set; }
        /// 
        /// Last updated time.
        /// 
        public DateTime LastUpdated { get; set; } = default!;
        /// 
        /// Timeline name.
        /// 
        public string TimelineName { get; set; } = default!;
        /// 
        /// True if you can edit this post.
        /// 
        public bool Editable { get; set; }
    }
}