This repository was archived by the owner on Apr 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathForumPageModel.cs
More file actions
46 lines (39 loc) · 1.38 KB
/
ForumPageModel.cs
File metadata and controls
46 lines (39 loc) · 1.38 KB
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
using Atles.Domain;
namespace Atles.Models.Public;
public class ForumPageModel
{
public ForumModel Forum { get; set; } = new();
public PaginatedData<TopicModel> Topics { get; set; } = new();
public bool CanRead { get; set; }
public bool CanStart { get; set; }
public class ForumModel
{
public Guid Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public string Slug { get; set; }
}
public class TopicModel
{
public Guid Id { get; set; }
public string Title { get; set; }
public string Slug { get; set; }
public int TotalReplies { get; set; }
public Guid UserId { get; set; }
public string UserDisplayName { get; set; }
public DateTime TimeStamp { get; set; }
public string GravatarHash { get; set; }
public DateTime MostRecentTimeStamp { get; set; }
public Guid MostRecentUserId { get; set; }
public string MostRecentUserDisplayName { get; set; }
public bool Pinned { get; set; }
public bool Locked { get; set; }
public bool HasAnswer { get; set; }
public IList<ReactionModel> Reactions { get; set; } = new List<ReactionModel>();
}
public class ReactionModel
{
public PostReactionType Type { get; set; }
public int Count { get; set; }
}
}