// Copyright (C) 2024 Intro-Skipper contributors // SPDX-License-Identifier: GPL-3.0-only. using System; using IntroSkipper.Data; namespace IntroSkipper.Db; /// /// All times are measured in seconds relative to the beginning of the media file. /// /// /// Initializes a new instance of the class. /// public class DbSegment { /// /// Initializes a new instance of the class. /// /// Segment. /// Analysis mode. public DbSegment(Segment segment, AnalysisMode mode) { ItemId = segment.EpisodeId; Start = segment.Start; End = segment.End; Type = mode; } /// /// Initializes a new instance of the class. /// public DbSegment() { } /// /// Gets the item ID. /// public Guid ItemId { get; private set; } /// /// Gets the start time. /// public double Start { get; private set; } /// /// Gets the end time. /// public double End { get; private set; } /// /// Gets the analysis mode. /// public AnalysisMode Type { get; private set; } }