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.
20 lines
594 B
20 lines
594 B
3 years ago
|
using System.Collections.Generic;
|
||
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>
|
||
4 years ago
|
/// The generic body <c>IReadOnlyList</c> model.
|
||
4 years ago
|
/// </summary>
|
||
|
/// <typeparam name="T">The value type.</typeparam>
|
||
4 years ago
|
public class GenericBodyIReadOnlyListModel<T>
|
||
4 years ago
|
{
|
||
|
/// <summary>
|
||
|
/// Gets or sets the value.
|
||
|
/// </summary>
|
||
|
[JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
|
||
4 years ago
|
public IReadOnlyList<T> Value { get; set; } = default!;
|
||
4 years ago
|
}
|
||
4 years ago
|
}
|