GenericBodyIReadOnlyListModel.cs 601 B

12345678910111213141516171819
  1. using System.Collections.Generic;
  2. using System.Text.Json.Serialization;
  3. using Jellyfin.Extensions.Json.Converters;
  4. namespace Jellyfin.Extensions.Tests.Json.Models
  5. {
  6. /// <summary>
  7. /// The generic body <c>IReadOnlyList</c> model.
  8. /// </summary>
  9. /// <typeparam name="T">The value type.</typeparam>
  10. public sealed class GenericBodyIReadOnlyListModel<T>
  11. {
  12. /// <summary>
  13. /// Gets or sets the value.
  14. /// </summary>
  15. [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
  16. public IReadOnlyList<T> Value { get; set; } = default!;
  17. }
  18. }