private static string GetBaseAddressForDownloadKind(DownloadKind downloadKind, bool useHttps) { switch (downloadKind) { case DownloadKind.Thumbnail: return(ClientConstants.GetThumbnailUrlPrefix(useHttps)); case DownloadKind.NormalImage: return(ClientConstants.GetImageUrlPrefix(useHttps)); case DownloadKind.LargestAvailable: return(ClientConstants.GetFullSizeUrlPrefix(useHttps)); default: throw new InvalidOperationException(); } }
public string GetAbsoluteFullSizeUrl(bool secure) => FullSizeUrl == null?GetAbsoluteImageUrl(secure) : ClientConstants.GetFullSizeUrlPrefix(secure) + "/" + FullSizeUrl;
public string GetAbsoluteImageUrl(bool secure) => ClientConstants.GetImageUrlPrefix(secure) + "/" + ImageUrl;
public string GetAbsoluteThumbnailUrl(bool secure) => ClientConstants.GetThumbnailUrlPrefix(secure) + "/" + ThumbnailUrl;