#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;
///
/// Represents a media consumption session.
///
/// The Id of the consumption record.
/// The Id of the media library that contains the consumed media item.
/// The Id of the consumed media item.
/// The kind of media that was consumed.
/// The state of the consumption session.
/// The date and time when the session started.
/// The date and time when the session last received activity.
/// The date and time when the session completed or stopped, if it has ended.
/// The active duration consumed by the session, in seconds.
/// The last known position for the media item, if any.
/// The latest reported progress fraction of the media item.
/// The number of consecutive pages read in the session.
[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
);