2013-09-21 14:00:04 -07:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Entities
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class GameSystem
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class GameSystem : Folder
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Return the id that should be used to key display prefs for this item.
|
|
|
|
|
/// Default is based on the type for everything except actual generic folders.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The display prefs id.</value>
|
|
|
|
|
public override Guid DisplayPreferencesId
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return Id;
|
|
|
|
|
}
|
|
|
|
|
}
|
2013-09-22 09:49:55 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the game system.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The game system.</value>
|
|
|
|
|
public string GameSystemName { get; set; }
|
2013-10-01 16:33:50 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the user data key.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>System.String.</returns>
|
|
|
|
|
public override string GetUserDataKey()
|
|
|
|
|
{
|
2013-10-04 17:44:43 -07:00
|
|
|
|
if (!string.IsNullOrEmpty(GameSystemName))
|
|
|
|
|
{
|
|
|
|
|
return "GameSystem-" + GameSystemName;
|
|
|
|
|
}
|
|
|
|
|
return base.GetUserDataKey();
|
2013-10-01 16:33:50 -07:00
|
|
|
|
}
|
2013-09-21 14:00:04 -07:00
|
|
|
|
}
|
|
|
|
|
}
|