This commit is contained in:
telans 2020-06-14 22:14:14 +12:00
parent 3d9049ef08
commit 9b528aabc2
No known key found for this signature in database
GPG Key ID: 195444EE92DBCB20
4 changed files with 21 additions and 4 deletions

View File

@ -14,7 +14,7 @@ namespace MediaBrowser.Controller.SyncPlay
public class GroupInfo public class GroupInfo
{ {
/// <summary> /// <summary>
/// Default ping value used for sessions. /// Gets the default ping value used for sessions.
/// </summary> /// </summary>
public long DefaulPing { get; } = 500; public long DefaulPing { get; } = 500;
@ -31,13 +31,13 @@ namespace MediaBrowser.Controller.SyncPlay
public BaseItem PlayingItem { get; set; } public BaseItem PlayingItem { get; set; }
/// <summary> /// <summary>
/// Gets or sets whether playback is paused. /// Gets or sets a value indicating whether playback is paused.
/// </summary> /// </summary>
/// <value>Playback is paused.</value> /// <value>Playback is paused.</value>
public bool IsPaused { get; set; } public bool IsPaused { get; set; }
/// <summary> /// <summary>
/// Gets or sets the position ticks. /// Gets or sets a value indicating whether there are position ticks.
/// </summary> /// </summary>
/// <value>The position ticks.</value> /// <value>The position ticks.</value>
public long PositionTicks { get; set; } public long PositionTicks { get; set; }

View File

@ -9,42 +9,52 @@ namespace MediaBrowser.Model.SyncPlay
/// The user-joined update. Tells members of a group about a new user. /// The user-joined update. Tells members of a group about a new user.
/// </summary> /// </summary>
UserJoined, UserJoined,
/// <summary> /// <summary>
/// The user-left update. Tells members of a group that a user left. /// The user-left update. Tells members of a group that a user left.
/// </summary> /// </summary>
UserLeft, UserLeft,
/// <summary> /// <summary>
/// The group-joined update. Tells a user that the group has been joined. /// The group-joined update. Tells a user that the group has been joined.
/// </summary> /// </summary>
GroupJoined, GroupJoined,
/// <summary> /// <summary>
/// The group-left update. Tells a user that the group has been left. /// The group-left update. Tells a user that the group has been left.
/// </summary> /// </summary>
GroupLeft, GroupLeft,
/// <summary> /// <summary>
/// The group-wait update. Tells members of the group that a user is buffering. /// The group-wait update. Tells members of the group that a user is buffering.
/// </summary> /// </summary>
GroupWait, GroupWait,
/// <summary> /// <summary>
/// The prepare-session update. Tells a user to load some content. /// The prepare-session update. Tells a user to load some content.
/// </summary> /// </summary>
PrepareSession, PrepareSession,
/// <summary> /// <summary>
/// The not-in-group error. Tells a user that they don't belong to a group. /// The not-in-group error. Tells a user that they don't belong to a group.
/// </summary> /// </summary>
NotInGroup, NotInGroup,
/// <summary> /// <summary>
/// The group-does-not-exist error. Sent when trying to join a non-existing group. /// The group-does-not-exist error. Sent when trying to join a non-existing group.
/// </summary> /// </summary>
GroupDoesNotExist, GroupDoesNotExist,
/// <summary> /// <summary>
/// The create-group-denied error. Sent when a user tries to create a group without required permissions. /// The create-group-denied error. Sent when a user tries to create a group without required permissions.
/// </summary> /// </summary>
CreateGroupDenied, CreateGroupDenied,
/// <summary> /// <summary>
/// The join-group-denied error. Sent when a user tries to join a group without required permissions. /// The join-group-denied error. Sent when a user tries to join a group without required permissions.
/// </summary> /// </summary>
JoinGroupDenied, JoinGroupDenied,
/// <summary> /// <summary>
/// The library-access-denied error. Sent when a user tries to join a group without required access to the library. /// The library-access-denied error. Sent when a user tries to join a group without required access to the library.
/// </summary> /// </summary>

View File

@ -1,7 +1,7 @@
namespace MediaBrowser.Model.SyncPlay namespace MediaBrowser.Model.SyncPlay
{ {
/// <summary> /// <summary>
/// Enum PlaybackRequestType /// Enum PlaybackRequestType.
/// </summary> /// </summary>
public enum PlaybackRequestType public enum PlaybackRequestType
{ {
@ -9,22 +9,27 @@ namespace MediaBrowser.Model.SyncPlay
/// A user is requesting a play command for the group. /// A user is requesting a play command for the group.
/// </summary> /// </summary>
Play = 0, Play = 0,
/// <summary> /// <summary>
/// A user is requesting a pause command for the group. /// A user is requesting a pause command for the group.
/// </summary> /// </summary>
Pause = 1, Pause = 1,
/// <summary> /// <summary>
/// A user is requesting a seek command for the group. /// A user is requesting a seek command for the group.
/// </summary> /// </summary>
Seek = 2, Seek = 2,
/// <summary> /// <summary>
/// A user is signaling that playback is buffering. /// A user is signaling that playback is buffering.
/// </summary> /// </summary>
Buffering = 3, Buffering = 3,
/// <summary> /// <summary>
/// A user is signaling that playback resumed. /// A user is signaling that playback resumed.
/// </summary> /// </summary>
BufferingDone = 4, BufferingDone = 4,
/// <summary> /// <summary>
/// A user is reporting its ping. /// A user is reporting its ping.
/// </summary> /// </summary>

View File

@ -9,10 +9,12 @@ namespace MediaBrowser.Model.SyncPlay
/// The play command. Instructs users to start playback. /// The play command. Instructs users to start playback.
/// </summary> /// </summary>
Play = 0, Play = 0,
/// <summary> /// <summary>
/// The pause command. Instructs users to pause playback. /// The pause command. Instructs users to pause playback.
/// </summary> /// </summary>
Pause = 1, Pause = 1,
/// <summary> /// <summary>
/// The seek command. Instructs users to seek to a specified time. /// The seek command. Instructs users to seek to a specified time.
/// </summary> /// </summary>