jellyfin/MediaBrowser.Model/Social/ISharingManager.cs

28 lines
894 B
C#
Raw Normal View History

2016-10-23 17:09:43 -07:00
using System.Threading.Tasks;
2015-06-30 16:59:45 -07:00
2016-10-23 17:09:43 -07:00
namespace MediaBrowser.Model.Social
2015-06-30 16:59:45 -07:00
{
public interface ISharingManager
{
/// <summary>
/// Creates the share.
/// </summary>
/// <param name="itemId">The item identifier.</param>
/// <param name="userId">The user identifier.</param>
/// <returns>Task&lt;SocialShareInfo&gt;.</returns>
Task<SocialShareInfo> CreateShare(string itemId, string userId);
/// <summary>
/// Gets the share information.
/// </summary>
/// <param name="id">The identifier.</param>
/// <returns>SocialShareInfo.</returns>
SocialShareInfo GetShareInfo(string id);
/// <summary>
/// Deletes the share.
/// </summary>
/// <param name="id">The identifier.</param>
/// <returns>Task.</returns>
Task DeleteShare(string id);
}
}