From 16f61defb8bb813be26e0412a75bc4ec4749d1de Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Mon, 25 Nov 2019 00:54:31 +0000 Subject: [PATCH] Code reformat. --- Enums/Images.cs | 6 ++++-- Interfaces/IArchive.cs | 6 ++++-- Metadata/CdOffset.cs | 4 ++-- Metadata/MediaType.cs | 2 +- Metadata/Resume.cs | 8 ++++---- 5 files changed, 15 insertions(+), 11 deletions(-) diff --git a/Enums/Images.cs b/Enums/Images.cs index f56c606..18f62ad 100644 --- a/Enums/Images.cs +++ b/Enums/Images.cs @@ -59,9 +59,11 @@ namespace DiscImageChef.CommonTypes.Enums None = 0, /// Subchannel is packed and error corrected Packed = 1, /// Subchannel is interleaved Raw = 2, /// Subchannel is packed and comes interleaved with main channel in same file - PackedInterleaved = 3, /// Subchannel is interleaved and comes interleaved with main channel in same file + PackedInterleaved = 3, + /// Subchannel is interleaved and comes interleaved with main channel in same file RawInterleaved = 4, /// Only Q subchannel is stored as 16 bytes - Q16 = 5, /// Only Q subchannel is stored as 16 bytes and comes interleaved with main channel in same file + Q16 = 5, + /// Only Q subchannel is stored as 16 bytes and comes interleaved with main channel in same file Q16Interleaved = 6 } diff --git a/Interfaces/IArchive.cs b/Interfaces/IArchive.cs index 098ebc7..22fe41a 100644 --- a/Interfaces/IArchive.cs +++ b/Interfaces/IArchive.cs @@ -53,8 +53,10 @@ namespace DiscImageChef.CommonTypes.Interfaces /// The archive supports explicit entries for directories (like Zip, for example). If this flag is not set, /// directories are implicit by the relative name of the files. /// - HasExplicitDirectories = 1 << 3, /// The archive stores a timestamp with each entry if this flag is set. - HasEntryTimestamp = 1 << 4, /// If this flag is set, individual files or the whole archive might be encrypted or password-protected. + HasExplicitDirectories = 1 << 3, + /// The archive stores a timestamp with each entry if this flag is set. + HasEntryTimestamp = 1 << 4, + /// If this flag is set, individual files or the whole archive might be encrypted or password-protected. SupportsProtection = 1 << 5, // TODO: not implemented yet /// If this flag is set, the archive supports returning extended attributes (Xattrs) for each entry. diff --git a/Metadata/CdOffset.cs b/Metadata/CdOffset.cs index a0b0613..28612b1 100644 --- a/Metadata/CdOffset.cs +++ b/Metadata/CdOffset.cs @@ -46,7 +46,7 @@ namespace DiscImageChef.CommonTypes.Metadata public string Model { get; set; } public short Offset { get; set; } public int Submissions { get; set; } - [DisplayFormat(ApplyFormatInEditMode =true, DataFormatString = "{0:P0}")] - public float Agreement { get; set; } + [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:P0}")] + public float Agreement { get; set; } } } \ No newline at end of file diff --git a/Metadata/MediaType.cs b/Metadata/MediaType.cs index 8dbe3fe..c798efc 100644 --- a/Metadata/MediaType.cs +++ b/Metadata/MediaType.cs @@ -40,7 +40,7 @@ namespace DiscImageChef.CommonTypes.Metadata { public static class MediaType { - public static (string type, string subType) MediaTypeToString(CommonTypes.MediaType dskType) + public static(string type, string subType) MediaTypeToString(CommonTypes.MediaType dskType) { string discType; string discSubType; diff --git a/Metadata/Resume.cs b/Metadata/Resume.cs index 239fef9..66d72d9 100644 --- a/Metadata/Resume.cs +++ b/Metadata/Resume.cs @@ -46,18 +46,18 @@ namespace DiscImageChef.CommonTypes.Metadata [Serializable, XmlRoot("DicResume", Namespace = "", IsNullable = false)] public class Resume { + [XmlArrayItem("Block")] + public List BadBlocks; [XmlElement(DataType = "dateTime")] public DateTime CreationDate; + public ulong LastBlock; [XmlElement(DataType = "dateTime")] public DateTime LastWriteDate; - public bool Removable; - public ulong LastBlock; public ulong NextBlock; + public bool Removable; public bool Tape; [XmlArrayItem("DumpTry")] public List Tries; - [XmlArrayItem("Block")] - public List BadBlocks; } } \ No newline at end of file