AppImage extension method to get the uri

This commit is contained in:
2015-04-01 02:15:02 +02:00
parent 88233f8a20
commit cbc47bd779
@@ -0,0 +1,17 @@
using OnePeek.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OnePeek.Api.Extensions
{
public static class EntityExtensions
{
public static Uri GetUri(this AppImage appImage, StoreImageType imageType = StoreImageType.None)
{
return EndpointUris.GetWindowsPhoneImageUri(appImage.Urn, imageType.GetEnumDisplayName());
}
}
}