GetFullSizeUrlPrefix() static private method

static private GetFullSizeUrlPrefix ( bool secure ) : string
secure bool
return string
コード例 #1
0
        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();
            }
        }
コード例 #2
0
ファイル: Item.cs プロジェクト: Pokerkoffer/OpenPr0gramm
 public string GetAbsoluteFullSizeUrl(bool secure) => FullSizeUrl == null?GetAbsoluteImageUrl(secure) : ClientConstants.GetFullSizeUrlPrefix(secure) + "/" + FullSizeUrl;