| | | 1 | | #nullable disable |
| | | 2 | | |
| | | 3 | | using System; |
| | | 4 | | using MediaBrowser.Controller.Session; |
| | | 5 | | |
| | | 6 | | namespace MediaBrowser.Controller.SyncPlay |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Class GroupMember. |
| | | 10 | | /// </summary> |
| | | 11 | | public class GroupMember |
| | | 12 | | { |
| | | 13 | | /// <summary> |
| | | 14 | | /// Initializes a new instance of the <see cref="GroupMember"/> class. |
| | | 15 | | /// </summary> |
| | | 16 | | /// <param name="session">The session.</param> |
| | | 17 | | public GroupMember(SessionInfo session) |
| | | 18 | | { |
| | 0 | 19 | | SessionId = session.Id; |
| | 0 | 20 | | UserId = session.UserId; |
| | 0 | 21 | | UserName = session.UserName; |
| | 0 | 22 | | } |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// Gets the identifier of the session. |
| | | 26 | | /// </summary> |
| | | 27 | | /// <value>The session identifier.</value> |
| | | 28 | | public string SessionId { get; } |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// Gets the identifier of the user. |
| | | 32 | | /// </summary> |
| | | 33 | | /// <value>The user identifier.</value> |
| | | 34 | | public Guid UserId { get; } |
| | | 35 | | |
| | | 36 | | /// <summary> |
| | | 37 | | /// Gets the username. |
| | | 38 | | /// </summary> |
| | | 39 | | /// <value>The username.</value> |
| | | 40 | | public string UserName { get; } |
| | | 41 | | |
| | | 42 | | /// <summary> |
| | | 43 | | /// Gets or sets the ping, in milliseconds. |
| | | 44 | | /// </summary> |
| | | 45 | | /// <value>The ping.</value> |
| | | 46 | | public long Ping { get; set; } |
| | | 47 | | |
| | | 48 | | /// <summary> |
| | | 49 | | /// Gets or sets a value indicating whether this member is buffering. |
| | | 50 | | /// </summary> |
| | | 51 | | /// <value><c>true</c> if member is buffering; <c>false</c> otherwise.</value> |
| | | 52 | | public bool IsBuffering { get; set; } |
| | | 53 | | |
| | | 54 | | /// <summary> |
| | | 55 | | /// Gets or sets a value indicating whether this member is following group playback. |
| | | 56 | | /// </summary> |
| | | 57 | | /// <value><c>true</c> to ignore member on group wait; <c>false</c> if they're following group playback.</value> |
| | | 58 | | public bool IgnoreGroupWait { get; set; } |
| | | 59 | | } |
| | | 60 | | } |