blob: 165c92da661b0ba90ca6c611d71b585825a74d90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
using System;
using System.Collections.Generic;
namespace Timeline.Models.Http
{
/// <summary>
/// Info of a post.
/// </summary>
public class HttpTimelinePost
{
public HttpTimelinePost() { }
public HttpTimelinePost(long id, List<HttpTimelinePostDataDigest> dataList, bool deleted, DateTime time, HttpUser? author, string? color, DateTime lastUpdated)
{
Id = id;
DataList = dataList;
Deleted = deleted;
Time = time;
Author = author;
Color = color;
LastUpdated = lastUpdated;
}
/// <summary>
/// Post id.
/// </summary>
public long Id { get; set; }
public List<HttpTimelinePostDataDigest> DataList { get; set; } = default!;
/// <summary>
/// True if post is deleted.
/// </summary>
public bool Deleted { get; set; }
/// <summary>
/// Post time.
/// </summary>
public DateTime Time { get; set; }
/// <summary>
/// The author. May be null if the user has been deleted.
/// </summary>
public HttpUser? Author { get; set; } = default!;
/// <summary>
/// The color.
/// </summary>
public string? Color { get; set; }
/// <summary>
/// Last updated time.
/// </summary>
public DateTime LastUpdated { get; set; } = default!;
}
}
|