diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-10-13 16:14:53 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-10-13 16:14:53 -0400 |
| commit | ab3c26c5647a56e95d0f5229f07b1a1b45812ff8 (patch) | |
| tree | bbcaf5db256364f19cdb4f7c18eb82171dc4183b /MediaBrowser.Controller | |
| parent | 8a15ee6ab4149cf59f8ff2724e3e415d34557da1 (diff) | |
update connect
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Connect/ConnectUser.cs | 1 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Connect/IConnectManager.cs | 25 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Devices/IDeviceManager.cs | 17 |
3 files changed, 41 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Connect/ConnectUser.cs b/MediaBrowser.Controller/Connect/ConnectUser.cs index 389330cec..c6a9eba55 100644 --- a/MediaBrowser.Controller/Connect/ConnectUser.cs +++ b/MediaBrowser.Controller/Connect/ConnectUser.cs @@ -7,6 +7,7 @@ namespace MediaBrowser.Controller.Connect public string Name { get; set; } public string Email { get; set; } public bool IsActive { get; set; } + public string ImageUrl { get; set; } } public class ConnectUserQuery diff --git a/MediaBrowser.Controller/Connect/IConnectManager.cs b/MediaBrowser.Controller/Connect/IConnectManager.cs index 7c1e14c30..afb61cb23 100644 --- a/MediaBrowser.Controller/Connect/IConnectManager.cs +++ b/MediaBrowser.Controller/Connect/IConnectManager.cs @@ -1,4 +1,6 @@ -using System.Threading.Tasks; +using MediaBrowser.Model.Connect; +using System.Collections.Generic; +using System.Threading.Tasks; namespace MediaBrowser.Controller.Connect { @@ -24,5 +26,26 @@ namespace MediaBrowser.Controller.Connect /// <param name="userId">The user identifier.</param> /// <returns>Task.</returns> Task RemoveLink(string userId); + + /// <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); } } diff --git a/MediaBrowser.Controller/Devices/IDeviceManager.cs b/MediaBrowser.Controller/Devices/IDeviceManager.cs index e66de42bb..af184e6e9 100644 --- a/MediaBrowser.Controller/Devices/IDeviceManager.cs +++ b/MediaBrowser.Controller/Devices/IDeviceManager.cs @@ -1,5 +1,7 @@ using MediaBrowser.Model.Devices; +using MediaBrowser.Model.Events; using MediaBrowser.Model.Session; +using System; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; @@ -9,6 +11,11 @@ namespace MediaBrowser.Controller.Devices public interface IDeviceManager { /// <summary> + /// Occurs when [device options updated]. + /// </summary> + event EventHandler<GenericEventArgs<DeviceInfo>> DeviceOptionsUpdated; + + /// <summary> /// Registers the device. /// </summary> /// <param name="reportedId">The reported identifier.</param> @@ -16,7 +23,7 @@ namespace MediaBrowser.Controller.Devices /// <param name="appName">Name of the application.</param> /// <param name="usedByUserId">The used by user identifier.</param> /// <returns>Task.</returns> - Task RegisterDevice(string reportedId, string name, string appName, string usedByUserId); + Task<DeviceInfo> RegisterDevice(string reportedId, string name, string appName, string usedByUserId); /// <summary> /// Saves the capabilities. @@ -41,6 +48,14 @@ namespace MediaBrowser.Controller.Devices DeviceInfo GetDevice(string id); /// <summary> + /// Updates the device information. + /// </summary> + /// <param name="id">The identifier.</param> + /// <param name="options">The options.</param> + /// <returns>Task.</returns> + Task UpdateDeviceInfo(string id, DeviceOptions options); + + /// <summary> /// Gets the devices. /// </summary> /// <returns>IEnumerable<DeviceInfo>.</returns> |
