diff --git a/obs-websocket-dotnet/Types/Events/InputVolumeMetersEventArgs.cs b/obs-websocket-dotnet/Types/Events/InputVolumeMetersEventArgs.cs index 647929c..c649b98 100644 --- a/obs-websocket-dotnet/Types/Events/InputVolumeMetersEventArgs.cs +++ b/obs-websocket-dotnet/Types/Events/InputVolumeMetersEventArgs.cs @@ -12,13 +12,9 @@ public class InputVolumeMetersEventArgs : EventArgs /// /// Array of active inputs with their associated volume levels /// - public List inputs { get; } + public IReadOnlyCollection inputs { get; } - /// - /// Default Constructor - /// - /// Collection inputs as JObjects - public InputVolumeMetersEventArgs(List inputs) + public InputVolumeMetersEventArgs(IReadOnlyCollection inputs) { this.inputs = inputs; } diff --git a/obs-websocket-dotnet/Types/Events/ProfileListChangedEventArgs.cs b/obs-websocket-dotnet/Types/Events/ProfileListChangedEventArgs.cs index be7609b..87b615b 100644 --- a/obs-websocket-dotnet/Types/Events/ProfileListChangedEventArgs.cs +++ b/obs-websocket-dotnet/Types/Events/ProfileListChangedEventArgs.cs @@ -8,16 +8,9 @@ namespace OBSWebsocketDotNet.Types.Events /// public class ProfileListChangedEventArgs : EventArgs { - /// - /// The profiles that have changed - /// - public List Profiles { get; } + public IReadOnlyCollection Profiles { get; } - /// - /// Default Constructor - /// - /// Collection of profile names as strings - public ProfileListChangedEventArgs(List profiles) + public ProfileListChangedEventArgs(IReadOnlyCollection profiles) { Profiles = profiles; } diff --git a/obs-websocket-dotnet/Types/Events/SceneCollectionListChangedEventArgs.cs b/obs-websocket-dotnet/Types/Events/SceneCollectionListChangedEventArgs.cs index 009775f..2426d19 100644 --- a/obs-websocket-dotnet/Types/Events/SceneCollectionListChangedEventArgs.cs +++ b/obs-websocket-dotnet/Types/Events/SceneCollectionListChangedEventArgs.cs @@ -11,13 +11,13 @@ public class SceneCollectionListChangedEventArgs : EventArgs /// /// Updated list of scene collections /// - public List SceneCollections { get; } + public IReadOnlyCollection SceneCollections { get; } /// /// Default Constructor /// /// Collection of scene collection names as string - public SceneCollectionListChangedEventArgs(List sceneCollections) + public SceneCollectionListChangedEventArgs(IReadOnlyCollection sceneCollections) { SceneCollections = sceneCollections; } diff --git a/obs-websocket-dotnet/Types/Events/SceneItemListReindexedEventArgs.cs b/obs-websocket-dotnet/Types/Events/SceneItemListReindexedEventArgs.cs index 82ee04e..7e08aa6 100644 --- a/obs-websocket-dotnet/Types/Events/SceneItemListReindexedEventArgs.cs +++ b/obs-websocket-dotnet/Types/Events/SceneItemListReindexedEventArgs.cs @@ -17,14 +17,14 @@ public class SceneItemListReindexedEventArgs : EventArgs /// /// List of all scene items as JObject /// - public List SceneItems { get; } - + public IReadOnlyCollection SceneItems { get; } + /// /// Default Constructor /// /// The scene name /// The scene item data as a colleciton of JObjects - public SceneItemListReindexedEventArgs(string sceneName, List sceneItems) + public SceneItemListReindexedEventArgs(string sceneName, IReadOnlyCollection sceneItems) { SceneName = sceneName; SceneItems = sceneItems; diff --git a/obs-websocket-dotnet/Types/Events/SceneListChangedEventArgs.cs b/obs-websocket-dotnet/Types/Events/SceneListChangedEventArgs.cs index 3d0ccd0..3c5ad73 100644 --- a/obs-websocket-dotnet/Types/Events/SceneListChangedEventArgs.cs +++ b/obs-websocket-dotnet/Types/Events/SceneListChangedEventArgs.cs @@ -12,13 +12,13 @@ public class SceneListChangedEventArgs : EventArgs /// /// Updated array of scenes /// - public List Scenes { get; } - + public IReadOnlyCollection Scenes { get; } + /// /// Default Constructor /// /// Collection of scene data as JObjects - public SceneListChangedEventArgs(List scenes) + public SceneListChangedEventArgs(IReadOnlyCollection scenes) { Scenes = scenes; } diff --git a/obs-websocket-dotnet/Types/Events/SourceFilterListReindexedEventArgs.cs b/obs-websocket-dotnet/Types/Events/SourceFilterListReindexedEventArgs.cs index 7e1d2b3..e23ac73 100644 --- a/obs-websocket-dotnet/Types/Events/SourceFilterListReindexedEventArgs.cs +++ b/obs-websocket-dotnet/Types/Events/SourceFilterListReindexedEventArgs.cs @@ -16,14 +16,14 @@ public class SourceFilterListReindexedEventArgs : EventArgs /// /// Array of filter objects /// - public List Filters { get; } + public IReadOnlyCollection Filters { get; } /// /// Default Constructor /// /// The source name /// Collection of filters - public SourceFilterListReindexedEventArgs(string sourceName, List filters) + public SourceFilterListReindexedEventArgs(string sourceName, IReadOnlyCollection filters) { SourceName = sourceName; Filters = filters;