using Artemis.Storage.Legacy.Entities.General; namespace Artemis.Storage.Legacy.Entities.Profile; internal class ProfileEntity { public ProfileEntity() { Folders = []; Layers = []; ScriptConfigurations = []; } public Guid Id { get; set; } public string Name { get; set; } = string.Empty; public bool IsFreshImport { get; set; } public List Folders { get; set; } public List Layers { get; set; } public List ScriptConfigurations { get; set; } public void UpdateGuid(Guid guid) { Guid oldGuid = Id; Id = guid; FolderEntity? rootFolder = Folders.FirstOrDefault(f => f.ParentId == oldGuid); if (rootFolder != null) rootFolder.ParentId = Id; } }