mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-17 07:13:09 +01:00
Add an easy way to get the largest image
This commit is contained in:
parent
8f4b84dca1
commit
79fde575f0
@ -13,6 +13,17 @@ public class LastImageSet : IEnumerable<Uri>
|
|||||||
public Uri ExtraLarge { get; set; }
|
public Uri ExtraLarge { get; set; }
|
||||||
public Uri Mega { 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
|
private IEnumerable<Uri> Images
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
Loading…
Reference in New Issue
Block a user