Reworked CategoryInfo and added ImageType enum

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-07-30 15:03:07 -04:00
parent 45cde97a58
commit 7d48e20aea
9 changed files with 77 additions and 30 deletions
+12 -1
View File
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using MediaBrowser.Model.Users;
namespace MediaBrowser.Model.Entities
@@ -26,5 +27,15 @@ namespace MediaBrowser.Model.Entities
public bool IsFolder { get; set; }
public string Type { get; set; }
public bool IsType(Type type)
{
return IsType(type.Name);
}
public bool IsType(string type)
{
return Type.Equals(type, StringComparison.OrdinalIgnoreCase);
}
}
}