namespace ASTRAIN.Shared.Dtos;

/// <summary>
/// Data transfer object for a routine run entry.
/// </summary>
public class RoutineRunEntryDto
{
    /// <summary>
    /// Gets or sets the exercise identifier.
    /// </summary>
    public int ExerciseId { get; set; }

    /// <summary>
    /// Gets or sets the weight used.
    /// </summary>
    public double Weight { get; set; }

    /// <summary>
    /// Gets or sets whether the exercise was completed.
    /// </summary>
    public bool Completed { get; set; }

    /// <summary>
    /// Initializes a new instance for serialization.
    /// </summary>
    public RoutineRunEntryDto()
    {
    }

    /// <summary>
    /// Initializes a new instance with values.
    /// </summary>
    public RoutineRunEntryDto(int exerciseId, double weight, bool completed)
    {
        ExerciseId = exerciseId;
        Weight = weight;
        Completed = completed;
    }
}
