af1152b001
Refactored all C# test files to use explicit namespace declarations and moved all using directives inside the namespace block for consistency. Updated assembly info and cache files to reflect the new build. Adjusted MvcTestingAppManifest.json to use fully qualified assembly names. No functional changes; all updates are related to code style, organization, and project metadata.
45 lines
1.5 KiB
C#
45 lines
1.5 KiB
C#
// <copyright file="IActivityManager.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace MediaBrowser.Model.Activity;
|
|
|
|
using global::System;
|
|
using global::System.Threading.Tasks;
|
|
using Jellyfin.Data.Events;
|
|
using Jellyfin.Data.Queries;
|
|
using Jellyfin.Database.Implementations.Entities;
|
|
using MediaBrowser.Model.Querying;
|
|
|
|
/// <summary>
|
|
/// Interface for the activity manager.
|
|
/// </summary>
|
|
public interface IActivityManager
|
|
{
|
|
/// <summary>
|
|
/// The event that is triggered when an entity is created.
|
|
/// </summary>
|
|
event EventHandler<GenericEventArgs<ActivityLogEntry>> EntryCreated;
|
|
|
|
/// <summary>
|
|
/// Create a new activity log entry.
|
|
/// </summary>
|
|
/// <param name="entry">The entry to create.</param>
|
|
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
|
|
Task CreateAsync(ActivityLog entry);
|
|
|
|
/// <summary>
|
|
/// Get a paged list of activity log entries.
|
|
/// </summary>
|
|
/// <param name="query">The activity log query.</param>
|
|
/// <returns>The page of entries.</returns>
|
|
Task<QueryResult<ActivityLogEntry>> GetPagedResultAsync(ActivityLogQuery query);
|
|
|
|
/// <summary>
|
|
/// Remove all activity logs before the specified date.
|
|
/// </summary>
|
|
/// <param name="startDate">Activity log start date.</param>
|
|
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
|
|
Task CleanAsync(DateTime startDate);
|
|
}
|