import { ApiProperty } from '@nestjs/swagger';
import { IsIn } from 'class-validator';
import { PNS } from '../../../constants';

export class RegisterRequest {
  @ApiProperty({ description: 'wns or apns' })
  @IsIn(Object.values(PNS), {
    message: 'invalid pns',
  })
  pns: string;
  @ApiProperty({ description: 'wnsのチャネルURI or apnsのデバイストークン' })
  handler: string;
}

export class RegisterResponse {}
