-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
TagRelated.cs
39 lines (36 loc) · 859 Bytes
/
TagRelated.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
namespace BooruDex.Models
{
/// <summary>
/// Represent a Tag Related object.
/// </summary>
public class TagRelated
{
/// <summary>
/// Initialize <see cref="TagRelated"/> instance.
/// </summary>
/// <param name="name">
/// The name of the <see cref="Tag"/>.
/// </param>
/// <param name="count">
/// The number of occurences of the <see cref="Tag"/>.
/// </param>
public TagRelated(string name = "", uint count = 0)
{
this.Name = name;
this.Count = count;
}
/// <summary>
/// Gets the name of the <see cref="Tag"/>.
/// </summary>
public string Name { internal set; get; }
/// <summary>
/// Gets the number of occurences of the <see cref="Tag"/>.
/// </summary>
public uint Count { internal set; get; }
/// <inheritdoc/>
public override string ToString()
{
return this.Name;
}
}
}