-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplicationDefaultDevice.cs
More file actions
31 lines (28 loc) · 950 Bytes
/
Copy pathApplicationDefaultDevice.cs
File metadata and controls
31 lines (28 loc) · 950 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
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;
namespace uk.JohnCook.dotnet.SharedModels
{
public class ApplicationDevicePreferences
{
[JsonPropertyName("applications")]
#pragma warning disable CA2227 // Collection properties should be read only
public IList<ApplicationDevicePreference> Applications { get; set; }
#pragma warning restore CA2227 // Collection properties should be read only
}
public class ApplicationDevicePreference
{
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("devices")]
public DefaultDevicePreference Devices { get; set; }
}
public class DefaultDevicePreference
{
[JsonPropertyName("render")]
public string RenderDeviceId { get; set; }
[JsonPropertyName("capture")]
public string CaptureDeviceId { get; set; }
}
}