-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Artist.cs
59 lines (52 loc) · 1.21 KB
/
Artist.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
58
59
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace BooruDex.Models
{
/// <summary>
/// Represents a Artist object.
/// </summary>
public class Artist
{
/// <summary>
/// Initialize <see cref="Artist"/> instance.
/// </summary>
public Artist()
{
}
/// <summary>
/// Initialize <see cref="Artist"/> instance.
/// </summary>
/// <param name="id">
/// The <see cref="Artist"/> id.
/// </param>
/// <param name="name">
/// The <see cref="Artist"/> name.
/// </param>
/// <param name="urls">
/// List of <see cref="Artist"/> urls.
/// </param>
public Artist(uint id, string name, IList<string> urls)
{
this.ID = id;
this.Name = name;
this.Urls = new ReadOnlyCollection<string>(urls);
}
/// <summary>
/// Gets the ID of the artist.
/// </summary>
public uint ID { internal set; get; }
/// <summary>
/// Gets the name of the artist.
/// </summary>
public string Name { internal set; get; }
/// <summary>
/// List of <see cref="Artist"/> official url.
/// </summary>
public ReadOnlyCollection<string> Urls { internal set; get; }
/// <inheritdoc/>
public override string ToString()
{
return this.Name;
}
}
}