aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Common.Tests/Models/GenericBodyModel.cs
blob: 9a6c382fea5046f409cc1c5dfea00ba6fc31ffb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System.Diagnostics.CodeAnalysis;
using System.Text.Json.Serialization;
using MediaBrowser.Common.Json.Converters;

namespace Jellyfin.Common.Tests.Models
{
    /// <summary>
    /// The generic body model.
    /// </summary>
    /// <typeparam name="T">The value type.</typeparam>
    public class GenericBodyModel<T>
    {
        /// <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!;
    }
}