superstar_v2/DBObj/Artist.cs
2025-07-14 18:08:12 +08:00

26 lines
797 B
C#

namespace DBObj
{
// artist OOP test
public class Artist
{
public string Name ;
public string NameSimplified ;
//public string Phonetic { get; set; }
//public string Category { get; set; }
//public int Strokes { get; set; }
public Artist(string name,string nameSimplified)
{
Name = name;
NameSimplified=nameSimplified;
}
public string getName(bool IsSimplified=false) { return IsSimplified ? NameSimplified : Name; }
public string getName() {return Name;}
public override string ToString()
{
//return $"Name: {Name}, Phonetic: {Phonetic}, Category: {Category}, Strokes: {Strokes}";
return $"Name: {Name}";
}
}
}