mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 10:43:30 +01:00
update connect
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
@@ -8,6 +10,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>
|
||||
@@ -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.
|
||||
@@ -40,6 +47,14 @@ namespace MediaBrowser.Controller.Devices
|
||||
/// <returns>DeviceInfo.</returns>
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user