superstar_v2/DBObj/Artist.cs

23 lines
654 B
C#
Raw Normal View History

2025-04-07 16:54:10 +08:00
namespace DBObj
{
// artist OOP test
public class Artist
{
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
}
public string getName(bool IsSimplified=false) { return IsSimplified ? NameSimplified : Name; }
public string getName() => Name;
public override string ToString() => $"Name: {Name}";
2025-04-07 16:54:10 +08:00
}
}