2013-09-10 20:23:41 +00:00
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
using MediaBrowser.Model.Dto;
|
2013-09-10 18:56:00 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2013-04-21 01:02:16 +00:00
|
|
|
|
namespace MediaBrowser.Controller.Entities.Audio
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class Artist
|
|
|
|
|
/// </summary>
|
2013-09-10 18:56:00 +00:00
|
|
|
|
public class Artist : BaseItem, IItemByName, IHasMusicGenres
|
2013-04-21 01:02:16 +00:00
|
|
|
|
{
|
2013-09-10 18:56:00 +00:00
|
|
|
|
public Artist()
|
|
|
|
|
{
|
|
|
|
|
UserItemCounts = new Dictionary<Guid, ItemByNameCounts>();
|
|
|
|
|
}
|
|
|
|
|
|
2013-09-06 15:23:20 +00:00
|
|
|
|
public string LastFmImageUrl { get; set; }
|
|
|
|
|
|
2013-04-21 01:02:16 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the user data key.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>System.String.</returns>
|
|
|
|
|
public override string GetUserDataKey()
|
|
|
|
|
{
|
2013-04-22 04:38:03 +00:00
|
|
|
|
return "Artist-" + Name;
|
2013-04-21 01:02:16 +00:00
|
|
|
|
}
|
2013-04-24 14:05:47 +00:00
|
|
|
|
|
2013-09-10 20:23:41 +00:00
|
|
|
|
[IgnoreDataMember]
|
2013-09-10 18:56:00 +00:00
|
|
|
|
public Dictionary<Guid, ItemByNameCounts> UserItemCounts { get; set; }
|
2013-04-21 01:02:16 +00:00
|
|
|
|
}
|
|
|
|
|
}
|