using System;
namespace Timeline.Models.Http
{
///
/// Info of a post.
///
public class HttpTimelinePost
{
public HttpTimelinePost() { }
public HttpTimelinePost(long id, HttpTimelinePostContent? content, bool deleted, DateTime time, HttpUser? author, DateTime lastUpdated)
{
Id = id;
Content = content;
Deleted = deleted;
Time = time;
Author = author;
LastUpdated = lastUpdated;
}
///
/// Post id.
///
public long Id { get; set; }
///
/// Content of the post. May be null if post is deleted.
///
public HttpTimelinePostContent? Content { get; set; }
///
/// 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!;
///
/// Last updated time.
///
public DateTime LastUpdated { get; set; } = default!;
}
}