using MediaBrowser.Controller.Entities; using MediaBrowser.Model.Connect; using System.Collections.Generic; using System.Threading.Tasks; namespace MediaBrowser.Controller.Connect { public interface IConnectManager { /// /// Gets the wan API address. /// /// The wan API address. string WanApiAddress { get; } /// /// Links the user. /// /// The user identifier. /// The connect username. /// Task. Task LinkUser(string userId, string connectUsername); /// /// Removes the link. /// /// The user identifier. /// Task. Task RemoveConnect(string userId); User GetUserFromExchangeToken(string token); /// /// Authenticates the specified username. /// Task Authenticate(string username, string password, string passwordMd5); /// /// Determines whether [is authorization token valid] [the specified token]. /// /// The token. /// true if [is authorization token valid] [the specified token]; otherwise, false. bool IsAuthorizationTokenValid(string token); } }