diff options
| author | Andrew Rabert <ar@nullsum.net> | 2018-12-27 18:27:57 -0500 |
|---|---|---|
| committer | Andrew Rabert <ar@nullsum.net> | 2018-12-27 18:27:57 -0500 |
| commit | a86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 (patch) | |
| tree | a74f6ea4a8abfa1664a605d31d48bc38245ccf58 /MediaBrowser.Controller/Connect/IConnectManager.cs | |
| parent | 9bac3ac616b01f67db98381feb09d34ebe821f9a (diff) | |
Add GPL modules
Diffstat (limited to 'MediaBrowser.Controller/Connect/IConnectManager.cs')
| -rw-r--r-- | MediaBrowser.Controller/Connect/IConnectManager.cs | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Connect/IConnectManager.cs b/MediaBrowser.Controller/Connect/IConnectManager.cs new file mode 100644 index 000000000..8ac61bf2b --- /dev/null +++ b/MediaBrowser.Controller/Connect/IConnectManager.cs @@ -0,0 +1,45 @@ +using MediaBrowser.Controller.Entities; +using MediaBrowser.Model.Connect; +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace MediaBrowser.Controller.Connect +{ + public interface IConnectManager + { + /// <summary> + /// Gets the wan API address. + /// </summary> + /// <value>The wan API address.</value> + string WanApiAddress { get; } + + /// <summary> + /// Links the user. + /// </summary> + /// <param name="userId">The user identifier.</param> + /// <param name="connectUsername">The connect username.</param> + /// <returns>Task.</returns> + Task<UserLinkResult> LinkUser(string userId, string connectUsername); + + /// <summary> + /// Removes the link. + /// </summary> + /// <param name="userId">The user identifier.</param> + /// <returns>Task.</returns> + Task RemoveConnect(string userId); + + User GetUserFromExchangeToken(string token); + + /// <summary> + /// Authenticates the specified username. + /// </summary> + Task<ConnectAuthenticationResult> Authenticate(string username, string password, string passwordMd5); + + /// <summary> + /// Determines whether [is authorization token valid] [the specified token]. + /// </summary> + /// <param name="token">The token.</param> + /// <returns><c>true</c> if [is authorization token valid] [the specified token]; otherwise, <c>false</c>.</returns> + bool IsAuthorizationTokenValid(string token); + } +} |
