2
0

SyncPlayGroupUpdateCommandOfStringMessage.cs 1016 B

12345678910111213141516171819202122232425
  1. using System.ComponentModel;
  2. using MediaBrowser.Model.Session;
  3. using MediaBrowser.Model.SyncPlay;
  4. namespace MediaBrowser.Controller.Net.WebSocketMessages.Outbound;
  5. /// <summary>
  6. /// Sync play group update command with string.
  7. /// GroupUpdateTypes: GroupDoesNotExist (error), LibraryAccessDenied (error), NotInGroup (error), GroupLeft (groupId), UserJoined (username), UserLeft (username).
  8. /// </summary>
  9. public class SyncPlayGroupUpdateCommandOfStringMessage : WebSocketMessage<GroupUpdate<string>>, IOutboundWebSocketMessage
  10. {
  11. /// <summary>
  12. /// Initializes a new instance of the <see cref="SyncPlayGroupUpdateCommandOfStringMessage"/> class.
  13. /// </summary>
  14. /// <param name="data">The send command.</param>
  15. public SyncPlayGroupUpdateCommandOfStringMessage(GroupUpdate<string> data)
  16. : base(data)
  17. {
  18. }
  19. /// <inheritdoc />
  20. [DefaultValue(SessionMessageType.SyncPlayGroupUpdate)]
  21. public override SessionMessageType MessageType => SessionMessageType.SyncPlayGroupUpdate;
  22. }