71 lines
3.0 KiB
C#
71 lines
3.0 KiB
C#
namespace DBObj
|
|
{
|
|
public class SongData
|
|
{
|
|
public string SongNumber { get; set; }
|
|
public string Song { get; set; }
|
|
public string ArtistA { get; set; }
|
|
public string ArtistB { get; set; }
|
|
public string FileName { get; set; }
|
|
public string ArtistASimplified { get; set; }
|
|
public string ArtistBSimplified { get; set; }
|
|
public string SongSimplified { get; set; }
|
|
public int HumanVoice { get; set; }
|
|
|
|
/*
|
|
public SongData(string songNumber, string category, string song, double plays, string artistA, string artistB, string artistACategory, string artistBCategory, DateTime addedTime, string songFilePathHost1, string songFilePathHost2, string phoneticNotation, string pinyinNotation, string artistAPhonetic, string artistBPhonetic, string artistASimplified, string artistBSimplified, string songSimplified, string songGenre, string artistAPinyin, string artistBPinyin, int humanVoice)
|
|
{
|
|
SongNumber = songNumber;
|
|
// Category = category;
|
|
Song = song;
|
|
// Plays = plays;
|
|
ArtistA = artistA;
|
|
ArtistB = artistB;
|
|
//ArtistACategory = artistACategory;
|
|
//ArtistBCategory = artistBCategory;
|
|
//AddedTime = addedTime;
|
|
SongFilePathHost1 = songFilePathHost1;
|
|
SongFilePathHost2 = songFilePathHost2;
|
|
//PhoneticNotation = phoneticNotation;
|
|
//PinyinNotation = pinyinNotation;
|
|
//ArtistAPhonetic = artistAPhonetic;
|
|
//ArtistBPhonetic = artistBPhonetic;
|
|
ArtistASimplified = artistASimplified;
|
|
ArtistBSimplified = artistBSimplified;
|
|
SongSimplified = songSimplified;
|
|
//SongGenre = songGenre;
|
|
//ArtistAPinyin = artistAPinyin;
|
|
//ArtistBPinyin = artistBPinyin;
|
|
HumanVoice = humanVoice;
|
|
}
|
|
|
|
*/
|
|
public SongData(string songNumber, string song, string filename, int humanVoice)
|
|
{
|
|
SongNumber = songNumber;
|
|
Song = song;
|
|
FileName = filename;
|
|
HumanVoice = humanVoice;
|
|
}
|
|
public SongData(string songNumber, string song, string artistA, string artistB, string filename, string artistASimplified, string artistBSimplified, string songSimplified, int humanVoice)
|
|
{
|
|
SongNumber = songNumber;
|
|
Song = song;
|
|
ArtistA = artistA;
|
|
ArtistB = artistB;
|
|
FileName = filename;
|
|
ArtistASimplified = artistASimplified;
|
|
ArtistBSimplified = artistBSimplified;
|
|
SongSimplified = songSimplified;
|
|
HumanVoice = humanVoice;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
|
|
return !string.IsNullOrWhiteSpace(ArtistB)
|
|
? String.Format("{0} - {1} - {2}", ArtistA, ArtistB, Song)
|
|
: String.Format("{0} - {1}", ArtistA, Song);
|
|
}
|
|
}
|
|
} |