2023-12-16 20:25:12 +03:30
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
|
|
using System.Security.Claims;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NetinaShop.Domain.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;
|
|
|
|
|
|
|
2023-12-31 19:55:22 +03:30
|
|
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
|
|
|
|
protected virtual void OnPropertyChanged([CallerMemberName] string? propertyName = null)
|
2023-12-16 20:25:12 +03:30
|
|
|
|
{
|
|
|
|
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
|
|
|
|
}
|
|
|
|
|
|
public Claim GetClaim => new Claim(Type, Value);
|
|
|
|
|
|
}
|