diff options
author | Muller, Alexander (A.) <amulle19@ford.com> | 2016-12-22 13:35:53 -0500 |
---|---|---|
committer | Muller, Alexander (A.) <amulle19@ford.com> | 2016-12-22 13:35:53 -0500 |
commit | fa27662309f1e491aa5cc8e32ad9615e49124a06 (patch) | |
tree | 1d7ea40da2707e05d07d6f5a3656a7ecd4eb3bbe /SmartDeviceLink/SDLDateTime.h | |
parent | 38d57ad153e9ad1d554333ffc2cb3fed9b9e94a5 (diff) | |
download | sdl_ios-fa27662309f1e491aa5cc8e32ad9615e49124a06.tar.gz |
Added nullability annotation to structs.
Diffstat (limited to 'SmartDeviceLink/SDLDateTime.h')
-rw-r--r-- | SmartDeviceLink/SDLDateTime.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/SmartDeviceLink/SDLDateTime.h b/SmartDeviceLink/SDLDateTime.h index 7dffbd5d2..840183553 100644 --- a/SmartDeviceLink/SDLDateTime.h +++ b/SmartDeviceLink/SDLDateTime.h @@ -3,6 +3,8 @@ #import "SDLRPCStruct.h" +NS_ASSUME_NONNULL_BEGIN + @interface SDLDateTime : SDLRPCStruct - (instancetype)initWithHour:(UInt8)hour minute:(UInt8)minute; @@ -18,62 +20,64 @@ * * Optional, Integer 0 - 999 */ -@property (copy, nonatomic) NSNumber<SDLInt> *millisecond; +@property (nullable, copy, nonatomic) NSNumber<SDLInt> *millisecond; /** * @abstract Seconds part of time * * Optional, Integer 0 - 59 */ -@property (copy, nonatomic) NSNumber<SDLInt> *second; +@property (nullable, copy, nonatomic) NSNumber<SDLInt> *second; /** * @abstract Minutes part of time * * Optional, Integer 0 - 59 */ -@property (copy, nonatomic) NSNumber<SDLInt> *minute; +@property (nullable, copy, nonatomic) NSNumber<SDLInt> *minute; /** * @abstract Hour part of time * * Optional, Integer 0 - 23 */ -@property (copy, nonatomic) NSNumber<SDLInt> *hour; +@property (nullable, copy, nonatomic) NSNumber<SDLInt> *hour; /** * @abstract Day of the month * * Optional, Integer 1 - 31 */ -@property (copy, nonatomic) NSNumber<SDLInt> *day; +@property (nullable, copy, nonatomic) NSNumber<SDLInt> *day; /** * @abstract Month of the year * * Optional, Integer 1 - 12 */ -@property (copy, nonatomic) NSNumber<SDLInt> *month; +@property (nullable, copy, nonatomic) NSNumber<SDLInt> *month; /** * @abstract The year in YYYY format * * Optional, Max Value 4095 */ -@property (copy, nonatomic) NSNumber<SDLInt> *year; +@property (nullable, copy, nonatomic) NSNumber<SDLInt> *year; /** * @abstract Time zone offset in Min with regard to UTC * * Optional, Integer 0 - 59 */ -@property (copy, nonatomic) NSNumber<SDLInt> *timezoneMinuteOffset; +@property (nullable, copy, nonatomic) NSNumber<SDLInt> *timezoneMinuteOffset; /** * @abstract Time zone offset in Hours with regard to UTC * * Optional, Integer -12 - 14 */ -@property (copy, nonatomic) NSNumber<SDLInt> *timezoneHourOffset; +@property (nullable, copy, nonatomic) NSNumber<SDLInt> *timezoneHourOffset; @end + +NS_ASSUME_NONNULL_END |