using System.Security.Cryptography;
using System.Text.Json;

namespace Berufsschule_HAM.Models;

public class AdminSettingsModel
{
    public required string DefaultHashAlgorithm { get; set; }
    public int MaxDownloadableUserImageSize { get; set; }
    public required string BarcodeType { get; set; }
    public required string BarcodeText { get; set; }
    public required Dictionary<string, Preset> Presets { get; set; }
    public HashAlgorithm? hashAlgorithm;
    public UserImagePreloadType? UserImagePreloadType { get; set; } = Models.UserImagePreloadType.None;
}

public class Preset
{
    public required Dictionary<string, string> Attribute { get; set; }
}

public enum UserImagePreloadType
{
    None,
    Icons,
    FullSized
}