using System; using Artemis.Core.Modules; using Artemis.Storage.Entities.Profile; namespace Artemis.Core { /// /// Represents a descriptor that describes a profile /// public class ProfileDescriptor : CorePropertyChanged { internal ProfileDescriptor(ProfileModule profileModule, ProfileEntity profileEntity) { ProfileModule = profileModule; Id = profileEntity.Id; Name = profileEntity.Name; IsLastActiveProfile = profileEntity.IsActive; } /// /// Gets the module backing the profile /// public ProfileModule ProfileModule { get; } /// /// Gets the unique ID of the profile by which it can be loaded from storage /// public Guid Id { get; } /// /// Gets the name of the profile /// public string Name { get; } /// /// Gets a boolean indicating whether this was the last active profile /// public bool IsLastActiveProfile { get; } } }