SetChannelMappingDto.cs 658 B

123456789101112131415161718192021222324252627
  1. using System.ComponentModel.DataAnnotations;
  2. namespace Jellyfin.Api.Models.LiveTvDtos;
  3. /// <summary>
  4. /// Set channel mapping dto.
  5. /// </summary>
  6. public class SetChannelMappingDto
  7. {
  8. /// <summary>
  9. /// Gets or sets the provider id.
  10. /// </summary>
  11. [Required]
  12. public string ProviderId { get; set; } = string.Empty;
  13. /// <summary>
  14. /// Gets or sets the tuner channel id.
  15. /// </summary>
  16. [Required]
  17. public string TunerChannelId { get; set; } = string.Empty;
  18. /// <summary>
  19. /// Gets or sets the provider channel id.
  20. /// </summary>
  21. [Required]
  22. public string ProviderChannelId { get; set; } = string.Empty;
  23. }