using System; using System.Collections.Generic; using MediaBrowser.Controller.Session; using MediaBrowser.Model.Syncplay; namespace MediaBrowser.Controller.Syncplay { /// /// Interface ISyncplayManager. /// public interface ISyncplayManager { /// /// Creates a new group. /// /// The session that's creating the group. void NewGroup(SessionInfo session); /// /// Adds the session to a group. /// /// The session. /// The group id. void JoinGroup(SessionInfo session, string groupId); /// /// Removes the session from a group. /// /// The session. void LeaveGroup(SessionInfo session); /// /// Gets list of available groups for a session. /// /// The session. /// The list of available groups. List ListGroups(SessionInfo session); /// /// Handle a request by a session in a group. /// /// The session. /// The request. void HandleRequest(SessionInfo session, SyncplayRequestInfo request); /// /// Maps a session to a group. /// /// The session. /// The group. /// void MapSessionToGroup(SessionInfo session, ISyncplayController group); /// /// Unmaps a session from a group. /// /// The session. /// The group. /// void UnmapSessionFromGroup(SessionInfo session, ISyncplayController group); } }