public Stats(Dictionary<string, string> dictionary)
{
foreach (string key in dictionary.Keys)
{
switch (key)
{
case "artists":
this.Artists = dictionary[key];
break;
case "albums":
this.Albums = dictionary[key];
break;
case "songs":
this.Songs = dictionary[key];
break;
case "uptime":
this.Uptime = dictionary[key];
break;
case "db_playtime":
this.DbPlaytime = dictionary[key];
break;
case "db_update":
this.DbUpdate = dictionary[key];
break;
case "playtime":
this.Playtime = dictionary[key];
break;
default:
break;
}
}
}