diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2020-01-11 16:54:23 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-11 16:54:23 +0900 |
| commit | a272638a84f53dcb21161d0d5a31177f8ea1ff03 (patch) | |
| tree | 40d0aa45ab48ab8d09c36b5a4266375c6a359acf /MediaBrowser.Model | |
| parent | bca48b5d5cce5ef62760e0c2bee10952d99ac234 (diff) | |
| parent | d9ec502ff985918cf94326780b41c6382b9e8937 (diff) | |
Merge pull request #2170 from Bond-009/mediainfoservice
Minor changes to MediaInfoService
Diffstat (limited to 'MediaBrowser.Model')
| -rw-r--r-- | MediaBrowser.Model/MediaInfo/PlaybackInfoResponse.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/MediaBrowser.Model/MediaInfo/PlaybackInfoResponse.cs b/MediaBrowser.Model/MediaInfo/PlaybackInfoResponse.cs index 38638af42..440818c3e 100644 --- a/MediaBrowser.Model/MediaInfo/PlaybackInfoResponse.cs +++ b/MediaBrowser.Model/MediaInfo/PlaybackInfoResponse.cs @@ -1,15 +1,20 @@ +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> /// 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. @@ -23,9 +28,12 @@ namespace MediaBrowser.Model.MediaInfo /// <value>The error code.</value> public PlaybackErrorCode? ErrorCode { get; set; } + /// <summary> + /// Initializes a new instance of the <see cref="PlaybackInfoResponse" /> class. + /// </summary> public PlaybackInfoResponse() { - MediaSources = new MediaSourceInfo[] { }; + MediaSources = Array.Empty<MediaSourceInfo>(); } } } |
