summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLWeatherServiceData.h
blob: cb09c5f24c28ee1a1d3c5481446f00687f7c9583 (plain)
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
57
58
59
60
61
62
63
64
65
66
//
//  SDLWeatherServiceData.h
//  SmartDeviceLink
//
//  Created by Nicole on 2/7/19.
//  Copyright © 2019 smartdevicelink. All rights reserved.
//

#import "SDLRPCRequest.h"

#import "SDLLocationDetails.h"
#import "SDLWeatherData.h"
#import "SDLWeatherAlert.h"

NS_ASSUME_NONNULL_BEGIN

/**
 *  This data is related to what a weather service would provide.
 */
@interface SDLWeatherServiceData : SDLRPCStruct

/**
 *  The location.
 *
 *  SDLLocationDetails, Required
 */
@property (strong, nonatomic) SDLLocationDetails *location;

/**
 *  The current forecast.
 *
 *  SDLWeatherData, Optional
 */
@property (nullable, strong, nonatomic) SDLWeatherData *currentForecast;

/**
 *  A minute-by-minute array of forecasts.
 *
 *  Array of SDLWeatherData, Optional, minsize="15" maxsize="60"
 */
@property (nullable, strong, nonatomic) NSArray<SDLWeatherData *> *minuteForecast;

/**
 *  An hour-by-hour array of forecasts.
 *
 *  Array of SDLWeatherData, Optional, minsize="1" maxsize="96"
 */
@property (nullable, strong, nonatomic) NSArray<SDLWeatherData *> *hourlyForecast;

/**
 *  An day-by-day array of forecasts.
 *
 *  Array of SDLWeatherData, Optional, minsize="1" maxsize="30"
 */
@property (nullable, strong, nonatomic) NSArray<SDLWeatherData *> *multidayForecast;

/**
 *  An array of weather alerts. This array should be ordered with the first object being the current day.
 *
 *  Array of SDLWeatherData, Optional, minsize="1" maxsize="10"
 */
@property (nullable, strong, nonatomic) NSArray<SDLWeatherAlert *> *alerts;

@end

NS_ASSUME_NONNULL_END