📄 src/Integrations/FaceCamera/CameraOptions.cs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
using System.ComponentModel.DataAnnotations;
using Microsoft.Extensions.Options;

namespace MMirror.Integrations.FaceCamera;

public sealed class CameraOptions
{
    public int Index { get; set; } = 0;

    [Required]
    public required string Model { get; set; }

    public string Config { get; set; } = "";
}

[OptionsValidator]
internal sealed partial class CameraOptionsValidator : IValidateOptions<CameraOptions>;