File

apps/live-weather/src/app/shared/models/IPlace.ts

Description

Interface for classes that uses city

Index

Properties

Properties

coord
coord: ICoordinate
Type : ICoordinate

Coordinates of the city

country
country: string
Type : string

Country in which city resides

id
id: number
Type : number

Identifier for the city

isFavorite
isFavorite: boolean
Type : boolean

Gets current favorite state of location

name
name: string
Type : string

Name of the city

photoUrl
photoUrl: string
Type : string

points of locations photo

state
state: string
Type : string

State in which city resides

import { ICoordinate } from './ICoordinate';

/**
 * Interface for classes that uses city
 */
export interface IPlace {
  /**
   *  Identifier for the city
   */
  id: number;
  /**
   * Name of the city
   */
  name: string;

  /**
   * State in which city resides
   */
  state: string;
  /**
   * Country in which city resides
   */
  country: string;
  /**
   * Coordinates of the city
   */
  coord: ICoordinate;

  /**
   * points of locations photo
   */
  photoUrl: string;

  /**
   * Gets current favorite state of location
   */
  isFavorite: boolean;
}

result-matching ""

    No results matching ""