OpenPr0gramm.ClientConstants.GetImageUrlPrefix C# (CSharp) Method

GetImageUrlPrefix() static private method

static private GetImageUrlPrefix ( bool secure ) : string
secure bool
return string
        internal static string GetImageUrlPrefix(bool secure) => GetPrefix(secure) + "img." + HostName;
        internal static string GetThumbnailUrlPrefix(bool secure) => GetPrefix(secure) + "thumb." + HostName;

Usage Example

Exemplo n.º 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();
            }
        }
All Usage Examples Of OpenPr0gramm.ClientConstants::GetImageUrlPrefix