aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/SyncPlay/Requests/JoinGroupRequest.cs
blob: 38c9e8e20ce19b7d8ffc7776488737121ecb940f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
    }
}