diff options
| author | Ionut Andrei Oanca <oancaionutandrei@gmail.com> | 2020-11-28 16:03:02 +0100 |
|---|---|---|
| committer | Ionut Andrei Oanca <oancaionutandrei@gmail.com> | 2020-11-28 16:03:02 +0100 |
| commit | 78ea8ef99e68eb606c96399895b224e91db15163 (patch) | |
| tree | cc9080c54b0a167df8b0e2a0c8b4e9c7dc5d8dae /MediaBrowser.Controller/SyncPlay/Requests/JoinGroupRequest.cs | |
| parent | c60714e36518ab1ea3a2a5b64999d5fb7462460c (diff) | |
Create common interface for SyncPlay requests
Diffstat (limited to 'MediaBrowser.Controller/SyncPlay/Requests/JoinGroupRequest.cs')
| -rw-r--r-- | MediaBrowser.Controller/SyncPlay/Requests/JoinGroupRequest.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/SyncPlay/Requests/JoinGroupRequest.cs b/MediaBrowser.Controller/SyncPlay/Requests/JoinGroupRequest.cs new file mode 100644 index 000000000..38c9e8e20 --- /dev/null +++ b/MediaBrowser.Controller/SyncPlay/Requests/JoinGroupRequest.cs @@ -0,0 +1,29 @@ +using System; +using MediaBrowser.Model.SyncPlay; + +namespace MediaBrowser.Controller.SyncPlay.Requests +{ + /// <summary> + /// Class JoinGroupRequest. + /// </summary> + public class JoinGroupRequest : ISyncPlayRequest + { + /// <summary> + /// Initializes a new instance of the <see cref="JoinGroupRequest"/> class. + /// </summary> + /// <param name="groupId">The identifier of the group to join.</param> + public JoinGroupRequest(Guid groupId) + { + GroupId = groupId; + } + + /// <summary> + /// Gets the group identifier. + /// </summary> + /// <value>The identifier of the group to join.</value> + public Guid GroupId { get; } + + /// <inheritdoc /> + public RequestType Type { get; } = RequestType.JoinGroup; + } +} |
