import { CatalogItem } from "../models";

export interface CheckPlaceResponse {
  isPointInPolygon: boolean;
}

export class CheckPlaceRequest {
  constructor(public Latitude: number, public Longtitude: number) {}
}

export class FetchCitiesRequest {
  RegionId: number;
  RegionCode: string;

  constructor(data: { id?: number; code?: string }) {
    this.RegionCode = data.code;
    this.RegionId = data.id;
  }
}

export interface FetchCitiesResponse {
  cities: CatalogItem[];
}
