2025-04-07 16:54:10 +08:00
|
|
|
namespace DBObj
|
|
|
|
{
|
|
|
|
// artist OOP test
|
|
|
|
public class Artist
|
|
|
|
{
|
2025-07-14 18:08:12 +08:00
|
|
|
public string Name ;
|
|
|
|
public string NameSimplified ;
|
2025-04-18 15:22:47 +08:00
|
|
|
//public string Phonetic { get; set; }
|
|
|
|
//public string Category { get; set; }
|
|
|
|
//public int Strokes { get; set; }
|
2025-04-07 16:54:10 +08:00
|
|
|
|
2025-04-23 13:55:11 +08:00
|
|
|
public Artist(string name,string nameSimplified)
|
2025-04-07 16:54:10 +08:00
|
|
|
{
|
|
|
|
Name = name;
|
2025-04-23 13:55:11 +08:00
|
|
|
NameSimplified=nameSimplified;
|
2025-04-07 16:54:10 +08:00
|
|
|
}
|
2025-07-14 18:08:12 +08:00
|
|
|
public string getName(bool IsSimplified=false) { return IsSimplified ? NameSimplified : Name; }
|
|
|
|
public string getName() {return Name;}
|
2025-04-07 16:54:10 +08:00
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
{
|
2025-04-18 15:22:47 +08:00
|
|
|
//return $"Name: {Name}, Phonetic: {Phonetic}, Category: {Category}, Strokes: {Strokes}";
|
|
|
|
return $"Name: {Name}";
|
2025-04-07 16:54:10 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|