mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-12 10:40:24 +01:00
Merge pull request #2170 from Bond-009/mediainfoservice
Minor changes to MediaInfoService
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user