// /*************************************************************************** // Aaru Data Preservation Suite // ---------------------------------------------------------------------------- // // Filename : CdOffsetDto.cs // Author(s) : Natalia Portillo // // Component : DTOs. // // --[ Description ] ---------------------------------------------------------- // // DTO for syncing Compact Disc read offsets. // // --[ License ] -------------------------------------------------------------- // // This library is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; either version 2.1 of the // License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, see . // // ---------------------------------------------------------------------------- // Copyright © 2011-2025 Natalia Portillo // ****************************************************************************/ using System.Diagnostics.CodeAnalysis; using Aaru.CommonTypes.Metadata; namespace Aaru.Dto; /// /// DTO from a CD drive read offset [SuppressMessage("ReSharper", "UnusedMember.Global")] public class CdOffsetDto : CdOffset { /// Build an empty DTO public CdOffsetDto() {} /// Build a DTO using the specified offset and database ID /// CD reading offset /// Database ID public CdOffsetDto(CdOffset offset, int id) { Manufacturer = offset.Manufacturer; Model = offset.Model; Offset = offset.Offset; Submissions = offset.Submissions; Agreement = offset.Agreement; Id = id; } /// Database ID public int Id { get; set; } }