jellyfin-server/TestPlugin/Entities/MyPluginFolder.cs

27 lines
714 B
C#
Raw Normal View History

2013-02-21 01:33:05 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.Composition;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Common.Extensions;
namespace TestPlugin.Entities
{
[Export(typeof(BasePluginFolder))]
public class MyPluginFolder : BasePluginFolder
{
public MyPluginFolder()
{
Name = "Test Plug-in Folder";
Id = (GetType().FullName + Name.ToLower()).GetMD5();
}
public override bool IsVisible(User user)
{
return base.IsVisible(user) && user.Name.Equals("Abobader", StringComparison.OrdinalIgnoreCase);
}
}
}