/
WeatherRoot.ts
56 lines (41 loc) · 1.76 KB
/
WeatherRoot.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import {ApiProperty} from "@nestjs/swagger";
import {WeatherCoordinate} from "./WeatherCoordinate";
import {WeatherItem} from "./WeatherItem";
import {WeatherMain} from "./WeatherMain";
import {WeatherWind} from "./WeatherWind";
import {WeatherCloud} from "./WeatherCloud";
import {WeatherSys} from "./WeatherSys";
import {WeatherRain} from "./WeatherRain";
import {WeatherSnow} from "./WeatherSnow";
export class WeatherRoot {
@ApiProperty({description: 'Coordinate object', type: WeatherCoordinate})
coord: WeatherCoordinate;
@ApiProperty({description: 'Weather items', type: [WeatherItem]})
weather: Array<WeatherItem>;
@ApiProperty({description: 'Internal parameter', type: String})
base: string;
@ApiProperty({description: 'Main object', type: WeatherMain})
main: WeatherMain;
@ApiProperty({description: 'Average visibility, #metres', type: Number})
visibility: number;
@ApiProperty({description: 'Wind object', type: WeatherWind})
wind: WeatherWind;
@ApiProperty({description: 'Rain object', type: WeatherWind})
rain: WeatherRain;
@ApiProperty({description: 'Snow object', type: WeatherWind})
snow: WeatherSnow;
@ApiProperty({description: 'Cloudiness object', type: WeatherCloud})
clouds: WeatherCloud;
@ApiProperty({description: 'Time of data calculation, UTC', type: Number})
dt: number;
@ApiProperty({description: 'System object', type: WeatherSys})
sys: WeatherSys;
@ApiProperty({description: 'Shift in seconds from UTC', type: Number})
timezone: number;
@ApiProperty({description: 'City Id', type: Number})
id: number;
@ApiProperty({description: 'City name', type: String})
name: string;
@ApiProperty({description: 'Code', type: Number})
cod: number;
}