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 timelineOwnerV2, string timelineNameV2, string timelineName, bool editable)
        {
            Id = id;
            DataList = dataList;
            Deleted = deleted;
            Time = time;
            Author = author;
            Color = color;
            LastUpdated = lastUpdated;
            TimelineOwnerV2 = timelineOwnerV2;
            TimelineNameV2 = timelineNameV2;
#pragma warning disable CS0618 // Type or member is obsolete
            TimelineName = timelineName;
#pragma warning restore CS0618 // Type or member is obsolete
            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 owner username.
        /// 
        public string TimelineOwnerV2 { get; set; } = default!;
        /// 
        /// Timeline name.
        /// 
        public string TimelineNameV2 { get; set; } = default!;
        /// 
        /// Timeline name.
        /// 
        [Obsolete("Use TimelineNameV2.")]
        public string TimelineName { get; set; } = default!;
        /// 
        /// True if you can edit this post.
        /// 
        public bool Editable { get; set; }
    }
}