import { IsBoolean, IsEmpty, IsInt, IsIn, IsNotEmpty, IsNumber, IsArray, IsString, IsOptional, IsEnum } from "class-validator";

export class roomDto
{
	@IsString()
	@IsNotEmpty()
	name: string;

	@IsString()
	@IsNotEmpty()
	@IsIn(["public", "protected", "private", "direct", "user"])
	type: string;

	@IsArray()
	@IsString({ each: true })
	@IsOptional()
	users?: string[]; // usernames
}

