JoinGroupRequest.cs 825 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using MediaBrowser.Model.SyncPlay;
  3. namespace MediaBrowser.Controller.SyncPlay.Requests
  4. {
  5. /// <summary>
  6. /// Class JoinGroupRequest.
  7. /// </summary>
  8. public class JoinGroupRequest : ISyncPlayRequest
  9. {
  10. /// <summary>
  11. /// Initializes a new instance of the <see cref="JoinGroupRequest"/> class.
  12. /// </summary>
  13. /// <param name="groupId">The identifier of the group to join.</param>
  14. public JoinGroupRequest(Guid groupId)
  15. {
  16. GroupId = groupId;
  17. }
  18. /// <summary>
  19. /// Gets the group identifier.
  20. /// </summary>
  21. /// <value>The identifier of the group to join.</value>
  22. public Guid GroupId { get; }
  23. /// <inheritdoc />
  24. public RequestType Type { get; } = RequestType.JoinGroup;
  25. }
  26. }