mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 10:46:17 +00:00
28 lines
490 B
TypeScript
28 lines
490 B
TypeScript
import { IsNotEmpty, IsNumber, IsString } from 'class-validator';
|
|
|
|
export class PresenceSensorDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
public uuid: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
public deviceUuid: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
public eventDate: string;
|
|
|
|
@IsNumber()
|
|
@IsNotEmpty()
|
|
public CountMotionDetected: number;
|
|
|
|
@IsNumber()
|
|
@IsNotEmpty()
|
|
public CountPresenceDetected: number;
|
|
|
|
@IsNumber()
|
|
@IsNotEmpty()
|
|
public CountTotalPresenceDetected: number;
|
|
}
|