Initial 1.3.x rework
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { IsBoolean, IsInt, Length } from "class-validator";
|
||||
|
||||
import type { Protobuf } from "@meshtastic/meshtasticjs";
|
||||
|
||||
export class ChannelSettingsValidation implements Protobuf.ChannelSettings {
|
||||
@IsInt()
|
||||
channelNum: number;
|
||||
|
||||
psk: Uint8Array;
|
||||
|
||||
@Length(1, 30)
|
||||
name: string;
|
||||
|
||||
@IsInt()
|
||||
id: number;
|
||||
|
||||
@IsBoolean()
|
||||
uplinkEnabled: boolean;
|
||||
|
||||
@IsBoolean()
|
||||
downlinkEnabled: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user