public override IDictionary <string, object> GetUriPathParameters() => new Dictionary <string, object> { ["id"] = Id, ["season"] = SeasonNumber.ToString(), ["episode"] = EpisodeNumber.ToString() };
public string FormatString(string format) { if (IsCompleteMatch) { return(string.Format(format, Series, SeasonNumber.ToString().PadLeft(2, '0'), StringUtils.Join(", ", EpisodeNumbers.Select(episodeNumber => episodeNumber.ToString().PadLeft(2, '0'))), Episode)); } return("SeriesInfo: No complete match"); }
public override string ToString() { return("S" + SeasonNumber.ToString("00") + "E" + EpisodeNumber.ToString("00")); }
public string GetNumber() { return($"S{SeasonNumber.ToString().PadLeft(2, '0')}E{EpisodeNumber.ToString().PadLeft(2, '0')}"); }
public override String ToString() { return(SeasonNumber.ToString()); }