import { ApiProperty } from '@nestjs/swagger';
import { IsBoolean, IsEnum } from 'class-validator';
import { ZoomAttendanceMarkSource } from 'src/common/enum/zoom-attendance-mark-source.enum';

export class MarkAttendanceDto {
  @ApiProperty({ enum: ZoomAttendanceMarkSource, description: 'Who is marking attendance — SYSTEM is rejected' })
  @IsEnum(ZoomAttendanceMarkSource)
  source: ZoomAttendanceMarkSource;

  @ApiProperty()
  @IsBoolean()
  attended: boolean;
}
