CleanDateTimeResult.cs 841 B

12345678910111213141516171819202122232425262728293031
  1. namespace Emby.Naming.Video
  2. {
  3. /// <summary>
  4. /// Holder structure for name and year.
  5. /// </summary>
  6. public readonly struct CleanDateTimeResult
  7. {
  8. /// <summary>
  9. /// Initializes a new instance of the <see cref="CleanDateTimeResult"/> struct.
  10. /// </summary>
  11. /// <param name="name">Name of video.</param>
  12. /// <param name="year">Year of release.</param>
  13. public CleanDateTimeResult(string name, int? year = null)
  14. {
  15. Name = name;
  16. Year = year;
  17. }
  18. /// <summary>
  19. /// Gets the name.
  20. /// </summary>
  21. /// <value>The name.</value>
  22. public string Name { get; }
  23. /// <summary>
  24. /// Gets the year.
  25. /// </summary>
  26. /// <value>The year.</value>
  27. public int? Year { get; }
  28. }
  29. }