Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ public class InputVolumeMetersEventArgs : EventArgs
/// <summary>
/// Array of active inputs with their associated volume levels
/// </summary>
public List<JObject> inputs { get; }
public IReadOnlyCollection<JObject> inputs { get; }

/// <summary>
/// Default Constructor
/// </summary>
/// <param name="inputs">Collection inputs as JObjects</param>
public InputVolumeMetersEventArgs(List<JObject> inputs)
public InputVolumeMetersEventArgs(IReadOnlyCollection<JObject> inputs)
{
this.inputs = inputs;
}
Expand Down
11 changes: 2 additions & 9 deletions obs-websocket-dotnet/Types/Events/ProfileListChangedEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,9 @@ namespace OBSWebsocketDotNet.Types.Events
/// </summary>
public class ProfileListChangedEventArgs : EventArgs
{
/// <summary>
/// The profiles that have changed
/// </summary>
public List<string> Profiles { get; }
public IReadOnlyCollection<string> Profiles { get; }

/// <summary>
/// Default Constructor
/// </summary>
/// <param name="profiles">Collection of profile names as strings</param>
public ProfileListChangedEventArgs(List<string> profiles)
public ProfileListChangedEventArgs(IReadOnlyCollection<string> profiles)
{
Profiles = profiles;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ public class SceneCollectionListChangedEventArgs : EventArgs
/// <summary>
/// Updated list of scene collections
/// </summary>
public List<string> SceneCollections { get; }
public IReadOnlyCollection<string> SceneCollections { get; }

/// <summary>
/// Default Constructor
/// </summary>
/// <param name="sceneCollections">Collection of scene collection names as string</param>
public SceneCollectionListChangedEventArgs(List<string> sceneCollections)
public SceneCollectionListChangedEventArgs(IReadOnlyCollection<string> sceneCollections)
{
SceneCollections = sceneCollections;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ public class SceneItemListReindexedEventArgs : EventArgs
/// <summary>
/// List of all scene items as JObject
/// </summary>
public List<JObject> SceneItems { get; }

public IReadOnlyCollection<JObject> SceneItems { get; }
/// <summary>
/// Default Constructor
/// </summary>
/// <param name="sceneName">The scene name</param>
/// <param name="sceneItems">The scene item data as a colleciton of JObjects</param>
public SceneItemListReindexedEventArgs(string sceneName, List<JObject> sceneItems)
public SceneItemListReindexedEventArgs(string sceneName, IReadOnlyCollection<JObject> sceneItems)
{
SceneName = sceneName;
SceneItems = sceneItems;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ public class SceneListChangedEventArgs : EventArgs
/// <summary>
/// Updated array of scenes
/// </summary>
public List<JObject> Scenes { get; }

public IReadOnlyCollection<JObject> Scenes { get; }
/// <summary>
/// Default Constructor
/// </summary>
/// <param name="scenes">Collection of scene data as JObjects</param>
public SceneListChangedEventArgs(List<JObject> scenes)
public SceneListChangedEventArgs(IReadOnlyCollection<JObject> scenes)
{
Scenes = scenes;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ public class SourceFilterListReindexedEventArgs : EventArgs
/// <summary>
/// Array of filter objects
/// </summary>
public List<FilterReorderItem> Filters { get; }
public IReadOnlyCollection<FilterReorderItem> Filters { get; }

/// <summary>
/// Default Constructor
/// </summary>
/// <param name="sourceName">The source name</param>
/// <param name="filters">Collection of filters</param>
public SourceFilterListReindexedEventArgs(string sourceName, List<FilterReorderItem> filters)
public SourceFilterListReindexedEventArgs(string sourceName, IReadOnlyCollection<FilterReorderItem> filters)
{
SourceName = sourceName;
Filters = filters;
Expand Down