-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Wiki.cs
48 lines (44 loc) · 1.05 KB
/
Wiki.cs
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
namespace BooruDex.Models
{
/// <summary>
/// Represent Wiki entry.
/// </summary>
public struct Wiki
{
/// <summary>
/// Initialize <see cref="Wiki"/> instance.
/// </summary>
/// <param name="id">
/// The ID of the <see cref="Wiki"/> entry.
/// </param>
/// <param name="title">
/// The name or title of the <see cref="Wiki"/>.
/// </param>
/// <param name="body">
/// The <see cref="Wiki"/> description.
/// </param>
public Wiki(uint id = 0, string title = "", string body = "")
{
this.ID = id;
this.Title = title;
this.Body = body;
}
/// <summary>
/// Gets the ID of the <see cref="Wiki"/> entry.
/// </summary>
public uint ID { internal set; get; }
/// <summary>
/// Gets the name ot title of the <see cref="Wiki"/>.
/// </summary>
public string Title { internal set; get; }
/// <summary>
/// Gets the <see cref="Wiki"/> description.
/// </summary>
public string Body { internal set; get; }
/// <inheritdoc/>
public override string ToString()
{
return this.Title;
}
}
}