mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Aaru.CommonTypes] Reformat and cleanup.
This commit is contained in:
@@ -68,27 +68,53 @@ public class FileSystem
|
||||
public FilesystemContents Contents { get; set; }
|
||||
|
||||
[Obsolete("Will be removed in Aaru 7")]
|
||||
public static implicit operator FileSystem(FileSystemType cicm) => cicm is null ? null : new FileSystem
|
||||
{
|
||||
Type = cicm.Type,
|
||||
CreationDate = cicm.CreationDateSpecified ? cicm.CreationDate : null,
|
||||
ModificationDate = cicm.ModificationDateSpecified ? cicm.ModificationDate : null,
|
||||
BackupDate = cicm.BackupDateSpecified ? cicm.BackupDate : null,
|
||||
ClusterSize = cicm.ClusterSize,
|
||||
Clusters = cicm.Clusters,
|
||||
Files = cicm.FilesSpecified ? cicm.Files : null,
|
||||
Bootable = cicm.Bootable,
|
||||
VolumeSerial = cicm.VolumeSerial,
|
||||
VolumeName = cicm.VolumeName,
|
||||
FreeClusters = cicm.FreeClustersSpecified ? cicm.FreeClusters : null,
|
||||
Dirty = cicm.Dirty,
|
||||
ExpirationDate = cicm.ExpirationDateSpecified ? cicm.ExpirationDate : null,
|
||||
EffectiveDate = cicm.EffectiveDateSpecified ? cicm.EffectiveDate : null,
|
||||
SystemIdentifier = cicm.SystemIdentifier,
|
||||
VolumeSetIdentifier = cicm.VolumeSetIdentifier,
|
||||
PublisherIdentifier = cicm.PublisherIdentifier,
|
||||
DataPreparerIdentifier = cicm.DataPreparerIdentifier,
|
||||
ApplicationIdentifier = cicm.ApplicationIdentifier,
|
||||
Contents = cicm.Contents
|
||||
};
|
||||
}
|
||||
public static implicit operator FileSystem(FileSystemType cicm) => cicm is null
|
||||
? null
|
||||
: new FileSystem
|
||||
{
|
||||
Type = cicm.Type,
|
||||
CreationDate =
|
||||
cicm.CreationDateSpecified
|
||||
? cicm.CreationDate
|
||||
: null,
|
||||
ModificationDate =
|
||||
cicm.ModificationDateSpecified
|
||||
? cicm.ModificationDate
|
||||
: null,
|
||||
BackupDate =
|
||||
cicm.BackupDateSpecified
|
||||
? cicm.BackupDate
|
||||
: null,
|
||||
ClusterSize = cicm.ClusterSize,
|
||||
Clusters = cicm.Clusters,
|
||||
Files = cicm.FilesSpecified
|
||||
? cicm.Files
|
||||
: null,
|
||||
Bootable = cicm.Bootable,
|
||||
VolumeSerial = cicm.VolumeSerial,
|
||||
VolumeName = cicm.VolumeName,
|
||||
FreeClusters =
|
||||
cicm.FreeClustersSpecified
|
||||
? cicm.FreeClusters
|
||||
: null,
|
||||
Dirty = cicm.Dirty,
|
||||
ExpirationDate =
|
||||
cicm.ExpirationDateSpecified
|
||||
? cicm.ExpirationDate
|
||||
: null,
|
||||
EffectiveDate =
|
||||
cicm.EffectiveDateSpecified
|
||||
? cicm.EffectiveDate
|
||||
: null,
|
||||
SystemIdentifier = cicm.SystemIdentifier,
|
||||
VolumeSetIdentifier =
|
||||
cicm.VolumeSetIdentifier,
|
||||
PublisherIdentifier =
|
||||
cicm.PublisherIdentifier,
|
||||
DataPreparerIdentifier =
|
||||
cicm.DataPreparerIdentifier,
|
||||
ApplicationIdentifier =
|
||||
cicm.ApplicationIdentifier,
|
||||
Contents = cicm.Contents
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user