using System;
namespace ConfusedPolarBear.Plugin.IntroSkipper;
///
/// Result of fingerprinting and analyzing two episodes in a season.
/// All times are measured in seconds relative to the beginning of the media file.
///
public class Intro
{
///
/// Initializes a new instance of the class.
///
/// Episode.
/// Intro start time.
/// Intro end time.
public Intro(Guid episode, double start, double end)
{
EpisodeId = episode;
IntroStart = start;
IntroEnd = end;
}
///
/// Initializes a new instance of the class.
///
public Intro()
{
}
///
/// Gets or sets the Episode ID.
///
public Guid EpisodeId { get; set; }
///
/// Gets a value indicating whether this introduction is valid or not.
/// Invalid results must not be returned through the API.
///
public bool Valid => IntroEnd > 0;
///
/// Gets or sets the introduction sequence start time.
///
public double IntroStart { get; set; }
///
/// Gets or sets the introduction sequence end time.
///
public double IntroEnd { get; set; }
///
/// Gets or sets the recommended time to display the skip intro prompt.
///
public double ShowSkipPromptAt { get; set; }
///
/// Gets or sets the recommended time to hide the skip intro prompt.
///
public double HideSkipPromptAt { get; set; }
}