Add an easy way to get the largest image

This commit is contained in:
Harry 2014-10-07 15:17:34 -04:00
parent 8f4b84dca1
commit 79fde575f0

View File

@ -13,6 +13,17 @@ public class LastImageSet : IEnumerable<Uri>
public Uri ExtraLarge { get; set; }
public Uri Mega { get; set; }
public Uri Largest
{
get
{
if (Small == null) return null;
if (Medium == null) return Small;
if (Large == null) return Medium;
return ExtraLarge != null ? (Mega ?? ExtraLarge) : Large;
}
}
private IEnumerable<Uri> Images
{
get