-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Pool.cs
57 lines (52 loc) · 1.36 KB
/
Pool.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
49
50
51
52
53
54
55
56
57
namespace BooruDex.Models
{
/// <summary>
/// Represents a Pool object.
/// </summary>
public class Pool
{
/// <summary>
/// Initialize <see cref="Pool"/> instance.
/// </summary>
/// <param name="id">
/// The <see cref="Pool"/> id.
/// </param>
/// <param name="name">
/// The <see cref="Pool"/> name or title.
/// </param>
/// <param name="postCount">
/// Number of <see cref="Post"/> in the <see cref="Pool"/>.
/// </param>
/// <param name="description">
/// Description of the <see cref="Pool"/>.
/// </param>
public Pool(uint id = 0, string name = "", uint postCount = 0, string description = "")
{
this.ID = id;
this.Name = name;
this.PostCount = postCount;
this.Description = description;
}
/// <summary>
/// Gets the ID of the <see cref="Pool"/>.
/// </summary>
public uint ID { internal set; get; }
/// <summary>
/// Gets the name of the <see cref="Pool"/>.
/// </summary>
public string Name { internal set; get; }
/// <summary>
/// Gets the number of <see cref="Post"/> in the <see cref="Pool"/>.
/// </summary>
public uint PostCount { internal set; get; }
/// <summary>
/// Gets the description of the <see cref="Pool"/>.
/// </summary>
public string Description { internal set; get; }
/// <inheritdoc/>
public override string ToString()
{
return this.Name;
}
}
}