using System; namespace PlotDirector.Companion.Protocol; // Optional HTTPS contract. No Windows implementation or new required pipe capability. public sealed class AudioReviewObservation { public int Version { get; set; } = 1; public Guid? ReviewID { get; set; } public int BookID { get; set; } public long Sequence { get; set; } public string State { get; set; } = "unavailable"; public string MediaKey { get; set; } = ""; public double? PositionSeconds { get; set; } public double? DurationSeconds { get; set; } public double PlaybackRate { get; set; } = 1; public string[] Operations { get; set; } = []; public Guid? AcknowledgedCommandID { get; set; } public string? Error { get; set; } // True only for actual text mutation, never cursor/selection/scroll activity. public bool TextModified { get; set; } // An actual player seek event or successfully applied seek command, not a telemetry gap. public bool Seeked { get; set; } } public sealed class AudioReviewReply { public int Version { get; set; } = 1; public Guid? ReviewID { get; set; } public int? ChapterID { get; set; } public bool PauseOnEdit { get; set; } public Guid? CommandID { get; set; } public string? Command { get; set; } public int? RelativeSeconds { get; set; } public string? MediaKey { get; set; } public DateTime? ExpiresUtc { get; set; } }