Пример #1
0
 /// <summary>Initializes a new instance of the <see cref="PostRatingsSeason" /> class.</summary>
 /// <param name="number">The number of this season.</param>
 /// <param name="rating">A rating for the season.</param>
 /// <param name="ratedAt">An UTC datetime, when this season was rated.</param>
 /// <param name="episodes">>A list of episode numbers. See also <see cref="PostRatingsEpisodes" />.</param>
 public PostRatingsSeason(int number, int?rating, DateTime?ratedAt, PostRatingsEpisodes episodes)
 {
     Number   = number;
     Rating   = rating;
     RatedAt  = ratedAt;
     Episodes = episodes;
 }
Пример #2
0
 /// <summary>Adds a season number to the collection.</summary>
 /// <param name="season">The season number, which will be added.</param>
 /// <param name="rating">A rating for the season number.</param>
 /// <param name="episodes">A list of episode numbers. See also <see cref="PostRatingsEpisodes" />.</param>
 public void Add(int season, int rating, PostRatingsEpisodes episodes) => _seasons.Add(new PostRatingsSeason(season, rating, null, episodes));
Пример #3
0
 /// <summary>Adds a season number to the collection.</summary>
 /// <param name="season">The season number, which will be added.</param>
 /// <param name="rating">A rating for the season number.</param>
 /// <param name="ratedAt">An UTC datetime, when the season was rated.</param>
 /// <param name="episodes">A list of episode numbers. See also <see cref="PostRatingsEpisodes" />.</param>
 public void Add(int season, int rating, DateTime ratedAt, PostRatingsEpisodes episodes) => _seasons.Add(new PostRatingsSeason(season, rating, ratedAt, episodes));