You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
721 B
21 lines
721 B
3 years ago
|
using System.Diagnostics.CodeAnalysis;
|
||
4 years ago
|
using System.Text.Json.Serialization;
|
||
3 years ago
|
using Jellyfin.Extensions.Json.Converters;
|
||
4 years ago
|
|
||
3 years ago
|
namespace Jellyfin.Extensions.Tests.Json.Models
|
||
4 years ago
|
{
|
||
|
/// <summary>
|
||
|
/// The generic body model.
|
||
|
/// </summary>
|
||
|
/// <typeparam name="T">The value type.</typeparam>
|
||
4 years ago
|
public class GenericBodyArrayModel<T>
|
||
4 years ago
|
{
|
||
|
/// <summary>
|
||
|
/// Gets or sets the value.
|
||
|
/// </summary>
|
||
|
[SuppressMessage("Microsoft.Performance", "CA1819:Properties should not return arrays", MessageId = "Value", Justification = "Imported from ServiceStack")]
|
||
|
[JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
|
||
|
public T[] Value { get; set; } = default!;
|
||
|
}
|
||
4 years ago
|
}
|