6 namespace Search
.Tiles
{
8 public class HitFlavor
{
12 private string mimetype
;
14 public HitFlavor (string uri
)
19 public HitFlavor (string uri
, string type
, string mimetype
)
23 this.mimetype
= mimetype
;
34 public string MimeType
{
35 get { return mimetype; }
38 public bool IsMatch (Hit hit
)
40 return (uri
== null || StringFu
.GlobMatch (uri
, hit
.EscapedUri
))
41 && (type
== null || StringFu
.GlobMatch (type
, hit
.Type
))
42 && (mimetype
== null || StringFu
.GlobMatch (mimetype
, hit
.MimeType
));