aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Common.Tests/Models/GenericBodyModel.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-10-27 13:25:57 -0600
committercrobibero <cody@robibe.ro>2020-10-27 13:25:57 -0600
commit4558c192c76e153d752a1aacdd965525430023b5 (patch)
treedfb7a5d479f82db7a99eae57722599530d8504ad /tests/Jellyfin.Common.Tests/Models/GenericBodyModel.cs
parent163d6b0f1d1a252e85b8776b4b0c2ccaa611667e (diff)
parentbe2f27a0695e5f3102f79a2e246e971682cff603 (diff)
Merge remote-tracking branch 'upstream/master' into query-image-type
Diffstat (limited to 'tests/Jellyfin.Common.Tests/Models/GenericBodyModel.cs')
-rw-r--r--tests/Jellyfin.Common.Tests/Models/GenericBodyModel.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/Jellyfin.Common.Tests/Models/GenericBodyModel.cs b/tests/Jellyfin.Common.Tests/Models/GenericBodyModel.cs
new file mode 100644
index 000000000..9a6c382fe
--- /dev/null
+++ b/tests/Jellyfin.Common.Tests/Models/GenericBodyModel.cs
@@ -0,0 +1,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!;
+ }
+} \ No newline at end of file