21 lines
762 B
C#
21 lines
762 B
C#
using System.ComponentModel;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Security.Claims;
|
|
|
|
namespace DocuMed.Common.Models.Claims;
|
|
public class ClaimDto : INotifyPropertyChanged
|
|
{
|
|
public string Value { get; set; } = string.Empty;
|
|
public string Type { get; set; } = string.Empty;
|
|
public string Title { get; set; } = string.Empty;
|
|
public string Detail { get; set; } = string.Empty;
|
|
public bool IsSelected { get; set; } = false;
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
|
|
{
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
}
|
|
public Claim GetClaim => new Claim(Type, Value);
|
|
}
|