GroupMember.cs 1.8 KB

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