QuickImage – Diff between revs 2 and 7
?pathlinks?
Rev 2 | Rev 7 | |||
---|---|---|---|---|
Line 61... | Line 61... | |||
61 | private readonly HashSet<string> supportedImages = new HashSet<string>(StringComparer.OrdinalIgnoreCase); |
61 | private readonly HashSet<string> supportedImages = new HashSet<string>(StringComparer.OrdinalIgnoreCase); |
|
62 | private readonly HashSet<string> supportedVideos = new HashSet<string>(StringComparer.OrdinalIgnoreCase); |
62 | private readonly HashSet<string> supportedVideos = new HashSet<string>(StringComparer.OrdinalIgnoreCase); |
|
Line 63... | Line 63... | |||
63 | |
63 | |
|
64 | public bool IsSupported(string mime) |
64 | public bool IsSupported(string mime) |
|
- | 65 | { |
||
- | 66 | if (string.IsNullOrEmpty(mime)) |
||
- | 67 | { |
||
- | 68 | return false; |
||
- | 69 | } |
||
65 | { |
70 | |
|
66 | return supportedImages.Contains(mime) || supportedVideos.Contains(mime); |
71 | return supportedImages.Contains(mime) || supportedVideos.Contains(mime); |
|
Line 67... | Line 72... | |||
67 | } |
72 | } |
|
68 | |
73 | |
|
- | 74 | public bool IsSupportedImage(string mime) |
||
- | 75 | { |
||
- | 76 | if(string.IsNullOrEmpty(mime)) |
||
- | 77 | { |
||
- | 78 | return false; |
||
69 | public bool IsSupportedImage(string mime) |
79 | } |
|
70 | { |
80 | |
|
Line 71... | Line 81... | |||
71 | return supportedImages.Contains(mime); |
81 | return supportedImages.Contains(mime); |
|
72 | } |
82 | } |
|
- | 83 | |
||
- | 84 | public bool IsSupportedVideo(string mime) |
||
- | 85 | { |
||
- | 86 | if (string.IsNullOrEmpty(mime)) |
||
- | 87 | { |
||
73 | |
88 | return false; |
|
74 | public bool IsSupportedVideo(string mime) |
89 | } |
|
Line 75... | Line 90... | |||
75 | { |
90 | |
|
76 | return supportedVideos.Contains(mime); |
91 | return supportedVideos.Contains(mime); |