2014-10-13 20:14:53 +00:00
|
|
|
|
using MediaBrowser.Model.Connect;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
2014-09-14 15:10:51 +00:00
|
|
|
|
|
2014-08-25 03:54:45 +00:00
|
|
|
|
namespace MediaBrowser.Controller.Connect
|
|
|
|
|
{
|
|
|
|
|
public interface IConnectManager
|
|
|
|
|
{
|
2014-09-14 15:10:51 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the wan API address.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The wan API address.</value>
|
2014-08-25 03:54:45 +00:00
|
|
|
|
string WanApiAddress { get; }
|
2014-09-14 15:10:51 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Links the user.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="userId">The user identifier.</param>
|
|
|
|
|
/// <param name="connectUsername">The connect username.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
2014-09-14 23:39:06 +00:00
|
|
|
|
Task<UserLinkResult> LinkUser(string userId, string connectUsername);
|
2014-09-14 15:10:51 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Removes the link.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="userId">The user identifier.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
2014-10-14 04:22:17 +00:00
|
|
|
|
Task RemoveConnect(string userId);
|
2014-10-13 20:14:53 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Invites the user.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="sendingUserId">The sending user identifier.</param>
|
|
|
|
|
/// <param name="connectUsername">The connect username.</param>
|
|
|
|
|
/// <returns>Task<UserLinkResult>.</returns>
|
|
|
|
|
Task<UserLinkResult> InviteUser(string sendingUserId, string connectUsername);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the pending guests.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>Task<List<ConnectAuthorization>>.</returns>
|
|
|
|
|
Task<List<ConnectAuthorization>> GetPendingGuests();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Cancels the authorization.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
Task CancelAuthorization(string id);
|
2014-08-25 03:54:45 +00:00
|
|
|
|
}
|
|
|
|
|
}
|