import { ApiProperty } from "@nestjs/swagger";
import { IsString } from "class-validator";

export default class MediaLoadDto {

    @ApiProperty(
        {
            description: "Nome del media"
        }
    )
    @IsString()
    title?: string; 


    @ApiProperty(
        {
            description: "Media codificato in base64 del media"
        }
    )
    @IsString()
    base64File?: string;

    @ApiProperty(
        {
            description: "Estensione file"
        }
    )
    @IsString()
    extension?: string;

}