mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-30 13:56:31 +01:00
move classes to model
This commit is contained in:
16
MediaBrowser.Model/Activity/IActivityManager.cs
Normal file
16
MediaBrowser.Model/Activity/IActivityManager.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using MediaBrowser.Model.Events;
|
||||
using MediaBrowser.Model.Querying;
|
||||
|
||||
namespace MediaBrowser.Model.Activity
|
||||
{
|
||||
public interface IActivityManager
|
||||
{
|
||||
event EventHandler<GenericEventArgs<ActivityLogEntry>> EntryCreated;
|
||||
|
||||
Task Create(ActivityLogEntry entry);
|
||||
|
||||
QueryResult<ActivityLogEntry> GetActivityLogEntries(DateTime? minDate, int? startIndex, int? limit);
|
||||
}
|
||||
}
|
||||
13
MediaBrowser.Model/Activity/IActivityRepository.cs
Normal file
13
MediaBrowser.Model/Activity/IActivityRepository.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using MediaBrowser.Model.Querying;
|
||||
|
||||
namespace MediaBrowser.Model.Activity
|
||||
{
|
||||
public interface IActivityRepository
|
||||
{
|
||||
Task Create(ActivityLogEntry entry);
|
||||
|
||||
QueryResult<ActivityLogEntry> GetActivityLogEntries(DateTime? minDate, int? startIndex, int? limit);
|
||||
}
|
||||
}
|
||||
@@ -43,6 +43,8 @@
|
||||
<Link>Properties\SharedVersion.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="Activity\ActivityLogEntry.cs" />
|
||||
<Compile Include="Activity\IActivityManager.cs" />
|
||||
<Compile Include="Activity\IActivityRepository.cs" />
|
||||
<Compile Include="ApiClient\ApiHelpers.cs" />
|
||||
<Compile Include="ApiClient\ConnectionMode.cs" />
|
||||
<Compile Include="ApiClient\ConnectionResult.cs" />
|
||||
@@ -162,6 +164,7 @@
|
||||
<Compile Include="Net\EndPointInfo.cs" />
|
||||
<Compile Include="Net\HttpResponse.cs" />
|
||||
<Compile Include="Net\MimeTypes.cs" />
|
||||
<Compile Include="News\INewsService.cs" />
|
||||
<Compile Include="Notifications\NotificationOption.cs" />
|
||||
<Compile Include="Notifications\NotificationOptions.cs" />
|
||||
<Compile Include="Notifications\NotificationType.cs" />
|
||||
@@ -356,6 +359,7 @@
|
||||
<Compile Include="Session\TranscodingInfo.cs" />
|
||||
<Compile Include="Session\UserDataChangeInfo.cs" />
|
||||
<Compile Include="Devices\ContentUploadHistory.cs" />
|
||||
<Compile Include="Social\ISharingManager.cs" />
|
||||
<Compile Include="Social\SocialShareInfo.cs" />
|
||||
<Compile Include="Sync\CompleteSyncJobInfo.cs" />
|
||||
<Compile Include="Sync\DeviceFileInfo.cs" />
|
||||
|
||||
17
MediaBrowser.Model/News/INewsService.cs
Normal file
17
MediaBrowser.Model/News/INewsService.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using MediaBrowser.Model.Querying;
|
||||
|
||||
namespace MediaBrowser.Model.News
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface INewsFeed
|
||||
/// </summary>
|
||||
public interface INewsService
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the product news.
|
||||
/// </summary>
|
||||
/// <param name="query">The query.</param>
|
||||
/// <returns>QueryResult{NewsItem}.</returns>
|
||||
QueryResult<NewsItem> GetProductNews(NewsQuery query);
|
||||
}
|
||||
}
|
||||
27
MediaBrowser.Model/Social/ISharingManager.cs
Normal file
27
MediaBrowser.Model/Social/ISharingManager.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MediaBrowser.Model.Social
|
||||
{
|
||||
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>
|
||||
Task DeleteShare(string id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user