aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/MediaInfo/PlaybackInfoResponse.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/MediaInfo/PlaybackInfoResponse.cs')
-rw-r--r--MediaBrowser.Model/MediaInfo/PlaybackInfoResponse.cs22
1 files changed, 15 insertions, 7 deletions
diff --git a/MediaBrowser.Model/MediaInfo/PlaybackInfoResponse.cs b/MediaBrowser.Model/MediaInfo/PlaybackInfoResponse.cs
index 38638af42c..32971b108f 100644
--- a/MediaBrowser.Model/MediaInfo/PlaybackInfoResponse.cs
+++ b/MediaBrowser.Model/MediaInfo/PlaybackInfoResponse.cs
@@ -1,31 +1,39 @@
+using System;
+using System.Collections.Generic;
using MediaBrowser.Model.Dlna;
using MediaBrowser.Model.Dto;
namespace MediaBrowser.Model.MediaInfo
{
+ /// <summary>
+ /// Class PlaybackInfoResponse.
+ /// </summary>
public class PlaybackInfoResponse
{
/// <summary>
+ /// Initializes a new instance of the <see cref="PlaybackInfoResponse" /> class.
+ /// </summary>
+ public PlaybackInfoResponse()
+ {
+ MediaSources = Array.Empty<MediaSourceInfo>();
+ }
+
+ /// <summary>
/// Gets or sets the media sources.
/// </summary>
/// <value>The media sources.</value>
- public MediaSourceInfo[] MediaSources { get; set; }
+ public IReadOnlyList<MediaSourceInfo> MediaSources { get; set; }
/// <summary>
/// Gets or sets the play session identifier.
/// </summary>
/// <value>The play session identifier.</value>
- public string PlaySessionId { get; set; }
+ public string? PlaySessionId { get; set; }
/// <summary>
/// Gets or sets the error code.
/// </summary>
/// <value>The error code.</value>
public PlaybackErrorCode? ErrorCode { get; set; }
-
- public PlaybackInfoResponse()
- {
- MediaSources = new MediaSourceInfo[] { };
- }
}
}