Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing params to HMICapabilities #1425

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions SmartDeviceLink/SDLHMICapabilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,24 @@ NS_ASSUME_NONNULL_BEGIN
**/
@property (nullable, copy, nonatomic) NSNumber<SDLBool> *appServices;

/**
Availability of displays. True: Available, False: Not Available

Boolean value. Optional.

Since SDL 6.0
**/
@property (nullable, copy, nonatomic) NSNumber<SDLBool> *displays;

/**
Availability of seatLocation. True: Available, False: Not Available

Boolean value. Optional.

Since SDL 6.0
**/
@property (nullable, copy, nonatomic) NSNumber<SDLBool> *seatLocation;

@end

NS_ASSUME_NONNULL_END
16 changes: 16 additions & 0 deletions SmartDeviceLink/SDLHMICapabilities.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,22 @@ - (void)setAppServices:(nullable NSNumber<SDLBool> *)appServices {
return [self.store sdl_objectForName:SDLRPCParameterNameAppServices ofClass:NSNumber.class error:nil];
}

- (void)setDisplays:(nullable NSNumber<SDLBool> *)displays {
[self.store sdl_setObject:displays forName:SDLRPCParameterNameDisplays];
}

- (nullable NSNumber<SDLBool> *)displays {
return [self.store sdl_objectForName:SDLRPCParameterNameDisplays ofClass:NSNumber.class error:nil];
}

- (void)setSeatLocation:(nullable NSNumber<SDLBool> *)seatLocation {
[self.store sdl_setObject:seatLocation forName:SDLRPCParameterNameSeatLocation];
}

- (nullable NSNumber<SDLBool> *)seatLocation {
return [self.store sdl_objectForName:SDLRPCParameterNameSeatLocation ofClass:NSNumber.class error:nil];
}

@end

NS_ASSUME_NONNULL_END
2 changes: 2 additions & 0 deletions SmartDeviceLink/SDLRPCParameterNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ extern SDLRPCParameterName const SDLRPCParameterNameDialNumberEnabled;
extern SDLRPCParameterName const SDLRPCParameterNameDIDLocation;
extern SDLRPCParameterName const SDLRPCParameterNameDIDResult;
extern SDLRPCParameterName const SDLRPCParameterNameDimension;
extern SDLRPCParameterName const SDLRPCParameterNameDisplays;
extern SDLRPCParameterName const SDLRPCParameterNameDisplayCapabilities;
extern SDLRPCParameterName const SDLRPCParameterNameDisplayMode;
extern SDLRPCParameterName const SDLRPCParameterNameDisplayModeUnitAvailable;
Expand Down Expand Up @@ -540,6 +541,7 @@ extern SDLRPCParameterName const SDLRPCParameterNameSDLVersion;
extern SDLRPCParameterName const SDLRPCParameterNameSearchAddress;
extern SDLRPCParameterName const SDLRPCParameterNameSeatControlData;
extern SDLRPCParameterName const SDLRPCParameterNameSeatControlCapabilities;
extern SDLRPCParameterName const SDLRPCParameterNameSeatLocation;
extern SDLRPCParameterName const SDLRPCParameterNameSeatLocationCapability;
extern SDLRPCParameterName const SDLRPCParameterNameSeats;
extern SDLRPCParameterName const SDLRPCParameterNameSecondaryColor;
Expand Down
2 changes: 2 additions & 0 deletions SmartDeviceLink/SDLRPCParameterNames.m
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
SDLRPCParameterName const SDLRPCParameterNameDIDLocation = @"didLocation";
SDLRPCParameterName const SDLRPCParameterNameDIDResult = @"didResult";
SDLRPCParameterName const SDLRPCParameterNameDimension = @"dimension";
SDLRPCParameterName const SDLRPCParameterNameDisplays = @"displays";
SDLRPCParameterName const SDLRPCParameterNameDisplayCapabilities = @"displayCapabilities";
SDLRPCParameterName const SDLRPCParameterNameDisplayLayout = @"displayLayout";
SDLRPCParameterName const SDLRPCParameterNameDisplayMode = @"displayMode";
Expand Down Expand Up @@ -535,6 +536,7 @@
SDLRPCParameterName const SDLRPCParameterNameSearchAddress = @"searchAddress";
SDLRPCParameterName const SDLRPCParameterNameSeatControlData = @"seatControlData";
SDLRPCParameterName const SDLRPCParameterNameSeatControlCapabilities = @"seatControlCapabilities";
SDLRPCParameterName const SDLRPCParameterNameSeatLocation = @"seatLocation";
SDLRPCParameterName const SDLRPCParameterNameSeatLocationCapability = @"seatLocationCapability";
SDLRPCParameterName const SDLRPCParameterNameSeats = @"seats";
SDLRPCParameterName const SDLRPCParameterNameSecondaryGraphic = @"secondaryGraphic";
Expand Down