JryVideo.Core.TheTVDB.TheTVDBClient.BuildBannerUrl C# (CSharp) Method

BuildBannerUrl() public method

public BuildBannerUrl ( string banner ) : string
banner string
return string
        public string BuildBannerUrl(string banner)
        {
            if (banner == null) throw new ArgumentNullException(nameof(banner));
            if (this.bannerMirror.Count == 0) throw new NotSupportedException();

            return $"{this.bannerMirror.RandomTake().MirrorPath}/banners/{banner}";
        }

Usage Example

Exemplo n.º 1
0
 public string BuildUrl(TheTVDBClient client) => client.BuildBannerUrl(this.BannerPath);
All Usage Examples Of JryVideo.Core.TheTVDB.TheTVDBClient::BuildBannerUrl