GenericBodyArrayModel.cs 728 B

1234567891011121314151617181920
  1. using System.Diagnostics.CodeAnalysis;
  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 model.
  8. /// </summary>
  9. /// <typeparam name="T">The value type.</typeparam>
  10. public sealed class GenericBodyArrayModel<T>
  11. {
  12. /// <summary>
  13. /// Gets or sets the value.
  14. /// </summary>
  15. [SuppressMessage("Microsoft.Performance", "CA1819:Properties should not return arrays", MessageId = "Value", Justification = "Imported from ServiceStack")]
  16. [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
  17. public T[] Value { get; set; } = default!;
  18. }
  19. }