MovieDto.cs 835 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text.Json.Serialization;
  4. namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
  5. {
  6. /// <summary>
  7. /// Movie dto.
  8. /// </summary>
  9. public class MovieDto
  10. {
  11. /// <summary>
  12. /// Gets or sets the year.
  13. /// </summary>
  14. [JsonPropertyName("year")]
  15. public string? Year { get; set; }
  16. /// <summary>
  17. /// Gets or sets the duration.
  18. /// </summary>
  19. [JsonPropertyName("duration")]
  20. public int Duration { get; set; }
  21. /// <summary>
  22. /// Gets or sets the list of quality rating.
  23. /// </summary>
  24. [JsonPropertyName("qualityRating")]
  25. public IReadOnlyList<QualityRatingDto> QualityRating { get; set; } = Array.Empty<QualityRatingDto>();
  26. }
  27. }