import { ApiProperty } from '@nestjs/swagger';
import { GeoNameDto } from '../../csv-import/dto/geo-name.dto';
import { CityBlockDto } from '../../csv-import/dto/cityblock-dto';
import { AsnDto } from '../../csv-import/dto/asn.dto';

export class IpResponseDto {
  @ApiProperty({ example: '192.168.0.1' })
  ip: string;

  @ApiProperty({ example: 'Mozilla/5.0' })
  user_agent: string;

  @ApiProperty({ type: GeoNameDto })
  geo_name: GeoNameDto;

  @ApiProperty({ type: CityBlockDto })
  city_block: CityBlockDto;

  @ApiProperty({ type: AsnDto })
  asn: AsnDto;
}
