import { IsEnum, IsNotEmpty, IsString } from 'class-validator';

export enum DevicePlatform {
  ANDROID = 'android',
  IOS = 'ios',
  WEB = 'web',
}

export class RegisterDeviceDto {
  @IsString()
  @IsNotEmpty({ message: 'FCM token is required' })
  fcmToken: string;

  @IsEnum(DevicePlatform, {
    message: 'platform must be one of: android, ios, web',
  })
  platform: DevicePlatform;
}
