2016-10-24 00:09:43 +00:00
|
|
|
|
using System.Threading.Tasks;
|
2015-06-30 23:59:45 +00:00
|
|
|
|
|
2016-10-24 00:09:43 +00:00
|
|
|
|
namespace MediaBrowser.Model.Social
|
2015-06-30 23:59:45 +00: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<SocialShareInfo>.</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>
|
2017-08-27 00:32:33 +00:00
|
|
|
|
void DeleteShare(string id);
|
2015-06-30 23:59:45 +00:00
|
|
|
|
}
|
|
|
|
|
}
|