mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 11:11:10 +00:00
40 lines
2.0 KiB
C#
40 lines
2.0 KiB
C#
#region ========================================================================= USING =====================================================================================
|
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaConsumption;
|
|
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
|
using System;
|
|
using System.Diagnostics;
|
|
#endregion
|
|
|
|
namespace Lumina.Contracts.Responses.MediaConsumption;
|
|
|
|
/// <summary>
|
|
/// Represents a media consumption session.
|
|
/// </summary>
|
|
/// <param name="Id">The Id of the consumption record.</param>
|
|
/// <param name="LibraryId">The Id of the media library that contains the consumed media item.</param>
|
|
/// <param name="MediaItemId">The Id of the consumed media item.</param>
|
|
/// <param name="MediaKind">The kind of media that was consumed.</param>
|
|
/// <param name="Status">The state of the consumption session.</param>
|
|
/// <param name="StartedOnUtc">The date and time when the session started.</param>
|
|
/// <param name="LastActivityOnUtc">The date and time when the session last received activity.</param>
|
|
/// <param name="EndedOnUtc">The date and time when the session completed or stopped, if it has ended.</param>
|
|
/// <param name="ConsumedDurationInSeconds">The active duration consumed by the session, in seconds.</param>
|
|
/// <param name="LastPosition">The last known position for the media item, if any.</param>
|
|
/// <param name="LastProgressFraction">The latest reported progress fraction of the media item.</param>
|
|
/// <param name="ConsecutivePagesRead">The number of consecutive pages read in the session.</param>
|
|
[DebuggerDisplay("Id: {Id}; MediaKind: {MediaKind}; Status: {Status}")]
|
|
public sealed record ConsumptionRecordResponse(
|
|
Guid Id,
|
|
Guid LibraryId,
|
|
Guid MediaItemId,
|
|
MediaKind MediaKind,
|
|
ConsumptionStatus Status,
|
|
DateTime StartedOnUtc,
|
|
DateTime LastActivityOnUtc,
|
|
DateTime? EndedOnUtc,
|
|
double ConsumedDurationInSeconds,
|
|
MediaPositionResponse? LastPosition,
|
|
double LastProgressFraction,
|
|
int ConsecutivePagesRead
|
|
);
|