Class AbstractUserProfile
- Namespace
- Core.CliniCore.Domain.Users
- Assembly
- Core.CliniCore.dll
public abstract class AbstractUserProfile : IUserProfile, IIdentifiable
- Inheritance
-
AbstractUserProfile
- Implements
-
- Derived
-
- Inherited Members
-
Constructors
AbstractUserProfile()
protected AbstractUserProfile()
Properties
CreatedAt
public DateTime CreatedAt { get; init; }
Property Value
- DateTime
Entries
public List<ProfileEntry> Entries { get; }
Property Value
- List<ProfileEntry>
Id
public Guid Id { get; init; }
Property Value
- Guid
IsValid
public bool IsValid { get; }
Property Value
- bool
Role
public abstract UserRole Role { get; }
Property Value
- UserRole
Username
public string Username { get; set; }
Property Value
- string
Methods
GetEntry(string)
public ProfileEntry? GetEntry(string key)
Parameters
key string
Returns
- ProfileEntry
GetProfileTemplate()
protected abstract IProfileTemplate GetProfileTemplate()
Returns
- IProfileTemplate
GetValidationErrors()
public List<string> GetValidationErrors()
Returns
- List<string>
GetValue<T>(string)
public T? GetValue<T>(string key)
Parameters
key string
Returns
- T
Type Parameters
T
SetValue<T>(string, T)
public bool SetValue<T>(string key, T value)
Parameters
key string
value T
Returns
- bool
Type Parameters
T