Merge pull request #17344 from mbastian77/docs/session-model-xml-docs

This commit is contained in:
Bond-009
2026-07-17 13:52:59 +02:00
committed by GitHub
5 changed files with 58 additions and 8 deletions

View File

@@ -1,17 +1,28 @@
#nullable disable
#pragma warning disable CS1591
using System.ComponentModel.DataAnnotations;
namespace MediaBrowser.Model.Session
{
/// <summary>
/// A command to display a message on a client.
/// </summary>
public class MessageCommand
{
/// <summary>
/// Gets or sets the message header.
/// </summary>
public string Header { get; set; }
/// <summary>
/// Gets or sets the message text.
/// </summary>
[Required(AllowEmptyStrings = false)]
public string Text { get; set; }
/// <summary>
/// Gets or sets the timeout in milliseconds after which the message should be dismissed.
/// </summary>
public long? TimeoutMs { get; set; }
}
}

View File

@@ -1,11 +1,23 @@
#pragma warning disable CS1591
namespace MediaBrowser.Model.Session
{
/// <summary>
/// The play method.
/// </summary>
public enum PlayMethod
{
/// <summary>
/// The media is transcoded before it is sent to the client.
/// </summary>
Transcode = 0,
/// <summary>
/// The media is remuxed into a compatible container but the streams are not re-encoded.
/// </summary>
DirectStream = 1,
/// <summary>
/// The media is sent to the client as-is.
/// </summary>
DirectPlay = 2
}
}

View File

@@ -1,11 +1,18 @@
#pragma warning disable CS1591
namespace MediaBrowser.Model.Session
{
/// <summary>
/// A request to change the playstate of a session.
/// </summary>
public class PlaystateRequest
{
/// <summary>
/// Gets or sets the playstate command.
/// </summary>
public PlaystateCommand Command { get; set; }
/// <summary>
/// Gets or sets the seek position in ticks.
/// </summary>
public long? SeekPositionTicks { get; set; }
/// <summary>

View File

@@ -1,13 +1,21 @@
#nullable disable
#pragma warning disable CS1591
using System;
namespace MediaBrowser.Model.Session;
/// <summary>
/// An item in a play queue.
/// </summary>
public record QueueItem
{
/// <summary>
/// Gets or sets the item id.
/// </summary>
public Guid Id { get; set; }
/// <summary>
/// Gets or sets the playlist item id.
/// </summary>
public string PlaylistItemId { get; set; }
}

View File

@@ -1,11 +1,23 @@
#pragma warning disable CS1591
namespace MediaBrowser.Model.Session
{
/// <summary>
/// The repeat mode of a play queue.
/// </summary>
public enum RepeatMode
{
/// <summary>
/// Nothing is repeated.
/// </summary>
RepeatNone = 0,
/// <summary>
/// The whole queue is repeated.
/// </summary>
RepeatAll = 1,
/// <summary>
/// The current item is repeated.
/// </summary>
RepeatOne = 2
}
}