示例#1
0
 public override IDictionary <string, object> GetUriPathParameters()
 => new Dictionary <string, object>
 {
     ["id"]      = Id,
     ["season"]  = SeasonNumber.ToString(),
     ["episode"] = EpisodeNumber.ToString()
 };
示例#2
0
 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");
 }
示例#3
0
 public override string ToString()
 {
     return("S" + SeasonNumber.ToString("00") + "E" + EpisodeNumber.ToString("00"));
 }
示例#4
0
 public string GetNumber()
 {
     return($"S{SeasonNumber.ToString().PadLeft(2, '0')}E{EpisodeNumber.ToString().PadLeft(2, '0')}");
 }
示例#5
0
 public override String ToString()
 {
     return(SeasonNumber.ToString());
 }