import { Expose } from 'class-transformer';
import { IsDefined, IsString } from 'class-validator';
import { IsTimeWithoutSeconds } from '../../../../mappers/decorators/isTimeWithoutSeconds';

export class TimeSlotVC {
    @IsString()
    @IsDefined()
    @IsTimeWithoutSeconds()
    @Expose()
    startTime!: string;

    @IsString()
    @IsDefined()
    @IsTimeWithoutSeconds()
    @Expose()
    endTime!: string;
}
