#region ========================================================================= USING ===================================================================================== using Lumina.Application.Common.DataAccess.Entities.Scheduling; using Lumina.Application.Common.DataAccess.Repositories.Common.Base; using Lumina.Domain.Common.Primitives; using System; using System.Threading; using System.Threading.Tasks; #endregion namespace Lumina.Application.Common.DataAccess.Repositories.Scheduling; /// /// Interface for the repository for the display preferences of the scheduler page. /// public interface ISchedulerDisplayPreferencesRepository : IRepository { /// /// Gets the display preferences of the scheduler page of the user identified by , if they exist. /// /// The Id of the user whose display preferences are retrieved. /// Cancellation token that can be used to stop the execution. /// An containing either the display preferences of the user, or an error. Task> GetByUserIdAsync(Guid userId, CancellationToken cancellationToken); /// /// Inserts the display preferences of the scheduler page of a user, or updates them when they already exist. /// /// The display preferences to insert or update. /// Cancellation token that can be used to stop the execution. /// An representing either a successful operation, or an error. Task> UpsertAsync(SchedulerDisplayPreferencesEntity preferences, CancellationToken cancellationToken); }