NewGroupRequest.cs 794 B

12345678910111213141516171819202122232425262728
  1. using MediaBrowser.Model.SyncPlay;
  2. namespace MediaBrowser.Controller.SyncPlay.Requests
  3. {
  4. /// <summary>
  5. /// Class NewGroupRequest.
  6. /// </summary>
  7. public class NewGroupRequest : ISyncPlayRequest
  8. {
  9. /// <summary>
  10. /// Initializes a new instance of the <see cref="NewGroupRequest"/> class.
  11. /// </summary>
  12. /// <param name="groupName">The name of the new group.</param>
  13. public NewGroupRequest(string groupName)
  14. {
  15. GroupName = groupName;
  16. }
  17. /// <summary>
  18. /// Gets the group name.
  19. /// </summary>
  20. /// <value>The name of the new group.</value>
  21. public string GroupName { get; }
  22. /// <inheritdoc />
  23. public RequestType Type { get; } = RequestType.NewGroup;
  24. }
  25. }