2021-05-06 22:39:20 +00:00
|
|
|
#nullable disable
|
|
|
|
|
2021-03-28 11:25:40 +00:00
|
|
|
using System;
|
2020-04-01 15:52:42 +00:00
|
|
|
using MediaBrowser.Controller.Session;
|
|
|
|
|
2020-05-06 21:42:53 +00:00
|
|
|
namespace MediaBrowser.Controller.SyncPlay
|
2020-04-01 15:52:42 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Class GroupMember.
|
|
|
|
/// </summary>
|
|
|
|
public class GroupMember
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-11-16 16:40:19 +00:00
|
|
|
/// Initializes a new instance of the <see cref="GroupMember"/> class.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="session">The session.</param>
|
|
|
|
public GroupMember(SessionInfo session)
|
|
|
|
{
|
2021-03-28 11:25:40 +00:00
|
|
|
SessionId = session.Id;
|
|
|
|
UserId = session.UserId;
|
|
|
|
UserName = session.UserName;
|
2020-11-16 16:40:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
2021-03-28 11:25:40 +00:00
|
|
|
/// Gets the identifier of the session.
|
2020-04-01 15:52:42 +00:00
|
|
|
/// </summary>
|
2021-03-28 11:25:40 +00:00
|
|
|
/// <value>The session identifier.</value>
|
|
|
|
public string SessionId { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the identifier of the user.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The user identifier.</value>
|
|
|
|
public Guid UserId { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the username.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The username.</value>
|
|
|
|
public string UserName { get; }
|
2020-04-01 15:52:42 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2020-09-24 21:04:21 +00:00
|
|
|
/// Gets or sets the ping, in milliseconds.
|
2020-04-01 15:52:42 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The ping.</value>
|
|
|
|
public long Ping { get; set; }
|
2020-09-24 21:04:21 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether this member is buffering.
|
|
|
|
/// </summary>
|
|
|
|
/// <value><c>true</c> if member is buffering; <c>false</c> otherwise.</value>
|
|
|
|
public bool IsBuffering { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether this member is following group playback.
|
|
|
|
/// </summary>
|
|
|
|
/// <value><c>true</c> to ignore member on group wait; <c>false</c> if they're following group playback.</value>
|
|
|
|
public bool IgnoreGroupWait { get; set; }
|
2020-04-01 15:52:42 +00:00
|
|
|
}
|
|
|
|
}
|