-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDeviceApplications.cs
More file actions
25 lines (23 loc) · 856 Bytes
/
Copy pathDeviceApplications.cs
File metadata and controls
25 lines (23 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;
namespace uk.JohnCook.dotnet.SharedModels
{
public class DeviceApplicationPreferences
{
[JsonPropertyName("devices")]
#pragma warning disable CA2227 // Collection properties should be read only
public IList<DeviceApplicationPreference> Devices { get; set; }
#pragma warning restore CA2227 // Collection properties should be read only
}
public class DeviceApplicationPreference
{
[JsonPropertyName("id")]
public string Id { get; set; }
[JsonPropertyName("applications")]
#pragma warning disable CA2227 // Collection properties should be read only
public IList<string> Applications { get; set; }
#pragma warning restore CA2227 // Collection properties should be read only
}
}