added xml comments for existing api parts and pieces.

This commit is contained in:
StevanFreeborn
2022-06-21 17:17:32 -05:00
parent 19729f4cc7
commit 5e201182ba
9 changed files with 149 additions and 14 deletions
+15
View File
@@ -5,20 +5,35 @@ namespace server.Models
{
public class Season
{
/// <summary>
/// Identifier for the season.
/// </summary>
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string? Id { get; set; }
/// <summary>
/// The season number.
/// </summary>
[BsonElement("seasonNumber")]
public int? SeasonNumber { get; set; }
/// <summary>
/// The number of episodes in the season.
/// </summary>
[BsonElement("numberOfEpisodes")]
public int? NumberOfEpisodes { get; set; }
/// <summary>
/// The date the season first aired.
/// </summary>
[BsonElement("dateFirstAired")]
[BsonDateTimeOptions(DateOnly = true)]
public DateTime? DateFirstAired { get; set; }
/// <summary>
/// The date the season last aired.
/// </summary>
[BsonElement("dateLastAired")]
[BsonDateTimeOptions(DateOnly = true)]
public DateTime? DateLastAired { get; set; }