Files
meshtastic-web/src/validation/config/bluetooth.ts
T
2024-01-06 10:15:49 +10:00

17 lines
455 B
TypeScript

import type { Message } from "@bufbuild/protobuf";
import { Protobuf } from "@meshtastic/js";
import { IsBoolean, IsEnum, IsInt } from "class-validator";
export class BluetoothValidation
implements Omit<Protobuf.Config.Config_BluetoothConfig, keyof Message>
{
@IsBoolean()
enabled: boolean;
@IsEnum(Protobuf.Config.Config_BluetoothConfig_PairingMode)
mode: Protobuf.Config.Config_BluetoothConfig_PairingMode;
@IsInt()
fixedPin: number;
}