JryVideo.Core.TheTVDB.TheTVDBClient.BuildBannerUrl C# (CSharp) Méthode

BuildBannerUrl() public méthode

public BuildBannerUrl ( string banner ) : string
banner string
Résultat 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

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