You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
714 B
27 lines
714 B
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);
|
|
}
|
|
}
|
|
}
|