summaryrefslogtreecommitdiff
path: root/base/src/main/java/com/smartdevicelink/proxy
diff options
context:
space:
mode:
authorJulian Kast <julian@livio.com>2020-09-03 16:35:17 -0400
committerJulian Kast <julian@livio.com>2020-09-03 16:35:17 -0400
commit385afe5cb23c914108a95269b2b965acb0f8ad41 (patch)
tree9edb8d3d56b9b63d58fc8d4a5aedb71a34dcdb92 /base/src/main/java/com/smartdevicelink/proxy
parent692f925b312c1c8263f9e49454922ebdf506bb4b (diff)
parent0bb42e3275615049697228c323a84ae3124d75ab (diff)
downloadsdl_android-385afe5cb23c914108a95269b2b965acb0f8ad41.tar.gz
Merge branch 'develop' into Add-New-AnnotationsAdd-New-Annotations
# Conflicts: # javaSE/javaSE/src/main/java/com/smartdevicelink/protocol/SdlPacket.java
Diffstat (limited to 'base/src/main/java/com/smartdevicelink/proxy')
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/IProxyListener.java51
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/RPCMessage.java6
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/RPCRequest.java68
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/RPCResponse.java74
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/RPCStruct.java37
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/TTSChunkFactory.java71
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/callbacks/InternalProxyMessage.java51
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/callbacks/OnError.java57
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/callbacks/OnProxyClosed.java65
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/callbacks/OnProxyOpened.java40
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/callbacks/OnServiceEnded.java53
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/callbacks/OnServiceNACKed.java53
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/constants/Names.java537
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/interfaces/IAudioStreamListener.java14
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/interfaces/IProxyListenerALM.java37
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/interfaces/IProxyListenerBase.java461
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/interfaces/IPutFileResponseListener.java41
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/interfaces/ISdl.java10
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/AddCommand.java88
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/AddSubMenu.java52
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/AirbagStatus.java86
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/Alert.java90
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/AlertManeuver.java10
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/AlertResponse.java65
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/AppInfo.java28
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceCapability.java14
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceData.java35
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceManifest.java80
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceRecord.java28
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/AppServicesCapabilities.java7
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/AudioControlCapabilities.java49
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/AudioControlData.java28
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/AudioPassThruCapabilities.java77
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/BeltStatus.java45
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/BodyInformation.java91
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ButtonCapabilities.java23
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ButtonPress.java12
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/CancelInteraction.java6
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ChangeRegistration.java94
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/Choice.java32
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ClimateControlCapabilities.java54
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ClimateControlData.java45
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/CloudAppProperties.java21
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ClusterModeStatus.java90
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/Coordinate.java6
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/CreateInteractionChoiceSet.java84
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/CreateWindow.java15
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DIDResult.java77
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DTC.java72
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DateTime.java79
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteCommand.java73
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteFile.java69
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteFileResponse.java3
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteInteractionChoiceSet.java69
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteSubMenu.java71
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteWindow.java3
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DeviceInfo.java40
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DeviceStatus.java95
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DiagnosticMessage.java79
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DiagnosticMessageResponse.java3
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DialNumber.java3
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DisplayCapabilities.java37
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DisplayCapability.java9
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DriverDistractionCapability.java6
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/DynamicUpdateCapabilities.java6
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ECallInfo.java71
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/EmergencyEvent.java77
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/EqualizerSettings.java21
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/FuelRange.java172
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GPSData.java133
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GearStatus.java9
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetAppServiceData.java14
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetAppServiceDataResponse.java7
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetCloudAppProperties.java3
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetCloudAppPropertiesResponse.java3
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetDTCs.java74
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetDTCsResponse.java6
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetFile.java35
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetFileResponse.java28
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleData.java9
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataConsent.java6
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataConsentResponse.java3
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataResponse.java14
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetSystemCapability.java6
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetSystemCapabilityResponse.java3
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetVehicleData.java208
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetVehicleDataResponse.java200
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetWayPoints.java3
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetWayPointsResponse.java5
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/Grid.java18
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/HMICapabilities.java52
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/HMIPermissions.java72
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/HMISettingsControlCapabilities.java35
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/HMISettingsControlData.java27
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/HapticRect.java14
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/HeadLampStatus.java71
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/Headers.java92
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/Image.java71
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ImageField.java75
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ImageResolution.java80
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/KeyboardProperties.java21
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/LightCapabilities.java30
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/LightControlCapabilities.java21
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/LightControlData.java7
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/LightState.java32
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ListFilesResponse.java6
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/LocationDetails.java21
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/MassageCushionFirmness.java14
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/MassageModeData.java14
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/MediaServiceData.java91
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/MenuParams.java79
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/MetadataTags.java56
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ModuleData.java56
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ModuleInfo.java12
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/MyKey.java65
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationCapability.java14
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationInstruction.java56
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationServiceData.java63
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationServiceManifest.java7
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OasisAddress.java77
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnAppInterfaceUnregistered.java67
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnAppServiceData.java7
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnAudioPassThru.java65
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnButtonEvent.java77
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnButtonPress.java15
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnCommand.java76
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnDriverDistraction.java11
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnHMIStatus.java30
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnHashChange.java67
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnInteriorVehicleData.java3
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnKeyboardInput.java6
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnLanguageChange.java76
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnPermissionsChange.java18
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnRCStatus.java21
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnSystemCapabilityUpdated.java7
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnSystemRequest.java42
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnTBTClientState.java67
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnTouchEvent.java72
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnUpdateFile.java3
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnUpdateSubMenu.java6
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnVehicleData.java199
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/OnWayPointChange.java7
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ParameterPermissions.java68
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/PerformAppServiceInteraction.java28
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/PerformAppServiceInteractionResponse.java7
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/PerformAudioPassThru.java122
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/PerformInteraction.java80
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/PerformInteractionResponse.java77
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/PermissionItem.java12
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/PhoneCapability.java7
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/PresetBankCapabilities.java67
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/PublishAppService.java7
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/PublishAppServiceResponse.java7
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/PutFile.java51
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/PutFileResponse.java3
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/RGBColor.java9
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/RadioControlCapabilities.java45
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/RadioControlData.java39
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/RdsData.java24
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ReadDID.java76
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ReadDIDResponse.java67
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/Rectangle.java28
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/RegisterAppInterface.java186
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/RegisterAppInterfaceResponse.java105
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ReleaseInteriorVehicleDataModule.java6
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/RemoteControlCapabilities.java49
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ResetGlobalProperties.java71
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ScreenParams.java72
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ScrollableMessage.java28
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SdlMsgVersion.java13
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SeatControlCapabilities.java119
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SeatControlData.java112
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SeatLocation.java3
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SeatLocationCapability.java12
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SeatMemoryAction.java21
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SendHapticData.java7
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SendLocation.java36
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SetAppIcon.java69
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SetCloudAppProperties.java3
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SetDisplayLayout.java21
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SetDisplayLayoutResponse.java12
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SetGlobalProperties.java61
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SetInteriorVehicleData.java3
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SetInteriorVehicleDataResponse.java7
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SetMediaClockTimer.java92
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/Show.java122
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ShowAppMenu.java7
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/ShowConstantTbt.java57
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SingleTireStatus.java77
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SisData.java35
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/Slider.java42
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SliderResponse.java67
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SoftButton.java80
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SoftButtonCapabilities.java19
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/Speak.java71
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/StabilityControlsStatus.java127
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/StartTime.java77
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/StationIDNumber.java14
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeButton.java69
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleData.java293
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleDataResponse.java163
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SubtleAlert.java21
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SubtleAlertResponse.java3
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SystemCapability.java10
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/SystemRequest.java78
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/TTSChunk.java74
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/Temperature.java6
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/TemplateColorScheme.java9
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/TemplateConfiguration.java9
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/TextField.java20
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/TireStatus.java35
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/TouchCoord.java68
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/TouchEvent.java85
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/TouchEventCapabilities.java71
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/Turn.java10
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/UnpublishAppService.java7
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/UnsubscribeButton.java71
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/UnsubscribeVehicleData.java304
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/UnsubscribeVehicleDataResponse.java164
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/UpdateTurnList.java10
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/VehicleDataResult.java21
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/VehicleType.java74
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/VideoStreamingCapability.java49
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/VideoStreamingFormat.java14
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/VrHelpItem.java71
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherAlert.java42
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherData.java154
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherServiceData.java42
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherServiceManifest.java35
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/WindowCapability.java30
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/WindowState.java6
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/WindowStatus.java6
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/WindowTypeCapabilities.java6
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/enums/CapacityUnit.java (renamed from base/src/main/java/com/smartdevicelink/proxy/constants/Jingles.java)49
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/enums/VehicleDataType.java7
235 files changed, 6244 insertions, 5945 deletions
diff --git a/base/src/main/java/com/smartdevicelink/proxy/IProxyListener.java b/base/src/main/java/com/smartdevicelink/proxy/IProxyListener.java
deleted file mode 100644
index c8c2bbf42..000000000
--- a/base/src/main/java/com/smartdevicelink/proxy/IProxyListener.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-package com.smartdevicelink.proxy;
-
-import com.smartdevicelink.proxy.interfaces.IProxyListenerBase;
-import com.smartdevicelink.proxy.rpc.OnAppInterfaceUnregistered;
-import com.smartdevicelink.proxy.rpc.RegisterAppInterfaceResponse;
-import com.smartdevicelink.proxy.rpc.UnregisterAppInterfaceResponse;
-
-@Deprecated
-public interface IProxyListener extends IProxyListenerBase{
- // Adds Legacy Life-cycle Management call-backs to the IProxyListenerAbstract interface
-
- public void onProxyOpened();
-
- public void onRegisterAppInterfaceResponse(RegisterAppInterfaceResponse response);
-
- public void onOnAppInterfaceUnregistered(OnAppInterfaceUnregistered notification);
-
- public void onUnregisterAppInterfaceResponse(UnregisterAppInterfaceResponse response);
-
-}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/RPCMessage.java b/base/src/main/java/com/smartdevicelink/proxy/RPCMessage.java
index ac0d11506..427379842 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/RPCMessage.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/RPCMessage.java
@@ -100,8 +100,9 @@ public class RPCMessage extends RPCStruct {
return (String)function.get(KEY_FUNCTION_NAME);
}
- protected void setFunctionName(String functionName) {
+ protected RPCMessage setFunctionName(String functionName) {
function.put(KEY_FUNCTION_NAME, functionName);
+ return this;
}
public String getMessageType() {
@@ -115,12 +116,13 @@ public class RPCMessage extends RPCStruct {
// Generalized Getters and Setters
- public void setParameters(String key, Object value) {
+ public RPCMessage setParameters(String key, Object value) {
if (value != null) {
parameters.put(key, value);
} else {
parameters.remove(key);
}
+ return this;
}
public Object getParameters(String key) {
diff --git a/base/src/main/java/com/smartdevicelink/proxy/RPCRequest.java b/base/src/main/java/com/smartdevicelink/proxy/RPCRequest.java
index 22ce1c2a5..7dc9de1d3 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/RPCRequest.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/RPCRequest.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy;
import com.smartdevicelink.proxy.rpc.listeners.OnRPCResponseListener;
@@ -64,15 +64,17 @@ public class RPCRequest extends RPCMessage {
return (Integer)function.get(RPCMessage.KEY_CORRELATION_ID);
}
- public void setCorrelationID(Integer correlationID) {
+ public RPCRequest setCorrelationID(Integer correlationID) {
if (correlationID != null) {
function.put(RPCMessage.KEY_CORRELATION_ID, correlationID );
} else {
function.remove(RPCMessage.KEY_CORRELATION_ID);
}
+ return this;
}
- public void setOnRPCResponseListener(OnRPCResponseListener listener){
+ public RPCRequest setOnRPCResponseListener(OnRPCResponseListener listener){
onResponseListener = listener;
+ return this;
}
public OnRPCResponseListener getOnRPCResponseListener(){
diff --git a/base/src/main/java/com/smartdevicelink/proxy/RPCResponse.java b/base/src/main/java/com/smartdevicelink/proxy/RPCResponse.java
index 771ccfe7c..b0a3549dc 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/RPCResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/RPCResponse.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy;
import androidx.annotation.NonNull;
@@ -126,12 +126,13 @@ public class RPCResponse extends RPCMessage {
* @param correlationID
* the ID of the response
*/
- public void setCorrelationID(Integer correlationID) {
+ public RPCResponse setCorrelationID(Integer correlationID) {
if (correlationID != null) {
function.put(RPCMessage.KEY_CORRELATION_ID, correlationID );
} else {
function.remove(RPCMessage.KEY_CORRELATION_ID);
}
+ return this;
}
/**
* <p>
@@ -151,10 +152,11 @@ public class RPCResponse extends RPCMessage {
* @param success
* whether the request is successfully processed
*/
- public void setSuccess( @NonNull Boolean success ) {
+ public RPCResponse setSuccess( @NonNull Boolean success ) {
if (success != null) {
parameters.put(RPCResponse.KEY_SUCCESS, success );
}
+ return this;
}
/**
* <p>
@@ -180,10 +182,11 @@ public class RPCResponse extends RPCMessage {
* @param resultCode
* whether the request is successfully processed
*/
- public void setResultCode( @NonNull Result resultCode ) {
+ public RPCResponse setResultCode( @NonNull Result resultCode ) {
if (resultCode != null) {
parameters.put(RPCResponse.KEY_RESULT_CODE, resultCode );
}
+ return this;
}
/**
* <p>
@@ -203,9 +206,10 @@ public class RPCResponse extends RPCMessage {
* @param info
* a string of text representing additional information returned from SDL
*/
- public void setInfo( String info ) {
+ public RPCResponse setInfo( String info ) {
if (info != null) {
parameters.put(RPCResponse.KEY_INFO, info );
}
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/RPCStruct.java b/base/src/main/java/com/smartdevicelink/proxy/RPCStruct.java
index 5eb293ba2..e54694526 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/RPCStruct.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/RPCStruct.java
@@ -91,19 +91,11 @@ public class RPCStruct {
store = JsonRPCMarshaller.deserializeJSONObject(jsonObject);
}
-
- // deserializeJSONObject method moved to JsonRPCMarshaller for consistency
- // Keep reference here for backwards compatibility
- @Deprecated
- public static Hashtable<String, Object> deserializeJSONObject(JSONObject jsonObject)
- throws JSONException {
- return JsonRPCMarshaller.deserializeJSONObject(jsonObject);
- }
public JSONObject serializeJSON() throws JSONException {
return JsonRPCMarshaller.serializeHashtable(store);
}
-
+
@SuppressWarnings("unchecked")
public JSONObject serializeJSON(byte protocolVersion) throws JSONException {
if (protocolVersion > 1) {
@@ -180,7 +172,7 @@ public class RPCStruct {
return this._bulkData;
}
- public void setBulkData(byte[] bulkData) {
+ public RPCStruct setBulkData(byte[] bulkData) {
if (bulkData != null) {
this._bulkData = new byte[bulkData.length];
System.arraycopy(bulkData, 0, _bulkData, 0, bulkData.length);
@@ -188,10 +180,12 @@ public class RPCStruct {
else{
this._bulkData = null;
}
+ return this;
}
- public void setPayloadProtected(Boolean bVal) {
+ public RPCStruct setPayloadProtected(Boolean bVal) {
protectedPayload = bVal;
+ return this;
}
public Boolean isPayloadProtected() {
@@ -225,12 +219,13 @@ public class RPCStruct {
// Generalized Getters and Setters
- public void setValue(String key, Object value){
+ public RPCStruct setValue(String key, Object value){
if (value != null) {
store.put(key, value);
} else {
store.remove(key);
}
+ return this;
}
public Object getValue(String key) {
@@ -275,8 +270,18 @@ public class RPCStruct {
} else if (obj instanceof List<?>) {
List<?> list = (List<?>) obj;
if (list != null && list.size() > 0) {
- Object item = list.get(0);
- if (tClass.isInstance(item)) {
+ Object item = null;
+ //Iterate through list to find first non-null object
+ for(Object object: list){
+ if(object != null) {
+ item = object;
+ break;
+ }
+ }
+
+ if (item == null) {
+ return list;
+ } else if (tClass.isInstance(item)) {
return list;
} else if (item instanceof Hashtable) {
List<Object> newList = new ArrayList<Object>();
@@ -307,6 +312,10 @@ public class RPCStruct {
}
return newList;
}
+ } else {
+ //If the list is either null or empty it should be returned. It will keep the same
+ //behavior as it does today with null lists, but empty ones will now also be returned.
+ return list;
}
}
return null;
diff --git a/base/src/main/java/com/smartdevicelink/proxy/TTSChunkFactory.java b/base/src/main/java/com/smartdevicelink/proxy/TTSChunkFactory.java
deleted file mode 100644
index d338a8f19..000000000
--- a/base/src/main/java/com/smartdevicelink/proxy/TTSChunkFactory.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-package com.smartdevicelink.proxy;
-
-import com.smartdevicelink.proxy.rpc.TTSChunk;
-import com.smartdevicelink.proxy.rpc.enums.SpeechCapabilities;
-
-import java.util.Vector;
-
-@Deprecated
-public class TTSChunkFactory {
-
- public static TTSChunk createChunk(SpeechCapabilities type, String text) {
- TTSChunk ret = new TTSChunk();
- ret.setType(type);
- ret.setText(text);
- return ret;
- }
-
- public static Vector<TTSChunk> createSimpleTTSChunks(String simple) {
- if (simple == null) {
- return null;
- }
-
- Vector<TTSChunk> chunks = new Vector<TTSChunk>();
-
- TTSChunk chunk = createChunk(SpeechCapabilities.TEXT, simple);
- chunks.add(chunk);
- return chunks;
- }
-
- public static Vector<TTSChunk> createPrerecordedTTSChunks(String prerecorded) {
- if (prerecorded == null) {
- return null;
- }
-
- Vector<TTSChunk> chunks = new Vector<TTSChunk>();
- TTSChunk chunk = createChunk(SpeechCapabilities.PRE_RECORDED, prerecorded);
- chunks.add(chunk);
- return chunks;
- }
-}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/callbacks/InternalProxyMessage.java b/base/src/main/java/com/smartdevicelink/proxy/callbacks/InternalProxyMessage.java
deleted file mode 100644
index f05e3d49f..000000000
--- a/base/src/main/java/com/smartdevicelink/proxy/callbacks/InternalProxyMessage.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-package com.smartdevicelink.proxy.callbacks;
-
-@Deprecated
-public class InternalProxyMessage {
- private String _functionName;
- public static final String OnProxyError = "OnProxyError";
- public static final String OnProxyOpened = "OnProxyOpened";
- public static final String OnProxyClosed = "OnProxyClosed";
- public static final String OnServiceEnded = "OnServiceEnded";
- public static final String OnServiceNACKed = "OnServiceNACKed";
-
- public InternalProxyMessage(String functionName) {
- //this(functionName, null, null);
- this._functionName = functionName;
- }
-
- public String getFunctionName() {
- return _functionName;
- }
-} \ No newline at end of file
diff --git a/base/src/main/java/com/smartdevicelink/proxy/callbacks/OnError.java b/base/src/main/java/com/smartdevicelink/proxy/callbacks/OnError.java
deleted file mode 100644
index 3992f4a31..000000000
--- a/base/src/main/java/com/smartdevicelink/proxy/callbacks/OnError.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-package com.smartdevicelink.proxy.callbacks;
-
-@Deprecated
-public class OnError extends InternalProxyMessage {
-
- private String _info;
- private Exception _e;
-
- public OnError() {
- super(InternalProxyMessage.OnProxyError);
- }
-
- public OnError(String info, Exception e) {
- super(InternalProxyMessage.OnProxyError);
- this._info = info;
- this._e = e;
- }
-
- public String getInfo() {
- return _info;
- }
-
- public Exception getException() {
- return _e;
- }
-} \ No newline at end of file
diff --git a/base/src/main/java/com/smartdevicelink/proxy/callbacks/OnProxyClosed.java b/base/src/main/java/com/smartdevicelink/proxy/callbacks/OnProxyClosed.java
deleted file mode 100644
index 27c621a07..000000000
--- a/base/src/main/java/com/smartdevicelink/proxy/callbacks/OnProxyClosed.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-package com.smartdevicelink.proxy.callbacks;
-
-import com.smartdevicelink.proxy.rpc.enums.SdlDisconnectedReason;
-
-@Deprecated
-public class OnProxyClosed extends InternalProxyMessage {
-
- private String _info;
- private Exception _e;
- private SdlDisconnectedReason _reason;
-
- public OnProxyClosed() {
- super(InternalProxyMessage.OnProxyClosed);
- }
-
- public OnProxyClosed(String info, Exception e, SdlDisconnectedReason reason) {
- super(InternalProxyMessage.OnProxyClosed);
- this._info = info;
- this._e = e;
- this._reason = reason;
- }
-
- public String getInfo() {
- return _info;
- }
-
- public SdlDisconnectedReason getReason() {
- return _reason;
- }
-
- public Exception getException() {
- return _e;
- }
-} \ No newline at end of file
diff --git a/base/src/main/java/com/smartdevicelink/proxy/callbacks/OnProxyOpened.java b/base/src/main/java/com/smartdevicelink/proxy/callbacks/OnProxyOpened.java
deleted file mode 100644
index f56eff415..000000000
--- a/base/src/main/java/com/smartdevicelink/proxy/callbacks/OnProxyOpened.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-package com.smartdevicelink.proxy.callbacks;
-
-@Deprecated
-public class OnProxyOpened extends InternalProxyMessage {
-
- public OnProxyOpened() {
- super(InternalProxyMessage.OnProxyOpened);
- }
-}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/callbacks/OnServiceEnded.java b/base/src/main/java/com/smartdevicelink/proxy/callbacks/OnServiceEnded.java
deleted file mode 100644
index cad213ca8..000000000
--- a/base/src/main/java/com/smartdevicelink/proxy/callbacks/OnServiceEnded.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-package com.smartdevicelink.proxy.callbacks;
-
-import com.smartdevicelink.protocol.enums.SessionType;
-
-@Deprecated
-public class OnServiceEnded extends InternalProxyMessage {
- private SessionType sessionType;
-
- public OnServiceEnded() {
- super(InternalProxyMessage.OnServiceEnded);
- }
-
- public OnServiceEnded(SessionType sessionType) {
- super(InternalProxyMessage.OnServiceEnded);
- this.sessionType = sessionType;
- }
-
- public SessionType getSessionType() {
- return this.sessionType;
- }
-
-}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/callbacks/OnServiceNACKed.java b/base/src/main/java/com/smartdevicelink/proxy/callbacks/OnServiceNACKed.java
deleted file mode 100644
index 6f719f615..000000000
--- a/base/src/main/java/com/smartdevicelink/proxy/callbacks/OnServiceNACKed.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-package com.smartdevicelink.proxy.callbacks;
-
-import com.smartdevicelink.protocol.enums.SessionType;
-
-@Deprecated
-public class OnServiceNACKed extends InternalProxyMessage {
- private SessionType sessionType;
-
- public OnServiceNACKed() {
- super(InternalProxyMessage.OnServiceNACKed);
- }
-
- public OnServiceNACKed(SessionType sessionType) {
- super(InternalProxyMessage.OnServiceNACKed);
- this.sessionType = sessionType;
- }
-
- public SessionType getSessionType() {
- return this.sessionType;
- }
-
-}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/constants/Names.java b/base/src/main/java/com/smartdevicelink/proxy/constants/Names.java
deleted file mode 100644
index fe63db715..000000000
--- a/base/src/main/java/com/smartdevicelink/proxy/constants/Names.java
+++ /dev/null
@@ -1,537 +0,0 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-package com.smartdevicelink.proxy.constants;
-
-@Deprecated
-public class Names {
- public static final String request = "request";
- public static final String response = "response";
- public static final String notification = "notification";
- public static final String function_name = "name";
- public static final String parameters = "parameters";
- public static final String bulkData = "bulkData";
-
- public static final String RegisterAppInterface = "RegisterAppInterface";
- public static final String UnregisterAppInterface = "UnregisterAppInterface";
- public static final String Alert = "Alert";
- public static final String Show = "Show";
- public static final String Speak = "Speak";
- public static final String AddCommand = "AddCommand";
- public static final String DeleteCommand = "DeleteCommand";
- public static final String AddSubMenu = "AddSubMenu";
- public static final String DeleteSubMenu = "DeleteSubMenu";
- public static final String CreateInteractionChoiceSet = "CreateInteractionChoiceSet";
- public static final String DeleteInteractionChoiceSet = "DeleteInteractionChoiceSet";
- public static final String PerformInteraction = "PerformInteraction";
- public static final String DialNumber = "DialNumber";
- public static final String EncodedSyncPData = "EncodedSyncPData";
- public static final String SyncPData = "SyncPData";
- public static final String SubscribeButton = "SubscribeButton";
- public static final String UnsubscribeButton = "UnsubscribeButton";
- public static final String SubscribeVehicleData = "SubscribeVehicleData";
- public static final String UnsubscribeVehicleData = "UnsubscribeVehicleData";
- public static final String SetMediaClockTimer = "SetMediaClockTimer";
- public static final String SetGlobalProperties = "SetGlobalProperties";
- public static final String GenericResponse = "GenericResponse";
- public static final String ScrollableMessage = "ScrollableMessage";
- public static final String GetDID = "GetDID";
- public static final String GetDTCs = "GetDTCs";
- public static final String DiagnosticMessage = "DiagnosticMessage";
- public static final String SystemRequest = "SystemRequest";
- public static final String ReadDID = "ReadDID";
- public static final String OnVehicleData = "OnVehicleData";
- public static final String GetFile = "GetFile";
- public static final String PutFile = "PutFile";
- public static final String DeleteFile = "DeleteFile";
- public static final String ListFiles = "ListFiles";
- public static final String EndAudioCapture = "EndAudioCapture";
- public static final String GetVehicleData = "GetVehicleData";
- public static final String ResetGlobalProperties = "ResetGlobalProperties";
- public static final String PerformAudioCapture = "PerformAudioCapture";
- public static final String SetAppIcon = "SetAppIcon";
- public static final String ChangeRegistration = "ChangeRegistration";
- public static final String SetDisplayLayout = "SetDisplayLayout";
- public static final String keypressMode = "keypressMode";
- public static final String keyboardLayout = "keyboardLayout";
- public static final String limitedCharacterList = "limitedCharacterList";
- public static final String autoCompleteText = "autoCompleteText";
- public static final String OnLanguageChange = "OnLanguageChange";
- public static final String hmiDisplayLanguage = "hmiDisplayLanguage";
- public static final String displayLayout = "displayLayout";
- public static final String ttsName = "ttsName";
- public static final String hmiDisplayLanguageDesired = "hmiDisplayLanguageDesired";
- public static final String appHMIType = "appHMIType";
- public static final String hashID = "hashID";
- public static final String appID = "appID";
- public static final String vrHelpTitle = "vrHelpTitle";
- public static final String graphic = "graphic";
- public static final String customPresets = "customPresets";
- public static final String softButtonCapabilities = "softButtonCapabilities";
- public static final String presetBankCapabilities = "presetBankCapabilities";
- public static final String vehicleType = "vehicleType";
- public static final String make = "make";
- public static final String model = "model";
- public static final String modelYear = "modelYear";
- public static final String trim = "trim";
- public static final String allowed = "allowed";
- public static final String userDisallowed = "userDisallowed";
- public static final String rpcName = "rpcName";
- public static final String hmiPermissions = "hmiPermissions";
- public static final String parameterPermissions = "parameterPermissions";
- public static final String permissionItem = "permissionItem";
- public static final String numTicks = "numTicks";
- public static final String sliderHeader = "sliderHeader";
- public static final String sliderFooter = "sliderFooter";
- public static final String PerformAudioPassThru = "PerformAudioPassThru";
- public static final String PerformAudioPassThruResponse = "PerformAudioPassThruResponse";
- public static final String EndAudioPassThru = "EndAudioPassThru";
- public static final String EndAudioPassThruResponse = "EndAudioPassThruResponse";
- public static final String OnAudioPassThru = "OnAudioPassThru";
- public static final String ShowConstantTBT = "ShowConstantTBT";
- public static final String AlertManeuver = "AlertManeuver";
- public static final String UpdateTurnList = "UpdateTurnList";
-
- public static final String OnCommand = "OnCommand";
- public static final String OnDataPublished = "OnDataPublished";
- public static final String OnButtonPress = "OnButtonPress";
- public static final String OnButtonEvent = "OnButtonEvent";
- public static final String OnHMIStatus = "OnHMIStatus";
- public static final String OnTBTClientState = "OnTBTClientState";
- public static final String OnEncodedSyncPData = "OnEncodedSyncPData";
- public static final String onEncodedSyncPDataResponse = "onEncodedSyncPDataResponse";
- public static final String OnSyncPData = "OnSyncPData";
- public static final String onOnSyncPData = "onOnSyncPData";
- public static final String OnDriverDistraction = "OnDriverDistraction";
- public static final String OnAppInterfaceUnregistered = "OnAppInterfaceUnregistered";
- public static final String OnKeyboardInput = "OnKeyboardInput";
- public static final String OnTouchEvent = "OnTouchEvent";
- public static final String OnSystemRequest = "OnSystemRequest";
- public static final String OnHashChange = "OnHashChange";
- public static final String OnProxyClosed = "OnProxyClosed";
- public static final String OnProxyError = "OnProxyError";
- public static final String OnProxyOpened = "OnProxyOpened";
- public static final String OnProxyUnusable = "OnProxyUnusable";
- public static final String OnHMILevelChange = "OnHMILevelChange";
- public static final String OnSdlChoiceChosen = "OnSdlChoiceChosen";
- public static final String OnPermissionsChange = "OnPermissionsChange";
- public static final String OnScreenPresetsAvailable = "OnScreenPresetsAvailable";
- public static final String isHighlighted = "isHighlighted";
- public static final String softButtonID = "softButtonID";
- public static final String fileType = "fileType";
- public static final String url = "url";
- public static final String requestType = "requestType";
- public static final String fileName = "fileName";
- public static final String persistentFile = "persistentFile";
- public static final String spaceAvailable = "spaceAvailable";
- public static final String filenames = "filenames";
- public static final String cmdIcon = "cmdIcon";
- public static final String Slider = "Slider";
- public static final String sliderPosition = "sliderPosition";
- public static final String samplingRate = "samplingRate";
- public static final String audioType = "audioType";
- public static final String satRadioESN = "satRadioESN";
- public static final String dtc = "dtc";
- public static final String tryAgainTime = "tryAgainTime";
-
- public static final String success = "success";
- public static final String resultCode = "resultCode";
- public static final String info = "info";
-
- public static final String payload = "payload";
- public static final String reason = "reason";
- public static final String state = "state";
- public static final String cmdID = "cmdID";
- public static final String menuParams = "menuParams";
- public static final String parentID = "parentID";
- public static final String position = "position";
- public static final String menuName = "menuName";
- public static final String vrCommands = "vrCommands";
- public static final String language = "language";
- public static final String languageDesired = "languageDesired";
- public static final String triggerSource = "triggerSource";
- public static final String subscriptionType = "subscriptionType";
- public static final String data = "data";
- public static final String event = "event";
- public static final String correlationID = "correlationID";
- public static final String sdlMsgVersion = "syncMsgVersion";
- public static final String deviceInfo = "deviceInfo";
- public static final String majorVersion = "majorVersion";
- public static final String minorVersion = "minorVersion";
- public static final String appName = "appName";
- public static final String ngnMediaScreenAppName = "ngnMediaScreenAppName";
- public static final String isMediaApplication = "isMediaApplication";
- public static final String vrSynonyms = "vrSynonyms";
- public static final String usesVehicleData = "usesVehicleData";
- public static final String text = "text";
- public static final String type = "type";
- public static final String ttsChunks = "ttsChunks";
- public static final String playTone = "playTone";
- public static final String duration = "duration";
- public static final String mainField1 = "mainField1";
- public static final String mainField2 = "mainField2";
- public static final String mainField3 = "mainField3";
- public static final String mainField4 = "mainField4";
- public static final String statusBar = "statusBar";
- public static final String name = "name";
- public static final String menuID = "menuID";
- public static final String longPress = "longPress";
- public static final String shortPress = "shortPress";
- public static final String buttonName = "buttonName";
- public static final String buttonPressMode = "buttonPressMode";
- public static final String buttonEventMode = "buttonEventMode";
- public static final String minutes = "minutes";
- public static final String seconds = "seconds";
- public static final String startTime = "startTime";
- public static final String endTime = "endTime";
- public static final String updateMode = "updateMode";
- public static final String mediaClock = "mediaClock";
- public static final String initialText = "initialText";
- public static final String initialPrompt = "initialPrompt";
- public static final String helpPrompt = "helpPrompt";
- public static final String timeoutPrompt = "timeoutPrompt";
- public static final String timeout = "timeout";
- public static final String choiceSet = "choiceSet";
- public static final String interactionMode = "interactionMode";
- public static final String result = "result";
- public static final String alertText1 = "alertText1";
- public static final String alertText2 = "alertText2";
- public static final String alertText3 = "alertText3";
- public static final String shortPressAvailable = "shortPressAvailable";
- public static final String longPressAvailable = "longPressAvailable";
- public static final String upDownAvailable = "upDownAvailable";
- public static final String width = "width";
- public static final String height = "height";
- public static final String resolutionWidth = "resolutionWidth";
- public static final String resolutionHeight = "resolutionHeight";
- public static final String characterSet = "characterSet";
- public static final String displayType = "displayType";
- public static final String mediaClockFormats = "mediaClockFormats";
- public static final String textFields = "textFields";
- public static final String imageFields = "imageFields";
- public static final String autoActivateID = "autoActivateID";
- public static final String vehicleDataCapabilities = "vehicleDataCapabilities";
- public static final String speechCapabilities = "speechCapabilities";
- public static final String vrCapabilities = "vrCapabilities";
- public static final String audioPassThruCapabilities = "audioPassThruCapabilities";
- public static final String buttonCapabilities = "buttonCapabilities";
- public static final String displayCapabilities = "displayCapabilities";
- public static final String hmiZoneCapabilities = "hmiZoneCapabilities";
- public static final String interactionChoiceSetID = "interactionChoiceSetID";
- public static final String interactionChoiceSetIDList = "interactionChoiceSetIDList";
- public static final String audioFileName = "audioFileName";
- public static final String gpsPositionValid = "gpsPositionValid";
- public static final String longitudeDegrees = "longitudeDegrees";
- public static final String latitudeDegrees = "latitudeDegrees";
- public static final String utcYear = "utcYear";
- public static final String utcMonth = "utcMonth";
- public static final String utcDay = "utcDay";
- public static final String utcHours = "utcHours";
- public static final String utcMinutes = "utcMinutes";
- public static final String utcSeconds = "utcSeconds";
- public static final String compassDirection = "compassDirection";
- public static final String pdop = "pdop";
- public static final String vdop = "vdop";
- public static final String hdop = "hdop";
- public static final String actual = "actual";
- public static final String satellites = "satellites";
- public static final String dimension = "dimension";
- public static final String altitude = "altitude";
- public static final String heading = "heading";
- public static final String speed = "speed";
- public static final String number = "number";
- public static final String smartDeviceLinkFileName = "syncFileName";
- public static final String localFileName = "localFileName";
- public static final String maxDuration = "maxDuration";
- public static final String timerMode = "timerMode";
- public static final String status = "status";
- public static final String pressure = "pressure";
- public static final String hours = "hours";
- public static final String rows = "rows";
- public static final String pressureTellTale = "pressureTellTale";
- public static final String leftFront = "leftFront";
- public static final String rightFront = "rightFront";
- public static final String leftRear = "leftRear";
- public static final String rightRear = "rightRear";
- public static final String innerLeftRear = "innerLeftRear";
- public static final String innerRightRear = "innerRightRear";
- public static final String VehicleData = "VehicleData";
- public static final String alignment = "alignment";
- public static final String mediaTrack = "mediaTrack";
- public static final String properties = "properties";
- public static final String choiceID = "choiceID";
- public static final String bitsPerSample = "bitsPerSample";
- public static final String hmiLevel = "hmiLevel";
- public static final String audioStreamingState = "audioStreamingState";
- public static final String systemContext = "systemContext";
- public static final String sdlChoice = "sdlChoice";
- public static final String sdlCommand = "sdlCommand";
- public static final String URL = "URL";
- public static final String Timeout = "Timeout";
- public static final String PermissionGroupName = "PermissionGroupName";
- public static final String PermissionGroupStatus = "PermissionGroupStatus";
- public static final String PermissionGroupItems = "PermissionGroupItems";
- public static final String audioPacket = "audioPacket";
- public static final String audioPassThruDisplayText1 = "audioPassThruDisplayText1";
- public static final String audioPassThruDisplayText2 = "audioPassThruDisplayText2";
- public static final String bitRate = "bitRate";
- public static final String rpm = "rpm";
- public static final String fuelLevel = "fuelLevel";
- public static final String avgFuelEconomy = "avgFuelEconomy";
- public static final String batteryVoltage = "batteryVoltage";
- public static final String externalTemperature = "externalTemperature";
- public static final String vin = "vin";
- public static final String prndl = "prndl";
- public static final String tirePressure = "tirePressure";
- public static final String batteryPackVoltage = "batteryPackVoltage";
- public static final String batteryPackCurrent = "batteryPackCurrent";
- public static final String batteryPackTemperature = "batteryPackTemperature";
- public static final String engineTorque = "engineTorque";
- public static final String odometer = "odometer";
- public static final String tripOdometer = "tripOdometer";
- public static final String genericbinary = "genericbinary";
- public static final String GPSData = "GPSData";
- public static final String gps = "gps";
- public static final String fuelLevel_State = "fuelLevel_State";
- public static final String instantFuelConsumption = "instantFuelConsumption";
- public static final String beltStatus = "beltStatus";
- public static final String bodyInformation = "bodyInformation";
- public static final String deviceStatus = "deviceStatus";
- public static final String driverBraking = "driverBraking";
- public static final String wiperStatus = "wiperStatus";
- public static final String fuelEconomy = "fuelEconomy";
- public static final String engineOilLife = "engineOilLife";
- public static final String headLampStatus = "headLampStatus";
- public static final String brakeTorque = "brakeTorque";
- public static final String turboBoost = "turboBoost";
- public static final String coolantTemp = "coolantTemp";
- public static final String airFuelRatio = "airFuelRatio";
- public static final String coolingHeadTemp = "coolingHeadTemp";
- public static final String oilTemp = "oilTemp";
- public static final String intakeAirTemp = "intakeAirTemp";
- public static final String gearShiftAdvice = "gearShiftAdvice";
- public static final String acceleration = "acceleration";
- public static final String accPedalPosition = "accPedalPosition";
- public static final String clutchPedalPosition = "clutchPedalPosition";
- public static final String reverseGearStatus = "reverseGearStatus";
- public static final String accTorque = "accTorque";
- public static final String ambientLightStatus = "ambientLightStatus";
- public static final String ambientLightSensorStatus = "ambientLightSensorStatus";
- public static final String dataType = "dataType";
- public static final String identifier = "identifier";
- public static final String statusByte = "statusByte";
- public static final String didResult = "didResult";
- public static final String ecuName = "ecuName";
- public static final String didLocation = "didLocation";
- public static final String value = "value";
- public static final String softButtonName = "softButtonName";
- public static final String imageSupported = "imageSupported";
- public static final String systemAction = "systemAction";
- public static final String image = "image";
- public static final String secondaryText = "secondaryText";
- public static final String tertiaryText = "tertiaryText";
- public static final String secondaryImage = "secondaryImage";
- public static final String imageType = "imageType";
- public static final String fileData = "fileData";
- public static final String scrollableMessageBody = "scrollableMessageBody";
- public static final String softButtons = "softButtons";
- public static final String customButtonID = "customButtonID";
- public static final String vrHelp = "vrHelp";
- public static final String interactionLayout = "interactionLayout";
- public static final String customButtonName = "customButtonName";
- public static final String navigationText = "navigationText";
- public static final String turnIcon = "turnIcon";
- public static final String nextTurnIcon = "nextTurnIcon";
- public static final String navigationText1 = "navigationText1";
- public static final String navigationText2 = "navigationText2";
- public static final String eta = "eta";
- public static final String totalDistance = "totalDistance";
- public static final String distanceToManeuver = "distanceToManeuver";
- public static final String distanceToManeuverScale = "distanceToManeuverScale";
- public static final String maneuverComplete = "maneuverComplete";
- public static final String turnList = "turnList";
- public static final String steeringWheelAngle = "steeringWheelAngle";
- public static final String menuTitle = "menuTitle";
- public static final String menuIcon = "menuIcon";
- public static final String keyboardProperties = "keyboardProperties";
- public static final String driverBeltDeployed = "driverBeltDeployed";
- public static final String passengerBeltDeployed = "passengerBeltDeployed";
- public static final String passengerBuckleBelted = "passengerBuckleBelted";
- public static final String driverBuckleBelted = "driverBuckleBelted";
- public static final String leftRow2BuckleBelted = "leftRow2BuckleBelted";
- public static final String passengerChildDetected = "passengerChildDetected";
- public static final String rightRow2BuckleBelted = "rightRow2BuckleBelted";
- public static final String middleRow2BuckleBelted = "middleRow2BuckleBelted";
- public static final String middleRow3BuckleBelted = "middleRow3BuckleBelted";
- public static final String leftRow3BuckleBelted = "leftRow3BuckleBelted";
- public static final String rightRow3BuckleBelted = "rightRow3BuckleBelted";
- public static final String rearInflatableBelted = "rearInflatableBelted";
- public static final String leftRearInflatableBelted = "leftRearInflatableBelted";
- public static final String rightRearInflatableBelted = "rightRearInflatableBelted";
- public static final String middleRow1BeltDeployed = "middleRow1BeltDeployed";
- public static final String middleRow1BuckleBelted = "middleRow1BuckleBelted";
-
- public static final String graphicSupported = "graphicSupported";
- public static final String screenParams = "screenParams";
- public static final String muteAudio = "muteAudio";
- public static final String parkBrakeActive = "parkBrakeActive";
- public static final String ignitionStableStatus = "ignitionStableStatus";
- public static final String ignitionStatus = "ignitionStatus";
- public static final String driverDoorAjar = "driverDoorAjar";
- public static final String passengerDoorAjar = "passengerDoorAjar";
- public static final String rearLeftDoorAjar = "rearLeftDoorAjar";
- public static final String rearRightDoorAjar = "rearRightDoorAjar";
- public static final String systemFile = "systemFile";
-
- public static final String voiceRecOn = "voiceRecOn";
- public static final String btIconOn = "btIconOn";
- public static final String callActive = "callActive";
- public static final String phoneRoaming = "phoneRoaming";
- public static final String textMsgAvailable = "textMsgAvailable";
- public static final String battLevelStatus = "battLevelStatus";
- public static final String stereoAudioOutputMuted = "stereoAudioOutputMuted";
- public static final String monoAudioOutputMuted = "monoAudioOutputMuted";
- public static final String signalLevelStatus = "signalLevelStatus";
- public static final String primaryAudioSource = "primaryAudioSource";
- public static final String eCallEventActive = "eCallEventActive";
-
- public static final String fuelEconomySinceLastReset = "fuelEconomySinceLastReset";
- public static final String currentTripFuelEconomy = "currentTripFuelEconomy";
- public static final String averageTripFuelEconomy = "averageTripFuelEconomy";
- public static final String currentCycleFuelEconomy = "currentCycleFuelEconomy";
-
- public static final String lightSwitchStatus = "lightSwitchStatus";
- public static final String highBeamsOn = "highBeamsOn";
- public static final String lowBeamsOn = "lowBeamsOn";
-
- public static final String electricFuelConsumption = "electricFuelConsumption";
- public static final String stateOfCharge = "stateOfCharge";
- public static final String fuelMaintenanceMode = "fuelMaintenanceMode";
- public static final String distanceToEmpty = "distanceToEmpty";
-
- public static final String dtcMask = "dtcMask";
- public static final String targetID = "targetID";
- public static final String messageLength = "messageLength";
- public static final String messageData = "messageData";
- public static final String messageDataResult = "messageDataResult";
-
- public static final String imageTypeSupported = "imageTypeSupported";
- public static final String imageResolution = "imageResolution";
- public static final String x = "x";
- public static final String y = "y";
- public static final String id = "id";
- public static final String ts = "ts";
- public static final String c = "c";
- public static final String resolution = "resolution";
- public static final String touchEventAvailable = "touchEventAvailable";
-
- public static final String pressAvailable = "pressAvailable";
- public static final String multiTouchAvailable = "multiTouchAvailable";
- public static final String doublePressAvailable = "doublePressAvailable";
- public static final String templatesAvailable = "templatesAvailable";
- public static final String numCustomPresetsAvailable = "numCustomPresetsAvailable";
- public static final String prerecordedSpeech = "prerecordedSpeech";
- public static final String manualTextEntry = "manualTextEntry";
- public static final String progressIndicator = "progressIndicator";
- public static final String secondaryGraphic = "secondaryGraphic";
- public static final String offset = "offset";
- public static final String length = "length";
-
- public static final String hardware = "hardware";
- public static final String firmwareRev = "firmwareRev";
- public static final String os = "os";
- public static final String osVersion = "osVersion";
- public static final String carrier = "carrier";
- public static final String maxNumberRFCOMMPorts = "maxNumberRFCOMMPorts";
-
- public static final String onReadDIDResponse = "onReadDIDResponse";
- public static final String onGetDTCsResponse = "onGetDTCsResponse";
- public static final String onOnKeyboardInput = "onOnKeyboardInput";
- public static final String onOnTouchEvent = "onOnTouchEvent";
- public static final String onOnSystemRequest = "onOnSystemRequest";
-
- public static final String onDiagnosticMessageResponse = "onDiagnosticMessageResponse";
- public static final String onSystemRequestResponse = "onSystemRequestResponse";
- public static final String onGetVehicleDataResponse = "onGetVehicleDataResponse";
- public static final String getSupportedDiagModes = "getSupportedDiagModes";
- public static final String supportedDiagModes = "supportedDiagModes";
-
- public static final String driverAirbagDeployed = "driverAirbagDeployed";
- public static final String driverSideAirbagDeployed = "driverSideAirbagDeployed";
- public static final String driverCurtainAirbagDeployed = "driverCurtainAirbagDeployed";
- public static final String passengerAirbagDeployed = "passengerAirbagDeployed";
- public static final String passengerCurtainAirbagDeployed = "passengerCurtainAirbagDeployed";
- public static final String driverKneeAirbagDeployed = "driverKneeAirbagDeployed";
- public static final String passengerSideAirbagDeployed = "passengerSideAirbagDeployed";
- public static final String passengerKneeAirbagDeployed = "passengerKneeAirbagDeployed";
-
- public static final String powerModeActive = "powerModeActive";
- public static final String powerModeQualificationStatus = "powerModeQualificationStatus";
- public static final String carModeStatus = "carModeStatus";
- public static final String powerModeStatus = "powerModeStatus";
-
- public static final String eCallNotificationStatus = "eCallNotificationStatus";
- public static final String auxECallNotificationStatus = "auxECallNotificationStatus";
- public static final String eCallConfirmationStatus = "eCallConfirmationStatus";
- public static final String e911Override = "e911Override";
-
- public static final String emergencyEventType = "emergencyEventType";
- public static final String fuelCutoffStatus = "fuelCutoffStatus";
- public static final String rolloverEvent = "rolloverEvent";
- public static final String maximumChangeVelocity = "maximumChangeVelocity";
- public static final String multipleEvents = "multipleEvents";
-
- public static final String eCallInfo = "eCallInfo";
- public static final String airbagStatus = "airbagStatus";
- public static final String emergencyEvent = "emergencyEvent";
- public static final String clusterModeStatus = "clusterModeStatus";
- public static final String myKey = "myKey";
- public static final String timeToDestination = "timeToDestination";
-
- public static final String driverDistraction = "driverDistraction";
- public static final String showLockScreen = "showLockScreen";
- public static final String userSelected = "userSelected";
- public static final String notSet = "notSet";
-
- public static final String headers = "headers";
- public static final String body = "body";
-
- public static final String ContentType = "ContentType";
- public static final String ConnectTimeout = "ConnectTimeout";
- public static final String DoOutput = "DoOutput";
- public static final String DoInput = "DoInput";
- public static final String UseCaches = "UseCaches";
- public static final String RequestMethod = "RequestMethod";
- public static final String ReadTimeout = "ReadTimeout";
- public static final String InstanceFollowRedirects = "InstanceFollowRedirects";
- public static final String charset = "charset";
- public static final String ContentLength = "Content-Length";
-}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/interfaces/IAudioStreamListener.java b/base/src/main/java/com/smartdevicelink/proxy/interfaces/IAudioStreamListener.java
index 616f07f42..c39e6bee2 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/interfaces/IAudioStreamListener.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/interfaces/IAudioStreamListener.java
@@ -68,20 +68,6 @@ public interface IAudioStreamListener {
* last audio sample data included in this chunk, in microseconds.
* It must be greater than the previous timestamp.
* Specify -1 if unknown.
- */
- @Deprecated
- void sendAudio(ByteBuffer data, long presentationTimeUs);
-
- /**
- * Sends a chunk of audio data to SDL Core.
- * <p>
- * Note: this method must not be called after SdlProxyBase.endAudioStream() is called.
- *
- * @param data Data chunk to send. Its position will be updated upon return.
- * @param presentationTimeUs (Reserved for future use) Presentation timestamp (PTS) of the
- * last audio sample data included in this chunk, in microseconds.
- * It must be greater than the previous timestamp.
- * Specify -1 if unknown.
* @param completionListener A completion listener that informs when the audio file is played
*/
void sendAudio(ByteBuffer data, long presentationTimeUs, CompletionListener completionListener);
diff --git a/base/src/main/java/com/smartdevicelink/proxy/interfaces/IProxyListenerALM.java b/base/src/main/java/com/smartdevicelink/proxy/interfaces/IProxyListenerALM.java
deleted file mode 100644
index eb3d00c6b..000000000
--- a/base/src/main/java/com/smartdevicelink/proxy/interfaces/IProxyListenerALM.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-package com.smartdevicelink.proxy.interfaces;
-
-@Deprecated
-public interface IProxyListenerALM extends IProxyListenerBase {
- // All methods moved into base interface
-}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/interfaces/IProxyListenerBase.java b/base/src/main/java/com/smartdevicelink/proxy/interfaces/IProxyListenerBase.java
deleted file mode 100644
index e00309fb5..000000000
--- a/base/src/main/java/com/smartdevicelink/proxy/interfaces/IProxyListenerBase.java
+++ /dev/null
@@ -1,461 +0,0 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-package com.smartdevicelink.proxy.interfaces;
-
-import com.smartdevicelink.proxy.callbacks.OnServiceEnded;
-import com.smartdevicelink.proxy.callbacks.OnServiceNACKed;
-import com.smartdevicelink.proxy.rpc.AddCommandResponse;
-import com.smartdevicelink.proxy.rpc.AddSubMenuResponse;
-import com.smartdevicelink.proxy.rpc.AlertManeuverResponse;
-import com.smartdevicelink.proxy.rpc.AlertResponse;
-import com.smartdevicelink.proxy.rpc.ButtonPressResponse;
-import com.smartdevicelink.proxy.rpc.CancelInteractionResponse;
-import com.smartdevicelink.proxy.rpc.ChangeRegistrationResponse;
-import com.smartdevicelink.proxy.rpc.CloseApplicationResponse;
-import com.smartdevicelink.proxy.rpc.CreateInteractionChoiceSetResponse;
-import com.smartdevicelink.proxy.rpc.CreateWindowResponse;
-import com.smartdevicelink.proxy.rpc.DeleteCommandResponse;
-import com.smartdevicelink.proxy.rpc.DeleteFileResponse;
-import com.smartdevicelink.proxy.rpc.DeleteInteractionChoiceSetResponse;
-import com.smartdevicelink.proxy.rpc.DeleteSubMenuResponse;
-import com.smartdevicelink.proxy.rpc.DeleteWindowResponse;
-import com.smartdevicelink.proxy.rpc.DiagnosticMessageResponse;
-import com.smartdevicelink.proxy.rpc.DialNumberResponse;
-import com.smartdevicelink.proxy.rpc.EndAudioPassThruResponse;
-import com.smartdevicelink.proxy.rpc.GenericResponse;
-import com.smartdevicelink.proxy.rpc.GetAppServiceDataResponse;
-import com.smartdevicelink.proxy.rpc.GetCloudAppPropertiesResponse;
-import com.smartdevicelink.proxy.rpc.GetDTCsResponse;
-import com.smartdevicelink.proxy.rpc.GetFileResponse;
-import com.smartdevicelink.proxy.rpc.GetInteriorVehicleDataConsentResponse;
-import com.smartdevicelink.proxy.rpc.GetInteriorVehicleDataResponse;
-import com.smartdevicelink.proxy.rpc.GetSystemCapabilityResponse;
-import com.smartdevicelink.proxy.rpc.GetVehicleDataResponse;
-import com.smartdevicelink.proxy.rpc.GetWayPointsResponse;
-import com.smartdevicelink.proxy.rpc.ListFilesResponse;
-import com.smartdevicelink.proxy.rpc.OnAppServiceData;
-import com.smartdevicelink.proxy.rpc.OnAudioPassThru;
-import com.smartdevicelink.proxy.rpc.OnButtonEvent;
-import com.smartdevicelink.proxy.rpc.OnButtonPress;
-import com.smartdevicelink.proxy.rpc.OnCommand;
-import com.smartdevicelink.proxy.rpc.OnDriverDistraction;
-import com.smartdevicelink.proxy.rpc.OnHMIStatus;
-import com.smartdevicelink.proxy.rpc.OnHashChange;
-import com.smartdevicelink.proxy.rpc.OnInteriorVehicleData;
-import com.smartdevicelink.proxy.rpc.OnKeyboardInput;
-import com.smartdevicelink.proxy.rpc.OnLanguageChange;
-import com.smartdevicelink.proxy.rpc.OnPermissionsChange;
-import com.smartdevicelink.proxy.rpc.OnRCStatus;
-import com.smartdevicelink.proxy.rpc.OnSystemCapabilityUpdated;
-import com.smartdevicelink.proxy.rpc.OnSystemRequest;
-import com.smartdevicelink.proxy.rpc.OnTBTClientState;
-import com.smartdevicelink.proxy.rpc.OnTouchEvent;
-import com.smartdevicelink.proxy.rpc.OnVehicleData;
-import com.smartdevicelink.proxy.rpc.OnWayPointChange;
-import com.smartdevicelink.proxy.rpc.PerformAppServiceInteractionResponse;
-import com.smartdevicelink.proxy.rpc.PerformAudioPassThruResponse;
-import com.smartdevicelink.proxy.rpc.PerformInteractionResponse;
-import com.smartdevicelink.proxy.rpc.PublishAppServiceResponse;
-import com.smartdevicelink.proxy.rpc.PutFileResponse;
-import com.smartdevicelink.proxy.rpc.ReadDIDResponse;
-import com.smartdevicelink.proxy.rpc.ReleaseInteriorVehicleDataModuleResponse;
-import com.smartdevicelink.proxy.rpc.ResetGlobalPropertiesResponse;
-import com.smartdevicelink.proxy.rpc.ScrollableMessageResponse;
-import com.smartdevicelink.proxy.rpc.SendHapticDataResponse;
-import com.smartdevicelink.proxy.rpc.SendLocationResponse;
-import com.smartdevicelink.proxy.rpc.SetAppIconResponse;
-import com.smartdevicelink.proxy.rpc.SetCloudAppPropertiesResponse;
-import com.smartdevicelink.proxy.rpc.SetDisplayLayoutResponse;
-import com.smartdevicelink.proxy.rpc.SetGlobalPropertiesResponse;
-import com.smartdevicelink.proxy.rpc.SetInteriorVehicleDataResponse;
-import com.smartdevicelink.proxy.rpc.SetMediaClockTimerResponse;
-import com.smartdevicelink.proxy.rpc.ShowAppMenuResponse;
-import com.smartdevicelink.proxy.rpc.ShowConstantTbtResponse;
-import com.smartdevicelink.proxy.rpc.ShowResponse;
-import com.smartdevicelink.proxy.rpc.SliderResponse;
-import com.smartdevicelink.proxy.rpc.SpeakResponse;
-import com.smartdevicelink.proxy.rpc.SubscribeButtonResponse;
-import com.smartdevicelink.proxy.rpc.SubscribeVehicleDataResponse;
-import com.smartdevicelink.proxy.rpc.SubscribeWayPointsResponse;
-import com.smartdevicelink.proxy.rpc.SystemRequestResponse;
-import com.smartdevicelink.proxy.rpc.UnpublishAppServiceResponse;
-import com.smartdevicelink.proxy.rpc.UnsubscribeButtonResponse;
-import com.smartdevicelink.proxy.rpc.UnsubscribeVehicleDataResponse;
-import com.smartdevicelink.proxy.rpc.UnsubscribeWayPointsResponse;
-import com.smartdevicelink.proxy.rpc.UpdateTurnListResponse;
-import com.smartdevicelink.proxy.rpc.enums.SdlDisconnectedReason;
-
-@Deprecated
-public interface IProxyListenerBase {
-
- /**
- * onOnHMIStatus being called indicates that there has been an HMI Level change,
- * system context change or audio streaming state change.
- *
- * @param notification - Contains information about the HMI Level,
- * system context and audio streaming state.
- */
- public void onOnHMIStatus(OnHMIStatus notification);
-
- /**
- * onProxyClosed has different functionality for the different models.
- * In the non-ALM model this indicates that the proxy has experienced an unrecoverable error.
- * A new proxy object must be initiated to reestablish connection with SDL.
- * In the ALM model this indicates that the app is no longer registered with SDL
- * All resources on SDL (addCommands and ChoiceSets) have been deleted and will have to be
- * recreated upon the next onReadyForInitialization() call-back.
- *
- * @param info - Includes information about the reason the proxy has been closed.
- * @param e - The exception that occurred.
- */
- public void onProxyClosed(String info, Exception e, SdlDisconnectedReason reason);
-
- public void onServiceEnded(OnServiceEnded serviceEnded);
-
- public void onServiceNACKed(OnServiceNACKed serviceNACKed);
-
- //public void onOnStreamRPC(OnStreamRPC notification);
-
- //public void onStreamRPCResponse(StreamRPCResponse response);
-
- /**
- * onProxyError() being called indicates that the SDL Proxy experenced an error.
- *
- * @param info - Includes information about the Exception that occurred.
- * @param e - The exception that occurred.
- */
- public void onError(String info, Exception e);
-
- /**
- * onGenericResponse() being called indicates that SDL could not determine the
- * type of request it is responding to. This is usually result of an unknown RPC Request
- * being sent.
- *
- * @param response - Includes detailed information about the response.
- */
- public void onGenericResponse(GenericResponse response);
-
- /**
- * onOnCommand() being called indicates that the user selected a command on SDL.
- *
- * @param notification - Contains information about the command chosen.
- */
- public void onOnCommand(OnCommand notification);
-
- /**
- * onAddCommandResponse() being called indicates that SDL has responded to
- * a request to add a command.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onAddCommandResponse(AddCommandResponse response);
-
- /**
- * onAddSubMenuResponse() being called indicates that SDL has responded to
- * a request to add a command.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onAddSubMenuResponse(AddSubMenuResponse response);
-
- /**
- * onCreateInteractionChoiceSetResponse() being called indicates that SDL has
- * responded to a request to add an interactionChoiceSet.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onCreateInteractionChoiceSetResponse(CreateInteractionChoiceSetResponse response);
-
- /**
- * onAlertResponse being called indicates that SDL has
- * responded to a request to alert the user.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onAlertResponse(AlertResponse response);
-
- /**
- * onDeleteCommandResponse being called indicates that SDL has
- * responded to a request to delete a command.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onDeleteCommandResponse(DeleteCommandResponse response);
-
- /**
- * onDeleteCommandResponse being called indicates that SDL has
- * responded to a request to delete an interaction choice set.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onDeleteInteractionChoiceSetResponse(DeleteInteractionChoiceSetResponse response);
-
- /**
- * onDeleteCommandResponse being called indicates that SDL has
- * responded to a request to delete a submenu.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onDeleteSubMenuResponse(DeleteSubMenuResponse response);
-
- /**
- * onPerformInteractionResponse being called indicates that SDL has
- * responded to a request to perform an interaction.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onPerformInteractionResponse(PerformInteractionResponse response);
-
- /**
- * onResetGlobalPropertiesResponse being called indicates that SDL has
- * responded to a request to reset global properties.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onResetGlobalPropertiesResponse(ResetGlobalPropertiesResponse response);
-
- /**
- * onSetGlobalPropertiesResponse being called indicates that SDL has
- * responded to a request to set global properties.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onSetGlobalPropertiesResponse(SetGlobalPropertiesResponse response);
-
- /**
- * onSetMediaClockTimerResponse being called indicates that SDL has
- * responded to a request to set the media clock timer.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onSetMediaClockTimerResponse(SetMediaClockTimerResponse response);
-
- /**
- * onShowResponse being called indicates that SDL has
- * responded to a request to display information to the user.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onShowResponse(ShowResponse response);
-
- /**
- * onSpeakResponse being called indicates that SDL has
- * responded to a request to speak information to the user.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onSpeakResponse(SpeakResponse response);
-
- /**
- * onButtonEvent being called indicates that a button event has occurred.
- *
- * @param notification - Contains information about the notification sent from SDL.
- */
- public void onOnButtonEvent(OnButtonEvent notification);
-
- /**
- * onButtonPress being called indicates that SDL has a button has
- * been pressed by the user.
- *
- * @param notification - Contains information about the notification sent from SDL.
- */
- public void onOnButtonPress(OnButtonPress notification);
-
- /**
- * onSubscribeButtonResponse being called indicates that SDL has
- * responded to a request to subscribe to button events and button presses.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onSubscribeButtonResponse(SubscribeButtonResponse response);
-
- /**
- * onUnsubscribeButtonResponse being called indicates that SDL has
- * responded to a request to unsubscribe from button events and button presses.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onUnsubscribeButtonResponse(UnsubscribeButtonResponse response);
-
- /**
- * onOnPermissionsChange being called indicates that your app permissions have
- * changed due to a policy table change. This can mean your app has received additional
- * permissions OR lost permissions.
- *
- * @param notification - Contains information about the changed permissions.
- */
- public void onOnPermissionsChange(OnPermissionsChange notification);
-
- public void onSubscribeVehicleDataResponse(SubscribeVehicleDataResponse response);
-
- public void onUnsubscribeVehicleDataResponse(UnsubscribeVehicleDataResponse response);
-
- public void onGetVehicleDataResponse(GetVehicleDataResponse response);
-
- public void onOnVehicleData(OnVehicleData notification);
-
- public void onPerformAudioPassThruResponse(PerformAudioPassThruResponse response);
-
- public void onEndAudioPassThruResponse(EndAudioPassThruResponse response);
-
- public void onOnAudioPassThru(OnAudioPassThru notification);
-
- public void onPutFileResponse(PutFileResponse response);
-
- public void onDeleteFileResponse(DeleteFileResponse response);
-
- public void onListFilesResponse(ListFilesResponse response);
-
- public void onSetAppIconResponse(SetAppIconResponse response);
-
- public void onScrollableMessageResponse(ScrollableMessageResponse response);
-
- public void onChangeRegistrationResponse(ChangeRegistrationResponse response);
-
- public void onSetDisplayLayoutResponse(SetDisplayLayoutResponse response);
-
- public void onOnLanguageChange(OnLanguageChange notification);
-
- public void onOnHashChange(OnHashChange notification);
-
- public void onSliderResponse(SliderResponse response);
-
- public void onOnDriverDistraction(OnDriverDistraction notification);
-
- public void onOnTBTClientState(OnTBTClientState notification);
-
- public void onOnSystemRequest(OnSystemRequest notification);
-
- public void onSystemRequestResponse(SystemRequestResponse response);
-
- public void onOnKeyboardInput(OnKeyboardInput notification);
-
- public void onOnTouchEvent(OnTouchEvent notification);
-
- public void onDiagnosticMessageResponse(DiagnosticMessageResponse response);
-
- public void onReadDIDResponse(ReadDIDResponse response);
-
- public void onGetDTCsResponse(GetDTCsResponse response);
-
- //public void onOnLockScreenNotification(OnLockScreenStatus notification);
-
- public void onDialNumberResponse(DialNumberResponse response);
-
- public void onSendLocationResponse(SendLocationResponse response);
-
- public void onShowConstantTbtResponse(ShowConstantTbtResponse response);
-
- public void onAlertManeuverResponse(AlertManeuverResponse response);
-
- public void onUpdateTurnListResponse(UpdateTurnListResponse response);
-
- public void onServiceDataACK(int dataSize);
-
- public void onGetWayPointsResponse(GetWayPointsResponse response);
-
- public void onSubscribeWayPointsResponse(SubscribeWayPointsResponse response);
-
- public void onUnsubscribeWayPointsResponse(UnsubscribeWayPointsResponse response);
-
- public void onOnWayPointChange(OnWayPointChange notification);
-
- public void onGetSystemCapabilityResponse(GetSystemCapabilityResponse response);
-
- public void onGetInteriorVehicleDataResponse(GetInteriorVehicleDataResponse response);
-
- public void onCreateWindowResponse(CreateWindowResponse response);
-
- public void onDeleteWindowResponse(DeleteWindowResponse response);
-
- public void onButtonPressResponse(ButtonPressResponse response);
-
- public void onSetInteriorVehicleDataResponse(SetInteriorVehicleDataResponse response);
-
- public void onOnInteriorVehicleData(OnInteriorVehicleData notification);
-
- public void onSendHapticDataResponse(SendHapticDataResponse response);
-
- public void onOnRCStatus(OnRCStatus notification);
-
- public void onSetCloudAppProperties(SetCloudAppPropertiesResponse response);
-
- public void onGetCloudAppProperties(GetCloudAppPropertiesResponse response);
-
- public void onPublishAppServiceResponse(PublishAppServiceResponse response);
-
- public void onGetAppServiceDataResponse(GetAppServiceDataResponse response);
-
- public void onGetFileResponse(GetFileResponse response);
-
- public void onPerformAppServiceInteractionResponse(PerformAppServiceInteractionResponse response);
-
- public void onOnAppServiceData(OnAppServiceData notification);
-
- public void onGetInteriorVehicleDataConsentResponse(GetInteriorVehicleDataConsentResponse response);
-
- public void onReleaseInteriorVehicleDataModuleResponse(ReleaseInteriorVehicleDataModuleResponse response);
-
- public void onOnSystemCapabilityUpdated(OnSystemCapabilityUpdated notification);
-
- /**
- * onCloseApplicationResponse being called indicates that SDL has
- * responded to a request to close the application on the module.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onCloseApplicationResponse(CloseApplicationResponse response);
-
- /**
- * onCancelInteractionResponse being called indicates that SDL has
- * responded to a request to dismiss a modal view on the module.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onCancelInteractionResponse(CancelInteractionResponse response);
-
- /**
- * UnpublishAppServiceResponse being called indicates that SDL has
- * responded to a request to close the application on the module.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onUnpublishAppServiceResponse(UnpublishAppServiceResponse response);
-
- /**
- * onShowAppMenuResponse being called indicates that SDL has
- * responded to a request to close the application on the module.
- *
- * @param response - Contains information about the response sent from SDL.
- */
- public void onShowAppMenuResponse(ShowAppMenuResponse response);
-}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/interfaces/IPutFileResponseListener.java b/base/src/main/java/com/smartdevicelink/proxy/interfaces/IPutFileResponseListener.java
deleted file mode 100644
index b0c557b8e..000000000
--- a/base/src/main/java/com/smartdevicelink/proxy/interfaces/IPutFileResponseListener.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-package com.smartdevicelink.proxy.interfaces;
-
-import com.smartdevicelink.proxy.rpc.PutFileResponse;
-
-@Deprecated
-public interface IPutFileResponseListener {
- public void onPutFileResponse(PutFileResponse response);
-
- public void onPutFileStreamError(Exception e, String info);
-}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/interfaces/ISdl.java b/base/src/main/java/com/smartdevicelink/proxy/interfaces/ISdl.java
index 6a1b1b97d..0c46e3743 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/interfaces/ISdl.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/interfaces/ISdl.java
@@ -94,11 +94,6 @@ public interface ISdl {
void startVideoService(VideoStreamingParameters parameters, boolean encrypted);
/**
- * Stops the video service if open
- */
- void stopVideoService();
-
- /**
* Starts the video streaming service
* @param isEncrypted flag to start this service with encryption or not
* @param parameters desired video streaming params for this sevice to be started with
@@ -120,11 +115,6 @@ public interface ISdl {
void startAudioService(boolean encrypted);
/**
- * Stops the audio service if open
- */
- void stopAudioService();
-
- /**
* Start Audio Stream and return IAudioStreamListener
* @param isEncrypted whether or not the audio stream should be encrypted
* @param codec the codec that should be used for the audio stream
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/AddCommand.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/AddCommand.java
index c46fb4a7a..57d0719a5 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/AddCommand.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/AddCommand.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -165,15 +165,16 @@ public class AddCommand extends RPCRequest {
* <p>Sets an Unique Command ID that identifies the command. Is returned in an
* <i>{@linkplain OnCommand}</i> notification to identify the command
* selected by the user</p>
- *
- *
+ *
+ *
* @param cmdID
* an integer object representing a Command ID
* <p>
* <b>Notes:</b> Min Value: 0; Max Value: 2000000000</p>
*/
- public void setCmdID(@NonNull Integer cmdID) {
- setParameters(KEY_CMD_ID, cmdID);
+ public AddCommand setCmdID(@NonNull Integer cmdID) {
+ setParameters(KEY_CMD_ID, cmdID);
+ return this;
}
/**
* <p>
@@ -195,12 +196,13 @@ public class AddCommand extends RPCRequest {
* Command Menu<p>
* If null, commands will not be accessible through the HMI application menu
* </p>
- *
+ *
* @param menuParams
* a menuParams object
- */
- public void setMenuParams(MenuParams menuParams) {
+ */
+ public AddCommand setMenuParams( MenuParams menuParams) {
setParameters(KEY_MENU_PARAMS, menuParams);
+ return this;
}
/**
* <p>
@@ -222,7 +224,7 @@ public class AddCommand extends RPCRequest {
* <p>If null, commands will not be accessible by voice commands (when the user
* hits push-to-talk)
* </p>
- *
+ *
* @param vrCommands
* List<String> indicating one or more VR phrases
* <p>
@@ -230,8 +232,9 @@ public class AddCommand extends RPCRequest {
* provided, array must contain at least one non-empty (not null,
* not zero-length, not whitespace only) element</p>
*/
- public void setVrCommands( List<String> vrCommands ) {
- setParameters(KEY_VR_COMMANDS, vrCommands);
+ public AddCommand setVrCommands( List<String> vrCommands) {
+ setParameters(KEY_VR_COMMANDS, vrCommands);
+ return this;
}
/**
@@ -256,7 +259,8 @@ public class AddCommand extends RPCRequest {
* default if applicable) icon will be displayed</p>
* @since SmartDeviceLink 2.0
*/
- public void setCmdIcon(Image cmdIcon) {
+ public AddCommand setCmdIcon( Image cmdIcon) {
setParameters(KEY_CMD_ICON, cmdIcon);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/AddSubMenu.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/AddSubMenu.java
index 3751134e0..e2453a727 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/AddSubMenu.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/AddSubMenu.java
@@ -166,15 +166,16 @@ public class AddSubMenu extends RPCRequest {
* <p>Sets a Menu ID that identifies a sub menu.</p><p> This value is used in
* {@linkplain AddCommand} to which SubMenu is the parent of the command
* being added</p>
- *
- *
+ *
+ *
* @param menuID
* an integer object representing a Menu ID
- *
+ *
* <p><b>Notes:</b> Min Value: 0; Max Value: 2000000000</p>
- */
- public void setMenuID( @NonNull Integer menuID ) {
- setParameters(KEY_MENU_ID, menuID);
+ */
+ public AddSubMenu setMenuID(@NonNull Integer menuID) {
+ setParameters(KEY_MENU_ID, menuID);
+ return this;
}
/**
* <p>Returns an <i>Integer</i> object representing the position of menu</p>
@@ -187,7 +188,7 @@ public class AddSubMenu extends RPCRequest {
}
/**
* Sets a position of menu
- *
+ *
* @param position
* <p>An Integer object representing the position within the items
* of the top level Command Menu. 0 will insert at the front, 1
@@ -204,9 +205,10 @@ public class AddSubMenu extends RPCRequest {
* <li>If this parameter is omitted, the entry will be added at
* the end of the list</li>
* </ul>
- */
- public void setPosition( Integer position ) {
- setParameters(KEY_POSITION, position);
+ */
+ public AddSubMenu setPosition( Integer position) {
+ setParameters(KEY_POSITION, position);
+ return this;
}
/**
* Returns String which is displayed representing this submenu item
@@ -218,12 +220,13 @@ public class AddSubMenu extends RPCRequest {
}
/**
* Sets a menuName which is displayed representing this submenu item
- *
+ *
* @param menuName
* String which will be displayed representing this submenu item
- */
- public void setMenuName( @NonNull String menuName ) {
- setParameters(KEY_MENU_NAME, menuName);
+ */
+ public AddSubMenu setMenuName(@NonNull String menuName) {
+ setParameters(KEY_MENU_NAME, menuName);
+ return this;
}
/**
* Returns Image to be be shown along with the submenu item
@@ -239,17 +242,19 @@ public class AddSubMenu extends RPCRequest {
* @param menuIcon
* Image to be be shown along with the submenu item
*/
- public void setMenuIcon(Image menuIcon) {
- setParameters(KEY_MENU_ICON, menuIcon);
- }
+ public AddSubMenu setMenuIcon( Image menuIcon) {
+ setParameters(KEY_MENU_ICON, menuIcon);
+ return this;
+ }
/**
* Sets the layout of the submenu screen.
* @param menuLayout - the menuLayout
*/
- public void setMenuLayout(MenuLayout menuLayout) {
- setParameters(KEY_MENU_LAYOUT, menuLayout);
- }
+ public AddSubMenu setMenuLayout( MenuLayout menuLayout) {
+ setParameters(KEY_MENU_LAYOUT, menuLayout);
+ return this;
+ }
/**
* Gets the layout of the submenu screen.
@@ -267,9 +272,10 @@ public class AddSubMenu extends RPCRequest {
* provided to the top level of the in application menu.
* @since SmartDeviceLink 7.0.0
*/
- public void setParentID(Integer parentID) {
- setParameters(KEY_PARENT_ID, parentID);
- }
+ public AddSubMenu setParentID( Integer parentID) {
+ setParameters(KEY_PARENT_ID, parentID);
+ return this;
+ }
/**
* Gets the parentID.
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/AirbagStatus.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/AirbagStatus.java
index 49fdf959e..55498160a 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/AirbagStatus.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/AirbagStatus.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -149,50 +149,58 @@ public class AirbagStatus extends RPCStruct {
setPassengerKneeAirbagDeployed(passengerKneeAirbagDeployed);
}
- public void setDriverAirbagDeployed(@NonNull VehicleDataEventStatus driverAirbagDeployed) {
+ public AirbagStatus setDriverAirbagDeployed(@NonNull VehicleDataEventStatus driverAirbagDeployed) {
setValue(KEY_DRIVER_AIRBAG_DEPLOYED, driverAirbagDeployed);
+ return this;
}
public VehicleDataEventStatus getDriverAirbagDeployed() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_DRIVER_AIRBAG_DEPLOYED);
}
- public void setDriverSideAirbagDeployed(@NonNull VehicleDataEventStatus driverSideAirbagDeployed) {
+ public AirbagStatus setDriverSideAirbagDeployed(@NonNull VehicleDataEventStatus driverSideAirbagDeployed) {
setValue(KEY_DRIVER_SIDE_AIRBAG_DEPLOYED, driverSideAirbagDeployed);
+ return this;
}
public VehicleDataEventStatus getDriverSideAirbagDeployed() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_DRIVER_SIDE_AIRBAG_DEPLOYED);
}
- public void setDriverCurtainAirbagDeployed(@NonNull VehicleDataEventStatus driverCurtainAirbagDeployed) {
+ public AirbagStatus setDriverCurtainAirbagDeployed(@NonNull VehicleDataEventStatus driverCurtainAirbagDeployed) {
setValue(KEY_DRIVER_CURTAIN_AIRBAG_DEPLOYED, driverCurtainAirbagDeployed);
+ return this;
}
public VehicleDataEventStatus getDriverCurtainAirbagDeployed() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_DRIVER_CURTAIN_AIRBAG_DEPLOYED);
}
- public void setPassengerAirbagDeployed(@NonNull VehicleDataEventStatus passengerAirbagDeployed) {
+ public AirbagStatus setPassengerAirbagDeployed(@NonNull VehicleDataEventStatus passengerAirbagDeployed) {
setValue(KEY_PASSENGER_AIRBAG_DEPLOYED, passengerAirbagDeployed);
+ return this;
}
public VehicleDataEventStatus getPassengerAirbagDeployed() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_PASSENGER_AIRBAG_DEPLOYED);
}
- public void setPassengerCurtainAirbagDeployed(@NonNull VehicleDataEventStatus passengerCurtainAirbagDeployed) {
+ public AirbagStatus setPassengerCurtainAirbagDeployed(@NonNull VehicleDataEventStatus passengerCurtainAirbagDeployed) {
setValue(KEY_PASSENGER_CURTAIN_AIRBAG_DEPLOYED, passengerCurtainAirbagDeployed);
+ return this;
}
public VehicleDataEventStatus getPassengerCurtainAirbagDeployed() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_PASSENGER_CURTAIN_AIRBAG_DEPLOYED);
}
- public void setDriverKneeAirbagDeployed(@NonNull VehicleDataEventStatus driverKneeAirbagDeployed) {
+ public AirbagStatus setDriverKneeAirbagDeployed(@NonNull VehicleDataEventStatus driverKneeAirbagDeployed) {
setValue(KEY_DRIVER_KNEE_AIRBAG_DEPLOYED, driverKneeAirbagDeployed);
+ return this;
}
public VehicleDataEventStatus getDriverKneeAirbagDeployed() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_DRIVER_KNEE_AIRBAG_DEPLOYED);
}
- public void setPassengerSideAirbagDeployed(@NonNull VehicleDataEventStatus passengerSideAirbagDeployed) {
+ public AirbagStatus setPassengerSideAirbagDeployed(@NonNull VehicleDataEventStatus passengerSideAirbagDeployed) {
setValue(KEY_PASSENGER_SIDE_AIRBAG_DEPLOYED, passengerSideAirbagDeployed);
+ return this;
}
public VehicleDataEventStatus getPassengerSideAirbagDeployed() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_PASSENGER_SIDE_AIRBAG_DEPLOYED);
}
- public void setPassengerKneeAirbagDeployed(@NonNull VehicleDataEventStatus passengerKneeAirbagDeployed) {
+ public AirbagStatus setPassengerKneeAirbagDeployed(@NonNull VehicleDataEventStatus passengerKneeAirbagDeployed) {
setValue(KEY_PASSENGER_KNEE_AIRBAG_DEPLOYED, passengerKneeAirbagDeployed);
+ return this;
}
public VehicleDataEventStatus getPassengerKneeAirbagDeployed() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_PASSENGER_KNEE_AIRBAG_DEPLOYED);
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/Alert.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/Alert.java
index a67484131..dbb16c073 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/Alert.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/Alert.java
@@ -204,10 +204,10 @@ public class Alert extends RPCRequest {
/**
* Sets the String to be displayed in the first field of the display during
* the Alert
- *
+ *
* @param alertText1
* String Value
- *
+ *
* <p><b>Notes: </b></p>
* <ul>
* <li>Length is limited to what is indicated in <i>
@@ -215,9 +215,10 @@ public class Alert extends RPCRequest {
* <li>If omitted, top display line will be cleared</li>
* <li>Text is always centered</li>
* </ul>
- */
- public void setAlertText1(String alertText1) {
- setParameters(KEY_ALERT_TEXT_1, alertText1);
+ */
+ public Alert setAlertText1( String alertText1) {
+ setParameters(KEY_ALERT_TEXT_1, alertText1);
+ return this;
}
/**
* Gets the text which is displayed in the second field of the display
@@ -232,10 +233,10 @@ public class Alert extends RPCRequest {
/**
* Sets the String to be displayed in the second field of the display during
* the Alert
- *
+ *
* @param alertText2
* String Value
- *
+ *
* <p><b>Notes: </b></p>
* <ul>
* <li>Only permitted if HMI supports a second display line</li>
@@ -244,9 +245,10 @@ public class Alert extends RPCRequest {
* <li>If omitted, second display line will be cleared</li>
* <li>Text is always centered</li>
* </ul>
- */
- public void setAlertText2(String alertText2) {
- setParameters(KEY_ALERT_TEXT_2, alertText2);
+ */
+ public Alert setAlertText2( String alertText2) {
+ setParameters(KEY_ALERT_TEXT_2, alertText2);
+ return this;
}
/**
@@ -265,10 +267,10 @@ public class Alert extends RPCRequest {
/**
* Sets the String to be displayed in the third field of the display during
* the Alert
- *
+ *
* @param alertText3
* String Value
- *
+ *
* <p> <b>Notes: </b></p>
* <ul>
* <li>Only permitted if HMI supports a third display line</li>
@@ -277,11 +279,12 @@ public class Alert extends RPCRequest {
* <li>If omitted, third display line will be cleared</li>
* <li>Text is always centered</li>
* </ul>
- *
+ *
* @since SmartDeviceLink 2.0
*/
- public void setAlertText3(String alertText3) {
- setParameters(KEY_ALERT_TEXT_3, alertText3);
+ public Alert setAlertText3( String alertText3) {
+ setParameters(KEY_ALERT_TEXT_3, alertText3);
+ return this;
}
/**
* Gets TTSChunk[], the Array of type TTSChunk which, taken together,
@@ -297,13 +300,14 @@ public class Alert extends RPCRequest {
/**
* Sets array of type TTSChunk which, taken together, specify what is to be
* spoken to the user
- *
+ *
* @param ttsChunks
- *
+ *
* <p> <b>Notes: </b>Array must have a least one element</p>
- */
- public void setTtsChunks(List<TTSChunk> ttsChunks) {
- setParameters(KEY_TTS_CHUNKS, ttsChunks);
+ */
+ public Alert setTtsChunks( List<TTSChunk> ttsChunks) {
+ setParameters(KEY_TTS_CHUNKS, ttsChunks);
+ return this;
}
/**
* Gets the duration of the displayed portion of the alert, in milliseconds
@@ -319,8 +323,8 @@ public class Alert extends RPCRequest {
* After this amount of time has passed, the display fields alertText1 and
* alertText2 will revert to what was displayed in those fields before the
* alert began</p>
- *
- *
+ *
+ *
* @param duration
* the Integer values representing the duration time, in
* milliseconds
@@ -330,9 +334,10 @@ public class Alert extends RPCRequest {
* <li>Min Value: 3000; Max Value: 10000</li>
* <li>If omitted, the default is 5000 milliseconds</li>
* </ul>
- */
- public void setDuration(Integer duration) {
- setParameters(KEY_DURATION, duration);
+ */
+ public Alert setDuration( Integer duration) {
+ setParameters(KEY_DURATION, duration);
+ return this;
}
/**
* Gets a Boolean value representing the alert tone
@@ -346,15 +351,16 @@ public class Alert extends RPCRequest {
/**
* Sets whether the alert tone should be played before the TTS (if any) is
* spoken
- *
+ *
* @param playTone
* a Boolean value which specifies whether the alert tone should
* be played before the TTS (if any) is spoken
- *
+ *
* <p> <b>Notes: </b>If omitted, default is true</p>
- */
- public void setPlayTone(Boolean playTone) {
- setParameters(KEY_PLAY_TONE, playTone);
+ */
+ public Alert setPlayTone( Boolean playTone) {
+ setParameters(KEY_PLAY_TONE, playTone);
+ return this;
}
/**
@@ -371,7 +377,7 @@ public class Alert extends RPCRequest {
/**
* Sets the SoftButtons
- *
+ *
* @param softButtons
* a List<SoftButton> value
* <p>
@@ -384,8 +390,9 @@ public class Alert extends RPCRequest {
* </ul>
* @since SmartDeviceLink 2.0
*/
- public void setSoftButtons(List<SoftButton> softButtons) {
- setParameters(KEY_SOFT_BUTTONS, softButtons);
+ public Alert setSoftButtons( List<SoftButton> softButtons) {
+ setParameters(KEY_SOFT_BUTTONS, softButtons);
+ return this;
}
/**
@@ -406,8 +413,9 @@ public class Alert extends RPCRequest {
*
* @since SmartDeviceLink 3.0
*/
- public void setProgressIndicator(Boolean progressIndicator) {
+ public Alert setProgressIndicator( Boolean progressIndicator) {
setParameters(KEY_PROGRESS_INDICATOR, progressIndicator);
+ return this;
}
/**
@@ -428,9 +436,10 @@ public class Alert extends RPCRequest {
*
* @since SmartDeviceLink 6.0
*/
- public void setCancelID(Integer cancelID) {
- setParameters(KEY_CANCEL_ID, cancelID);
- };
+ public Alert setCancelID( Integer cancelID) {
+ setParameters(KEY_CANCEL_ID, cancelID);
+ return this;
+ };
/**
* <p>Sets the Image
@@ -441,9 +450,10 @@ public class Alert extends RPCRequest {
* <b>Notes: </b>If omitted on supported displays, no (or the
* default if applicable) icon will be displayed</p>
*/
- public void setAlertIcon(Image alertIcon) {
- setParameters(KEY_ALERT_ICON, alertIcon);
- }
+ public Alert setAlertIcon( Image alertIcon) {
+ setParameters(KEY_ALERT_ICON, alertIcon);
+ return this;
+ }
/**
* <p>Gets the image to be shown along with the alert </p>
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/AlertManeuver.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/AlertManeuver.java
index 37b6c2da3..9e5fb32b7 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/AlertManeuver.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/AlertManeuver.java
@@ -86,7 +86,7 @@ public class AlertManeuver extends RPCRequest{
/**
* Sets the SoftButtons
- *
+ *
* @param softButtons
* a List<SoftButton> value
* <p>
@@ -99,8 +99,9 @@ public class AlertManeuver extends RPCRequest{
* @since SmartDeviceLink 2.0
*/
- public void setSoftButtons(List<SoftButton> softButtons){
+ public AlertManeuver setSoftButtons( List<SoftButton> softButtons) {
setParameters(KEY_SOFT_BUTTONS, softButtons);
+ return this;
}
/**
@@ -115,13 +116,14 @@ public class AlertManeuver extends RPCRequest{
/**
* Sets array of type TTSChunk which, taken together, specify what is to be spoken to the user
- *
+ *
* @param ttsChunks
* <p>
* <b>Notes: </b></p>Array must have a least one element
*/
- public void setTtsChunks(List<TTSChunk> ttsChunks){
+ public AlertManeuver setTtsChunks( List<TTSChunk> ttsChunks) {
setParameters(KEY_TTS_CHUNKS, ttsChunks);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/AlertResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/AlertResponse.java
index a2fae73be..3ad14972b 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/AlertResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/AlertResponse.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -78,7 +78,8 @@ public class AlertResponse extends RPCResponse {
public Integer getTryAgainTime() {
return getInteger(KEY_TRY_AGAIN_TIME);
}
- public void setTryAgainTime(Integer tryAgainTime) {
+ public AlertResponse setTryAgainTime( Integer tryAgainTime) {
setParameters(KEY_TRY_AGAIN_TIME, tryAgainTime);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/AppInfo.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/AppInfo.java
index a71d7b6e2..b07e918d1 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/AppInfo.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/AppInfo.java
@@ -73,9 +73,10 @@ public class AppInfo extends RPCStruct {
/** Sets the name displayed for the mobile application on the mobile device (can differ from the app name set in the initial RAI request).
* @param appDisplayName - name displayed for the mobile application on the mobile device.
*/
- public void setAppDisplayName(@NonNull String appDisplayName) {
- setValue(KEY_APP_DISPLAY_NAME, appDisplayName);
- }
+ public AppInfo setAppDisplayName(@NonNull String appDisplayName) {
+ setValue(KEY_APP_DISPLAY_NAME, appDisplayName);
+ return this;
+ }
/** Gets the name displayed for the mobile application on the mobile device (can differ from the app name set in the initial RAI request).
* @return appDisplayName - name displayed for the mobile application on the mobile device.
@@ -87,9 +88,10 @@ public class AppInfo extends RPCStruct {
/** Sets package name of the Android application. This supports App Launch strategies for each platform.
* @param appBundleID - package name of the application
*/
- public void setAppBundleID(@NonNull String appBundleID) {
- setValue(KEY_APP_BUNDLE_ID, appBundleID);
- }
+ public AppInfo setAppBundleID(@NonNull String appBundleID) {
+ setValue(KEY_APP_BUNDLE_ID, appBundleID);
+ return this;
+ }
/** Gets package name of the Android application. This supports App Launch strategies for each platform.
* @return appBundleID - package name of the application.
@@ -101,9 +103,10 @@ public class AppInfo extends RPCStruct {
/** Sets build version number of this particular mobile app.
* @param appVersion - build version number of this particular mobile app.
*/
- public void setAppVersion(@NonNull String appVersion) {
- setValue(KEY_APP_VERSION, appVersion);
- }
+ public AppInfo setAppVersion(@NonNull String appVersion) {
+ setValue(KEY_APP_VERSION, appVersion);
+ return this;
+ }
/** Gets build version number of this particular mobile app.
* @return appVersion - build version number of this particular mobile app.
@@ -115,9 +118,10 @@ public class AppInfo extends RPCStruct {
/** Sets file reference to the icon utilized by this app (simplifies the process of setting an app icon during app registration).
* @param appIcon - file reference to the icon utilized by this app
*/
- public void setAppIcon(String appIcon) {
- setValue(KEY_APP_ICON, appIcon);
- }
+ public AppInfo setAppIcon( String appIcon) {
+ setValue(KEY_APP_ICON, appIcon);
+ return this;
+ }
/** Gets build version number of this particular mobile app.
* @return appIcon - build version number of this particular mobile app.
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceCapability.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceCapability.java
index 780ac13ed..3f46cbb7a 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceCapability.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceCapability.java
@@ -69,9 +69,10 @@ public class AppServiceCapability extends RPCStruct {
* Only included in OnSystemCapabilityUpdated. Update reason for this service record.
* @param updateReason -
*/
- public void setUpdateReason(ServiceUpdateReason updateReason){
- setValue(KEY_UPDATE_REASON, updateReason);
- }
+ public AppServiceCapability setUpdateReason( ServiceUpdateReason updateReason) {
+ setValue(KEY_UPDATE_REASON, updateReason);
+ return this;
+ }
/**
* Only included in OnSystemCapabilityUpdated. Update reason for this service record.
@@ -85,9 +86,10 @@ public class AppServiceCapability extends RPCStruct {
* Only included in OnSystemCapabilityUpdated. Update reason for this service record.
* @param updatedAppServiceRecord -
*/
- public void setUpdatedAppServiceRecord(AppServiceRecord updatedAppServiceRecord){
- setValue(KEY_UPDATED_APP_SERVICE_RECORD, updatedAppServiceRecord);
- }
+ public AppServiceCapability setUpdatedAppServiceRecord( AppServiceRecord updatedAppServiceRecord) {
+ setValue(KEY_UPDATED_APP_SERVICE_RECORD, updatedAppServiceRecord);
+ return this;
+ }
/**
* Only included in OnSystemCapabilityUpdated. Update reason for this service record.
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceData.java
index 1a441a7fa..529815cfc 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceData.java
@@ -68,9 +68,10 @@ public class AppServiceData extends RPCStruct {
/**
* @param serviceType -
*/
- public void setServiceType(@NonNull String serviceType) {
- setValue(KEY_SERVICE_TYPE, serviceType);
- }
+ public AppServiceData setServiceType(@NonNull String serviceType) {
+ setValue(KEY_SERVICE_TYPE, serviceType);
+ return this;
+ }
/**
* @return serviceType -
@@ -82,9 +83,10 @@ public class AppServiceData extends RPCStruct {
/**
* @param serviceId -
*/
- public void setServiceID(@NonNull String serviceId) {
- setValue(KEY_SERVICE_ID, serviceId);
- }
+ public AppServiceData setServiceID(@NonNull String serviceId) {
+ setValue(KEY_SERVICE_ID, serviceId);
+ return this;
+ }
/**
* @return serviceId -
@@ -96,9 +98,10 @@ public class AppServiceData extends RPCStruct {
/**
* @param mediaServiceData -
*/
- public void setMediaServiceData(MediaServiceData mediaServiceData) {
- setValue(KEY_MEDIA_SERVICE_DATA, mediaServiceData);
- }
+ public AppServiceData setMediaServiceData( MediaServiceData mediaServiceData) {
+ setValue(KEY_MEDIA_SERVICE_DATA, mediaServiceData);
+ return this;
+ }
/**
* @return mediaServiceData -
@@ -110,9 +113,10 @@ public class AppServiceData extends RPCStruct {
/**
* @param weatherServiceData -
*/
- public void setWeatherServiceData(WeatherServiceData weatherServiceData) {
- setValue(KEY_WEATHER_SERVICE_DATA, weatherServiceData);
- }
+ public AppServiceData setWeatherServiceData( WeatherServiceData weatherServiceData) {
+ setValue(KEY_WEATHER_SERVICE_DATA, weatherServiceData);
+ return this;
+ }
/**
* @return weatherServiceData -
@@ -124,9 +128,10 @@ public class AppServiceData extends RPCStruct {
/**
* @param navigationServiceData -
*/
- public void setNavigationServiceData(NavigationServiceData navigationServiceData) {
- setValue(KEY_NAVIGATION_SERVICE_DATA, navigationServiceData);
- }
+ public AppServiceData setNavigationServiceData( NavigationServiceData navigationServiceData) {
+ setValue(KEY_NAVIGATION_SERVICE_DATA, navigationServiceData);
+ return this;
+ }
/**
* @return navigationServiceData -
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceManifest.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceManifest.java
index 9f2e4e2f6..9de0201b9 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceManifest.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceManifest.java
@@ -88,9 +88,10 @@ public class AppServiceManifest extends RPCStruct {
* Unique name of this service
* @param serviceName - the service name
*/
- public void setServiceName(String serviceName){
- setValue(KEY_SERVICE_NAME, serviceName);
- }
+ public AppServiceManifest setServiceName( String serviceName) {
+ setValue(KEY_SERVICE_NAME, serviceName);
+ return this;
+ }
/**
* Unique name of this service
@@ -102,12 +103,13 @@ public class AppServiceManifest extends RPCStruct {
/**
* The type of service that is to be offered by this app
- * @param serviceType - the serviceType use {@link com.smartdevicelink.proxy.rpc.enums.AppServiceType}
- * @see com.smartdevicelink.proxy.rpc.enums.AppServiceType
+ * @param serviceType - the serviceType use {@link AppServiceType}
+ * @see AppServiceType
*/
- public void setServiceType(@NonNull String serviceType){
- setValue(KEY_SERVICE_TYPE, serviceType);
- }
+ public AppServiceManifest setServiceType(@NonNull String serviceType) {
+ setValue(KEY_SERVICE_TYPE, serviceType);
+ return this;
+ }
/**
* The type of service that is to be offered by this app
@@ -122,9 +124,10 @@ public class AppServiceManifest extends RPCStruct {
* The icon to be associated with this service Most likely the same as the appIcon.
* @param serviceIcon - The Service Icon Image
*/
- public void setServiceIcon(Image serviceIcon){
- setValue(KEY_SERVICE_ICON, serviceIcon);
- }
+ public AppServiceManifest setServiceIcon( Image serviceIcon) {
+ setValue(KEY_SERVICE_ICON, serviceIcon);
+ return this;
+ }
/**
* The icon to be associated with this service Most likely the same as the appIcon.
@@ -139,9 +142,10 @@ public class AppServiceManifest extends RPCStruct {
* only the IVI system will be able consume the service. If not provided, it is assumed to be false.
* @param allowAppConsumers - boolean
*/
- public void setAllowAppConsumers(Boolean allowAppConsumers){
- setValue(KEY_ALLOW_APP_CONSUMERS, allowAppConsumers);
- }
+ public AppServiceManifest setAllowAppConsumers( Boolean allowAppConsumers) {
+ setValue(KEY_ALLOW_APP_CONSUMERS, allowAppConsumers);
+ return this;
+ }
/**
* If true, app service consumers beyond the IVI system will be able to access this service. If false,
@@ -157,9 +161,10 @@ public class AppServiceManifest extends RPCStruct {
* If not included, it is assumed the max version of the module is acceptable.
* @param rpcSpecVersion - The rpcSpecVersion
*/
- public void setRpcSpecVersion(SdlMsgVersion rpcSpecVersion){
- setValue(KEY_RPC_SPEC_VERSION, rpcSpecVersion);
- }
+ public AppServiceManifest setRpcSpecVersion( SdlMsgVersion rpcSpecVersion) {
+ setValue(KEY_RPC_SPEC_VERSION, rpcSpecVersion);
+ return this;
+ }
/**
* This is the max RPC Spec version the app service understands. This is important during the RPC pass through functionality.
@@ -174,20 +179,21 @@ public class AppServiceManifest extends RPCStruct {
* This field contains the Function IDs for the RPCs that this service intends to handle correctly.
* This means the service will provide meaningful responses.
* @param handledRPCs - The List of Handled RPCs using their ID value from the FunctionID enum
- * @see com.smartdevicelink.protocol.enums.FunctionID
- * @see #setHandledRpcsUsingFunctionIDs(List)
+ * @see FunctionID
+ * @see #setHandledRpcsUsingFunctionIDs( List )
*/
- public void setHandledRpcs(List<Integer> handledRPCs){
- setValue(KEY_HANDLED_RPCS, handledRPCs);
- }
+ public AppServiceManifest setHandledRpcs( List<Integer> handledRPCs) {
+ setValue(KEY_HANDLED_RPCS, handledRPCs);
+ return this;
+ }
/**
* This field contains the Function IDs for the RPCs that this service intends to handle correctly.
* This means the service will provide meaningful responses.
* @param handledRPCs - The List of Handled RPCs using the FunctionID enum
- * @see #setHandledRpcs(List)
+ * @see #setHandledRpcs( List )
*/
- public void setHandledRpcsUsingFunctionIDs(List<FunctionID> handledRPCs){
- if(handledRPCs != null){
+ public AppServiceManifest setHandledRpcsUsingFunctionIDs( List<FunctionID> handledRPCs) {
+ if(handledRPCs != null){
List<Integer> rpcIds = new ArrayList<>();
for(FunctionID functionID : handledRPCs){
rpcIds.add(functionID.getId());
@@ -196,7 +202,8 @@ public class AppServiceManifest extends RPCStruct {
}else{
setValue(KEY_HANDLED_RPCS, null);
}
- }
+ return this;
+ }
/**
* This field contains the FunctionID integer ID values for the RPCs that this service intends to handle correctly.
@@ -213,9 +220,10 @@ public class AppServiceManifest extends RPCStruct {
* The MediaServiceManifest
* @param mediaServiceManifest - The mediaServiceManifest
*/
- public void setMediaServiceManifest(MediaServiceManifest mediaServiceManifest){
- setValue(KEY_MEDIA_SERVICE_MANIFEST, mediaServiceManifest);
- }
+ public AppServiceManifest setMediaServiceManifest( MediaServiceManifest mediaServiceManifest) {
+ setValue(KEY_MEDIA_SERVICE_MANIFEST, mediaServiceManifest);
+ return this;
+ }
/**
* The MediaServiceManifest
@@ -229,9 +237,10 @@ public class AppServiceManifest extends RPCStruct {
* The WeatherServiceManifest
* @param weatherServiceManifest - The weatherServiceManifest
*/
- public void setWeatherServiceManifest(WeatherServiceManifest weatherServiceManifest){
- setValue(KEY_WEATHER_SERVICE_MANIFEST, weatherServiceManifest);
- }
+ public AppServiceManifest setWeatherServiceManifest( WeatherServiceManifest weatherServiceManifest) {
+ setValue(KEY_WEATHER_SERVICE_MANIFEST, weatherServiceManifest);
+ return this;
+ }
/**
* The WeatherServiceManifest
@@ -245,9 +254,10 @@ public class AppServiceManifest extends RPCStruct {
* The NavigationServiceManifest
* @param navigationServiceManifest - The navigationServiceManifest
*/
- public void setNavigationServiceManifest(NavigationServiceManifest navigationServiceManifest){
- setValue(KEY_NAVIGATION_SERVICE_MANIFEST, navigationServiceManifest);
- }
+ public AppServiceManifest setNavigationServiceManifest( NavigationServiceManifest navigationServiceManifest) {
+ setValue(KEY_NAVIGATION_SERVICE_MANIFEST, navigationServiceManifest);
+ return this;
+ }
/**
* The NavigationServiceManifest
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceRecord.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceRecord.java
index 198be4e26..d59cb8fe0 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceRecord.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServiceRecord.java
@@ -70,9 +70,10 @@ public class AppServiceRecord extends RPCStruct {
* ID of this service
* @param serviceID - the service ID
*/
- public void setServiceID(@NonNull String serviceID){
- setValue(KEY_SERVICE_ID, serviceID);
- }
+ public AppServiceRecord setServiceID(@NonNull String serviceID) {
+ setValue(KEY_SERVICE_ID, serviceID);
+ return this;
+ }
/**
* ID of this service
@@ -86,9 +87,10 @@ public class AppServiceRecord extends RPCStruct {
* the App Service Manifest
* @param serviceManifest - the App Service Manifest
*/
- public void setServiceManifest(@NonNull AppServiceManifest serviceManifest){
- setValue(KEY_SERVICE_MANIFEST, serviceManifest);
- }
+ public AppServiceRecord setServiceManifest(@NonNull AppServiceManifest serviceManifest) {
+ setValue(KEY_SERVICE_MANIFEST, serviceManifest);
+ return this;
+ }
/**
* the App Service Manifest
@@ -103,9 +105,10 @@ public class AppServiceRecord extends RPCStruct {
* unpublished, and should be considered unavailable.
* @param servicePublished - boolean
*/
- public void setServicePublished(@NonNull Boolean servicePublished){
- setValue(KEY_SERVICE_PUBLISHED, servicePublished);
- }
+ public AppServiceRecord setServicePublished(@NonNull Boolean servicePublished) {
+ setValue(KEY_SERVICE_PUBLISHED, servicePublished);
+ return this;
+ }
/**
* If true, the service is published and available. If false, the service has likely just been
@@ -122,9 +125,10 @@ public class AppServiceRecord extends RPCStruct {
* service of the supplied type. See servicePublished for its availability.
* @param serviceActive - boolean
*/
- public void setServiceActive(@NonNull Boolean serviceActive){
- setValue(KEY_SERVICE_ACTIVE, serviceActive);
- }
+ public AppServiceRecord setServiceActive(@NonNull Boolean serviceActive) {
+ setValue(KEY_SERVICE_ACTIVE, serviceActive);
+ return this;
+ }
/**
* If true, the service is the active primary service of the supplied service type. It will receive
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServicesCapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServicesCapabilities.java
index 63d3dd6a5..30cac40fa 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServicesCapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/AppServicesCapabilities.java
@@ -72,9 +72,10 @@ public class AppServicesCapabilities extends RPCStruct {
* capability the affected services will include an update reason in that item
* @param appServices -
*/
- public void setAppServices(List<AppServiceCapability> appServices){
- setValue(KEY_APP_SERVICES, appServices);
- }
+ public AppServicesCapabilities setAppServices( List<AppServiceCapability> appServices) {
+ setValue(KEY_APP_SERVICES, appServices);
+ return this;
+ }
/**
* An array of currently available services. If this is an update to the
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/AudioControlCapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/AudioControlCapabilities.java
index 7ee26175e..ecb6daef8 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/AudioControlCapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/AudioControlCapabilities.java
@@ -76,9 +76,10 @@ public class AudioControlCapabilities extends RPCStruct {
*
* @param moduleName The short friendly name of the light control module. It should not be used to identify a module by mobile application.
*/
- public void setModuleName(@NonNull String moduleName) {
- setValue(KEY_MODULE_NAME, moduleName);
- }
+ public AudioControlCapabilities setModuleName(@NonNull String moduleName) {
+ setValue(KEY_MODULE_NAME, moduleName);
+ return this;
+ }
/**
* Gets the moduleName portion of the AudioControlCapabilities class
@@ -94,9 +95,10 @@ public class AudioControlCapabilities extends RPCStruct {
*
* @param keepContextAvailable Availability of the keepContext parameter.
*/
- public void setKeepContextAvailable(Boolean keepContextAvailable) {
- setValue(KEY_KEEP_CONTEXT_AVAILABLE, keepContextAvailable);
- }
+ public AudioControlCapabilities setKeepContextAvailable( Boolean keepContextAvailable) {
+ setValue(KEY_KEEP_CONTEXT_AVAILABLE, keepContextAvailable);
+ return this;
+ }
/**
* Gets the keepContextAvailable portion of the AudioControlCapabilities class
@@ -112,9 +114,10 @@ public class AudioControlCapabilities extends RPCStruct {
*
* @param sourceAvailable Availability of the control of audio source.
*/
- public void setSourceAvailable(Boolean sourceAvailable) {
- setValue(KEY_SOURCE_AVAILABLE, sourceAvailable);
- }
+ public AudioControlCapabilities setSourceAvailable( Boolean sourceAvailable) {
+ setValue(KEY_SOURCE_AVAILABLE, sourceAvailable);
+ return this;
+ }
/**
* Gets the sourceAvailable portion of the AudioControlCapabilities class
@@ -130,9 +133,10 @@ public class AudioControlCapabilities extends RPCStruct {
*
* @param volumeAvailable Availability of the control of audio volume.
*/
- public void setVolumeAvailable(Boolean volumeAvailable) {
- setValue(KEY_VOLUME_AVAILABLE, volumeAvailable);
- }
+ public AudioControlCapabilities setVolumeAvailable( Boolean volumeAvailable) {
+ setValue(KEY_VOLUME_AVAILABLE, volumeAvailable);
+ return this;
+ }
/**
* Gets the volumeAvailable portion of the AudioControlCapabilities class
@@ -148,9 +152,10 @@ public class AudioControlCapabilities extends RPCStruct {
*
* @param equalizerAvailable Availability of the control of Equalizer Settings.
*/
- public void setEqualizerAvailable(Boolean equalizerAvailable) {
- setValue(KEY_EQUALIZER_AVAILABLE, equalizerAvailable);
- }
+ public AudioControlCapabilities setEqualizerAvailable( Boolean equalizerAvailable) {
+ setValue(KEY_EQUALIZER_AVAILABLE, equalizerAvailable);
+ return this;
+ }
/**
* Gets the equalizerAvailable portion of the AudioControlCapabilities class
@@ -166,9 +171,10 @@ public class AudioControlCapabilities extends RPCStruct {
*
* @param equalizerMaxChannelId Must be included if equalizerAvailable=true, and assume all IDs starting from 1 to this value are valid.
*/
- public void setEqualizerMaxChannelId(Integer equalizerMaxChannelId) {
- setValue(KEY_EQUALIZER_MAX_CHANNEL_ID, equalizerMaxChannelId);
- }
+ public AudioControlCapabilities setEqualizerMaxChannelId( Integer equalizerMaxChannelId) {
+ setValue(KEY_EQUALIZER_MAX_CHANNEL_ID, equalizerMaxChannelId);
+ return this;
+ }
/**
* Gets the equalizerMaxChannelId portion of the AudioControlCapabilities class
@@ -183,9 +189,10 @@ public class AudioControlCapabilities extends RPCStruct {
* Sets ModuleInfo for this capability
* @param info the ModuleInfo to be set
*/
- public void setModuleInfo(ModuleInfo info) {
- setValue(KEY_MODULE_INFO, info);
- }
+ public AudioControlCapabilities setModuleInfo( ModuleInfo info) {
+ setValue(KEY_MODULE_INFO, info);
+ return this;
+ }
/**
* Gets a ModuleInfo of this capability
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/AudioControlData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/AudioControlData.java
index ff95186d5..2de646ff6 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/AudioControlData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/AudioControlData.java
@@ -65,9 +65,10 @@ public class AudioControlData extends RPCStruct {
* In a setter request, it is the target audio source that the system shall switch to.
* If the value is MOBILE_APP, the system shall switch to the mobile media app that issues the setter RPC.
*/
- public void setSource(PrimaryAudioSource source) {
- setValue(KEY_SOURCE, source);
- }
+ public AudioControlData setSource( PrimaryAudioSource source) {
+ setValue(KEY_SOURCE, source);
+ return this;
+ }
/**
* Gets the source portion of the AudioControlData class
@@ -89,9 +90,10 @@ public class AudioControlData extends RPCStruct {
* system UI associated with the audio source to foreground.
* If it is true, the system only changes the audio source, but keeps the current application in foreground.
*/
- public void setKeepContext(Boolean keepContext) {
- setValue(KEY_KEEP_CONTEXT, keepContext);
- }
+ public AudioControlData setKeepContext( Boolean keepContext) {
+ setValue(KEY_KEEP_CONTEXT, keepContext);
+ return this;
+ }
/**
* Gets the keepContext portion of the AudioControlData class
@@ -111,9 +113,10 @@ public class AudioControlData extends RPCStruct {
*
* @param volume Reflects the volume of audio, from 0%-100%.
*/
- public void setVolume(Integer volume) {
- setValue(KEY_VOLUME, volume);
- }
+ public AudioControlData setVolume( Integer volume) {
+ setValue(KEY_VOLUME, volume);
+ return this;
+ }
/**
* Gets the volume portion of the AudioControlData class
@@ -139,8 +142,9 @@ public class AudioControlData extends RPCStruct {
*
* @param equalizerSettings Defines the list of supported channels (band) and their current/desired settings on HMI.
*/
- public void setEqualizerSettings(List<EqualizerSettings> equalizerSettings) {
- setValue(KEY_EQUALIZER_SETTINGS, equalizerSettings);
- }
+ public AudioControlData setEqualizerSettings( List<EqualizerSettings> equalizerSettings) {
+ setValue(KEY_EQUALIZER_SETTINGS, equalizerSettings);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/AudioPassThruCapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/AudioPassThruCapabilities.java
index 38f2f80bb..769813bad 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/AudioPassThruCapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/AudioPassThruCapabilities.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -110,8 +110,9 @@ public class AudioPassThruCapabilities extends RPCStruct {
* set the sampling rate for AudioPassThru
* @param samplingRate the sampling rate for AudioPassThru
*/
- public void setSamplingRate(@NonNull SamplingRate samplingRate) {
- setValue(KEY_SAMPLING_RATE, samplingRate);
+ public AudioPassThruCapabilities setSamplingRate(@NonNull SamplingRate samplingRate) {
+ setValue(KEY_SAMPLING_RATE, samplingRate);
+ return this;
}
/**
@@ -126,8 +127,9 @@ public class AudioPassThruCapabilities extends RPCStruct {
* set the sample depth in bit for AudioPassThru
* @param bitsPerSample the sample depth in bit for AudioPassThru
*/
- public void setBitsPerSample(@NonNull BitsPerSample bitsPerSample) {
- setValue(KEY_BITS_PER_SAMPLE, bitsPerSample);
+ public AudioPassThruCapabilities setBitsPerSample(@NonNull BitsPerSample bitsPerSample) {
+ setValue(KEY_BITS_PER_SAMPLE, bitsPerSample);
+ return this;
}
/**
@@ -142,8 +144,9 @@ public class AudioPassThruCapabilities extends RPCStruct {
* set the audiotype for AudioPassThru
* @param audioType the audiotype for AudioPassThru
*/
- public void setAudioType(@NonNull AudioType audioType) {
- setValue(KEY_AUDIO_TYPE, audioType);
+ public AudioPassThruCapabilities setAudioType(@NonNull AudioType audioType) {
+ setValue(KEY_AUDIO_TYPE, audioType);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/BeltStatus.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/BeltStatus.java
index ff01b72e4..faa10d607 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/BeltStatus.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/BeltStatus.java
@@ -200,92 +200,107 @@ public class BeltStatus extends RPCStruct {
setMiddleRow1BuckleBelted(middleRow1BuckleBelted);
}
- public void setDriverBeltDeployed(@NonNull VehicleDataEventStatus driverBeltDeployed) {
+ public BeltStatus setDriverBeltDeployed(@NonNull VehicleDataEventStatus driverBeltDeployed) {
setValue(KEY_DRIVER_BELT_DEPLOYED, driverBeltDeployed);
+ return this;
}
public VehicleDataEventStatus getDriverBeltDeployed() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_DRIVER_BELT_DEPLOYED);
}
- public void setPassengerBeltDeployed(@NonNull VehicleDataEventStatus passengerBeltDeployed) {
+ public BeltStatus setPassengerBeltDeployed(@NonNull VehicleDataEventStatus passengerBeltDeployed) {
setValue(KEY_PASSENGER_BELT_DEPLOYED, passengerBeltDeployed);
+ return this;
}
public VehicleDataEventStatus getPassengerBeltDeployed() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_PASSENGER_BELT_DEPLOYED);
}
- public void setPassengerBuckleBelted(@NonNull VehicleDataEventStatus passengerBuckleBelted) {
+ public BeltStatus setPassengerBuckleBelted(@NonNull VehicleDataEventStatus passengerBuckleBelted) {
setValue(KEY_PASSENGER_BUCKLE_BELTED, passengerBuckleBelted);
+ return this;
}
public VehicleDataEventStatus getPassengerBuckleBelted() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_PASSENGER_BUCKLE_BELTED);
}
- public void setDriverBuckleBelted(VehicleDataEventStatus driverBuckleBelted) {
+ public BeltStatus setDriverBuckleBelted( VehicleDataEventStatus driverBuckleBelted) {
setValue(KEY_DRIVER_BUCKLE_BELTED, driverBuckleBelted);
+ return this;
}
public VehicleDataEventStatus getDriverBuckleBelted() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_DRIVER_BUCKLE_BELTED);
}
- public void setLeftRow2BuckleBelted(VehicleDataEventStatus leftRow2BuckleBelted) {
+ public BeltStatus setLeftRow2BuckleBelted( VehicleDataEventStatus leftRow2BuckleBelted) {
setValue(KEY_LEFT_ROW_2_BUCKLE_BELTED, leftRow2BuckleBelted);
+ return this;
}
public VehicleDataEventStatus getLeftRow2BuckleBelted() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_LEFT_ROW_2_BUCKLE_BELTED);
}
- public void setPassengerChildDetected(@NonNull VehicleDataEventStatus passengerChildDetected) {
+ public BeltStatus setPassengerChildDetected(@NonNull VehicleDataEventStatus passengerChildDetected) {
setValue(KEY_PASSENGER_CHILD_DETECTED, passengerChildDetected);
+ return this;
}
public VehicleDataEventStatus getPassengerChildDetected() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_PASSENGER_CHILD_DETECTED);
}
- public void setRightRow2BuckleBelted(@NonNull VehicleDataEventStatus rightRow2BuckleBelted) {
+ public BeltStatus setRightRow2BuckleBelted(@NonNull VehicleDataEventStatus rightRow2BuckleBelted) {
setValue(KEY_RIGHT_ROW_2_BUCKLE_BELTED, rightRow2BuckleBelted);
+ return this;
}
public VehicleDataEventStatus getRightRow2BuckleBelted() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_RIGHT_ROW_2_BUCKLE_BELTED);
}
- public void setMiddleRow2BuckleBelted(@NonNull VehicleDataEventStatus middleRow2BuckleBelted) {
+ public BeltStatus setMiddleRow2BuckleBelted(@NonNull VehicleDataEventStatus middleRow2BuckleBelted) {
setValue(KEY_MIDDLE_ROW_2_BUCKLE_BELTED, middleRow2BuckleBelted);
+ return this;
}
public VehicleDataEventStatus getMiddleRow2BuckleBelted() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_MIDDLE_ROW_2_BUCKLE_BELTED);
}
- public void setMiddleRow3BuckleBelted(@NonNull VehicleDataEventStatus middleRow3BuckleBelted) {
+ public BeltStatus setMiddleRow3BuckleBelted(@NonNull VehicleDataEventStatus middleRow3BuckleBelted) {
setValue(KEY_MIDDLE_ROW_3_BUCKLE_BELTED, middleRow3BuckleBelted);
+ return this;
}
public VehicleDataEventStatus getMiddleRow3BuckleBelted() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_MIDDLE_ROW_3_BUCKLE_BELTED);
}
- public void setLeftRow3BuckleBelted(@NonNull VehicleDataEventStatus leftRow3BuckleBelted) {
+ public BeltStatus setLeftRow3BuckleBelted(@NonNull VehicleDataEventStatus leftRow3BuckleBelted) {
setValue(KEY_LEFT_ROW_3_BUCKLE_BELTED, leftRow3BuckleBelted);
+ return this;
}
public VehicleDataEventStatus getLeftRow3BuckleBelted() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_LEFT_ROW_3_BUCKLE_BELTED);
}
- public void setRightRow3BuckleBelted(@NonNull VehicleDataEventStatus rightRow3BuckleBelted) {
+ public BeltStatus setRightRow3BuckleBelted(@NonNull VehicleDataEventStatus rightRow3BuckleBelted) {
setValue(KEY_RIGHT_ROW_3_BUCKLE_BELTED, rightRow3BuckleBelted);
+ return this;
}
public VehicleDataEventStatus getRightRow3BuckleBelted() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_RIGHT_ROW_3_BUCKLE_BELTED);
}
- public void setLeftRearInflatableBelted(@NonNull VehicleDataEventStatus rearInflatableBelted) {
+ public BeltStatus setLeftRearInflatableBelted(@NonNull VehicleDataEventStatus rearInflatableBelted) {
setValue(KEY_LEFT_REAR_INFLATABLE_BELTED, rearInflatableBelted);
+ return this;
}
public VehicleDataEventStatus getLeftRearInflatableBelted() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_LEFT_REAR_INFLATABLE_BELTED);
}
- public void setRightRearInflatableBelted(@NonNull VehicleDataEventStatus rightRearInflatableBelted) {
+ public BeltStatus setRightRearInflatableBelted(@NonNull VehicleDataEventStatus rightRearInflatableBelted) {
setValue(KEY_RIGHT_REAR_INFLATABLE_BELTED, rightRearInflatableBelted);
+ return this;
}
public VehicleDataEventStatus getRightRearInflatableBelted() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_RIGHT_REAR_INFLATABLE_BELTED);
}
- public void setMiddleRow1BeltDeployed(@NonNull VehicleDataEventStatus middleRow1BeltDeployed) {
+ public BeltStatus setMiddleRow1BeltDeployed(@NonNull VehicleDataEventStatus middleRow1BeltDeployed) {
setValue(KEY_MIDDLE_ROW_1_BELT_DEPLOYED, middleRow1BeltDeployed);
+ return this;
}
public VehicleDataEventStatus getMiddleRow1BeltDeployed() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_MIDDLE_ROW_1_BELT_DEPLOYED);
}
- public void setMiddleRow1BuckleBelted(@NonNull VehicleDataEventStatus middleRow1BuckleBelted) {
+ public BeltStatus setMiddleRow1BuckleBelted(@NonNull VehicleDataEventStatus middleRow1BuckleBelted) {
setValue(KEY_MIDDLE_ROW_1_BUCKLE_BELTED, middleRow1BuckleBelted);
+ return this;
}
public VehicleDataEventStatus getMiddleRow1BuckleBelted() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_MIDDLE_ROW_1_BUCKLE_BELTED);
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/BodyInformation.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/BodyInformation.java
index a502e1df6..61379d9dc 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/BodyInformation.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/BodyInformation.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -142,50 +142,57 @@ public class BodyInformation extends RPCStruct {
setIgnitionStableStatus(ignitionStableStatus);
setIgnitionStatus(ignitionStatus);
}
- public void setParkBrakeActive(@NonNull Boolean parkBrakeActive) {
+ public BodyInformation setParkBrakeActive(@NonNull Boolean parkBrakeActive) {
setValue(KEY_PARK_BRAKE_ACTIVE, parkBrakeActive);
+ return this;
}
public Boolean getParkBrakeActive() {
return getBoolean(KEY_PARK_BRAKE_ACTIVE);
}
- public void setIgnitionStableStatus(@NonNull IgnitionStableStatus ignitionStableStatus) {
+ public BodyInformation setIgnitionStableStatus(@NonNull IgnitionStableStatus ignitionStableStatus) {
setValue(KEY_IGNITION_STABLE_STATUS, ignitionStableStatus);
+ return this;
}
public IgnitionStableStatus getIgnitionStableStatus() {
return (IgnitionStableStatus) getObject(IgnitionStableStatus.class, KEY_IGNITION_STABLE_STATUS);
}
- public void setIgnitionStatus(@NonNull IgnitionStatus ignitionStatus) {
+ public BodyInformation setIgnitionStatus(@NonNull IgnitionStatus ignitionStatus) {
setValue(KEY_IGNITION_STATUS, ignitionStatus);
+ return this;
}
public IgnitionStatus getIgnitionStatus() {
return (IgnitionStatus) getObject(IgnitionStatus.class, KEY_IGNITION_STATUS);
}
- public void setDriverDoorAjar(Boolean driverDoorAjar) {
+ public BodyInformation setDriverDoorAjar( Boolean driverDoorAjar) {
setValue(KEY_DRIVER_DOOR_AJAR, driverDoorAjar);
- }
+ return this;
+ }
public Boolean getDriverDoorAjar() {
return getBoolean(KEY_DRIVER_DOOR_AJAR);
}
- public void setPassengerDoorAjar(Boolean passengerDoorAjar) {
+ public BodyInformation setPassengerDoorAjar( Boolean passengerDoorAjar) {
setValue(KEY_PASSENGER_DOOR_AJAR, passengerDoorAjar);
- }
+ return this;
+ }
public Boolean getPassengerDoorAjar() {
return getBoolean(KEY_PASSENGER_DOOR_AJAR);
}
- public void setRearLeftDoorAjar(Boolean rearLeftDoorAjar) {
+ public BodyInformation setRearLeftDoorAjar( Boolean rearLeftDoorAjar) {
setValue(KEY_REAR_LEFT_DOOR_AJAR, rearLeftDoorAjar);
- }
+ return this;
+ }
public Boolean getRearLeftDoorAjar() {
return getBoolean(KEY_REAR_LEFT_DOOR_AJAR);
}
- public void setRearRightDoorAjar(Boolean rearRightDoorAjar) {
+ public BodyInformation setRearRightDoorAjar( Boolean rearRightDoorAjar) {
setValue(KEY_REAR_RIGHT_DOOR_AJAR, rearRightDoorAjar);
- }
+ return this;
+ }
public Boolean getRearRightDoorAjar() {
return getBoolean(KEY_REAR_RIGHT_DOOR_AJAR);
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ButtonCapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ButtonCapabilities.java
index 1a8cb4df9..d2d5246be 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ButtonCapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ButtonCapabilities.java
@@ -133,9 +133,10 @@ public class ButtonCapabilities extends RPCStruct {
/**
* Set the name of theSDL HMI button.
* @param name the name of button
- */
- public void setName( @NonNull ButtonName name ) {
+ */
+ public ButtonCapabilities setName(@NonNull ButtonName name) {
setValue(KEY_NAME, name);
+ return this;
}
/**
* Whether the button supports a SHORT press. See <i>{@linkplain com.smartdevicelink.proxy.rpc.enums.ButtonPressMode}</i> for more information.
@@ -147,9 +148,10 @@ public class ButtonCapabilities extends RPCStruct {
/**
* Set the button supports a SHORT press. See <i>{@linkplain com.smartdevicelink.proxy.rpc.enums.ButtonPressMode}</i> for more information.
* @param shortPressAvailable True if support otherwise False.
- */
- public void setShortPressAvailable( @NonNull Boolean shortPressAvailable ) {
+ */
+ public ButtonCapabilities setShortPressAvailable(@NonNull Boolean shortPressAvailable) {
setValue(KEY_SHORT_PRESS_AVAILABLE, shortPressAvailable);
+ return this;
}
/**
* Whether the button supports a LONG press. See <i>{@linkplain com.smartdevicelink.proxy.rpc.enums.ButtonPressMode}</i> for more information.
@@ -161,9 +163,10 @@ public class ButtonCapabilities extends RPCStruct {
/**
* Set the button supports a LONG press. See <i>{@linkplain com.smartdevicelink.proxy.rpc.enums.ButtonPressMode}</i> for more information.
* @param longPressAvailable True if support otherwise False.
- */
- public void setLongPressAvailable( @NonNull Boolean longPressAvailable ) {
+ */
+ public ButtonCapabilities setLongPressAvailable(@NonNull Boolean longPressAvailable) {
setValue(KEY_LONG_PRESS_AVAILABLE, longPressAvailable);
+ return this;
}
/**
* Whether the button supports "button down" and "button up". When the button is depressed, the <i>{@linkplain OnButtonEvent}</i> notification will be invoked with a value of BUTTONDOWN.
@@ -175,17 +178,19 @@ public class ButtonCapabilities extends RPCStruct {
/**
* Set the button supports "button down" and "button up". When the button is depressed, the <i>{@linkplain OnButtonEvent}</i> notification will be invoked with a value of BUTTONDOWN.
* @param upDownAvailable True if support otherwise False.
- */
- public void setUpDownAvailable( @NonNull Boolean upDownAvailable ) {
+ */
+ public ButtonCapabilities setUpDownAvailable(@NonNull Boolean upDownAvailable) {
setValue(KEY_UP_DOWN_AVAILABLE, upDownAvailable);
+ return this;
}
/**
* Sets ModuleInfo for this capability
* @param info the ModuleInfo to be set
*/
- public void setModuleInfo(ModuleInfo info) {
+ public ButtonCapabilities setModuleInfo( ModuleInfo info) {
setValue(KEY_MODULE_INFO, info);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ButtonPress.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ButtonPress.java
index 645ae336d..ecdac7b95 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ButtonPress.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ButtonPress.java
@@ -96,8 +96,9 @@ public class ButtonPress extends RPCRequest {
* @param moduleType
* Represents module where the button should be pressed
*/
- public void setModuleType(@NonNull ModuleType moduleType) {
+ public ButtonPress setModuleType(@NonNull ModuleType moduleType) {
setParameters(KEY_MODULE_TYPE, moduleType);
+ return this;
}
/**
@@ -115,8 +116,9 @@ public class ButtonPress extends RPCRequest {
* @param buttonName
* Represents name of supported RC climate or radio button
*/
- public void setButtonName(@NonNull ButtonName buttonName) {
+ public ButtonPress setButtonName(@NonNull ButtonName buttonName) {
setParameters(KEY_BUTTON_NAME, buttonName);
+ return this;
}
/**
@@ -134,16 +136,18 @@ public class ButtonPress extends RPCRequest {
* @param buttonPressMode
* Indicates whether this is a LONG or SHORT button press event.
*/
- public void setButtonPressMode(@NonNull ButtonPressMode buttonPressMode) {
+ public ButtonPress setButtonPressMode(@NonNull ButtonPressMode buttonPressMode) {
setParameters(KEY_BUTTON_PRESS_MODE, buttonPressMode);
+ return this;
}
/**
* Sets the module id for this object
* @param id the id to be set
*/
- public void setModuleId(String id) {
+ public ButtonPress setModuleId( String id) {
setParameters(KEY_MODULE_ID, id);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/CancelInteraction.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/CancelInteraction.java
index 9016458a6..16de2d9f7 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/CancelInteraction.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/CancelInteraction.java
@@ -104,8 +104,9 @@ public class CancelInteraction extends RPCRequest {
* Only values 10 (PerformInteractionID), 12 (AlertID), 25 (ScrollableMessageID), 26 (SliderID), and 64 (SubtleAlertID) are permitted.
* @param functionID - the functionID
*/
- public void setInteractionFunctionID(@NonNull Integer functionID) {
+ public CancelInteraction setInteractionFunctionID(@NonNull Integer functionID) {
setParameters(KEY_FUNCTION_ID, functionID);
+ return this;
}
/**
@@ -120,7 +121,8 @@ public class CancelInteraction extends RPCRequest {
* The ID of the specific interaction to dismiss. If not set, the most recent of the RPC type set in functionID will be dismissed.
* @param cancelID - the cancelID
*/
- public void setCancelID(Integer cancelID) {
+ public CancelInteraction setCancelID( Integer cancelID) {
setParameters(KEY_CANCEL_ID, cancelID);
+ return this;
}
} \ No newline at end of file
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ChangeRegistration.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ChangeRegistration.java
index 2087ea886..41dbe6f78 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ChangeRegistration.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ChangeRegistration.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -170,12 +170,13 @@ public class ChangeRegistration extends RPCRequest {
/**
* Sets language
- *
+ *
* @param language
* a language value
*/
- public void setLanguage(@NonNull Language language) {
+ public ChangeRegistration setLanguage(@NonNull Language language) {
setParameters(KEY_LANGUAGE, language);
+ return this;
}
/**
@@ -189,12 +190,13 @@ public class ChangeRegistration extends RPCRequest {
/**
* Sets HMI display language
- *
+ *
* @param hmiDisplayLanguage
* a Language value
*/
- public void setHmiDisplayLanguage(@NonNull Language hmiDisplayLanguage) {
+ public ChangeRegistration setHmiDisplayLanguage(@NonNull Language hmiDisplayLanguage) {
setParameters(KEY_HMI_DISPLAY_LANGUAGE, hmiDisplayLanguage);
+ return this;
}
/**
@@ -208,11 +210,12 @@ public class ChangeRegistration extends RPCRequest {
/**
* Sets app name
- *
+ *
* @param appName App name to set
*/
- public void setAppName(String appName){
+ public ChangeRegistration setAppName( String appName) {
setParameters(KEY_APP_NAME, appName);
+ return this;
}
/**
@@ -226,11 +229,12 @@ public class ChangeRegistration extends RPCRequest {
/**
* Sets NGN media screen app name
- *
+ *
* @param ngnAppName The NGN app name
*/
- public void setNgnMediaScreenAppName(String ngnAppName){
+ public ChangeRegistration setNgnMediaScreenAppName( String ngnAppName) {
setParameters(KEY_NGN_MEDIA_SCREEN_NAME, ngnAppName);
+ return this;
}
/**
@@ -244,11 +248,12 @@ public class ChangeRegistration extends RPCRequest {
/**
* Sets the TTS name
- *
+ *
* @param ttsName The TTS name to set
*/
- public void setTtsName(List<TTSChunk> ttsName){
+ public ChangeRegistration setTtsName( List<TTSChunk> ttsName) {
setParameters(KEY_TTS_NAME, ttsName);
+ return this;
}
/**
@@ -277,7 +282,7 @@ public class ChangeRegistration extends RPCRequest {
/**
* Sets a vrSynonyms representing the an array of 1-100 elements, each
* element containing a voice-recognition synonym
- *
+ *
* @param vrSynonyms
* a List<String> value representing the an array of 1-100
* elements
@@ -290,8 +295,9 @@ public class ChangeRegistration extends RPCRequest {
* the name or any synonym of any currently-registered
* application</li>
* </ul>
- */
- public void setVrSynonyms(List<String> vrSynonyms) {
+ */
+ public ChangeRegistration setVrSynonyms( List<String> vrSynonyms) {
setParameters(KEY_VR_SYNONYMS, vrSynonyms);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/Choice.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/Choice.java
index 72fb49a91..aca5f86d5 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/Choice.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/Choice.java
@@ -171,9 +171,10 @@ public class Choice extends RPCStruct {
/**
* Set the application-scoped identifier that uniquely identifies this choice.
* @param choiceID Min: 0 Max: 65535
- */
- public void setChoiceID(@NonNull Integer choiceID) {
+ */
+ public Choice setChoiceID(@NonNull Integer choiceID) {
setValue(KEY_CHOICE_ID, choiceID);
+ return this;
}
/**
* Text which appears in menu, representing this choice.
@@ -189,9 +190,10 @@ public class Choice extends RPCStruct {
* Min: 1;
* Max: 100
* @param menuName the menu name
- */
- public void setMenuName(@NonNull String menuName) {
+ */
+ public Choice setMenuName(@NonNull String menuName) {
setValue(KEY_MENU_NAME, menuName);
+ return this;
}
/**
* Get an array of strings to be used as VR synonyms for this choice. If this array is provided, it must have at least one non-empty element
@@ -206,16 +208,18 @@ public class Choice extends RPCStruct {
* Set an array of strings to be used as VR synonyms for this choice. If this array is provided, it must have at least one non-empty element
* @param vrCommands the List of vrCommands
* @since SmartDeviceLink 2.0
- */
- public void setVrCommands(List<String> vrCommands) {
+ */
+ public Choice setVrCommands( List<String> vrCommands) {
setValue(KEY_VR_COMMANDS, vrCommands);
+ return this;
}
/**
* Set the image
* @param image the image of the choice
- */
- public void setImage(Image image) {
+ */
+ public Choice setImage( Image image) {
setValue(KEY_IMAGE, image);
+ return this;
}
/**
* Get the image
@@ -230,20 +234,23 @@ public class Choice extends RPCStruct {
return getString(KEY_SECONDARY_TEXT);
}
- public void setSecondaryText(String secondaryText) {
+ public Choice setSecondaryText( String secondaryText) {
setValue(KEY_SECONDARY_TEXT, secondaryText);
+ return this;
}
public String getTertiaryText() {
return getString(KEY_TERTIARY_TEXT);
}
- public void setTertiaryText(String tertiaryText) {
+ public Choice setTertiaryText( String tertiaryText) {
setValue(KEY_TERTIARY_TEXT, tertiaryText);
+ return this;
}
- public void setSecondaryImage(Image image) {
+ public Choice setSecondaryImage( Image image) {
setValue(KEY_SECONDARY_IMAGE, image);
+ return this;
}
@SuppressWarnings("unchecked")
@@ -255,7 +262,8 @@ public class Choice extends RPCStruct {
* This prevents the @{link Choice#format} method from adding VR commands if set to true
* @param ignoreAddingVRItems - whether or not to let the format method add vr commands
*/
- public void setIgnoreAddingVRItems(boolean ignoreAddingVRItems){
+ public Choice setIgnoreAddingVRItems( boolean ignoreAddingVRItems) {
this.ignoreAddingVRItems = ignoreAddingVRItems;
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ClimateControlCapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ClimateControlCapabilities.java
index 856087fda..1c3140d6f 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ClimateControlCapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ClimateControlCapabilities.java
@@ -86,8 +86,9 @@ public class ClimateControlCapabilities extends RPCStruct{
*
* @param moduleName The short friendly name of the climate control module. It should not be used to identify a module by mobile application.
*/
- public void setModuleName(@NonNull String moduleName) {
+ public ClimateControlCapabilities setModuleName(@NonNull String moduleName) {
setValue(KEY_MODULE_NAME, moduleName);
+ return this;
}
/**
@@ -106,8 +107,9 @@ public class ClimateControlCapabilities extends RPCStruct{
* Availability of the control of fan speed.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setFanSpeedAvailable(Boolean fanSpeedAvailable) {
+ public ClimateControlCapabilities setFanSpeedAvailable( Boolean fanSpeedAvailable) {
setValue(KEY_FAN_SPEED_AVAILABLE, fanSpeedAvailable);
+ return this;
}
/**
@@ -127,8 +129,9 @@ public class ClimateControlCapabilities extends RPCStruct{
* Availability of the control of desired temperature.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setDesiredTemperatureAvailable(Boolean desiredTemperatureAvailable) {
+ public ClimateControlCapabilities setDesiredTemperatureAvailable( Boolean desiredTemperatureAvailable) {
setValue(KEY_DESIRED_TEMPERATURE_AVAILABLE, desiredTemperatureAvailable);
+ return this;
}
/**
@@ -148,8 +151,9 @@ public class ClimateControlCapabilities extends RPCStruct{
* Availability of the control of turn on/off AC.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setAcEnableAvailable(Boolean acEnableAvailable) {
+ public ClimateControlCapabilities setAcEnableAvailable( Boolean acEnableAvailable) {
setValue(KEY_AC_ENABLE_AVAILABLE, acEnableAvailable);
+ return this;
}
/**
@@ -169,8 +173,9 @@ public class ClimateControlCapabilities extends RPCStruct{
* Availability of the control of enable/disable air conditioning is ON on the maximum level.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setAcMaxEnableAvailable(Boolean acMaxEnableAvailable) {
+ public ClimateControlCapabilities setAcMaxEnableAvailable( Boolean acMaxEnableAvailable) {
setValue(KEY_AC_MAX_ENABLE_AVAILABLE, acMaxEnableAvailable);
+ return this;
}
/**
@@ -190,8 +195,9 @@ public class ClimateControlCapabilities extends RPCStruct{
* Availability of the control of enable/disable circulate Air mode.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setCirculateAirEnableAvailable(Boolean circulateAirEnableAvailable) {
+ public ClimateControlCapabilities setCirculateAirEnableAvailable( Boolean circulateAirEnableAvailable) {
setValue(KEY_CIRCULATE_AIR_ENABLE_AVAILABLE, circulateAirEnableAvailable);
+ return this;
}
/**
@@ -211,8 +217,9 @@ public class ClimateControlCapabilities extends RPCStruct{
* Availability of the control of enable/disable auto mode.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setAutoModeEnableAvailable(Boolean autoModeEnableAvailable) {
+ public ClimateControlCapabilities setAutoModeEnableAvailable( Boolean autoModeEnableAvailable) {
setValue(KEY_AUTO_MODE_ENABLE_AVAILABLE, autoModeEnableAvailable);
+ return this;
}
/**
@@ -232,8 +239,9 @@ public class ClimateControlCapabilities extends RPCStruct{
* Availability of the control of enable/disable dual mode.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setDualModeEnableAvailable(Boolean dualModeEnableAvailable) {
+ public ClimateControlCapabilities setDualModeEnableAvailable( Boolean dualModeEnableAvailable) {
setValue(KEY_DUAL_MODE_ENABLE_AVAILABLE, dualModeEnableAvailable);
+ return this;
}
/**
@@ -253,8 +261,9 @@ public class ClimateControlCapabilities extends RPCStruct{
* Availability of the control of defrost zones.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setDefrostZoneAvailable(Boolean defrostZoneAvailable) {
+ public ClimateControlCapabilities setDefrostZoneAvailable( Boolean defrostZoneAvailable) {
setValue(KEY_DEFROST_ZONE_AVAILABLE, defrostZoneAvailable);
+ return this;
}
/**
@@ -282,8 +291,9 @@ public class ClimateControlCapabilities extends RPCStruct{
* @param defrostZone
* A set of all defrost zones that are controllable.
*/
- public void setDefrostZone(List<DefrostZone> defrostZone) {
+ public ClimateControlCapabilities setDefrostZone( List<DefrostZone> defrostZone) {
setValue(KEY_DEFROST_ZONE, defrostZone);
+ return this;
}
/**
@@ -293,8 +303,9 @@ public class ClimateControlCapabilities extends RPCStruct{
* Availability of the control of air ventilation mode.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setVentilationModeAvailable(Boolean ventilationModeAvailable) {
+ public ClimateControlCapabilities setVentilationModeAvailable( Boolean ventilationModeAvailable) {
setValue(KEY_VENTILATION_MODE_AVAILABLE, ventilationModeAvailable);
+ return this;
}
/**
@@ -322,8 +333,9 @@ public class ClimateControlCapabilities extends RPCStruct{
* @param ventilationMode
* A set of all ventilation modes that are controllable.
*/
- public void setVentilationMode(List<VentilationMode> ventilationMode) {
+ public ClimateControlCapabilities setVentilationMode( List<VentilationMode> ventilationMode) {
setValue(KEY_VENTILATION_MODE, ventilationMode);
+ return this;
}
/**
@@ -332,8 +344,9 @@ public class ClimateControlCapabilities extends RPCStruct{
* @param heatedSteeringWheelAvailable Availability of the control (enable/disable) of heated Steering Wheel.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setHeatedSteeringWheelAvailable(Boolean heatedSteeringWheelAvailable) {
+ public ClimateControlCapabilities setHeatedSteeringWheelAvailable( Boolean heatedSteeringWheelAvailable) {
setValue(KEY_HEATED_STEERING_WHEEL_AVAILABLE, heatedSteeringWheelAvailable);
+ return this;
}
/**
@@ -352,8 +365,9 @@ public class ClimateControlCapabilities extends RPCStruct{
* @param heatedWindshieldAvailable Availability of the control (enable/disable) of heated Windshield.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setHeatedWindshieldAvailable(Boolean heatedWindshieldAvailable) {
+ public ClimateControlCapabilities setHeatedWindshieldAvailable( Boolean heatedWindshieldAvailable) {
setValue(KEY_HEATED_WIND_SHIELD_AVAILABLE, heatedWindshieldAvailable);
+ return this;
}
/**
@@ -372,8 +386,9 @@ public class ClimateControlCapabilities extends RPCStruct{
* @param heatedRearWindowAvailable Availability of the control (enable/disable) of heated Rear Window.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setHeatedRearWindowAvailable(Boolean heatedRearWindowAvailable) {
+ public ClimateControlCapabilities setHeatedRearWindowAvailable( Boolean heatedRearWindowAvailable) {
setValue(KEY_HEATED_REAR_WINDOW_AVAILABLE, heatedRearWindowAvailable);
+ return this;
}
/**
@@ -392,8 +407,9 @@ public class ClimateControlCapabilities extends RPCStruct{
* @param heatedMirrorsAvailable Availability of the control (enable/disable) of heated Mirrors.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setHeatedMirrorsAvailable(Boolean heatedMirrorsAvailable) {
+ public ClimateControlCapabilities setHeatedMirrorsAvailable( Boolean heatedMirrorsAvailable) {
setValue(KEY_HEATED_MIRRORS_AVAILABLE, heatedMirrorsAvailable);
+ return this;
}
/**
@@ -410,8 +426,9 @@ public class ClimateControlCapabilities extends RPCStruct{
* Sets ModuleInfo for this capability
* @param info the ModuleInfo to be set
*/
- public void setModuleInfo(ModuleInfo info) {
+ public ClimateControlCapabilities setModuleInfo( ModuleInfo info) {
setValue(KEY_MODULE_INFO, info);
+ return this;
}
/**
@@ -427,8 +444,9 @@ public class ClimateControlCapabilities extends RPCStruct{
* @param climateEnableAvailable Availability of the control of enable/disable climate control.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setClimateEnableAvailable(Boolean climateEnableAvailable) {
+ public ClimateControlCapabilities setClimateEnableAvailable( Boolean climateEnableAvailable) {
setValue(KEY_CLIMATE_ENABLE_AVAILABLE, climateEnableAvailable);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ClimateControlData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ClimateControlData.java
index 365a74044..de243bc8d 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ClimateControlData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ClimateControlData.java
@@ -61,80 +61,90 @@ public class ClimateControlData extends RPCStruct{
super(hash);
}
- public void setFanSpeed(Integer fanSpeed) {
+ public ClimateControlData setFanSpeed( Integer fanSpeed) {
setValue(KEY_FAN_SPEED, fanSpeed);
+ return this;
}
public Integer getFanSpeed() {
return getInteger(KEY_FAN_SPEED);
}
- public void setCurrentTemperature(Temperature currentTemperature) {
+ public ClimateControlData setCurrentTemperature( Temperature currentTemperature) {
setValue(KEY_CURRENT_TEMPERATURE, currentTemperature);
+ return this;
}
public Temperature getCurrentTemperature() {
return (Temperature) getObject(Temperature.class, KEY_CURRENT_TEMPERATURE);
}
- public void setDesiredTemperature(Temperature desiredTemperature) {
+ public ClimateControlData setDesiredTemperature( Temperature desiredTemperature) {
setValue(KEY_DESIRED_TEMPERATURE, desiredTemperature);
+ return this;
}
public Temperature getDesiredTemperature() {
return (Temperature) getObject(Temperature.class, KEY_DESIRED_TEMPERATURE);
}
- public void setAcEnable(Boolean acEnable) {
+ public ClimateControlData setAcEnable( Boolean acEnable) {
setValue(KEY_AC_ENABLE, acEnable);
+ return this;
}
public Boolean getAcEnable() {
return getBoolean(KEY_AC_ENABLE);
}
- public void setCirculateAirEnable(Boolean circulateAirEnable) {
+ public ClimateControlData setCirculateAirEnable( Boolean circulateAirEnable) {
setValue(KEY_CIRCULATE_AIR_ENABLE, circulateAirEnable);
+ return this;
}
public Boolean getCirculateAirEnable() {
return getBoolean(KEY_CIRCULATE_AIR_ENABLE);
}
- public void setAutoModeEnable(Boolean autoModeEnable) {
+ public ClimateControlData setAutoModeEnable( Boolean autoModeEnable) {
setValue(KEY_AUTO_MODE_ENABLE, autoModeEnable);
+ return this;
}
public Boolean getAutoModeEnable() {
return getBoolean(KEY_AUTO_MODE_ENABLE);
}
- public void setDefrostZone(DefrostZone defrostZone) {
+ public ClimateControlData setDefrostZone( DefrostZone defrostZone) {
setValue(KEY_DEFROST_ZONE, defrostZone);
+ return this;
}
public DefrostZone getDefrostZone() {
return (DefrostZone) getObject(DefrostZone.class, KEY_DEFROST_ZONE);
}
- public void setDualModeEnable(Boolean dualModeEnable) {
+ public ClimateControlData setDualModeEnable( Boolean dualModeEnable) {
setValue(KEY_DUAL_MODE_ENABLE, dualModeEnable);
+ return this;
}
public Boolean getDualModeEnable() {
return getBoolean(KEY_DUAL_MODE_ENABLE);
}
- public void setAcMaxEnable(Boolean acMaxEnable) {
+ public ClimateControlData setAcMaxEnable( Boolean acMaxEnable) {
setValue(KEY_AC_MAX_ENABLE, acMaxEnable);
+ return this;
}
public Boolean getAcMaxEnable() {
return getBoolean(KEY_AC_MAX_ENABLE);
}
- public void setVentilationMode(VentilationMode ventilationMode) {
+ public ClimateControlData setVentilationMode( VentilationMode ventilationMode) {
setValue(KEY_VENTILATION_MODE, ventilationMode);
+ return this;
}
public VentilationMode getVentilationMode() {
@@ -146,8 +156,9 @@ public class ClimateControlData extends RPCStruct{
*
* @param heatedSteeringWheelEnable Value false means disabled/turn off, value true means enabled/turn on.
*/
- public void setHeatedSteeringWheelEnable(Boolean heatedSteeringWheelEnable) {
+ public ClimateControlData setHeatedSteeringWheelEnable( Boolean heatedSteeringWheelEnable) {
setValue(KEY_HEATED_STEERING_WHEEL_ENABLE, heatedSteeringWheelEnable);
+ return this;
}
/**
@@ -164,8 +175,9 @@ public class ClimateControlData extends RPCStruct{
*
* @param heatedWindshieldEnable Value false means disabled, value true means enabled.
*/
- public void setHeatedWindshieldEnable(Boolean heatedWindshieldEnable) {
+ public ClimateControlData setHeatedWindshieldEnable( Boolean heatedWindshieldEnable) {
setValue(KEY_HEATED_WIND_SHIELD_ENABLE, heatedWindshieldEnable);
+ return this;
}
/**
@@ -182,8 +194,9 @@ public class ClimateControlData extends RPCStruct{
*
* @param heatedRearWindowEnable Value false means disabled, value true means enabled.
*/
- public void setHeatedRearWindowEnable(Boolean heatedRearWindowEnable) {
+ public ClimateControlData setHeatedRearWindowEnable( Boolean heatedRearWindowEnable) {
setValue(KEY_HEATED_REAR_WINDOW_ENABLE, heatedRearWindowEnable);
+ return this;
}
/**
@@ -200,8 +213,9 @@ public class ClimateControlData extends RPCStruct{
*
* @param heatedMirrorsEnable Value false means disabled, value true means enabled.
*/
- public void setHeatedMirrorsEnable(Boolean heatedMirrorsEnable) {
+ public ClimateControlData setHeatedMirrorsEnable( Boolean heatedMirrorsEnable) {
setValue(KEY_HEATED_MIRRORS_ENABLE, heatedMirrorsEnable);
+ return this;
}
/**
@@ -218,8 +232,9 @@ public class ClimateControlData extends RPCStruct{
*
* @param climateEnable Value false means disabled, value true means enabled.
*/
- public void setClimateEnable(Boolean climateEnable) {
+ public ClimateControlData setClimateEnable( Boolean climateEnable) {
setValue(KEY_CLIMATE_ENABLE, climateEnable);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/CloudAppProperties.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/CloudAppProperties.java
index 1c81ce95b..59035fc27 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/CloudAppProperties.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/CloudAppProperties.java
@@ -63,8 +63,9 @@ public class CloudAppProperties extends RPCStruct {
setValue(KEY_APP_ID, appID);
}
- public void setNicknames(List<String> nicknames){
+ public CloudAppProperties setNicknames( List<String> nicknames) {
setValue(KEY_NICKNAMES, nicknames);
+ return this;
}
@SuppressWarnings("unchecked")
@@ -72,8 +73,9 @@ public class CloudAppProperties extends RPCStruct {
return (List<String>) getObject(String.class, KEY_NICKNAMES);
}
- public void setAppID(@NonNull String appID){
+ public CloudAppProperties setAppID(@NonNull String appID) {
setValue(KEY_APP_ID, appID);
+ return this;
}
public String getAppID(){
@@ -84,8 +86,9 @@ public class CloudAppProperties extends RPCStruct {
* If true, this cloud app entry will designate it should appear in the HMI
* @param enabled if the app should be
*/
- public void setEnabled(boolean enabled){
+ public CloudAppProperties setEnabled( boolean enabled) {
setValue(KEY_ENABLED, enabled);
+ return this;
}
/**
@@ -95,24 +98,27 @@ public class CloudAppProperties extends RPCStruct {
return getBoolean(KEY_ENABLED);
}
- public void setAuthToken(String token){
+ public CloudAppProperties setAuthToken( String token) {
setValue(KEY_AUTH_TOKEN, token);
+ return this;
}
public String getAuthToken(){
return getString(KEY_AUTH_TOKEN);
}
- public void setCloudTransportType(String transportType){
+ public CloudAppProperties setCloudTransportType( String transportType) {
setValue(KEY_CLOUD_TRANSPORT_TYPE, transportType);
+ return this;
}
public String getCloudTransportType(){
return getString(KEY_CLOUD_TRANSPORT_TYPE);
}
- public void setHybridAppPreference(HybridAppPreference hybridAppPreference){
+ public CloudAppProperties setHybridAppPreference( HybridAppPreference hybridAppPreference) {
setValue(KEY_HYBRID_APP_PREFERENCE, hybridAppPreference);
+ return this;
}
public HybridAppPreference getHybridAppPreference(){
@@ -122,8 +128,9 @@ public class CloudAppProperties extends RPCStruct {
/**
* @param token - max length ="65535"
*/
- public void setEndpoint(String token){
+ public CloudAppProperties setEndpoint( String token) {
setValue(KEY_ENDPOINT, token);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ClusterModeStatus.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ClusterModeStatus.java
index 98aa2a060..94b3aed05 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ClusterModeStatus.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ClusterModeStatus.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -109,27 +109,31 @@ public class ClusterModeStatus extends RPCStruct {
setPowerModeStatus(powerModeStatus);
}
- public void setPowerModeActive(@NonNull Boolean powerModeActive) {
- setValue(KEY_POWER_MODE_ACTIVE, powerModeActive);
- }
+ public ClusterModeStatus setPowerModeActive(@NonNull Boolean powerModeActive) {
+ setValue(KEY_POWER_MODE_ACTIVE, powerModeActive);
+ return this;
+ }
public Boolean getPowerModeActive() {
return getBoolean(KEY_POWER_MODE_ACTIVE);
}
- public void setPowerModeQualificationStatus(@NonNull PowerModeQualificationStatus powerModeQualificationStatus) {
- setValue(KEY_POWER_MODE_QUALIFICATION_STATUS, powerModeQualificationStatus);
- }
+ public ClusterModeStatus setPowerModeQualificationStatus(@NonNull PowerModeQualificationStatus powerModeQualificationStatus) {
+ setValue(KEY_POWER_MODE_QUALIFICATION_STATUS, powerModeQualificationStatus);
+ return this;
+ }
public PowerModeQualificationStatus getPowerModeQualificationStatus() {
return (PowerModeQualificationStatus) getObject(PowerModeQualificationStatus.class, KEY_POWER_MODE_QUALIFICATION_STATUS);
}
- public void setCarModeStatus(@NonNull CarModeStatus carModeStatus) {
- setValue(KEY_CAR_MODE_STATUS, carModeStatus);
- }
+ public ClusterModeStatus setCarModeStatus(@NonNull CarModeStatus carModeStatus) {
+ setValue(KEY_CAR_MODE_STATUS, carModeStatus);
+ return this;
+ }
public CarModeStatus getCarModeStatus() {
return (CarModeStatus) getObject(CarModeStatus.class, KEY_CAR_MODE_STATUS);
}
- public void setPowerModeStatus(@NonNull PowerModeStatus powerModeStatus) {
- setValue(KEY_POWER_MODE_STATUS, powerModeStatus);
- }
+ public ClusterModeStatus setPowerModeStatus(@NonNull PowerModeStatus powerModeStatus) {
+ setValue(KEY_POWER_MODE_STATUS, powerModeStatus);
+ return this;
+ }
public PowerModeStatus getPowerModeStatus() {
return (PowerModeStatus) getObject(PowerModeStatus.class, KEY_POWER_MODE_STATUS);
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/Coordinate.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/Coordinate.java
index 970692dab..bc41103d5 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/Coordinate.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/Coordinate.java
@@ -60,8 +60,9 @@ public class Coordinate extends RPCStruct{
return SdlDataTypeConverter.objectToFloat(value);
}
- public void setLatitudeDegrees(@NonNull Float latitudeDegrees) {
+ public Coordinate setLatitudeDegrees(@NonNull Float latitudeDegrees) {
setValue(KEY_LATITUDE_DEGREES, latitudeDegrees);
+ return this;
}
public Float getLongitudeDegrees() {
@@ -69,7 +70,8 @@ public class Coordinate extends RPCStruct{
return SdlDataTypeConverter.objectToFloat(value);
}
- public void setLongitudeDegrees(@NonNull Float longitudeDegrees) {
+ public Coordinate setLongitudeDegrees(@NonNull Float longitudeDegrees) {
setValue(KEY_LONGITUDE_DEGREES, longitudeDegrees);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/CreateInteractionChoiceSet.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/CreateInteractionChoiceSet.java
index be638065b..32e09dde3 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/CreateInteractionChoiceSet.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/CreateInteractionChoiceSet.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -148,14 +148,15 @@ public class CreateInteractionChoiceSet extends RPCRequest {
}
/**
* Sets a unique ID that identifies the Choice Set
- *
+ *
* @param interactionChoiceSetID
* an Integer value representing the Choice Set ID
- *
+ *
* <b>Notes: </b>Min Value: 0; Max Value: 2000000000
- */
- public void setInteractionChoiceSetID( @NonNull Integer interactionChoiceSetID ) {
- setParameters(KEY_INTERACTION_CHOICE_SET_ID, interactionChoiceSetID);
+ */
+ public CreateInteractionChoiceSet setInteractionChoiceSetID(@NonNull Integer interactionChoiceSetID) {
+ setParameters(KEY_INTERACTION_CHOICE_SET_ID, interactionChoiceSetID);
+ return this;
}
/**
* Gets Choice Set Array of one or more elements
@@ -169,14 +170,15 @@ public class CreateInteractionChoiceSet extends RPCRequest {
}
/**
* Sets a Choice Set that is an Array of one or more elements
- *
+ *
* @param choiceSet
* a List<Choice> representing the array of one or more
* elements
- *
+ *
* <b>Notes: </b>Min Value: 1; Max Value: 100
- */
- public void setChoiceSet( @NonNull List<Choice> choiceSet ) {
- setParameters(KEY_CHOICE_SET, choiceSet);
+ */
+ public CreateInteractionChoiceSet setChoiceSet(@NonNull List<Choice> choiceSet) {
+ setParameters(KEY_CHOICE_SET, choiceSet);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/CreateWindow.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/CreateWindow.java
index 6184bb059..976d00f9e 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/CreateWindow.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/CreateWindow.java
@@ -60,8 +60,9 @@ public class CreateWindow extends RPCRequest {
*
* @param windowID A unique ID to identify the window. The value of '0' will always be the default main window on the main display and should not be used in this context as it will already be created for the app. See PredefinedWindows enum. Creating a window with an ID that is already in use will be rejected with `INVALID_ID`.
*/
- public void setWindowID(@NonNull Integer windowID) {
+ public CreateWindow setWindowID(@NonNull Integer windowID) {
setParameters(KEY_WINDOW_ID, windowID);
+ return this;
}
/**
@@ -83,8 +84,9 @@ public class CreateWindow extends RPCRequest {
* Multiple apps can share the same window name except for the default main window.
* {@code windowName.length() <= 100}
*/
- public void setWindowName(@NonNull String windowName) {
+ public CreateWindow setWindowName(@NonNull String windowName) {
setParameters(KEY_WINDOW_NAME, windowName);
+ return this;
}
/**
@@ -101,8 +103,9 @@ public class CreateWindow extends RPCRequest {
*
* @param type The type of the window to be created. Main window or widget.
*/
- public void setType(@NonNull WindowType type) {
+ public CreateWindow setType(@NonNull WindowType type) {
setParameters(KEY_TYPE, type);
+ return this;
}
/**
@@ -127,8 +130,9 @@ public class CreateWindow extends RPCRequest {
* @param associatedServiceType Allows an app to create a widget related to a specific service type.
* As an example if a `MEDIA` app becomes active, this app becomes audible and is allowed to play audio.
*/
- public void setAssociatedServiceType(String associatedServiceType) {
+ public CreateWindow setAssociatedServiceType( String associatedServiceType) {
setParameters(KEY_ASSOCIATED_SERVICE_TYPE, associatedServiceType);
+ return this;
}
/**
@@ -148,8 +152,9 @@ public class CreateWindow extends RPCRequest {
*
* @param duplicateUpdatesFromWindowID Specify whether the content sent to an existing window should be duplicated to the created window.
*/
- public void setDuplicateUpdatesFromWindowID(Integer duplicateUpdatesFromWindowID) {
+ public CreateWindow setDuplicateUpdatesFromWindowID( Integer duplicateUpdatesFromWindowID) {
setParameters(KEY_DUPLICATE_UPDATES_FROM_WINDOW_ID, duplicateUpdatesFromWindowID);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DIDResult.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DIDResult.java
index 8cd8e9c18..73d45282d 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DIDResult.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DIDResult.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -96,20 +96,23 @@ public class DIDResult extends RPCStruct {
setResultCode(resultCode);
setDidLocation(didLocation);
}
- public void setResultCode(@NonNull VehicleDataResultCode resultCode) {
- setValue(KEY_RESULT_CODE, resultCode);
+ public DIDResult setResultCode(@NonNull VehicleDataResultCode resultCode) {
+ setValue(KEY_RESULT_CODE, resultCode);
+ return this;
}
public VehicleDataResultCode getResultCode() {
return (VehicleDataResultCode) getObject(VehicleDataResultCode.class, KEY_RESULT_CODE);
}
- public void setDidLocation(@NonNull Integer didLocation) {
- setValue(KEY_DID_LOCATION, didLocation);
+ public DIDResult setDidLocation(@NonNull Integer didLocation) {
+ setValue(KEY_DID_LOCATION, didLocation);
+ return this;
}
public Integer getDidLocation() {
return getInteger(KEY_DID_LOCATION);
}
- public void setData(String data) {
- setValue(KEY_DATA, data);
+ public DIDResult setData( String data) {
+ setValue(KEY_DATA, data);
+ return this;
}
public String getData() {
return getString(KEY_DATA);
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DTC.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DTC.java
index 697514a08..9b7623129 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DTC.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DTC.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import com.smartdevicelink.proxy.RPCStruct;
@@ -78,8 +78,9 @@ public class DTC extends RPCStruct {
* set identifier
* @param identifier the hexadecimal id of the DTC
*/
- public void setIdentifier(String identifier) {
- setValue(KEY_IDENTIFIER, identifier);
+ public DTC setIdentifier( String identifier) {
+ setValue(KEY_IDENTIFIER, identifier);
+ return this;
}
/**
@@ -94,8 +95,9 @@ public class DTC extends RPCStruct {
* set Hexadecimal byte string
* @param statusByte Hexadecimal byte string
*/
- public void setStatusByte(String statusByte) {
- setValue(KEY_STATUS_BYTE, statusByte);
+ public DTC setStatusByte( String statusByte) {
+ setValue(KEY_STATUS_BYTE, statusByte);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DateTime.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DateTime.java
index 2335743d0..ab3f61140 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DateTime.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DateTime.java
@@ -66,13 +66,14 @@ public class DateTime extends RPCStruct{
/**
* Sets the Milliseconds portion of the DateTime class
- *
+ *
* @param milliSecond
* The milliseconds associated with this DateTime class
- *
- */
- public void setMilliSecond(Integer milliSecond) {
+ *
+ */
+ public DateTime setMilliSecond( Integer milliSecond) {
setValue(KEY_MILLISECOND, milliSecond);
+ return this;
}
@@ -88,13 +89,14 @@ public class DateTime extends RPCStruct{
/**
* Sets the Seconds portion of the DateTime class
- *
+ *
* @param second
* The Seconds associated with this DateTime class
- *
+ *
*/
- public void setSecond(Integer second) {
+ public DateTime setSecond( Integer second) {
setValue(KEY_SECOND, second);
+ return this;
}
@@ -110,13 +112,14 @@ public class DateTime extends RPCStruct{
/**
* Sets the Minutes portion of the DateTime class
- *
+ *
* @param minute
* The Minutes associated with this DateTime class
- *
- */
- public void setMinute(Integer minute) {
+ *
+ */
+ public DateTime setMinute( Integer minute) {
setValue(KEY_MINUTE, minute);
+ return this;
}
/**
@@ -130,14 +133,15 @@ public class DateTime extends RPCStruct{
}
/**
- * Sets the Hours portion of the DateTime class.
- *
+ * Sets the Hours portion of the DateTime class.
+ *
* @param hour
* The Hours associated with this DateTime class. This structure is used to store hours in a 24 hour format.
- *
- */
- public void setHour(Integer hour) {
+ *
+ */
+ public DateTime setHour( Integer hour) {
setValue(KEY_HOUR, hour);
+ return this;
}
/**
@@ -152,13 +156,14 @@ public class DateTime extends RPCStruct{
/**
* Sets the Day portion of the DateTime class
- *
+ *
* @param day
* The Day of the month associated with this DateTime class
- *
- */
- public void setDay(Integer day) {
+ *
+ */
+ public DateTime setDay( Integer day) {
setValue(KEY_DAY, day);
+ return this;
}
/**
@@ -173,13 +178,14 @@ public class DateTime extends RPCStruct{
/**
* Sets the Month portion of the DateTime class
- *
+ *
* @param month
* The Month of the year associate with this DateTime class
- *
- */
- public void setMonth(Integer month) {
+ *
+ */
+ public DateTime setMonth( Integer month) {
setValue(KEY_MONTH, month);
+ return this;
}
/**
@@ -194,13 +200,14 @@ public class DateTime extends RPCStruct{
/**
* Sets the Year portion of the DateTime class
- *
+ *
* @param year
* The Year in YYYY format associated with this DateTime class
- *
- */
- public void setYear(Integer year) {
+ *
+ */
+ public DateTime setYear( Integer year) {
setValue(KEY_YEAR, year);
+ return this;
}
/**
@@ -215,13 +222,14 @@ public class DateTime extends RPCStruct{
/**
* Sets the Time Zone Hours portion of the DateTime class
- *
+ *
* @param tzHour
* The time zone offset in Hours with regard to UTC time associated with this DateTime class
- *
- */
- public void setTzHour(Integer tzHour) {
+ *
+ */
+ public DateTime setTzHour( Integer tzHour) {
setValue(KEY_TZ_HOUR, tzHour);
+ return this;
}
/**
@@ -236,11 +244,12 @@ public class DateTime extends RPCStruct{
/**
* Sets the Time Zone Minutes portion of the DateTime class
- *
+ *
* @param tzMinute
* The time zone offset in Minutes with regard to UTC associated with this DateTime class
- */
- public void setTzMinute(Integer tzMinute) {
+ */
+ public DateTime setTzMinute( Integer tzMinute) {
setValue(KEY_TZ_MINUTE, tzMinute);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteCommand.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteCommand.java
index e102e9427..35b96387f 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteCommand.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteCommand.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -125,13 +125,14 @@ public class DeleteCommand extends RPCRequest {
}
/**
* Sets the Command ID that identifies the Command to be deleted from Command Menu
- *
+ *
* @param cmdID
* an Integer value representing Command ID
- *
+ *
* <p><b>Notes: </b>Min Value: 0; Max Value: 2000000000</p>
- */
- public void setCmdID( @NonNull Integer cmdID ) {
- setParameters(KEY_CMD_ID, cmdID);
+ */
+ public DeleteCommand setCmdID(@NonNull Integer cmdID) {
+ setParameters(KEY_CMD_ID, cmdID);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteFile.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteFile.java
index 177171027..b855f1bbf 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteFile.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteFile.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -105,12 +105,13 @@ public class DeleteFile extends RPCRequest {
/**
* Sets a file reference name
- *
+ *
* @param sdlFileName
* a String value representing a file reference name
*/
- public void setSdlFileName(@NonNull String sdlFileName) {
- setParameters(KEY_SDL_FILE_NAME, sdlFileName);
+ public DeleteFile setSdlFileName(@NonNull String sdlFileName) {
+ setParameters(KEY_SDL_FILE_NAME, sdlFileName);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteFileResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteFileResponse.java
index e1076935b..bea9a1b65 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteFileResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteFileResponse.java
@@ -90,8 +90,9 @@ public class DeleteFileResponse extends RPCResponse {
super.format(rpcVersion, formatParams);
}
- public void setSpaceAvailable(Integer spaceAvailable) {
+ public DeleteFileResponse setSpaceAvailable( Integer spaceAvailable) {
setParameters(KEY_SPACE_AVAILABLE, spaceAvailable);
+ return this;
}
public Integer getSpaceAvailable() {
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteInteractionChoiceSet.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteInteractionChoiceSet.java
index e3d0d5c86..3bfc56e72 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteInteractionChoiceSet.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteInteractionChoiceSet.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -131,8 +131,9 @@ public class DeleteInteractionChoiceSet extends RPCRequest {
* Sets a unique ID that identifies the Choice Set
* @param interactionChoiceSetID a unique ID that identifies the Choice Set
* <p><b>Notes: </b>Min Value: 0; Max Value: 2000000000 </p>
- */
- public void setInteractionChoiceSetID( @NonNull Integer interactionChoiceSetID ) {
- setParameters(KEY_INTERACTION_CHOICE_SET_ID, interactionChoiceSetID);
+ */
+ public DeleteInteractionChoiceSet setInteractionChoiceSetID(@NonNull Integer interactionChoiceSetID) {
+ setParameters(KEY_INTERACTION_CHOICE_SET_ID, interactionChoiceSetID);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteSubMenu.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteSubMenu.java
index e526013c8..22306a668 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteSubMenu.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteSubMenu.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -118,12 +118,13 @@ public class DeleteSubMenu extends RPCRequest {
return getInteger( KEY_MENU_ID );
}
/**
- * Sets the MenuID that identifies the SubMenu to be delete
+ * Sets the MenuID that identifies the SubMenu to be delete
* @param menuID an Integer value representing menuID that identifies the SubMenu to be delete
- *
+ *
* <p><b>Notes: </b>Min Value: 0; Max Value: 2000000000</p>
- */
- public void setMenuID( @NonNull Integer menuID ) {
+ */
+ public DeleteSubMenu setMenuID(@NonNull Integer menuID) {
setParameters(KEY_MENU_ID, menuID);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteWindow.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteWindow.java
index 4e78b95a7..06c00736a 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteWindow.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DeleteWindow.java
@@ -50,8 +50,9 @@ public class DeleteWindow extends RPCRequest {
*
* @param windowID A unique ID to identify the window. The value of '0' will always be the default main window on the main display and should not be used in this context as it will already be created for the app. See PredefinedWindows enum. Creating a window with an ID that is already in use will be rejected with `INVALID_ID`.
*/
- public void setWindowID(@NonNull Integer windowID) {
+ public DeleteWindow setWindowID(@NonNull Integer windowID) {
setParameters(KEY_WINDOW_ID, windowID);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DeviceInfo.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DeviceInfo.java
index c19068eb0..7c98b1e84 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DeviceInfo.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DeviceInfo.java
@@ -119,41 +119,46 @@ public class DeviceInfo extends RPCStruct{
super(hash);
}
- public void setHardware(String hardware) {
+ public DeviceInfo setHardware( String hardware) {
setValue(KEY_HARDWARE, hardware);
- }
+ return this;
+ }
public String getHardware() {
return getString(KEY_HARDWARE);
}
- public void setFirmwareRev(String firmwareRev) {
- setValue(KEY_FIRMWARE_REV, firmwareRev);
- }
+ public DeviceInfo setFirmwareRev( String firmwareRev) {
+ setValue(KEY_FIRMWARE_REV, firmwareRev);
+ return this;
+ }
public String getFirmwareRev() {
return getString(KEY_FIRMWARE_REV);
}
- public void setOs(String os) {
- setValue(KEY_OS, os);
- }
+ public DeviceInfo setOs( String os) {
+ setValue(KEY_OS, os);
+ return this;
+ }
public String getOs() {
return getString(KEY_OS);
}
- public void setOsVersion(String osVersion) {
- setValue(KEY_OS_VERSION, osVersion);
-}
+ public DeviceInfo setOsVersion( String osVersion) {
+ setValue(KEY_OS_VERSION, osVersion);
+ return this;
+ }
public String getOsVersion() {
return getString(KEY_OS_VERSION);
}
-public void setCarrier(String carrier) {
- setValue(KEY_CARRIER, carrier);
-}
+public DeviceInfo setCarrier( String carrier) {
+ setValue(KEY_CARRIER, carrier);
+ return this;
+ }
public String getCarrier() {
return getString(KEY_CARRIER);
@@ -163,8 +168,9 @@ public Integer getMaxNumberRFCOMMPorts() {
return getInteger( KEY_MAX_NUMBER_RFCOMM_PORTS );
}
-public void setMaxNumberRFCOMMPorts( Integer maxNumberRFCOMMPorts ) {
- setValue(KEY_MAX_NUMBER_RFCOMM_PORTS, maxNumberRFCOMMPorts);
-}
+public DeviceInfo setMaxNumberRFCOMMPorts( Integer maxNumberRFCOMMPorts) {
+ setValue(KEY_MAX_NUMBER_RFCOMM_PORTS, maxNumberRFCOMMPorts);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DeviceStatus.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DeviceStatus.java
index 8748014f2..78ff3a91b 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DeviceStatus.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DeviceStatus.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -194,8 +194,9 @@ public class DeviceStatus extends RPCStruct {
* set the voice recognition on or off
* @param voiceRecOn
*/
- public void setVoiceRecOn(@NonNull Boolean voiceRecOn) {
+ public DeviceStatus setVoiceRecOn(@NonNull Boolean voiceRecOn) {
setValue(KEY_VOICE_REC_ON, voiceRecOn);
+ return this;
}
/**
@@ -210,8 +211,9 @@ public class DeviceStatus extends RPCStruct {
* set the bluetooth connection established
* @param btIconOn the bluetooth connection established
*/
- public void setBtIconOn(@NonNull Boolean btIconOn) {
+ public DeviceStatus setBtIconOn(@NonNull Boolean btIconOn) {
setValue(KEY_BT_ICON_ON, btIconOn);
+ return this;
}
/**
@@ -226,8 +228,9 @@ public class DeviceStatus extends RPCStruct {
* set a call is being active
* @param callActive a call is being active
*/
- public void setCallActive(@NonNull Boolean callActive) {
+ public DeviceStatus setCallActive(@NonNull Boolean callActive) {
setValue(KEY_CALL_ACTIVE, callActive);
+ return this;
}
/**
@@ -242,8 +245,9 @@ public class DeviceStatus extends RPCStruct {
* set the phone is in roaming mode
* @param phoneRoaming the phone is in roaming mode
*/
- public void setPhoneRoaming(@NonNull Boolean phoneRoaming) {
+ public DeviceStatus setPhoneRoaming(@NonNull Boolean phoneRoaming) {
setValue(KEY_PHONE_ROAMING, phoneRoaming);
+ return this;
}
/**
@@ -253,8 +257,9 @@ public class DeviceStatus extends RPCStruct {
public Boolean getPhoneRoaming() {
return getBoolean(KEY_PHONE_ROAMING);
}
- public void setTextMsgAvailable(@NonNull Boolean textMsgAvailable) {
+ public DeviceStatus setTextMsgAvailable(@NonNull Boolean textMsgAvailable) {
setValue(KEY_TEXT_MSG_AVAILABLE, textMsgAvailable);
+ return this;
}
/**
@@ -269,8 +274,9 @@ public class DeviceStatus extends RPCStruct {
* set battery level status
* @param battLevelStatus battery level status
*/
- public void setBattLevelStatus(@NonNull DeviceLevelStatus battLevelStatus) {
+ public DeviceStatus setBattLevelStatus(@NonNull DeviceLevelStatus battLevelStatus) {
setValue(KEY_BATT_LEVEL_STATUS, battLevelStatus);
+ return this;
}
/**
@@ -285,8 +291,9 @@ public class DeviceStatus extends RPCStruct {
* set the status of the stereo audio output channel
* @param stereoAudioOutputMuted the status of the stereo audio output channel
*/
- public void setStereoAudioOutputMuted(@NonNull Boolean stereoAudioOutputMuted) {
+ public DeviceStatus setStereoAudioOutputMuted(@NonNull Boolean stereoAudioOutputMuted) {
setValue(KEY_STEREO_AUDIO_OUTPUT_MUTED, stereoAudioOutputMuted);
+ return this;
}
/**
@@ -301,8 +308,9 @@ public class DeviceStatus extends RPCStruct {
* set the status of the mono audio output channel
* @param monoAudioOutputMuted the status of the mono audio output channel
*/
- public void setMonoAudioOutputMuted(@NonNull Boolean monoAudioOutputMuted) {
+ public DeviceStatus setMonoAudioOutputMuted(@NonNull Boolean monoAudioOutputMuted) {
setValue(KEY_MONO_AUDIO_OUTPUT_MUTED, monoAudioOutputMuted);
+ return this;
}
/**
@@ -317,8 +325,9 @@ public class DeviceStatus extends RPCStruct {
* set signal level status
* @param signalLevelStatus signal level status
*/
- public void setSignalLevelStatus(@NonNull DeviceLevelStatus signalLevelStatus) {
+ public DeviceStatus setSignalLevelStatus(@NonNull DeviceLevelStatus signalLevelStatus) {
setValue(KEY_SIGNAL_LEVEL_STATUS, signalLevelStatus);
+ return this;
}
/**
@@ -333,8 +342,9 @@ public class DeviceStatus extends RPCStruct {
* set the current primary audio source of SDL (if selected).
* @param primaryAudioSource the current primary audio source of SDL (if selected).
*/
- public void setPrimaryAudioSource(@NonNull PrimaryAudioSource primaryAudioSource) {
+ public DeviceStatus setPrimaryAudioSource(@NonNull PrimaryAudioSource primaryAudioSource) {
setValue(KEY_PRIMARY_AUDIO_SOURCE, primaryAudioSource);
+ return this;
}
/**
@@ -344,8 +354,9 @@ public class DeviceStatus extends RPCStruct {
public PrimaryAudioSource getPrimaryAudioSource() {
return (PrimaryAudioSource) getObject(PrimaryAudioSource.class, KEY_PRIMARY_AUDIO_SOURCE);
}
- public void setECallEventActive(@NonNull Boolean eCallEventActive) {
+ public DeviceStatus setECallEventActive(@NonNull Boolean eCallEventActive) {
setValue(KEY_E_CALL_EVENT_ACTIVE, eCallEventActive);
+ return this;
}
public Boolean getECallEventActive() {
return getBoolean(KEY_E_CALL_EVENT_ACTIVE);
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DiagnosticMessage.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DiagnosticMessage.java
index effba93a9..ddfcccf7c 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DiagnosticMessage.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DiagnosticMessage.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -123,8 +123,9 @@ public class DiagnosticMessage extends RPCRequest {
*
* @param targetID the target for this Diagnostic Message
*/
- public void setTargetID(@NonNull Integer targetID) {
- setParameters(KEY_TARGET_ID, targetID);
+ public DiagnosticMessage setTargetID(@NonNull Integer targetID) {
+ setParameters(KEY_TARGET_ID, targetID);
+ return this;
}
/**
@@ -138,8 +139,9 @@ public class DiagnosticMessage extends RPCRequest {
return getInteger(KEY_TARGET_ID);
}
- public void setMessageLength(@NonNull Integer messageLength) {
- setParameters(KEY_MESSAGE_LENGTH, messageLength);
+ public DiagnosticMessage setMessageLength(@NonNull Integer messageLength) {
+ setParameters(KEY_MESSAGE_LENGTH, messageLength);
+ return this;
}
public Integer getMessageLength() {
return getInteger(KEY_MESSAGE_LENGTH);
@@ -150,7 +152,8 @@ public class DiagnosticMessage extends RPCRequest {
return (List<Integer>) getObject(Integer.class, KEY_MESSAGE_DATA);
}
- public void setMessageData(@NonNull List<Integer> messageData) {
- setParameters(KEY_MESSAGE_DATA, messageData);
- }
+ public DiagnosticMessage setMessageData(@NonNull List<Integer> messageData) {
+ setParameters(KEY_MESSAGE_DATA, messageData);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DiagnosticMessageResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DiagnosticMessageResponse.java
index c1a1cf5cb..38aee38b0 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DiagnosticMessageResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DiagnosticMessageResponse.java
@@ -74,8 +74,9 @@ public class DiagnosticMessageResponse extends RPCResponse {
return (List<Integer>) getObject(Integer.class, KEY_MESSAGE_DATA_RESULT);
}
- public void setMessageDataResult(List<Integer> messageDataResult) {
+ public DiagnosticMessageResponse setMessageDataResult( List<Integer> messageDataResult) {
setParameters(KEY_MESSAGE_DATA_RESULT, messageDataResult);
+ return this;
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DialNumber.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DialNumber.java
index 989617456..472bca08d 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DialNumber.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DialNumber.java
@@ -68,11 +68,12 @@ public class DialNumber extends RPCRequest {
* <b>Notes: </b>Maxlength=40</p>
* All characters shall be stripped from string except digits 0-9 and * # , ; +
*/
- public void setNumber(@NonNull String number) {
+ public DialNumber setNumber(@NonNull String number) {
if (number != null) {
number = number.replaceAll("[^0-9*#,;+]", ""); //This will sanitize the input
}
setParameters(KEY_NUMBER, number);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DisplayCapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DisplayCapabilities.java
index 43b4b408e..15d9c5f39 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DisplayCapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DisplayCapabilities.java
@@ -167,8 +167,9 @@ public class DisplayCapabilities extends RPCStruct {
* @param displayType the display type
*/
@Deprecated
- public void setDisplayType( @NonNull DisplayType displayType ) {
+ public DisplayCapabilities setDisplayType(@NonNull DisplayType displayType) {
setValue(KEY_DISPLAY_TYPE, displayType);
+ return this;
}
/** Get the name of the display
* @return the name of the display
@@ -180,8 +181,9 @@ public class DisplayCapabilities extends RPCStruct {
* Set the name of the display
* @param displayName the name of the display
*/
- public void setDisplayName( String displayName ) {
+ public DisplayCapabilities setDisplayName( String displayName) {
setValue(KEY_DISPLAY_NAME, displayName);
+ return this;
}
/**
*Get an array of TextField structures, each of which describes a field in the HMI which the application can write to using operations such as <i>{@linkplain Show}</i>, <i>{@linkplain SetMediaClockTimer}</i>, etc.
@@ -193,12 +195,13 @@ public class DisplayCapabilities extends RPCStruct {
return (List<TextField>) getObject(TextField.class, KEY_TEXT_FIELDS);
}
/**
- * Set an array of TextField structures, each of which describes a field in the HMI which the application can write to using operations such as <i>{@linkplain Show}</i>, <i>{@linkplain SetMediaClockTimer}</i>, etc.
+ * Set an array of TextField structures, each of which describes a field in the HMI which the application can write to using operations such as <i>{@linkplain Show}</i>, <i>{@linkplain SetMediaClockTimer}</i>, etc.
* This array of TextField structures identify all the text fields to which the application can write on the current display (identified by DisplayType ).
* @param textFields the List of textFields
- */
- public void setTextFields( @NonNull List<TextField> textFields ) {
+ */
+ public DisplayCapabilities setTextFields(@NonNull List<TextField> textFields) {
setValue(KEY_TEXT_FIELDS, textFields);
+ return this;
}
@@ -208,16 +211,18 @@ public class DisplayCapabilities extends RPCStruct {
return (List<ImageField>) getObject(ImageField.class, KEY_IMAGE_FIELDS);
}
- public void setImageFields( List<ImageField> imageFields ) {
+ public DisplayCapabilities setImageFields( List<ImageField> imageFields) {
setValue(KEY_IMAGE_FIELDS, imageFields);
- }
+ return this;
+ }
public Integer getNumCustomPresetsAvailable() {
return getInteger(KEY_NUM_CUSTOM_PRESETS_AVAILABLE);
}
- public void setNumCustomPresetsAvailable(Integer numCustomPresetsAvailable) {
+ public DisplayCapabilities setNumCustomPresetsAvailable( Integer numCustomPresetsAvailable) {
setValue(KEY_NUM_CUSTOM_PRESETS_AVAILABLE, numCustomPresetsAvailable);
+ return this;
}
/**
@@ -231,9 +236,10 @@ public class DisplayCapabilities extends RPCStruct {
/**
* Set an array of MediaClockFormat elements, defining the valid string formats used in specifying the contents of the media clock field
* @param mediaClockFormats the List of MediaClockFormat
- */
- public void setMediaClockFormats( @NonNull List<MediaClockFormat> mediaClockFormats ) {
+ */
+ public DisplayCapabilities setMediaClockFormats(@NonNull List<MediaClockFormat> mediaClockFormats) {
setValue(KEY_MEDIA_CLOCK_FORMATS, mediaClockFormats);
+ return this;
}
/**
@@ -241,8 +247,9 @@ public class DisplayCapabilities extends RPCStruct {
* @param graphicSupported true if the display supports graphics, false if it does not
* @since SmartDeviceLink 2.0
*/
- public void setGraphicSupported(@NonNull Boolean graphicSupported) {
- setValue(KEY_GRAPHIC_SUPPORTED, graphicSupported);
+ public DisplayCapabilities setGraphicSupported(@NonNull Boolean graphicSupported) {
+ setValue(KEY_GRAPHIC_SUPPORTED, graphicSupported);
+ return this;
}
/**
@@ -259,12 +266,14 @@ public class DisplayCapabilities extends RPCStruct {
return (List<String>) getObject(String.class, KEY_TEMPLATES_AVAILABLE);
}
- public void setTemplatesAvailable(List<String> templatesAvailable) {
+ public DisplayCapabilities setTemplatesAvailable( List<String> templatesAvailable) {
setValue(KEY_TEMPLATES_AVAILABLE, templatesAvailable);
+ return this;
}
- public void setScreenParams(ScreenParams screenParams) {
+ public DisplayCapabilities setScreenParams( ScreenParams screenParams) {
setValue(KEY_SCREEN_PARAMS, screenParams);
+ return this;
}
@SuppressWarnings("unchecked")
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DisplayCapability.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DisplayCapability.java
index 992083689..a071d915f 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DisplayCapability.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DisplayCapability.java
@@ -36,8 +36,9 @@ public class DisplayCapability extends RPCStruct {
*
* @param displayName the name of the display
*/
- public void setDisplayName(String displayName) {
+ public DisplayCapability setDisplayName( String displayName) {
setValue(KEY_DISPLAY_NAME, displayName);
+ return this;
}
/**
@@ -46,8 +47,9 @@ public class DisplayCapability extends RPCStruct {
*
* @param windowTypeSupported It informs the application how many windows the app is allowed to create per type.
*/
- public void setWindowTypeSupported(List<WindowTypeCapabilities> windowTypeSupported) {
+ public DisplayCapability setWindowTypeSupported( List<WindowTypeCapabilities> windowTypeSupported) {
setValue(KEY_WINDOW_TYPE_SUPPORTED, windowTypeSupported);
+ return this;
}
/**
@@ -72,8 +74,9 @@ public class DisplayCapability extends RPCStruct {
* 1. App creates a new window. After the window is created, a system capability notification will be sent related only to the created window.
* 2. App sets a new template to the window. The new template changes window capabilties. The notification will reflect those changes to the single window.
*/
- public void setWindowCapabilities(List<WindowCapability> windowCapabilities) {
+ public DisplayCapability setWindowCapabilities( List<WindowCapability> windowCapabilities) {
setValue(KEY_WINDOW_CAPABILITIES, windowCapabilities);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DriverDistractionCapability.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DriverDistractionCapability.java
index c09a77f46..67d9bb434 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DriverDistractionCapability.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DriverDistractionCapability.java
@@ -87,8 +87,9 @@ public class DriverDistractionCapability extends RPCStruct {
*
* @param menuLength The number of items allowed in a Choice Set or Command menu while the driver is distracted
*/
- public void setMenuLength(Integer menuLength) {
+ public DriverDistractionCapability setMenuLength( Integer menuLength) {
setValue(KEY_MENU_LENGTH, menuLength);
+ return this;
}
/**
@@ -106,8 +107,9 @@ public class DriverDistractionCapability extends RPCStruct {
* @param subMenuDepth The depth of submenus allowed when the driver is distracted. e.g. 3 == top level menu ->
* submenu -> submenu; 1 == top level menu only
*/
- public void setSubMenuDepth(Integer subMenuDepth) {
+ public DriverDistractionCapability setSubMenuDepth( Integer subMenuDepth) {
setValue(KEY_SUB_MENU_DEPTH, subMenuDepth);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/DynamicUpdateCapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/DynamicUpdateCapabilities.java
index f8b16ce29..d70523356 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/DynamicUpdateCapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/DynamicUpdateCapabilities.java
@@ -93,8 +93,9 @@ public class DynamicUpdateCapabilities extends RPCStruct {
* you upload the data with PutFile at a later point when the HMI needs it. The HMI will then
* display the image in the appropriate field. If not sent, assume false.
*/
- public void setSupportedDynamicImageFieldNames(List<ImageFieldName> supportedDynamicImageFieldNames) {
+ public DynamicUpdateCapabilities setSupportedDynamicImageFieldNames( List<ImageFieldName> supportedDynamicImageFieldNames) {
setValue(KEY_SUPPORTED_DYNAMIC_IMAGE_FIELD_NAMES, supportedDynamicImageFieldNames);
+ return this;
}
/**
@@ -119,8 +120,9 @@ public class DynamicUpdateCapabilities extends RPCStruct {
* AddSubMenu until OnUpdateSubMenu is received with the menuID. At that point, you should
* send all AddCommands with a parentID that match the menuID. If not set, assume false.
*/
- public void setSupportsDynamicSubMenus(Boolean supportsDynamicSubMenus) {
+ public DynamicUpdateCapabilities setSupportsDynamicSubMenus( Boolean supportsDynamicSubMenus) {
setValue(KEY_SUPPORTS_DYNAMIC_SUB_MENUS, supportsDynamicSubMenus);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ECallInfo.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ECallInfo.java
index 03c69af0a..c1bd8d476 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ECallInfo.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ECallInfo.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -107,20 +107,23 @@ public class ECallInfo extends RPCStruct {
setECallConfirmationStatus(eCallConfirmationStatus);
}
- public void setECallNotificationStatus(@NonNull VehicleDataNotificationStatus eCallNotificationStatus) {
+ public ECallInfo setECallNotificationStatus(@NonNull VehicleDataNotificationStatus eCallNotificationStatus) {
setValue(KEY_E_CALL_NOTIFICATION_STATUS, eCallNotificationStatus);
+ return this;
}
public VehicleDataNotificationStatus getECallNotificationStatus() {
return (VehicleDataNotificationStatus) getObject(VehicleDataNotificationStatus.class, KEY_E_CALL_NOTIFICATION_STATUS);
}
- public void setAuxECallNotificationStatus(@NonNull VehicleDataNotificationStatus auxECallNotificationStatus) {
+ public ECallInfo setAuxECallNotificationStatus(@NonNull VehicleDataNotificationStatus auxECallNotificationStatus) {
setValue(KEY_AUX_E_CALL_NOTIFICATION_STATUS, auxECallNotificationStatus);
+ return this;
}
public VehicleDataNotificationStatus getAuxECallNotificationStatus() {
return (VehicleDataNotificationStatus) getObject(VehicleDataNotificationStatus.class, KEY_AUX_E_CALL_NOTIFICATION_STATUS);
}
- public void setECallConfirmationStatus(@NonNull ECallConfirmationStatus eCallConfirmationStatus) {
+ public ECallInfo setECallConfirmationStatus(@NonNull ECallConfirmationStatus eCallConfirmationStatus) {
setValue(KEY_E_CALL_CONFIRMATION_STATUS, eCallConfirmationStatus);
+ return this;
}
public ECallConfirmationStatus getECallConfirmationStatus() {
return (ECallConfirmationStatus) getObject(ECallConfirmationStatus.class, KEY_E_CALL_CONFIRMATION_STATUS);
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/EmergencyEvent.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/EmergencyEvent.java
index 6c22dc83d..923ad39fd 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/EmergencyEvent.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/EmergencyEvent.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -132,32 +132,37 @@ public class EmergencyEvent extends RPCStruct {
setMultipleEvents(multipleEvents);
}
- public void setEmergencyEventType(@NonNull EmergencyEventType emergencyEventType) {
+ public EmergencyEvent setEmergencyEventType(@NonNull EmergencyEventType emergencyEventType) {
setValue(KEY_EMERGENCY_EVENT_TYPE, emergencyEventType);
+ return this;
}
public EmergencyEventType getEmergencyEventType() {
return (EmergencyEventType) getObject(EmergencyEventType.class, KEY_EMERGENCY_EVENT_TYPE);
}
- public void setFuelCutoffStatus(@NonNull FuelCutoffStatus fuelCutoffStatus) {
+ public EmergencyEvent setFuelCutoffStatus(@NonNull FuelCutoffStatus fuelCutoffStatus) {
setValue(KEY_FUEL_CUTOFF_STATUS, fuelCutoffStatus);
+ return this;
}
public FuelCutoffStatus getFuelCutoffStatus() {
return (FuelCutoffStatus) getObject(FuelCutoffStatus.class, KEY_FUEL_CUTOFF_STATUS);
}
- public void setRolloverEvent(@NonNull VehicleDataEventStatus rolloverEvent) {
+ public EmergencyEvent setRolloverEvent(@NonNull VehicleDataEventStatus rolloverEvent) {
setValue(KEY_ROLLOVER_EVENT, rolloverEvent);
+ return this;
}
public VehicleDataEventStatus getRolloverEvent() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_ROLLOVER_EVENT);
}
- public void setMaximumChangeVelocity(@NonNull Integer maximumChangeVelocity) {
+ public EmergencyEvent setMaximumChangeVelocity(@NonNull Integer maximumChangeVelocity) {
setValue(KEY_MAXIMUM_CHANGE_VELOCITY, maximumChangeVelocity);
+ return this;
}
public Integer getMaximumChangeVelocity() {
return getInteger(KEY_MAXIMUM_CHANGE_VELOCITY);
}
- public void setMultipleEvents(@NonNull VehicleDataEventStatus multipleEvents) {
+ public EmergencyEvent setMultipleEvents(@NonNull VehicleDataEventStatus multipleEvents) {
setValue(KEY_MULTIPLE_EVENTS, multipleEvents);
+ return this;
}
public VehicleDataEventStatus getMultipleEvents() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_MULTIPLE_EVENTS);
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/EqualizerSettings.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/EqualizerSettings.java
index 81c7f100c..509545143 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/EqualizerSettings.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/EqualizerSettings.java
@@ -77,9 +77,10 @@ public class EqualizerSettings extends RPCStruct {
*
* @param channelId ID that represents the channel these settings should be applied
*/
- public void setChannelId(@NonNull Integer channelId) {
- setValue(KEY_CHANNEL_ID, channelId);
- }
+ public EqualizerSettings setChannelId(@NonNull Integer channelId) {
+ setValue(KEY_CHANNEL_ID, channelId);
+ return this;
+ }
/**
* Gets the channelId portion of the EqualizerSettings class
@@ -95,9 +96,10 @@ public class EqualizerSettings extends RPCStruct {
*
* @param channelName Read-only channel / frequency name (e.i. "Treble, Midrange, Bass" or "125 Hz").
*/
- public void setChannelName(String channelName) {
- setValue(KEY_CHANNEL_NAME, channelName);
- }
+ public EqualizerSettings setChannelName( String channelName) {
+ setValue(KEY_CHANNEL_NAME, channelName);
+ return this;
+ }
/**
* Gets the channelName portion of the EqualizerSettings class
@@ -113,9 +115,10 @@ public class EqualizerSettings extends RPCStruct {
*
* @param channelSetting Reflects the setting, from 0%-100%.
*/
- public void setChannelSetting(@NonNull Integer channelSetting) {
- setValue(KEY_CHANNEL_SETTING, channelSetting);
- }
+ public EqualizerSettings setChannelSetting(@NonNull Integer channelSetting) {
+ setValue(KEY_CHANNEL_SETTING, channelSetting);
+ return this;
+ }
/**
* Gets the channelSetting portion of the EqualizerSettings class
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/FuelRange.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/FuelRange.java
index 1457a7459..549ce6862 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/FuelRange.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/FuelRange.java
@@ -32,14 +32,84 @@
package com.smartdevicelink.proxy.rpc;
import com.smartdevicelink.proxy.RPCStruct;
+import com.smartdevicelink.proxy.rpc.enums.CapacityUnit;
+import com.smartdevicelink.proxy.rpc.enums.ComponentVolumeStatus;
import com.smartdevicelink.proxy.rpc.enums.FuelType;
import com.smartdevicelink.util.SdlDataTypeConverter;
import java.util.Hashtable;
-public class FuelRange extends RPCStruct{
+/**
+ *
+ * <p><b>Parameter List</b></p>
+ *
+ * <table border="1" rules="all">
+ * <tr>
+ * <th>Param Name</th>
+ * <th>Type</th>
+ * <th>Description</th>
+ * <th>Required</th>
+ * <th>Notes</th>
+ * <th>Version Available</th>
+ * </tr>
+ * <tr>
+ * <td>type</td>
+ * <td>FuelType</td>
+ * <td></td>
+ * <td>N</td>
+ * <td></td>
+ * <td></td>
+ * </tr>
+ * <tr>
+ * <td>range</td>
+ * <td>Float</td>
+ * <td>The estimate range in KM the vehicle can travel based on fuel level and consumption.</td>
+ * <td>N</td>
+ * <td>{"num_min_value": 0.0, "num_max_value": 10000.0}</td>
+ * <td></td>
+ * </tr>
+ * <tr>
+ * <td>level</td>
+ * <td>Float</td>
+ * <td>The relative remaining capacity of this fuel type (percentage).</td>
+ * <td>N</td>
+ * <td>{"num_min_value": -6.0, "num_max_value": 1000000.0}</td>
+ * <td>SmartDeviceLink 7.0.0</td>
+ * </tr>
+ * <tr>
+ * <td>levelState</td>
+ * <td>ComponentVolumeStatus</td>
+ * <td>The fuel level state</td>
+ * <td>N</td>
+ * <td></td>
+ * <td>SmartDeviceLink 7.0.0</td>
+ * </tr>
+ * <tr>
+ * <td>capacity</td>
+ * <td>Float</td>
+ * <td>The absolute capacity of this fuel type.</td>
+ * <td>N</td>
+ * <td>{"num_min_value": 0.0, "num_max_value": 1000000.0}</td>
+ * <td>SmartDeviceLink 7.0.0</td>
+ * </tr>
+ * <tr>
+ * <td>capacityUnit</td>
+ * <td>CapacityUnit</td>
+ * <td>The unit of the capacity of this fuel type such as liters for gasoline or kWh forbatteries.</td>
+ * <td>N</td>
+ * <td></td>
+ * <td>SmartDeviceLink 7.0.0</td>
+ * </tr>
+ * </table>
+ * @since SmartDeviceLink 5.0.0
+ */
+public class FuelRange extends RPCStruct {
public static final String KEY_TYPE = "type";
public static final String KEY_RANGE = "range";
+ public static final String KEY_LEVEL = "level";
+ public static final String KEY_LEVEL_STATE = "levelState";
+ public static final String KEY_CAPACITY = "capacity";
+ public static final String KEY_CAPACITY_UNIT = "capacityUnit";
/**
* Constructs a new FuelRange object
@@ -62,10 +132,11 @@ public class FuelRange extends RPCStruct{
*
* @param fuelType the type of fuel related to this FuelRange object.
*
- * @see com.smartdevicelink.proxy.rpc.enums.FuelType
+ * @see FuelType
*/
- public void setType(FuelType fuelType) {
+ public FuelRange setType( FuelType fuelType) {
setValue(KEY_TYPE, fuelType);
+ return this;
}
/**
@@ -93,7 +164,100 @@ public class FuelRange extends RPCStruct{
* @param range
* The estimate range in KM the vehicle can travel based on fuel level and consumption.
*/
- public void setRange(Float range) {
+ public FuelRange setRange( Float range) {
setValue(KEY_RANGE, range);
+ return this;
+ }
+
+ /**
+ * Sets the level.
+ *
+ * @param level The relative remaining capacity of this fuel type (percentage).
+ * {"num_min_value": -6.0, "num_max_value": 1000000.0}
+ * @since SmartDeviceLink 7.0.0
+ */
+ public FuelRange setLevel( Float level) {
+ setValue(KEY_LEVEL, level);
+ return this;
+ }
+
+ /**
+ * Gets the level.
+ *
+ * @return Float The relative remaining capacity of this fuel type (percentage).
+ * {"num_min_value": -6.0, "num_max_value": 1000000.0}
+ * @since SmartDeviceLink 7.0.0
+ */
+ public Float getLevel() {
+ Object object = getValue(KEY_LEVEL);
+ return SdlDataTypeConverter.objectToFloat(object);
+ }
+
+ /**
+ * Sets the levelState.
+ *
+ * @param levelState The fuel level state
+ * @since SmartDeviceLink 7.0.0
+ */
+ public FuelRange setLevelState( ComponentVolumeStatus levelState) {
+ setValue(KEY_LEVEL_STATE, levelState);
+ return this;
+ }
+
+ /**
+ * Gets the levelState.
+ *
+ * @return ComponentVolumeStatus The fuel level state
+ * @since SmartDeviceLink 7.0.0
+ */
+ public ComponentVolumeStatus getLevelState() {
+ return (ComponentVolumeStatus) getObject(ComponentVolumeStatus.class, KEY_LEVEL_STATE);
+ }
+
+ /**
+ * Sets the capacity.
+ *
+ * @param capacity The absolute capacity of this fuel type.
+ * {"num_min_value": 0.0, "num_max_value": 1000000.0}
+ * @since SmartDeviceLink 7.0.0
+ */
+ public FuelRange setCapacity( Float capacity) {
+ setValue(KEY_CAPACITY, capacity);
+ return this;
+ }
+
+ /**
+ * Gets the capacity.
+ *
+ * @return Float The absolute capacity of this fuel type.
+ * {"num_min_value": 0.0, "num_max_value": 1000000.0}
+ * @since SmartDeviceLink 7.0.0
+ */
+ public Float getCapacity() {
+ Object object = getValue(KEY_CAPACITY);
+ return SdlDataTypeConverter.objectToFloat(object);
+ }
+
+ /**
+ * Sets the capacityUnit.
+ *
+ * @param capacityUnit The unit of the capacity of this fuel type such as liters for gasoline or kWh for
+ * batteries.
+ * @since SmartDeviceLink 7.0.0
+ */
+ public FuelRange setCapacityUnit( CapacityUnit capacityUnit) {
+ setValue(KEY_CAPACITY_UNIT, capacityUnit);
+ return this;
+ }
+
+ /**
+ * Gets the capacityUnit.
+ *
+ * @return CapacityUnit The unit of the capacity of this fuel type such as liters for gasoline or kWh for
+ * batteries.
+ * @since SmartDeviceLink 7.0.0
+ */
+ public CapacityUnit getCapacityUnit() {
+ return (CapacityUnit) getObject(CapacityUnit.class, KEY_CAPACITY_UNIT);
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GPSData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GPSData.java
index f36cd6127..98d85a739 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GPSData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GPSData.java
@@ -222,8 +222,9 @@ public class GPSData extends RPCStruct {
* set longitude degrees
* @param longitudeDegrees degrees of the longitudinal position
*/
- public void setLongitudeDegrees(@NonNull Double longitudeDegrees) {
- setValue(KEY_LONGITUDE_DEGREES, longitudeDegrees);
+ public GPSData setLongitudeDegrees(@NonNull Double longitudeDegrees) {
+ setValue(KEY_LONGITUDE_DEGREES, longitudeDegrees);
+ return this;
}
/**
@@ -239,8 +240,9 @@ public class GPSData extends RPCStruct {
* set latitude degrees
* @param latitudeDegrees degrees of the latitudinal position
*/
- public void setLatitudeDegrees(@NonNull Double latitudeDegrees) {
- setValue(KEY_LATITUDE_DEGREES, latitudeDegrees);
+ public GPSData setLatitudeDegrees(@NonNull Double latitudeDegrees) {
+ setValue(KEY_LATITUDE_DEGREES, latitudeDegrees);
+ return this;
}
/**
@@ -256,8 +258,9 @@ public class GPSData extends RPCStruct {
* set utc year
* @param utcYear utc year
*/
- public void setUtcYear(Integer utcYear) {
- setValue(KEY_UTC_YEAR, utcYear);
+ public GPSData setUtcYear( Integer utcYear) {
+ setValue(KEY_UTC_YEAR, utcYear);
+ return this;
}
/**
@@ -272,8 +275,9 @@ public class GPSData extends RPCStruct {
* set utc month
* @param utcMonth utc month
*/
- public void setUtcMonth(Integer utcMonth) {
- setValue(KEY_UTC_MONTH, utcMonth);
+ public GPSData setUtcMonth( Integer utcMonth) {
+ setValue(KEY_UTC_MONTH, utcMonth);
+ return this;
}
/**
@@ -288,8 +292,9 @@ public class GPSData extends RPCStruct {
* set utc day
* @param utcDay utc day
*/
- public void setUtcDay(Integer utcDay) {
- setValue(KEY_UTC_DAY, utcDay);
+ public GPSData setUtcDay( Integer utcDay) {
+ setValue(KEY_UTC_DAY, utcDay);
+ return this;
}
/**
@@ -304,8 +309,9 @@ public class GPSData extends RPCStruct {
* set utc hours
* @param utcHours utc hours
*/
- public void setUtcHours(Integer utcHours) {
- setValue(KEY_UTC_HOURS, utcHours);
+ public GPSData setUtcHours( Integer utcHours) {
+ setValue(KEY_UTC_HOURS, utcHours);
+ return this;
}
/**
@@ -320,8 +326,9 @@ public class GPSData extends RPCStruct {
* set utc minutes
* @param utcMinutes utc minutes
*/
- public void setUtcMinutes(Integer utcMinutes) {
- setValue(KEY_UTC_MINUTES, utcMinutes);
+ public GPSData setUtcMinutes( Integer utcMinutes) {
+ setValue(KEY_UTC_MINUTES, utcMinutes);
+ return this;
}
/**
@@ -336,8 +343,9 @@ public class GPSData extends RPCStruct {
* set utc seconds
* @param utcSeconds utc seconds
*/
- public void setUtcSeconds(Integer utcSeconds) {
- setValue(KEY_UTC_SECONDS, utcSeconds);
+ public GPSData setUtcSeconds( Integer utcSeconds) {
+ setValue(KEY_UTC_SECONDS, utcSeconds);
+ return this;
}
/**
@@ -347,8 +355,9 @@ public class GPSData extends RPCStruct {
public Integer getUtcSeconds() {
return getInteger(KEY_UTC_SECONDS);
}
- public void setCompassDirection(CompassDirection compassDirection) {
- setValue(KEY_COMPASS_DIRECTION, compassDirection);
+ public GPSData setCompassDirection( CompassDirection compassDirection) {
+ setValue(KEY_COMPASS_DIRECTION, compassDirection);
+ return this;
}
public CompassDirection getCompassDirection() {
return (CompassDirection) getObject(CompassDirection.class, KEY_COMPASS_DIRECTION);
@@ -358,8 +367,9 @@ public class GPSData extends RPCStruct {
* set the positional dilution of precision
* @param pdop the positional dilution of precision
*/
- public void setPdop(Double pdop) {
- setValue(KEY_PDOP, pdop);
+ public GPSData setPdop( Double pdop) {
+ setValue(KEY_PDOP, pdop);
+ return this;
}
/**
@@ -374,8 +384,9 @@ public class GPSData extends RPCStruct {
* set the horizontal dilution of precision
* @param hdop the horizontal dilution of precision
*/
- public void setHdop(Double hdop) {
- setValue(KEY_HDOP, hdop);
+ public GPSData setHdop( Double hdop) {
+ setValue(KEY_HDOP, hdop);
+ return this;
}
/**
@@ -391,8 +402,9 @@ public class GPSData extends RPCStruct {
* set the vertical dilution of precision
* @param vdop the vertical dilution of precision
*/
- public void setVdop(Double vdop) {
- setValue(KEY_VDOP, vdop);
+ public GPSData setVdop( Double vdop) {
+ setValue(KEY_VDOP, vdop);
+ return this;
}
/**
@@ -405,11 +417,12 @@ public class GPSData extends RPCStruct {
}
/**
- * set what coordinates based on
+ * set what coordinates based on
* @param actual True, if coordinates are based on satellites.False, if based on dead reckoning
*/
- public void setActual(Boolean actual) {
- setValue(KEY_ACTUAL, actual);
+ public GPSData setActual( Boolean actual) {
+ setValue(KEY_ACTUAL, actual);
+ return this;
}
/**
@@ -424,8 +437,9 @@ public class GPSData extends RPCStruct {
* set the number of satellites in view
* @param satellites the number of satellites in view
*/
- public void setSatellites(Integer satellites) {
- setValue(KEY_SATELLITES, satellites);
+ public GPSData setSatellites( Integer satellites) {
+ setValue(KEY_SATELLITES, satellites);
+ return this;
}
/**
@@ -435,8 +449,9 @@ public class GPSData extends RPCStruct {
public Integer getSatellites() {
return getInteger(KEY_SATELLITES);
}
- public void setDimension(Dimension dimension) {
- setValue(KEY_DIMENSION, dimension);
+ public GPSData setDimension( Dimension dimension) {
+ setValue(KEY_DIMENSION, dimension);
+ return this;
}
public Dimension getDimension() {
return (Dimension) getObject(Dimension.class, KEY_DIMENSION);
@@ -446,8 +461,9 @@ public class GPSData extends RPCStruct {
* set altitude in meters
* @param altitude altitude in meters
*/
- public void setAltitude(Double altitude) {
- setValue(KEY_ALTITUDE, altitude);
+ public GPSData setAltitude( Double altitude) {
+ setValue(KEY_ALTITUDE, altitude);
+ return this;
}
/**
@@ -461,10 +477,11 @@ public class GPSData extends RPCStruct {
/**
* set the heading.North is 0, East is 90, etc.
- * @param heading the heading.
+ * @param heading the heading.
*/
- public void setHeading(Double heading) {
- setValue(KEY_HEADING, heading);
+ public GPSData setHeading( Double heading) {
+ setValue(KEY_HEADING, heading);
+ return this;
}
/**
@@ -479,8 +496,9 @@ public class GPSData extends RPCStruct {
* set speed in KPH
* @param speed the speed
*/
- public void setSpeed(Double speed) {
- setValue(KEY_SPEED, speed);
+ public GPSData setSpeed( Double speed) {
+ setValue(KEY_SPEED, speed);
+ return this;
}
/**
@@ -491,22 +509,23 @@ public class GPSData extends RPCStruct {
Object object = getValue(KEY_SPEED);
return SdlDataTypeConverter.objectToDouble(object);
}
-
- /**
- * Sets the shifted param for GPSData.
- * @param shifted True, if GPS lat/long, time, and altitude have been purposefully shifted (requires a proprietary algorithm to unshift).
- * False, if the GPS data is raw and un-shifted.
- * If not provided, then value is assumed False.
- */
- public void setShifted(Boolean shifted) {
- setValue(KEY_SHIFTED, shifted);
- }
-
- /**
- * Gets the shifted param for GPSData.
- * @return Boolean - True, if GPS lat/long, time, and altitude have been purposefully shifted (requires a proprietary algorithm to unshift).
- */
- public Boolean getShifted() {
- return getBoolean(KEY_SHIFTED);
- }
-}
+
+ /**
+ * Sets the shifted param for GPSData.
+ * @param shifted True, if GPS lat/long, time, and altitude have been purposefully shifted (requires a proprietary algorithm to unshift).
+ * False, if the GPS data is raw and un-shifted.
+ * If not provided, then value is assumed False.
+ */
+ public GPSData setShifted( Boolean shifted) {
+ setValue(KEY_SHIFTED, shifted);
+ return this;
+ }
+
+ /**
+ * Gets the shifted param for GPSData.
+ * @return Boolean - True, if GPS lat/long, time, and altitude have been purposefully shifted (requires a proprietary algorithm to unshift).
+ */
+ public Boolean getShifted() {
+ return getBoolean(KEY_SHIFTED);
+ }
+}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GearStatus.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GearStatus.java
index 131e7f831..dbae57a2a 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GearStatus.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GearStatus.java
@@ -97,8 +97,9 @@ public class GearStatus extends RPCStruct {
*
* @param userSelectedGear Gear position selected by the user i.e. Park, Drive, Reverse
*/
- public void setUserSelectedGear(PRNDL selectedGear){
+ public GearStatus setUserSelectedGear( PRNDL selectedGear) {
setValue(KEY_USER_SELECTED_GEAR, selectedGear);
+ return this;
}
/**
@@ -116,8 +117,9 @@ public class GearStatus extends RPCStruct {
*
* @param actualGear Actual Gear in use by the transmission
*/
- public void setActualGear(PRNDL actualGear){
+ public GearStatus setActualGear( PRNDL actualGear) {
setValue(KEY_ACTUAL_GEAR, actualGear);
+ return this;
}
/**
@@ -135,8 +137,9 @@ public class GearStatus extends RPCStruct {
*
* @param transmissionType Tells the transmission type
*/
- public void setTransmissionType(TransmissionType transmissionType){
+ public GearStatus setTransmissionType( TransmissionType transmissionType) {
setValue(KEY_TRANSMISSION_TYPE, transmissionType);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetAppServiceData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetAppServiceData.java
index 9946de27a..77a423af9 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetAppServiceData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetAppServiceData.java
@@ -78,9 +78,10 @@ public class GetAppServiceData extends RPCRequest {
/**
* @param appServiceType - the appServiceType
*/
- public void setServiceType(@NonNull String appServiceType){
- setParameters(KEY_SERVICE_TYPE, appServiceType);
- }
+ public GetAppServiceData setServiceType(@NonNull String appServiceType) {
+ setParameters(KEY_SERVICE_TYPE, appServiceType);
+ return this;
+ }
/**
* @return appServiceType
@@ -95,9 +96,10 @@ public class GetAppServiceData extends RPCRequest {
* if it was previously subscribed.
* @param subscribe -
*/
- public void setSubscribe(Boolean subscribe){
- setParameters(KEY_SUBSCRIBE, subscribe);
- }
+ public GetAppServiceData setSubscribe( Boolean subscribe) {
+ setParameters(KEY_SUBSCRIBE, subscribe);
+ return this;
+ }
/**
* If true, the consumer is requesting to subscribe to all future updates from the service
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetAppServiceDataResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetAppServiceDataResponse.java
index 253626e9b..0739e9e58 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetAppServiceDataResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetAppServiceDataResponse.java
@@ -67,9 +67,10 @@ public class GetAppServiceDataResponse extends RPCResponse {
/**
* @param serviceData -
*/
- public void setServiceData(AppServiceData serviceData){
- setParameters(KEY_SERVICE_DATA, serviceData);
- }
+ public GetAppServiceDataResponse setServiceData( AppServiceData serviceData) {
+ setParameters(KEY_SERVICE_DATA, serviceData);
+ return this;
+ }
/**
* @return serviceData
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetCloudAppProperties.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetCloudAppProperties.java
index 3348d4cb1..11913954b 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetCloudAppProperties.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetCloudAppProperties.java
@@ -55,8 +55,9 @@ public class GetCloudAppProperties extends RPCRequest {
setParameters(KEY_APP_ID, appID);
}
- public void setAppID(String appId){
+ public GetCloudAppProperties setAppID( String appId) {
setParameters(KEY_APP_ID, appId);
+ return this;
}
public String getAppID(){
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetCloudAppPropertiesResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetCloudAppPropertiesResponse.java
index 2c4eddeda..04e576353 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetCloudAppPropertiesResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetCloudAppPropertiesResponse.java
@@ -62,8 +62,9 @@ public class GetCloudAppPropertiesResponse extends RPCResponse {
setResultCode(resultCode);
}
- public void setCloudAppProperties(CloudAppProperties cloudAppProperties){
+ public GetCloudAppPropertiesResponse setCloudAppProperties( CloudAppProperties cloudAppProperties) {
setParameters(KEY_PROPERTIES, cloudAppProperties);
+ return this;
}
public CloudAppProperties getCloudAppProperties(){
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetDTCs.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetDTCs.java
index 939e1cdb6..63b0d716b 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetDTCs.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetDTCs.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -120,15 +120,16 @@ public class GetDTCs extends RPCRequest {
/**
* Sets a name of the module to receive the DTC form
- *
+ *
* @param ecuName
* an Integer value representing a name of the module to receive
* the DTC form
* <p>
* <b>Notes:</p> </b>Minvalue:0; Maxvalue:65535
*/
- public void setEcuName(@NonNull Integer ecuName) {
- setParameters(KEY_ECU_NAME, ecuName);
+ public GetDTCs setEcuName(@NonNull Integer ecuName) {
+ setParameters(KEY_ECU_NAME, ecuName);
+ return this;
}
/**
@@ -140,8 +141,9 @@ public class GetDTCs extends RPCRequest {
public Integer getEcuName() {
return getInteger(KEY_ECU_NAME);
}
- public void setDtcMask(Integer dtcMask) {
- setParameters(KEY_DTC_MASK, dtcMask);
+ public GetDTCs setDtcMask( Integer dtcMask) {
+ setParameters(KEY_DTC_MASK, dtcMask);
+ return this;
}
public Integer getDtcMask() {
return getInteger(KEY_DTC_MASK);
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetDTCsResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetDTCsResponse.java
index e7c54c02b..87ae47ab8 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetDTCsResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetDTCsResponse.java
@@ -74,16 +74,18 @@ public class GetDTCsResponse extends RPCResponse{
return (List<String>) getObject(String.class, KEY_DTC);
}
- public void setDtc(List<String> dtc){
+ public GetDTCsResponse setDtc( List<String> dtc) {
setParameters(KEY_DTC, dtc);
+ return this;
}
public Integer getEcuHeader(){
return getInteger(KEY_ECU_HEADER);
}
- public void setEcuHeader(Integer ecuHeader){
+ public GetDTCsResponse setEcuHeader( Integer ecuHeader) {
setParameters(KEY_ECU_HEADER, ecuHeader);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetFile.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetFile.java
index d1453ded1..ea8d41c04 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetFile.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetFile.java
@@ -72,9 +72,10 @@ public class GetFile extends RPCRequest {
* maxlength="255"
* @param fileName -
*/
- public void setFileName(@NonNull String fileName){
- setParameters(KEY_FILE_NAME, fileName);
- }
+ public GetFile setFileName(@NonNull String fileName) {
+ setParameters(KEY_FILE_NAME, fileName);
+ return this;
+ }
/**
* File name that should be retrieved.
@@ -89,9 +90,10 @@ public class GetFile extends RPCRequest {
* ID of the service that should have uploaded the requested file
* @param appServiceId -
*/
- public void setAppServiceId(String appServiceId){
- setParameters(KEY_APP_SERVICE_ID, appServiceId);
- }
+ public GetFile setAppServiceId( String appServiceId) {
+ setParameters(KEY_APP_SERVICE_ID, appServiceId);
+ return this;
+ }
/**
* ID of the service that should have uploaded the requested file
@@ -105,9 +107,10 @@ public class GetFile extends RPCRequest {
* Selected file type.
* @param fileType -
*/
- public void setFileType(FileType fileType){
- setParameters(KEY_FILE_TYPE, fileType);
- }
+ public GetFile setFileType( FileType fileType) {
+ setParameters(KEY_FILE_TYPE, fileType);
+ return this;
+ }
/**
* Selected file type.
@@ -122,9 +125,10 @@ public class GetFile extends RPCRequest {
* minvalue="0" maxvalue="2000000000"
* @param offset -
*/
- public void setOffset(Integer offset){
- setParameters(KEY_OFFSET, offset);
- }
+ public GetFile setOffset( Integer offset) {
+ setParameters(KEY_OFFSET, offset);
+ return this;
+ }
/**
* Optional offset in bytes for resuming partial data chunks
@@ -141,9 +145,10 @@ public class GetFile extends RPCRequest {
* minvalue="0" maxvalue="2000000000"
* @param length -
*/
- public void setLength(Integer length){
- setParameters(KEY_LENGTH, length);
- }
+ public GetFile setLength( Integer length) {
+ setParameters(KEY_LENGTH, length);
+ return this;
+ }
/**
* Optional length in bytes for resuming partial data chunks if offset is set to 0, then length
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetFileResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetFileResponse.java
index 711de294c..17b5473c4 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetFileResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetFileResponse.java
@@ -73,9 +73,10 @@ public class GetFileResponse extends RPCResponse {
* File type that is being sent in response
* @param fileType -
*/
- public void setFileType(FileType fileType){
- setParameters(KEY_FILE_TYPE, fileType);
- }
+ public GetFileResponse setFileType( FileType fileType) {
+ setParameters(KEY_FILE_TYPE, fileType);
+ return this;
+ }
/**
* File type that is being sent in response
@@ -90,9 +91,10 @@ public class GetFileResponse extends RPCResponse {
* minvalue="0" maxvalue="2000000000"
* @param offset -
*/
- public void setOffset(Integer offset){
- setParameters(KEY_OFFSET, offset);
- }
+ public GetFileResponse setOffset( Integer offset) {
+ setParameters(KEY_OFFSET, offset);
+ return this;
+ }
/**
* Optional offset in bytes for resuming partial data chunks
@@ -109,9 +111,10 @@ public class GetFileResponse extends RPCResponse {
* minvalue="0" maxvalue="2000000000"
* @param length -
*/
- public void setLength(Integer length){
- setParameters(KEY_LENGTH, length);
- }
+ public GetFileResponse setLength( Integer length) {
+ setParameters(KEY_LENGTH, length);
+ return this;
+ }
/**
* Optional length in bytes for resuming partial data chunks if offset is set to 0, then length
@@ -128,9 +131,10 @@ public class GetFileResponse extends RPCResponse {
* minvalue="0" maxvalue="4294967295"
* @param crc -
*/
- public void setCRC(Integer crc){
- setParameters(KEY_CRC, crc);
- }
+ public GetFileResponse setCRC( Integer crc) {
+ setParameters(KEY_CRC, crc);
+ return this;
+ }
/**
* Additional CRC32 checksum to protect data integrity up to 512 Mbits
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleData.java
index a6a323646..3b2a5098b 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleData.java
@@ -95,8 +95,9 @@ public class GetInteriorVehicleData extends RPCRequest {
* The type of a RC module to retrieve module data from the vehicle.
* In the future, this should be the Identification of a module.
*/
- public void setModuleType(@NonNull ModuleType moduleType) {
+ public GetInteriorVehicleData setModuleType(@NonNull ModuleType moduleType) {
setParameters(KEY_MODULE_TYPE, moduleType);
+ return this;
}
/**
@@ -106,8 +107,9 @@ public class GetInteriorVehicleData extends RPCRequest {
* If subscribe is true, the head unit will register onInteriorVehicleData notifications for the requested moduelType.
* If subscribe is false, the head unit will unregister onInteriorVehicleData notifications for the requested moduelType.
*/
- public void setSubscribe(Boolean subscribe) {
+ public GetInteriorVehicleData setSubscribe( Boolean subscribe) {
setParameters(KEY_SUBSCRIBE, subscribe);
+ return this;
}
/**
@@ -124,8 +126,9 @@ public class GetInteriorVehicleData extends RPCRequest {
* Sets the Module ID for this class
* @param id the id to be set
*/
- public void setModuleId(String id) {
+ public GetInteriorVehicleData setModuleId( String id) {
setParameters(KEY_MODULE_ID, id);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataConsent.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataConsent.java
index b4d3e02f3..46a40b5dd 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataConsent.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataConsent.java
@@ -35,8 +35,9 @@ public class GetInteriorVehicleDataConsent extends RPCRequest {
* Sets the Module Type for this class
* @param type the Module Type to be set
*/
- public void setModuleType(@NonNull ModuleType type) {
+ public GetInteriorVehicleDataConsent setModuleType(@NonNull ModuleType type) {
setParameters(KEY_MODULE_TYPE, type);
+ return this;
}
/**
@@ -51,8 +52,9 @@ public class GetInteriorVehicleDataConsent extends RPCRequest {
* Sets the Module Ids for this class
* @param ids the ids to be set
*/
- public void setModuleIds(@NonNull List<String> ids) {
+ public GetInteriorVehicleDataConsent setModuleIds(@NonNull List<String> ids) {
setParameters(KEY_MODULE_ID, ids);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataConsentResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataConsentResponse.java
index 5c2b5c7e9..91df49d4a 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataConsentResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataConsentResponse.java
@@ -31,8 +31,9 @@ public class GetInteriorVehicleDataConsentResponse extends RPCResponse {
* Sets the list of allowances for this class
* @param allowances the allowances to be set
*/
- public void setAllowances(@NonNull List<Boolean> allowances) {
+ public GetInteriorVehicleDataConsentResponse setAllowances(@NonNull List<Boolean> allowances) {
setParameters(KEY_ALLOWED, allowances);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataResponse.java
index ccf1e7913..7fb081f30 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataResponse.java
@@ -87,9 +87,10 @@ public class GetInteriorVehicleDataResponse extends RPCResponse {
*
* @param moduleData specific data for the module that was requested
*/
- public void setModuleData(ModuleData moduleData) {
- setParameters(KEY_MODULE_DATA, moduleData);
- }
+ public GetInteriorVehicleDataResponse setModuleData( ModuleData moduleData) {
+ setParameters(KEY_MODULE_DATA, moduleData);
+ return this;
+ }
/**
* Sets isSubscribed parameter
@@ -99,9 +100,10 @@ public class GetInteriorVehicleDataResponse extends RPCResponse {
* If "true" - the "moduleType" from request is successfully subscribed and the head unit will send onInteriorVehicleData notifications for the moduleType.
* If "false" - the "moduleType" from request is either unsubscribed or failed to subscribe.
* */
- public void setIsSubscribed(Boolean isSubscribed) {
- setParameters(KEY_IS_SUBSCRIBED, isSubscribed);
- }
+ public GetInteriorVehicleDataResponse setIsSubscribed( Boolean isSubscribed) {
+ setParameters(KEY_IS_SUBSCRIBED, isSubscribed);
+ return this;
+ }
/**
* Gets isSubscribed parameter
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetSystemCapability.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetSystemCapability.java
index 8cb70d7aa..173360d64 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetSystemCapability.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetSystemCapability.java
@@ -84,8 +84,9 @@ public class GetSystemCapability extends RPCRequest {
* Used to set the SystemCapabilityType being requested
* @param value SystemCapabilityType being requested
*/
- public void setSystemCapabilityType(@NonNull SystemCapabilityType value){
+ public GetSystemCapability setSystemCapabilityType(@NonNull SystemCapabilityType value) {
setParameters(KEY_SYSTEM_CAPABILITY_TYPE, value);
+ return this;
}
/**
@@ -104,7 +105,8 @@ public class GetSystemCapability extends RPCRequest {
* subscriber if it was previously subscribed.
* @param subscribe to changes in the SystemCapabilityType
*/
- public void setSubscribe(Boolean subscribe){
+ public GetSystemCapability setSubscribe( Boolean subscribe) {
setParameters(KEY_SUBSCRIBE, subscribe);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetSystemCapabilityResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetSystemCapabilityResponse.java
index 29803499e..f48e095e7 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetSystemCapabilityResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetSystemCapabilityResponse.java
@@ -87,7 +87,8 @@ public class GetSystemCapabilityResponse extends RPCResponse {
* Set a SystemCapability object in the response
* @param value SystemCapability object
*/
- public void setSystemCapability(SystemCapability value){
+ public GetSystemCapabilityResponse setSystemCapability( SystemCapability value) {
setParameters(KEY_SYSTEM_CAPABILITY, value);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetVehicleData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetVehicleData.java
index 4699de61f..e5480b584 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetVehicleData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetVehicleData.java
@@ -76,18 +76,26 @@ import java.util.Hashtable;
* <tr>
* <td>fuelLevel</td>
* <td>Boolean</td>
- * <td>The fuel level in the tank (percentage)</td>
+ * <td>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec7.0, please see fuelRange.</td>
* <td>N</td>
* <td>Subscribable</td>
- * <td>SmartDeviceLink 2.0</td>
+ * <td>SmartDeviceLink 7.0.0</td>
* </tr>
* <tr>
* <td>fuelLevel_State</td>
* <td>Boolean</td>
- * <td>The fuel level state</td>
+ * <td>The fuel level state. This parameter is deprecated starting RPC Spec 7.0, please seefuelRange.</td>
* <td>N</td>
* <td>Subscribable</td>
- * <td>SmartDeviceLink 2.0</td>
+ * <td>SmartDeviceLink 7.0.0</td>
+ * </tr>
+ * <tr>
+ * <td>fuelRange</td>
+ * <td>Boolean</td>
+ * <td>The fuel type, estimated range in KM, fuel level/capacity and fuel level state for thevehicle. See struct FuelRange for details.</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 5.0.0</td>
* </tr>
* <tr>
* <td>instantFuelConsumption</td>
@@ -239,6 +247,13 @@ import java.util.Hashtable;
* <td>N</td>
* <td>Subscribable</td>
* <td>SmartDeviceLink 5.1 </td>
+ * <tr>
+ * <td>stabilityControlsStatus</td>
+ * <td>Boolean</td>
+ * <td>See StabilityControlsStatus</td>
+ * <td>N</td>
+ * <td>SmartDeviceLink 7.0.0</td>
+ * </tr>
* </tr>
* <tr>
* <td>handsOffSteering</td>
@@ -281,7 +296,6 @@ public class GetVehicleData extends RPCRequest {
public static final String KEY_SPEED = "speed";
public static final String KEY_RPM = "rpm";
public static final String KEY_EXTERNAL_TEMPERATURE = "externalTemperature";
- public static final String KEY_FUEL_LEVEL = "fuelLevel";
public static final String KEY_VIN = "vin";
public static final String KEY_PRNDL = "prndl";
public static final String KEY_TIRE_PRESSURE = "tirePressure";
@@ -289,7 +303,6 @@ public class GetVehicleData extends RPCRequest {
public static final String KEY_ENGINE_OIL_LIFE = "engineOilLife";
public static final String KEY_ODOMETER = "odometer";
public static final String KEY_GPS = "gps";
- public static final String KEY_FUEL_LEVEL_STATE = "fuelLevel_State";
public static final String KEY_INSTANT_FUEL_CONSUMPTION = "instantFuelConsumption";
public static final String KEY_BELT_STATUS = "beltStatus";
public static final String KEY_BODY_INFORMATION = "bodyInformation";
@@ -311,6 +324,18 @@ public class GetVehicleData extends RPCRequest {
public static final String KEY_WINDOW_STATUS = "windowStatus";
public static final String KEY_HANDS_OFF_STEERING = "handsOffSteering";
public static final String KEY_GEAR_STATUS = "gearStatus";
+ /**
+ * @deprecated
+ */
+ @Deprecated
+ public static final String KEY_FUEL_LEVEL = "fuelLevel";
+
+ /**
+ * @deprecated
+ */
+ @Deprecated
+ public static final String KEY_FUEL_LEVEL_STATE = "fuelLevel_State";
+ public static final String KEY_STABILITY_CONTROLS_STATUS = "stabilityControlsStatus";
/**
* Constructs a new GetVehicleData object
@@ -332,51 +357,89 @@ public class GetVehicleData extends RPCRequest {
public GetVehicleData(Hashtable<String, Object> hash) {
super(hash);
}
- public void setGps(Boolean gps) {
+ public GetVehicleData setGps( Boolean gps) {
setParameters(KEY_GPS, gps);
+ return this;
}
public Boolean getGps() {
return getBoolean(KEY_GPS);
}
- public void setSpeed(Boolean speed) {
+ public GetVehicleData setSpeed( Boolean speed) {
setParameters(KEY_SPEED, speed);
+ return this;
}
public Boolean getSpeed() {
return getBoolean(KEY_SPEED);
}
- public void setRpm(Boolean rpm) {
+ public GetVehicleData setRpm( Boolean rpm) {
setParameters(KEY_RPM, rpm);
+ return this;
}
public Boolean getRpm() {
return getBoolean(KEY_RPM);
}
- public void setFuelLevel(Boolean fuelLevel) {
+
+ /**
+ * Sets the fuelLevel.
+ *
+ * @param fuelLevel The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec
+ * 7.0, please see fuelRange.
+ */
+ @Deprecated
+ public GetVehicleData setFuelLevel( Boolean fuelLevel) {
setParameters(KEY_FUEL_LEVEL, fuelLevel);
+ return this;
}
+
+ /**
+ * Gets the fuelLevel.
+ *
+ * @return Boolean The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec
+ * 7.0, please see fuelRange.
+ */
+ @Deprecated
public Boolean getFuelLevel() {
return getBoolean(KEY_FUEL_LEVEL);
}
- public void setFuelLevelState(Boolean fuelLevelState) {
+
+ @Deprecated
+ public GetVehicleData setFuelLevelState( Boolean fuelLevelState) {
setParameters(KEY_FUEL_LEVEL_STATE, fuelLevelState);
+ return this;
}
+
+ @Deprecated
public Boolean getFuelLevelState() {
return getBoolean(KEY_FUEL_LEVEL_STATE);
}
- public void setInstantFuelConsumption(Boolean instantFuelConsumption) {
+ public GetVehicleData setInstantFuelConsumption( Boolean instantFuelConsumption) {
setParameters(KEY_INSTANT_FUEL_CONSUMPTION, instantFuelConsumption);
+ return this;
}
public Boolean getInstantFuelConsumption() {
return getBoolean(KEY_INSTANT_FUEL_CONSUMPTION);
}
- public void setExternalTemperature(Boolean externalTemperature) {
+
+ public GetVehicleData setFuelRange( Boolean fuelRange) {
+ setParameters(KEY_FUEL_RANGE, fuelRange);
+ return this;
+ }
+
+ public Boolean getFuelRange() {
+ return getBoolean(KEY_FUEL_RANGE);
+ }
+
+ public GetVehicleData setExternalTemperature( Boolean externalTemperature) {
setParameters(KEY_EXTERNAL_TEMPERATURE, externalTemperature);
+ return this;
}
public Boolean getExternalTemperature() {
return getBoolean(KEY_EXTERNAL_TEMPERATURE);
}
- public void setVin(Boolean vin) {
+ public GetVehicleData setVin( Boolean vin) {
setParameters(KEY_VIN, vin);
+ return this;
}
public Boolean getVin() {
return getBoolean(KEY_VIN);
@@ -389,8 +452,9 @@ public class GetVehicleData extends RPCRequest {
* @deprecated in SmartDeviceLink 7.0.0
*/
@Deprecated
- public void setPrndl(Boolean prndl) {
+ public GetVehicleData setPrndl( Boolean prndl) {
setParameters(KEY_PRNDL, prndl);
+ return this;
}
/**
@@ -403,136 +467,137 @@ public class GetVehicleData extends RPCRequest {
public Boolean getPrndl() {
return getBoolean(KEY_PRNDL);
}
- public void setTirePressure(Boolean tirePressure) {
+ public GetVehicleData setTirePressure( Boolean tirePressure) {
setParameters(KEY_TIRE_PRESSURE, tirePressure);
+ return this;
}
public Boolean getTirePressure() {
return getBoolean(KEY_TIRE_PRESSURE);
}
- public void setOdometer(Boolean odometer) {
+ public GetVehicleData setOdometer( Boolean odometer) {
setParameters(KEY_ODOMETER, odometer);
+ return this;
}
public Boolean getOdometer() {
return getBoolean(KEY_ODOMETER);
}
- public void setBeltStatus(Boolean beltStatus) {
+ public GetVehicleData setBeltStatus( Boolean beltStatus) {
setParameters(KEY_BELT_STATUS, beltStatus);
+ return this;
}
public Boolean getBeltStatus() {
return getBoolean(KEY_BELT_STATUS);
}
- public void setBodyInformation(Boolean bodyInformation) {
+ public GetVehicleData setBodyInformation( Boolean bodyInformation) {
setParameters(KEY_BODY_INFORMATION, bodyInformation);
+ return this;
}
public Boolean getBodyInformation() {
return getBoolean(KEY_BODY_INFORMATION);
}
- public void setDeviceStatus(Boolean deviceStatus) {
+ public GetVehicleData setDeviceStatus( Boolean deviceStatus) {
setParameters(KEY_DEVICE_STATUS, deviceStatus);
+ return this;
}
public Boolean getDeviceStatus() {
return getBoolean(KEY_DEVICE_STATUS);
}
- public void setDriverBraking(Boolean driverBraking) {
+ public GetVehicleData setDriverBraking( Boolean driverBraking) {
setParameters(KEY_DRIVER_BRAKING, driverBraking);
+ return this;
}
public Boolean getDriverBraking() {
return getBoolean(KEY_DRIVER_BRAKING);
}
- public void setWiperStatus(Boolean wiperStatus) {
+ public GetVehicleData setWiperStatus( Boolean wiperStatus) {
setParameters(KEY_WIPER_STATUS, wiperStatus);
+ return this;
}
public Boolean getWiperStatus() {
return getBoolean(KEY_WIPER_STATUS);
}
- public void setHeadLampStatus(Boolean headLampStatus) {
+ public GetVehicleData setHeadLampStatus( Boolean headLampStatus) {
setParameters(KEY_HEAD_LAMP_STATUS, headLampStatus);
+ return this;
}
public Boolean getHeadLampStatus() {
return getBoolean(KEY_HEAD_LAMP_STATUS);
}
- public void setEngineTorque(Boolean engineTorque) {
+ public GetVehicleData setEngineTorque( Boolean engineTorque) {
setParameters(KEY_ENGINE_TORQUE, engineTorque);
+ return this;
}
public Boolean getEngineTorque() {
return getBoolean(KEY_ENGINE_TORQUE);
}
- public void setEngineOilLife(Boolean engineOilLife) {
+ public GetVehicleData setEngineOilLife( Boolean engineOilLife) {
setParameters(KEY_ENGINE_OIL_LIFE, engineOilLife);
+ return this;
}
public Boolean getEngineOilLife() {
return getBoolean(KEY_ENGINE_OIL_LIFE);
}
- public void setAccPedalPosition(Boolean accPedalPosition) {
+ public GetVehicleData setAccPedalPosition( Boolean accPedalPosition) {
setParameters(KEY_ACC_PEDAL_POSITION, accPedalPosition);
+ return this;
}
public Boolean getAccPedalPosition() {
return getBoolean(KEY_ACC_PEDAL_POSITION);
}
- public void setSteeringWheelAngle(Boolean steeringWheelAngle) {
+ public GetVehicleData setSteeringWheelAngle( Boolean steeringWheelAngle) {
setParameters(KEY_STEERING_WHEEL_ANGLE, steeringWheelAngle);
+ return this;
}
public Boolean getSteeringWheelAngle() {
return getBoolean(KEY_STEERING_WHEEL_ANGLE);
}
- public void setECallInfo(Boolean eCallInfo) {
+ public GetVehicleData setECallInfo( Boolean eCallInfo) {
setParameters(KEY_E_CALL_INFO, eCallInfo);
+ return this;
}
public Boolean getECallInfo() {
return getBoolean(KEY_E_CALL_INFO);
}
- public void setAirbagStatus(Boolean airbagStatus) {
+ public GetVehicleData setAirbagStatus( Boolean airbagStatus) {
setParameters(KEY_AIRBAG_STATUS, airbagStatus);
+ return this;
}
public Boolean getAirbagStatus() {
return getBoolean(KEY_AIRBAG_STATUS);
}
- public void setEmergencyEvent(Boolean emergencyEvent) {
+ public GetVehicleData setEmergencyEvent( Boolean emergencyEvent) {
setParameters(KEY_EMERGENCY_EVENT, emergencyEvent);
+ return this;
}
public Boolean getEmergencyEvent() {
return getBoolean(KEY_EMERGENCY_EVENT);
}
- public void setClusterModeStatus(Boolean clusterModeStatus) {
+ public GetVehicleData setClusterModeStatus( Boolean clusterModeStatus) {
setParameters(KEY_CLUSTER_MODE_STATUS, clusterModeStatus);
+ return this;
}
public Boolean getClusterModeStatus() {
return getBoolean(KEY_CLUSTER_MODE_STATUS);
}
- public void setMyKey(Boolean myKey) {
+ public GetVehicleData setMyKey( Boolean myKey) {
setParameters(KEY_MY_KEY, myKey);
+ return this;
}
public Boolean getMyKey() {
return getBoolean(KEY_MY_KEY);
}
/**
- * Sets a boolean value. If true, gets fuelRange data
- * @param fuelRange
- * a boolean value
- */
- public void setFuelRange(Boolean fuelRange) {
- setParameters(KEY_FUEL_RANGE, fuelRange);
- }
-
- /**
- * Gets a boolean value.
- *
- * @return Boolean -a Boolean value.
- *
- */
- public Boolean getFuelRange() {
- return getBoolean(KEY_FUEL_RANGE);
- }
-
- /**
* Sets a boolean value. If true, subscribes turnSignal data
* @param turnSignal a boolean value
*/
- public void setTurnSignal(Boolean turnSignal) { setParameters(KEY_TURN_SIGNAL, turnSignal); }
+ public GetVehicleData setTurnSignal( Boolean turnSignal) {
+ setParameters(KEY_TURN_SIGNAL, turnSignal);
+ return this;
+ }
/**
* Gets a boolean value. If true, means the turnSignal data has been subscribed.
@@ -544,8 +609,9 @@ public class GetVehicleData extends RPCRequest {
* Sets a boolean value. If true, subscribes electronicParkBrakeStatus data
* @param electronicParkBrakeStatus a boolean value
*/
- public void setElectronicParkBrakeStatus(Boolean electronicParkBrakeStatus){
+ public GetVehicleData setElectronicParkBrakeStatus( Boolean electronicParkBrakeStatus) {
setParameters(KEY_ELECTRONIC_PARK_BRAKE_STATUS, electronicParkBrakeStatus);
+ return this;
}
/**
@@ -560,8 +626,9 @@ public class GetVehicleData extends RPCRequest {
* Sets a boolean value. If true, gets the cloudAppVehicleID data
* @param cloudAppVehicleID a boolean value
*/
- public void setCloudAppVehicleID(boolean cloudAppVehicleID){
+ public GetVehicleData setCloudAppVehicleID( boolean cloudAppVehicleID) {
setParameters(KEY_CLOUD_APP_VEHICLE_ID, cloudAppVehicleID);
+ return this;
}
/**
@@ -577,8 +644,9 @@ public class GetVehicleData extends RPCRequest {
* @param vehicleDataName a String value
* @param vehicleDataState a boolean value
*/
- public void setOEMCustomVehicleData(String vehicleDataName, Boolean vehicleDataState){
+ public GetVehicleData setOEMCustomVehicleData( String vehicleDataName, Boolean vehicleDataState) {
setParameters(vehicleDataName, vehicleDataState);
+ return this;
}
/**
@@ -595,8 +663,9 @@ public class GetVehicleData extends RPCRequest {
* @param windowStatus See WindowStatus
* @since SmartDeviceLink 7.0.0
*/
- public void setWindowStatus(Boolean windowStatus) {
+ public GetVehicleData setWindowStatus( Boolean windowStatus) {
setParameters(KEY_WINDOW_STATUS, windowStatus);
+ return this;
}
/**
@@ -615,8 +684,9 @@ public class GetVehicleData extends RPCRequest {
* @param handsOffSteering To indicate whether driver hands are off the steering wheel
* @since SmartDeviceLink 7.0.0
*/
- public void setHandsOffSteering(Boolean handsOffSteering) {
+ public GetVehicleData setHandsOffSteering( Boolean handsOffSteering) {
setParameters(KEY_HANDS_OFF_STEERING, handsOffSteering);
+ return this;
}
/**
@@ -635,8 +705,9 @@ public class GetVehicleData extends RPCRequest {
* @param gearStatus See GearStatus
* @since SmartDeviceLink 7.0.0
*/
- public void setGearStatus(Boolean gearStatus) {
+ public GetVehicleData setGearStatus( Boolean gearStatus) {
setParameters(KEY_GEAR_STATUS, gearStatus);
+ return this;
}
/**
@@ -648,4 +719,25 @@ public class GetVehicleData extends RPCRequest {
public Boolean getGearStatus() {
return getBoolean(KEY_GEAR_STATUS);
}
+
+ /**
+ * Sets the stabilityControlsStatus.
+ *
+ * @param stabilityControlsStatus See StabilityControlsStatus
+ * @since SmartDeviceLink 7.0.0
+ */
+ public GetVehicleData setStabilityControlsStatus( Boolean stabilityControlsStatus) {
+ setParameters(KEY_STABILITY_CONTROLS_STATUS, stabilityControlsStatus);
+ return this;
+ }
+
+ /**
+ * Gets the stabilityControlsStatus.
+ *
+ * @return Boolean See StabilityControlsStatus
+ * @since SmartDeviceLink 7.0.0
+ */
+ public Boolean getStabilityControlsStatus() {
+ return getBoolean(KEY_STABILITY_CONTROLS_STATUS);
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetVehicleDataResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetVehicleDataResponse.java
index 1226baa45..fd1636edb 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetVehicleDataResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetVehicleDataResponse.java
@@ -54,39 +54,48 @@ import java.util.List;
* @since SmartDeviceLink 2.0
*/
public class GetVehicleDataResponse extends RPCResponse {
+ public static final String KEY_GPS = "gps";
public static final String KEY_SPEED = "speed";
public static final String KEY_RPM = "rpm";
- public static final String KEY_EXTERNAL_TEMPERATURE = "externalTemperature";
+ /**
+ * @deprecated
+ */
+ @Deprecated
public static final String KEY_FUEL_LEVEL = "fuelLevel";
+ /**
+ * @deprecated
+ */
+ @Deprecated
+ public static final String KEY_FUEL_LEVEL_STATE = "fuelLevel_State";
+ public static final String KEY_INSTANT_FUEL_CONSUMPTION = "instantFuelConsumption";
+ public static final String KEY_FUEL_RANGE = "fuelRange";
+ public static final String KEY_EXTERNAL_TEMPERATURE = "externalTemperature";
+ public static final String KEY_TURN_SIGNAL = "turnSignal";
public static final String KEY_VIN = "vin";
public static final String KEY_PRNDL = "prndl";
public static final String KEY_TIRE_PRESSURE = "tirePressure";
- public static final String KEY_ENGINE_TORQUE = "engineTorque";
- public static final String KEY_ENGINE_OIL_LIFE = "engineOilLife";
public static final String KEY_ODOMETER = "odometer";
- public static final String KEY_GPS = "gps";
- public static final String KEY_FUEL_LEVEL_STATE = "fuelLevel_State";
- public static final String KEY_INSTANT_FUEL_CONSUMPTION = "instantFuelConsumption";
public static final String KEY_BELT_STATUS = "beltStatus";
public static final String KEY_BODY_INFORMATION = "bodyInformation";
public static final String KEY_DEVICE_STATUS = "deviceStatus";
public static final String KEY_DRIVER_BRAKING = "driverBraking";
public static final String KEY_WIPER_STATUS = "wiperStatus";
public static final String KEY_HEAD_LAMP_STATUS = "headLampStatus";
+ public static final String KEY_ENGINE_TORQUE = "engineTorque";
public static final String KEY_ACC_PEDAL_POSITION = "accPedalPosition";
public static final String KEY_STEERING_WHEEL_ANGLE = "steeringWheelAngle";
+ public static final String KEY_ENGINE_OIL_LIFE = "engineOilLife";
+ public static final String KEY_ELECTRONIC_PARK_BRAKE_STATUS = "electronicParkBrakeStatus";
+ public static final String KEY_CLOUD_APP_VEHICLE_ID = "cloudAppVehicleID";
public static final String KEY_E_CALL_INFO = "eCallInfo";
public static final String KEY_AIRBAG_STATUS = "airbagStatus";
public static final String KEY_EMERGENCY_EVENT = "emergencyEvent";
public static final String KEY_CLUSTER_MODE_STATUS = "clusterModeStatus";
public static final String KEY_MY_KEY = "myKey";
- public static final String KEY_FUEL_RANGE = "fuelRange";
- public static final String KEY_TURN_SIGNAL = "turnSignal";
- public static final String KEY_ELECTRONIC_PARK_BRAKE_STATUS = "electronicParkBrakeStatus";
- public static final String KEY_CLOUD_APP_VEHICLE_ID = "cloudAppVehicleID";
public static final String KEY_WINDOW_STATUS = "windowStatus";
public static final String KEY_GEAR_STATUS = "gearStatus";
public static final String KEY_HANDS_OFF_STEERING = "handsOffSteering";
+ public static final String KEY_STABILITY_CONTROLS_STATUS = "stabilityControlsStatus";
/**
* Constructs a new GetVehicleDataResponse object
@@ -108,55 +117,93 @@ public class GetVehicleDataResponse extends RPCResponse {
setSuccess(success);
setResultCode(resultCode);
}
- public void setGps(GPSData gps) {
+ public GetVehicleDataResponse setGps( GPSData gps) {
setParameters(KEY_GPS, gps);
+ return this;
}
@SuppressWarnings("unchecked")
public GPSData getGps() {
return (GPSData) getObject(GPSData.class, KEY_GPS);
}
- public void setSpeed(Double speed) {
+ public GetVehicleDataResponse setSpeed( Double speed) {
setParameters(KEY_SPEED, speed);
+ return this;
}
public Double getSpeed() {
Object object = getParameters(KEY_SPEED);
return SdlDataTypeConverter.objectToDouble(object);
}
- public void setRpm(Integer rpm) {
+ public GetVehicleDataResponse setRpm( Integer rpm) {
setParameters(KEY_RPM, rpm);
+ return this;
}
public Integer getRpm() {
return getInteger(KEY_RPM);
}
- public void setFuelLevel(Double fuelLevel) {
- setParameters(KEY_FUEL_LEVEL, fuelLevel);
- }
- public Double getFuelLevel() {
- Object object = getParameters(KEY_FUEL_LEVEL);
- return SdlDataTypeConverter.objectToDouble(object);
- }
- public void setFuelLevelState(ComponentVolumeStatus fuelLevelState) {
+
+ /**
+ * Sets Fuel Level State
+ * @param fuelLevelState a ComponentVolumeStatus related to FuelLevel State
+ */
+ @Deprecated
+ public GetVehicleDataResponse setFuelLevelState( ComponentVolumeStatus fuelLevelState) {
setParameters(KEY_FUEL_LEVEL_STATE, fuelLevelState);
+ return this;
}
+ /**
+ * Gets Fuel Level State
+ * @return a ComponentVolumeStatus related to FuelLevel State
+ */
+ @Deprecated
+ @SuppressWarnings("unchecked")
public ComponentVolumeStatus getFuelLevelState() {
return (ComponentVolumeStatus) getObject(ComponentVolumeStatus.class, KEY_FUEL_LEVEL_STATE);
}
- public void setInstantFuelConsumption(Double instantFuelConsumption) {
+
+ /**
+ * Sets the fuelLevel.
+ *
+ * @param fuelLevel The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec
+ * 7.0, please see fuelRange.
+ * @since SmartDeviceLink 7.0.0
+ */
+ @Deprecated
+ public GetVehicleDataResponse setFuelLevel( Double fuelLevel) {
+ setParameters(KEY_FUEL_LEVEL, fuelLevel);
+ return this;
+ }
+
+ /**
+ * Gets the fuelLevel.
+ *
+ * @return Double The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec
+ * 7.0, please see fuelRange.
+ * @since SmartDeviceLink 7.0.0
+ */
+ @Deprecated
+ public Double getFuelLevel() {
+ Object object = getParameters(KEY_FUEL_LEVEL);
+ return SdlDataTypeConverter.objectToDouble(object);
+ }
+ public GetVehicleDataResponse setInstantFuelConsumption( Double instantFuelConsumption) {
setParameters(KEY_INSTANT_FUEL_CONSUMPTION, instantFuelConsumption);
+ return this;
}
public Double getInstantFuelConsumption() {
Object object = getParameters(KEY_INSTANT_FUEL_CONSUMPTION);
return SdlDataTypeConverter.objectToDouble(object);
}
- public void setExternalTemperature(Double externalTemperature) {
+ public GetVehicleDataResponse setExternalTemperature( Double externalTemperature) {
setParameters(KEY_EXTERNAL_TEMPERATURE, externalTemperature);
+ return this;
}
public Double getExternalTemperature() {
Object object = getParameters(KEY_EXTERNAL_TEMPERATURE);
return SdlDataTypeConverter.objectToDouble(object);
}
- public void setVin(String vin) {
+ public GetVehicleDataResponse setVin( String vin) {
setParameters(KEY_VIN, vin);
+ return this;
}
public String getVin() {
return getString(KEY_VIN);
@@ -169,8 +216,9 @@ public class GetVehicleDataResponse extends RPCResponse {
* @deprecated in SmartDeviceLink 7.0.0
*/
@Deprecated
- public void setPrndl(PRNDL prndl) {
+ public GetVehicleDataResponse setPrndl( PRNDL prndl) {
setParameters(KEY_PRNDL, prndl);
+ return this;
}
/**
@@ -183,123 +231,140 @@ public class GetVehicleDataResponse extends RPCResponse {
public PRNDL getPrndl() {
return (PRNDL) getObject(PRNDL.class, KEY_PRNDL);
}
- public void setTirePressure(TireStatus tirePressure) {
+ public GetVehicleDataResponse setTirePressure( TireStatus tirePressure) {
setParameters(KEY_TIRE_PRESSURE, tirePressure);
+ return this;
}
@SuppressWarnings("unchecked")
public TireStatus getTirePressure() {
return (TireStatus) getObject(TireStatus.class, KEY_TIRE_PRESSURE);
}
- public void setOdometer(Integer odometer) {
+ public GetVehicleDataResponse setOdometer( Integer odometer) {
setParameters(KEY_ODOMETER, odometer);
+ return this;
}
public Integer getOdometer() {
return getInteger(KEY_ODOMETER);
}
- public void setBeltStatus(BeltStatus beltStatus) {
+ public GetVehicleDataResponse setBeltStatus( BeltStatus beltStatus) {
setParameters(KEY_BELT_STATUS, beltStatus);
+ return this;
}
@SuppressWarnings("unchecked")
public BeltStatus getBeltStatus() {
return (BeltStatus) getObject(BeltStatus.class, KEY_BELT_STATUS);
}
- public void setBodyInformation(BodyInformation bodyInformation) {
+ public GetVehicleDataResponse setBodyInformation( BodyInformation bodyInformation) {
setParameters(KEY_BODY_INFORMATION, bodyInformation);
+ return this;
}
@SuppressWarnings("unchecked")
public BodyInformation getBodyInformation() {
return (BodyInformation) getObject(BodyInformation.class, KEY_BODY_INFORMATION);
}
- public void setDeviceStatus(DeviceStatus deviceStatus) {
+ public GetVehicleDataResponse setDeviceStatus( DeviceStatus deviceStatus) {
setParameters(KEY_DEVICE_STATUS, deviceStatus);
+ return this;
}
@SuppressWarnings("unchecked")
public DeviceStatus getDeviceStatus() {
return (DeviceStatus) getObject(DeviceStatus.class, KEY_DEVICE_STATUS);
}
- public void setDriverBraking(VehicleDataEventStatus driverBraking) {
+ public GetVehicleDataResponse setDriverBraking( VehicleDataEventStatus driverBraking) {
setParameters(KEY_DRIVER_BRAKING, driverBraking);
+ return this;
}
public VehicleDataEventStatus getDriverBraking() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_DRIVER_BRAKING);
}
- public void setWiperStatus(WiperStatus wiperStatus) {
+ public GetVehicleDataResponse setWiperStatus( WiperStatus wiperStatus) {
setParameters(KEY_WIPER_STATUS, wiperStatus);
+ return this;
}
public WiperStatus getWiperStatus() {
return (WiperStatus) getObject(WiperStatus.class, KEY_WIPER_STATUS);
}
- public void setHeadLampStatus(HeadLampStatus headLampStatus) {
+ public GetVehicleDataResponse setHeadLampStatus( HeadLampStatus headLampStatus) {
setParameters(KEY_HEAD_LAMP_STATUS, headLampStatus);
+ return this;
}
@SuppressWarnings("unchecked")
public HeadLampStatus getHeadLampStatus() {
return (HeadLampStatus) getObject(HeadLampStatus.class, KEY_HEAD_LAMP_STATUS);
}
- public void setEngineTorque(Double engineTorque) {
+ public GetVehicleDataResponse setEngineTorque( Double engineTorque) {
setParameters(KEY_ENGINE_TORQUE, engineTorque);
+ return this;
}
public Double getEngineTorque() {
Object object = getParameters(KEY_ENGINE_TORQUE);
return SdlDataTypeConverter.objectToDouble(object);
}
- public void setEngineOilLife(Float engineOilLife) {
+ public GetVehicleDataResponse setEngineOilLife( Float engineOilLife) {
setParameters(KEY_ENGINE_OIL_LIFE, engineOilLife);
+ return this;
}
public Float getEngineOilLife() {
Object object = getParameters(KEY_ENGINE_OIL_LIFE);
return SdlDataTypeConverter.objectToFloat(object);
}
- public void setAccPedalPosition(Double accPedalPosition) {
+ public GetVehicleDataResponse setAccPedalPosition( Double accPedalPosition) {
setParameters(KEY_ACC_PEDAL_POSITION, accPedalPosition);
+ return this;
}
public Double getAccPedalPosition() {
Object object = getParameters(KEY_ACC_PEDAL_POSITION);
return SdlDataTypeConverter.objectToDouble(object);
}
- public void setSteeringWheelAngle(Double steeringWheelAngle) {
+ public GetVehicleDataResponse setSteeringWheelAngle( Double steeringWheelAngle) {
setParameters(KEY_STEERING_WHEEL_ANGLE, steeringWheelAngle);
+ return this;
}
public Double getSteeringWheelAngle() {
Object object = getParameters(KEY_STEERING_WHEEL_ANGLE);
return SdlDataTypeConverter.objectToDouble(object);
}
- public void setECallInfo(ECallInfo eCallInfo) {
+ public GetVehicleDataResponse setECallInfo( ECallInfo eCallInfo) {
setParameters(KEY_E_CALL_INFO, eCallInfo);
+ return this;
}
@SuppressWarnings("unchecked")
public ECallInfo getECallInfo() {
return (ECallInfo) getObject(ECallInfo.class, KEY_E_CALL_INFO);
}
- public void setAirbagStatus(AirbagStatus airbagStatus) {
+ public GetVehicleDataResponse setAirbagStatus( AirbagStatus airbagStatus) {
setParameters(KEY_AIRBAG_STATUS, airbagStatus);
+ return this;
}
@SuppressWarnings("unchecked")
public AirbagStatus getAirbagStatus() {
return (AirbagStatus) getObject(AirbagStatus.class, KEY_AIRBAG_STATUS);
}
- public void setEmergencyEvent(EmergencyEvent emergencyEvent) {
+ public GetVehicleDataResponse setEmergencyEvent( EmergencyEvent emergencyEvent) {
setParameters(KEY_EMERGENCY_EVENT, emergencyEvent);
+ return this;
}
@SuppressWarnings("unchecked")
public EmergencyEvent getEmergencyEvent() {
return (EmergencyEvent) getObject(EmergencyEvent.class, KEY_EMERGENCY_EVENT);
}
- public void setClusterModeStatus(ClusterModeStatus clusterModeStatus) {
+ public GetVehicleDataResponse setClusterModeStatus( ClusterModeStatus clusterModeStatus) {
setParameters(KEY_CLUSTER_MODE_STATUS, clusterModeStatus);
+ return this;
}
@SuppressWarnings("unchecked")
public ClusterModeStatus getClusterModeStatus() {
return (ClusterModeStatus) getObject(ClusterModeStatus.class, KEY_CLUSTER_MODE_STATUS);
}
- public void setMyKey(MyKey myKey) {
+ public GetVehicleDataResponse setMyKey( MyKey myKey) {
setParameters(KEY_MY_KEY, myKey);
+ return this;
}
@SuppressWarnings("unchecked")
public MyKey getMyKey() {
@@ -310,11 +375,12 @@ public class GetVehicleDataResponse extends RPCResponse {
* Sets Fuel Range List. Fuel Range - The estimate range in KM the vehicle can travel based on fuel level and consumption.
* @param fuelRange the range in KM left as well as fuel type
*
- * @see com.smartdevicelink.proxy.rpc.FuelRange
+ * @see FuelRange
* @see com.smartdevicelink.proxy.rpc.enums.FuelType
*/
- public void setFuelRange(List<FuelRange> fuelRange) {
+ public GetVehicleDataResponse setFuelRange( List<FuelRange> fuelRange) {
setParameters(KEY_FUEL_RANGE, fuelRange);
+ return this;
}
/**
@@ -331,10 +397,11 @@ public class GetVehicleDataResponse extends RPCResponse {
* Sets turnSignal
* @param turnSignal status of the turn signals
*
- * @see com.smartdevicelink.proxy.rpc.enums.TurnSignal
+ * @see TurnSignal
*/
- public void setTurnSignal(TurnSignal turnSignal) {
+ public GetVehicleDataResponse setTurnSignal( TurnSignal turnSignal) {
setParameters(KEY_TURN_SIGNAL, turnSignal);
+ return this;
}
/**
@@ -352,10 +419,11 @@ public class GetVehicleDataResponse extends RPCResponse {
* Sets electronicParkBrakeStatus
* @param electronicParkBrakeStatus status of the electronic park brake of the connected vehicle
*
- * @see com.smartdevicelink.proxy.rpc.enums.ElectronicParkBrakeStatus
+ * @see ElectronicParkBrakeStatus
*/
- public void setElectronicParkBrakeStatus(ElectronicParkBrakeStatus electronicParkBrakeStatus){
+ public GetVehicleDataResponse setElectronicParkBrakeStatus( ElectronicParkBrakeStatus electronicParkBrakeStatus) {
setParameters(KEY_ELECTRONIC_PARK_BRAKE_STATUS, electronicParkBrakeStatus);
+ return this;
}
/**
@@ -372,8 +440,9 @@ public class GetVehicleDataResponse extends RPCResponse {
* Sets a string value for the cloud app vehicle ID
* @param cloudAppVehicleID a string value
*/
- public void setCloudAppVehicleID(String cloudAppVehicleID){
+ public GetVehicleDataResponse setCloudAppVehicleID( String cloudAppVehicleID) {
setParameters(KEY_CLOUD_APP_VEHICLE_ID, cloudAppVehicleID);
+ return this;
}
/**
@@ -390,8 +459,9 @@ public class GetVehicleDataResponse extends RPCResponse {
* @param vehicleDataName a String value
* @param vehicleDataState a VehicleDataResult value
*/
- public void setOEMCustomVehicleData(String vehicleDataName, Object vehicleDataState){
+ public GetVehicleDataResponse setOEMCustomVehicleData( String vehicleDataName, Object vehicleDataState) {
setParameters(vehicleDataName, vehicleDataState);
+ return this;
}
/**
@@ -408,8 +478,9 @@ public class GetVehicleDataResponse extends RPCResponse {
* @param windowStatus See WindowStatus
* @since SmartDeviceLink 7.0.0
*/
- public void setWindowStatus(List<WindowStatus> windowStatus) {
+ public GetVehicleDataResponse setWindowStatus( List<WindowStatus> windowStatus) {
setParameters(KEY_WINDOW_STATUS, windowStatus);
+ return this;
}
/**
@@ -429,8 +500,9 @@ public class GetVehicleDataResponse extends RPCResponse {
* @param handsOffSteering To indicate whether driver hands are off the steering wheel
* @since SmartDeviceLink 7.0.0
*/
- public void setHandsOffSteering(Boolean handsOffSteering) {
+ public GetVehicleDataResponse setHandsOffSteering( Boolean handsOffSteering) {
setParameters(KEY_HANDS_OFF_STEERING, handsOffSteering);
+ return this;
}
/**
@@ -449,8 +521,9 @@ public class GetVehicleDataResponse extends RPCResponse {
* @param gearStatus See GearStatus
* @since SmartDeviceLink 7.0.0
*/
- public void setGearStatus(GearStatus gearStatus) {
+ public GetVehicleDataResponse setGearStatus( GearStatus gearStatus) {
setParameters(KEY_GEAR_STATUS, gearStatus);
+ return this;
}
/**
@@ -462,4 +535,25 @@ public class GetVehicleDataResponse extends RPCResponse {
public GearStatus getGearStatus() {
return (GearStatus) getObject(GearStatus.class, KEY_GEAR_STATUS);
}
+
+ /**
+ * Gets the stabilityControlsStatus.
+ *
+ * @return StabilityControlsStatus See StabilityControlsStatus
+ * @since SmartDeviceLink 7.0.0
+ */
+ public StabilityControlsStatus getStabilityControlsStatus() {
+ return (StabilityControlsStatus) getObject(StabilityControlsStatus.class, KEY_STABILITY_CONTROLS_STATUS);
+ }
+
+ /**
+ * Sets the stabilityControlsStatus.
+ *
+ * @param stabilityControlsStatus See StabilityControlsStatus
+ * @since SmartDeviceLink 7.0.0
+ */
+ public GetVehicleDataResponse setStabilityControlsStatus( StabilityControlsStatus stabilityControlsStatus) {
+ setParameters(KEY_STABILITY_CONTROLS_STATUS, stabilityControlsStatus);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetWayPoints.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetWayPoints.java
index 2146e3933..6ad9518e9 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetWayPoints.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetWayPoints.java
@@ -59,7 +59,8 @@ public class GetWayPoints extends RPCRequest {
return (WayPointType) getObject(WayPointType.class, KEY_WAY_POINT_TYPE);
}
- public void setWayPointType(@NonNull WayPointType wayPointType) {
+ public GetWayPoints setWayPointType(@NonNull WayPointType wayPointType) {
setParameters(KEY_WAY_POINT_TYPE, wayPointType);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetWayPointsResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetWayPointsResponse.java
index 7a4924dea..cb7b99be3 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetWayPointsResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetWayPointsResponse.java
@@ -59,8 +59,9 @@ public class GetWayPointsResponse extends RPCResponse {
setSuccess(success);
setResultCode(resultCode);
}
- public void setWayPoints(List<LocationDetails> wayPoints) {
- setParameters(KEY_WAY_POINTS, wayPoints);
+ public GetWayPointsResponse setWayPoints( List<LocationDetails> wayPoints) {
+ setParameters(KEY_WAY_POINTS, wayPoints);
+ return this;
}
@SuppressWarnings("unchecked")
public List<LocationDetails> getWayPoints() {
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/Grid.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/Grid.java
index e0c93369d..861c1a433 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/Grid.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/Grid.java
@@ -39,8 +39,9 @@ public class Grid extends RPCStruct {
* Sets the column of this Grid
* @param col the column to be set
*/
- public void setCol(@NonNull Integer col) {
+ public Grid setCol(@NonNull Integer col) {
setValue(KEY_COL, col);
+ return this;
}
/**
@@ -55,8 +56,9 @@ public class Grid extends RPCStruct {
* Sets the row's value of this Grid
* @param row the row to be set
*/
- public void setRow(@NonNull Integer row) {
+ public Grid setRow(@NonNull Integer row) {
setValue(KEY_ROW, row);
+ return this;
}
/**
@@ -71,8 +73,9 @@ public class Grid extends RPCStruct {
* Sets the level value of this Grid
* @param level the level to be set
*/
- public void setLevel(Integer level) {
+ public Grid setLevel( Integer level) {
setValue(KEY_LEVEL, level);
+ return this;
}
/**
@@ -87,8 +90,9 @@ public class Grid extends RPCStruct {
* Sets the column span of this Grid
* @param span the span to be set
*/
- public void setColSpan(Integer span) {
+ public Grid setColSpan( Integer span) {
setValue(KEY_COL_SPAN, span);
+ return this;
}
/**
@@ -103,8 +107,9 @@ public class Grid extends RPCStruct {
* Sets the row span of this Grid
* @param span the span to be set
*/
- public void setRowSpan(Integer span) {
+ public Grid setRowSpan( Integer span) {
setValue(KEY_ROW_SPAN, span);
+ return this;
}
/**
@@ -119,8 +124,9 @@ public class Grid extends RPCStruct {
* Sets the level span of this Grid
* @param span the span to be set
*/
- public void setLevelSpan(Integer span) {
+ public Grid setLevelSpan( Integer span) {
setValue(KEY_LEVEL_SPAN, span);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/HMICapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/HMICapabilities.java
index f1b3c4821..0762b42ed 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/HMICapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/HMICapabilities.java
@@ -59,9 +59,10 @@ public class HMICapabilities extends RPCStruct{
return (Boolean)available;
}
- public void setNavigationAvilable(Boolean available){
- setValue(KEY_NAVIGATION, available);
- }
+ public HMICapabilities setNavigationAvilable( Boolean available) {
+ setValue(KEY_NAVIGATION, available);
+ return this;
+ }
public boolean isPhoneCallAvailable(){
Object available = getValue(KEY_PHONE_CALL);
@@ -71,9 +72,10 @@ public class HMICapabilities extends RPCStruct{
return (Boolean)available;
}
- public void setPhoneCallAvilable(Boolean available){
- setValue(KEY_PHONE_CALL, available);
- }
+ public HMICapabilities setPhoneCallAvilable( Boolean available) {
+ setValue(KEY_PHONE_CALL, available);
+ return this;
+ }
public boolean isVideoStreamingAvailable(){
Object available = getValue(KEY_VIDEO_STREAMING);
@@ -83,9 +85,10 @@ public class HMICapabilities extends RPCStruct{
return (Boolean)available;
}
- public void setVideoStreamingAvailable(Boolean available){
- setValue(KEY_VIDEO_STREAMING, available);
- }
+ public HMICapabilities setVideoStreamingAvailable( Boolean available) {
+ setValue(KEY_VIDEO_STREAMING, available);
+ return this;
+ }
public boolean isRemoteControlAvailable(){
Object available = getValue(KEY_REMOTE_CONTROL);
@@ -95,9 +98,10 @@ public class HMICapabilities extends RPCStruct{
return (Boolean)available;
}
- public void setRemoteControlAvailable(Boolean available){
- setValue(KEY_REMOTE_CONTROL, available);
- }
+ public HMICapabilities setRemoteControlAvailable( Boolean available) {
+ setValue(KEY_REMOTE_CONTROL, available);
+ return this;
+ }
public boolean isAppServicesAvailable(){
Object available = getValue(KEY_APP_SERVICES);
@@ -107,9 +111,10 @@ public class HMICapabilities extends RPCStruct{
return (Boolean)available;
}
- public void setAppServicesAvailable(Boolean available){
- setValue(KEY_APP_SERVICES, available);
- }
+ public HMICapabilities setAppServicesAvailable( Boolean available) {
+ setValue(KEY_APP_SERVICES, available);
+ return this;
+ }
public boolean isDisplaysCapabilityAvailable(){
Object available = getValue(KEY_DISPLAYS);
@@ -119,9 +124,10 @@ public class HMICapabilities extends RPCStruct{
return (Boolean)available;
}
- public void setDisplaysCapabilityAvailable(Boolean available){
- setValue(KEY_DISPLAYS, available);
- }
+ public HMICapabilities setDisplaysCapabilityAvailable( Boolean available) {
+ setValue(KEY_DISPLAYS, available);
+ return this;
+ }
public boolean isSeatLocationAvailable(){
Object available = getValue(KEY_SEAT_LOCATION);
@@ -131,9 +137,10 @@ public class HMICapabilities extends RPCStruct{
return (Boolean)available;
}
- public void setSeatLocationAvailable(Boolean available){
- setValue(KEY_SEAT_LOCATION, available);
- }
+ public HMICapabilities setSeatLocationAvailable( Boolean available) {
+ setValue(KEY_SEAT_LOCATION, available);
+ return this;
+ }
/**
* Sets the driverDistraction.
@@ -141,8 +148,9 @@ public class HMICapabilities extends RPCStruct{
* @param driverDistraction Availability of driver distraction capability. True: Available, False: Not Available
* @since SmartDeviceLink 7.0.0
*/
- public void setDriverDistraction(Boolean driverDistraction) {
+ public HMICapabilities setDriverDistraction( Boolean driverDistraction) {
setValue(KEY_DRIVER_DISTRACTION, driverDistraction);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/HMIPermissions.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/HMIPermissions.java
index 68a84d451..5d5237b12 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/HMIPermissions.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/HMIPermissions.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -112,8 +112,9 @@ public class HMIPermissions extends RPCStruct {
* set HMI level that is permitted for this given RPC.
* @param allowed HMI level that is permitted for this given RPC
*/
- public void setAllowed(@NonNull List<HMILevel> allowed) {
- setValue(KEY_ALLOWED, allowed);
+ public HMIPermissions setAllowed(@NonNull List<HMILevel> allowed) {
+ setValue(KEY_ALLOWED, allowed);
+ return this;
}
/**
@@ -129,7 +130,8 @@ public class HMIPermissions extends RPCStruct {
* set a set of all HMI levels that are prohibited for this given RPC
* @param userDisallowed HMI level that is prohibited for this given RPC
*/
- public void setUserDisallowed(@NonNull List<HMILevel> userDisallowed) {
- setValue(KEY_USER_DISALLOWED, userDisallowed);
+ public HMIPermissions setUserDisallowed(@NonNull List<HMILevel> userDisallowed) {
+ setValue(KEY_USER_DISALLOWED, userDisallowed);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/HMISettingsControlCapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/HMISettingsControlCapabilities.java
index d62b646ba..36ef9c12c 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/HMISettingsControlCapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/HMISettingsControlCapabilities.java
@@ -70,9 +70,10 @@ public class HMISettingsControlCapabilities extends RPCStruct {
*
* @param moduleName The short friendly name of the hmi setting module. It should not be used to identify a module by mobile application.
*/
- public void setModuleName(@NonNull String moduleName) {
- setValue(KEY_MODULE_NAME, moduleName);
- }
+ public HMISettingsControlCapabilities setModuleName(@NonNull String moduleName) {
+ setValue(KEY_MODULE_NAME, moduleName);
+ return this;
+ }
/**
* Gets the moduleName portion of the HMISettingsControlCapabilities class
@@ -88,9 +89,10 @@ public class HMISettingsControlCapabilities extends RPCStruct {
*
* @param distanceUnitAvailable Availability of the control of distance unit.
*/
- public void setDistanceUnitAvailable(Boolean distanceUnitAvailable) {
- setValue(KEY_DISTANCE_UNIT_AVAILABLE, distanceUnitAvailable);
- }
+ public HMISettingsControlCapabilities setDistanceUnitAvailable( Boolean distanceUnitAvailable) {
+ setValue(KEY_DISTANCE_UNIT_AVAILABLE, distanceUnitAvailable);
+ return this;
+ }
/**
* Gets the distanceUnitAvailable portion of the HMISettingsControlCapabilities class
@@ -106,9 +108,10 @@ public class HMISettingsControlCapabilities extends RPCStruct {
*
* @param temperatureUnitAvailable Availability of the control of temperature unit.
*/
- public void setTemperatureUnitAvailable(Boolean temperatureUnitAvailable) {
- setValue(KEY_TEMPERATURE_UNIT_AVAILABLE, temperatureUnitAvailable);
- }
+ public HMISettingsControlCapabilities setTemperatureUnitAvailable( Boolean temperatureUnitAvailable) {
+ setValue(KEY_TEMPERATURE_UNIT_AVAILABLE, temperatureUnitAvailable);
+ return this;
+ }
/**
* Gets the temperatureUnitAvailable portion of the HMISettingsControlCapabilities class
@@ -124,9 +127,10 @@ public class HMISettingsControlCapabilities extends RPCStruct {
*
* @param displayModeUnitAvailable Availability of the control of HMI display mode.
*/
- public void setDisplayModeUnitAvailable(Boolean displayModeUnitAvailable) {
- setValue(KEY_DISPLAY_MODE_UNIT_AVAILABLE, displayModeUnitAvailable);
- }
+ public HMISettingsControlCapabilities setDisplayModeUnitAvailable( Boolean displayModeUnitAvailable) {
+ setValue(KEY_DISPLAY_MODE_UNIT_AVAILABLE, displayModeUnitAvailable);
+ return this;
+ }
/**
* Gets the displayModeUnitAvailable portion of the HMISettingsControlCapabilities class
@@ -141,9 +145,10 @@ public class HMISettingsControlCapabilities extends RPCStruct {
* Sets ModuleInfo for this capability
* @param info the ModuleInfo to be set
*/
- public void setModuleInfo(ModuleInfo info) {
- setValue(KEY_MODULE_INFO, info);
- }
+ public HMISettingsControlCapabilities setModuleInfo( ModuleInfo info) {
+ setValue(KEY_MODULE_INFO, info);
+ return this;
+ }
/**
* Gets a ModuleInfo of this capability
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/HMISettingsControlData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/HMISettingsControlData.java
index 6030e712a..05dda0de2 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/HMISettingsControlData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/HMISettingsControlData.java
@@ -59,11 +59,12 @@ public class HMISettingsControlData extends RPCStruct {
*
* @param displayMode the display mode (DAY, NIGHT, AUTO) of screen on the respective module
*
- * @see com.smartdevicelink.proxy.rpc.enums.DisplayMode
+ * @see DisplayMode
*/
- public void setDisplayMode(DisplayMode displayMode) {
- setValue(KEY_DISPLAY_MODE, displayMode);
- }
+ public HMISettingsControlData setDisplayMode( DisplayMode displayMode) {
+ setValue(KEY_DISPLAY_MODE, displayMode);
+ return this;
+ }
/**
* Gets the displayMode portion of the HMISettingsControlData class
@@ -81,11 +82,12 @@ public class HMISettingsControlData extends RPCStruct {
*
* @param temperatureUnit enum value of temperature unit associated with the display of the current module
*
- * @see com.smartdevicelink.proxy.rpc.enums.TemperatureUnit
+ * @see TemperatureUnit
*/
- public void setTemperatureUnit(TemperatureUnit temperatureUnit) {
- setValue(KEY_TEMPERATURE_UNIT, temperatureUnit);
- }
+ public HMISettingsControlData setTemperatureUnit( TemperatureUnit temperatureUnit) {
+ setValue(KEY_TEMPERATURE_UNIT, temperatureUnit);
+ return this;
+ }
/**
* Gets the temperatureUnit portion of the HMISettingsControlData class
@@ -103,11 +105,12 @@ public class HMISettingsControlData extends RPCStruct {
*
* @param distanceUnit enum value of distance unit associated with the display of the current module
*
- * @see com.smartdevicelink.proxy.rpc.enums.DistanceUnit
+ * @see DistanceUnit
*/
- public void setDistanceUnit(DistanceUnit distanceUnit) {
- setValue(KEY_DISTANCE_UNIT, distanceUnit);
- }
+ public HMISettingsControlData setDistanceUnit( DistanceUnit distanceUnit) {
+ setValue(KEY_DISTANCE_UNIT, distanceUnit);
+ return this;
+ }
/**
* Gets the distanceUnit portion of the HMISettingsControlData class
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/HapticRect.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/HapticRect.java
index c4458e547..a50c2d37b 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/HapticRect.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/HapticRect.java
@@ -62,9 +62,10 @@ public class HapticRect extends RPCStruct {
/**
* Set a user control spatial identifier that references the supplied spatial data
*/
- public void setId(@NonNull Integer id) {
- setValue(KEY_ID, id);
- }
+ public HapticRect setId(@NonNull Integer id) {
+ setValue(KEY_ID, id);
+ return this;
+ }
/**
* @return a user control spatial identifier that references the supplied spatial data
@@ -76,9 +77,10 @@ public class HapticRect extends RPCStruct {
/**
* Set the position of the haptic rectangle to be highlighted. The center of this rectangle will be "touched" when a press occurs.
*/
- public void setRect(@NonNull Rectangle rect) {
- setValue(KEY_RECT, rect);
- }
+ public HapticRect setRect(@NonNull Rectangle rect) {
+ setValue(KEY_RECT, rect);
+ return this;
+ }
/**
* @return the position of the haptic rectangle to be highlighted. The center of this rectangle will be "touched" when a press occurs.
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/HeadLampStatus.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/HeadLampStatus.java
index abd0f10e0..693219fe0 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/HeadLampStatus.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/HeadLampStatus.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -98,20 +98,23 @@ public class HeadLampStatus extends RPCStruct {
setLowBeamsOn(lowBeamsOn);
setHighBeamsOn(highBeamsOn);
}
- public void setAmbientLightStatus(AmbientLightStatus ambientLightSensorStatus) {
+ public HeadLampStatus setAmbientLightStatus( AmbientLightStatus ambientLightSensorStatus) {
setValue(KEY_AMBIENT_LIGHT_SENSOR_STATUS, ambientLightSensorStatus);
+ return this;
}
public AmbientLightStatus getAmbientLightStatus() {
return (AmbientLightStatus) getObject(AmbientLightStatus.class, KEY_AMBIENT_LIGHT_SENSOR_STATUS);
}
- public void setHighBeamsOn(@NonNull Boolean highBeamsOn) {
+ public HeadLampStatus setHighBeamsOn(@NonNull Boolean highBeamsOn) {
setValue(KEY_HIGH_BEAMS_ON, highBeamsOn);
+ return this;
}
public Boolean getHighBeamsOn() {
return getBoolean(KEY_HIGH_BEAMS_ON);
}
- public void setLowBeamsOn(@NonNull Boolean lowBeamsOn) {
+ public HeadLampStatus setLowBeamsOn(@NonNull Boolean lowBeamsOn) {
setValue(KEY_LOW_BEAMS_ON, lowBeamsOn);
+ return this;
}
public Boolean getLowBeamsOn() {
return getBoolean(KEY_LOW_BEAMS_ON);
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/Headers.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/Headers.java
index 845f4649f..6226dc991 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/Headers.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/Headers.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import com.smartdevicelink.proxy.RPCStruct;
@@ -67,48 +67,54 @@ public class Headers extends RPCStruct {
super(hash);
}
- public void setContentType(String contenttype) {
+ public Headers setContentType( String contenttype) {
setValue(KEY_CONTENT_TYPE, contenttype);
+ return this;
}
public String getContentType() {
return getString(KEY_CONTENT_TYPE);
}
- public void setConnectTimeout(Integer connectiontimeout) {
+ public Headers setConnectTimeout( Integer connectiontimeout) {
setValue(KEY_CONNECT_TIMEOUT, connectiontimeout);
+ return this;
}
public Integer getConnectTimeout() {
return getInteger(KEY_CONNECT_TIMEOUT);
}
- public void setDoOutput(Boolean dooutput) {
+ public Headers setDoOutput( Boolean dooutput) {
setValue(KEY_DO_OUTPUT, dooutput);
+ return this;
}
public Boolean getDoOutput() {
return getBoolean(KEY_DO_OUTPUT);
}
- public void setDoInput(Boolean doinput) {
+ public Headers setDoInput( Boolean doinput) {
setValue(KEY_DO_INPUT, doinput);
+ return this;
}
public Boolean getDoInput() {
return getBoolean(KEY_DO_INPUT);
}
- public void setUseCaches(Boolean usescaches) {
+ public Headers setUseCaches( Boolean usescaches) {
setValue(KEY_USE_CACHES, usescaches);
+ return this;
}
public Boolean getUseCaches() {
return getBoolean(KEY_USE_CACHES);
}
- public void setRequestMethod(String requestmethod) {
+ public Headers setRequestMethod( String requestmethod) {
setValue(KEY_REQUEST_METHOD, requestmethod);
+ return this;
}
public String getRequestMethod() {
@@ -116,32 +122,36 @@ public class Headers extends RPCStruct {
}
- public void setReadTimeout(Integer readtimeout) {
+ public Headers setReadTimeout( Integer readtimeout) {
setValue(KEY_READ_TIMEOUT, readtimeout);
+ return this;
}
public Integer getReadTimeout() {
return getInteger(KEY_READ_TIMEOUT);
}
- public void setInstanceFollowRedirects(Boolean instancefollowredirects) {
+ public Headers setInstanceFollowRedirects( Boolean instancefollowredirects) {
setValue(KEY_INSTANCE_FOLLOW_REDIRECTS, instancefollowredirects);
+ return this;
}
public Boolean getInstanceFollowRedirects() {
return getBoolean(KEY_INSTANCE_FOLLOW_REDIRECTS);
}
- public void setCharset(String charset) {
+ public Headers setCharset( String charset) {
setValue(KEY_CHARSET, charset);
+ return this;
}
public String getCharset() {
return getString(KEY_CHARSET);
}
- public void setContentLength(Integer contentlength) {
+ public Headers setContentLength( Integer contentlength) {
setValue(KEY_CONTENT_LENGTH, contentlength);
+ return this;
}
public Integer getContentLength() {
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/Image.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/Image.java
index ba9f25f5c..1d5b57e26 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/Image.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/Image.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -101,8 +101,9 @@ public class Image extends RPCStruct {
* Set either the static hex icon value or the binary image file name identifier (sent by PutFile)
* @param value either the static hex icon value or the binary image file name identifier (sent by PutFile)
*/
- public void setValue(@NonNull String value) {
+ public Image setValue(@NonNull String value) {
setValue(KEY_VALUE, value);
+ return this;
}
/**
@@ -117,8 +118,9 @@ public class Image extends RPCStruct {
* Set the image type (static or dynamic image)
* @param imageType whether it is a static or dynamic image
*/
- public void setImageType(@NonNull ImageType imageType) {
+ public Image setImageType(@NonNull ImageType imageType) {
setValue(KEY_IMAGE_TYPE, imageType);
+ return this;
}
/**
@@ -133,8 +135,9 @@ public class Image extends RPCStruct {
* Set whether this Image is a template image whose coloring should be decided by the HMI
* @param isTemplate boolean that tells whether this Image is a template image
*/
- public void setIsTemplate(Boolean isTemplate){
+ public Image setIsTemplate( Boolean isTemplate) {
setValue(KEY_IS_TEMPLATE, isTemplate);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ImageField.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ImageField.java
index de052a6f7..0e4748072 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ImageField.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ImageField.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -108,21 +108,24 @@ public class ImageField extends RPCStruct {
public ImageFieldName getName() {
return (ImageFieldName) getObject(ImageFieldName.class, KEY_NAME);
}
- public void setName(@NonNull ImageFieldName name ) {
+ public ImageField setName(@NonNull ImageFieldName name) {
setValue(KEY_NAME, name);
- }
+ return this;
+ }
@SuppressWarnings("unchecked")
public List<FileType> getImageTypeSupported() {
return (List<FileType>) getObject(FileType.class, KEY_IMAGE_TYPE_SUPPORTED);
}
- public void setImageTypeSupported(@NonNull List<FileType> imageTypeSupported ) {
+ public ImageField setImageTypeSupported(@NonNull List<FileType> imageTypeSupported) {
setValue(KEY_IMAGE_TYPE_SUPPORTED, imageTypeSupported);
+ return this;
}
@SuppressWarnings("unchecked")
public ImageResolution getImageResolution() {
return (ImageResolution) getObject(ImageResolution.class, KEY_IMAGE_RESOLUTION);
}
- public void setImageResolution( ImageResolution imageResolution ) {
+ public ImageField setImageResolution( ImageResolution imageResolution) {
setValue(KEY_IMAGE_RESOLUTION, imageResolution);
- }
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ImageResolution.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ImageResolution.java
index 66841c773..151075bab 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ImageResolution.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ImageResolution.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -101,11 +101,12 @@ public class ImageResolution extends RPCStruct {
* the Android H264 decoder, as a workaround the odd value is
* converted to a pair value.
*/
- public void setResolutionWidth(@NonNull Integer resolutionWidth) {
- if(resolutionWidth != null && resolutionWidth % 2 != 0) {
- resolutionWidth++;
- }
+ public ImageResolution setResolutionWidth(@NonNull Integer resolutionWidth) {
+ if(resolutionWidth != null && resolutionWidth % 2 != 0) {
+ resolutionWidth++;
+ }
setValue(KEY_RESOLUTION_WIDTH, resolutionWidth);
+ return this;
}
public Integer getResolutionWidth() {
@@ -117,11 +118,12 @@ public class ImageResolution extends RPCStruct {
* the Android H264 decoder, as a workaround the odd value is
* converted to a pair value.
*/
- public void setResolutionHeight(@NonNull Integer resolutionHeight) {
- if(resolutionHeight != null && resolutionHeight % 2 != 0) {
- resolutionHeight++;
- }
+ public ImageResolution setResolutionHeight(@NonNull Integer resolutionHeight) {
+ if(resolutionHeight != null && resolutionHeight % 2 != 0) {
+ resolutionHeight++;
+ }
setValue(KEY_RESOLUTION_HEIGHT, resolutionHeight);
+ return this;
}
public Integer getResolutionHeight() {
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/KeyboardProperties.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/KeyboardProperties.java
index cd721fec8..3687cd05e 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/KeyboardProperties.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/KeyboardProperties.java
@@ -131,16 +131,18 @@ public class KeyboardProperties extends RPCStruct {
return (Language) getObject(Language.class, KEY_LANGUAGE);
}
- public void setLanguage(Language language) {
+ public KeyboardProperties setLanguage( Language language) {
setValue(KEY_LANGUAGE, language);
+ return this;
}
public KeyboardLayout getKeyboardLayout() {
return (KeyboardLayout) getObject(KeyboardLayout.class, KEY_KEYBOARD_LAYOUT);
}
- public void setKeyboardLayout(KeyboardLayout keyboardLayout) {
+ public KeyboardProperties setKeyboardLayout( KeyboardLayout keyboardLayout) {
setValue(KEY_KEYBOARD_LAYOUT, keyboardLayout);
+ return this;
}
public KeypressMode getKeypressMode() {
@@ -151,12 +153,13 @@ public class KeyboardProperties extends RPCStruct {
return kp;
}
- public void setKeypressMode(KeypressMode keypressMode) {
+ public KeyboardProperties setKeypressMode( KeypressMode keypressMode) {
if (keypressMode != null) {
setValue(KEY_KEYPRESS_MODE, keypressMode);
} else {
setValue(KEY_KEYPRESS_MODE, KEYPRESS_MODE_DEFAULT);
}
+ return this;
}
@SuppressWarnings("unchecked")
@@ -164,8 +167,9 @@ public class KeyboardProperties extends RPCStruct {
return (List<String>) getObject(String.class, KEY_LIMITED_CHARACTER_LIST);
}
- public void setLimitedCharacterList(List<String> limitedCharacterList) {
+ public KeyboardProperties setLimitedCharacterList( List<String> limitedCharacterList) {
setValue(KEY_LIMITED_CHARACTER_LIST, limitedCharacterList);
+ return this;
}
/**
@@ -180,11 +184,11 @@ public class KeyboardProperties extends RPCStruct {
/**
* Sets the text that allows an app to prepopulate the text field with a suggested entry as the user types
* @param autoCompleteText String representing the suggestions text
- * @deprecated use {@link #setAutoCompleteList(List<String>)} instead
+ * @deprecated use {@link #setAutoCompleteList( List <String>)} instead
*/
- @Deprecated // Note: removing autoCompleteText setter will leave no way to provide auto complete suggestions on old head units that don't support autoCompleteList
- public void setAutoCompleteText(String autoCompleteText) {
+ @Deprecated public KeyboardProperties setAutoCompleteText( String autoCompleteText) {
setValue(KEY_AUTO_COMPLETE_TEXT, autoCompleteText);
+ return this;
}
/**
@@ -201,7 +205,8 @@ public class KeyboardProperties extends RPCStruct {
* completed entries as the user types. Set to an empty array to remove the auto-complete list from the screen
* @param autoCompleteList List<String> representing the suggestions list
*/
- public void setAutoCompleteList(List<String> autoCompleteList) {
+ public KeyboardProperties setAutoCompleteList( List<String> autoCompleteList) {
setValue(KEY_AUTO_COMPLETE_LIST, autoCompleteList);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/LightCapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/LightCapabilities.java
index 6ecfca5c6..365e71543 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/LightCapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/LightCapabilities.java
@@ -75,11 +75,12 @@ public class LightCapabilities extends RPCStruct {
*
* @param name enum value of type LightName that describes the specific light
*
- * @see com.smartdevicelink.proxy.rpc.enums.LightName
+ * @see LightName
*/
- public void setName(@NonNull LightName name) {
- setValue(KEY_NAME, name);
- }
+ public LightCapabilities setName(@NonNull LightName name) {
+ setValue(KEY_NAME, name);
+ return this;
+ }
/**
* Gets the name portion of the LightCapabilities class
@@ -97,9 +98,10 @@ public class LightCapabilities extends RPCStruct {
*
* @param densityAvailable Indicates if the light's density can be set remotely (similar to a dimmer).
*/
- public void setDensityAvailable(Boolean densityAvailable) {
- setValue(KEY_DENSITY_AVAILABLE, densityAvailable);
- }
+ public LightCapabilities setDensityAvailable( Boolean densityAvailable) {
+ setValue(KEY_DENSITY_AVAILABLE, densityAvailable);
+ return this;
+ }
/**
* Gets the densityAvailable portion of the LightCapabilities class
@@ -115,9 +117,10 @@ public class LightCapabilities extends RPCStruct {
*
* @param RGBColorSpaceAvailable Indicates if the light's color can be set remotely by using the RGB color space.
*/
- public void setRGBColorSpaceAvailable(Boolean RGBColorSpaceAvailable) {
- setValue(KEY_RGB_COLOR_SPACE_AVAILABLE, RGBColorSpaceAvailable);
- }
+ public LightCapabilities setRGBColorSpaceAvailable( Boolean RGBColorSpaceAvailable) {
+ setValue(KEY_RGB_COLOR_SPACE_AVAILABLE, RGBColorSpaceAvailable);
+ return this;
+ }
/**
* Gets the RGBColorSpaceAvailable portion of the LightCapabilities class
@@ -133,9 +136,10 @@ public class LightCapabilities extends RPCStruct {
*
* @param statusAvailable Indicates if the status (ON/OFF) can be set remotely. App shall not use read-only values (RAMP_UP/RAMP_DOWN/UNKNOWN/INVALID) in a setInteriorVehicleData request.
*/
- public void setStatusAvailable(Boolean statusAvailable) {
- setValue(KEY_STATUS_AVAILABLE, statusAvailable);
- }
+ public LightCapabilities setStatusAvailable( Boolean statusAvailable) {
+ setValue(KEY_STATUS_AVAILABLE, statusAvailable);
+ return this;
+ }
/**
* Gets the statusAvailable portion of the LightCapabilities class
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/LightControlCapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/LightControlCapabilities.java
index 3cc66e67e..979b0a0cf 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/LightControlCapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/LightControlCapabilities.java
@@ -76,9 +76,10 @@ public class LightControlCapabilities extends RPCStruct {
*
* @param moduleName The short friendly name of the light control module. It should not be used to identify a module by mobile application.
*/
- public void setModuleName(@NonNull String moduleName) {
- setValue(KEY_MODULE_NAME, moduleName);
- }
+ public LightControlCapabilities setModuleName(@NonNull String moduleName) {
+ setValue(KEY_MODULE_NAME, moduleName);
+ return this;
+ }
/**
* Gets the moduleName portion of the LightControlCapabilities class
@@ -104,17 +105,19 @@ public class LightControlCapabilities extends RPCStruct {
*
* @param supportedLights An array of available LightCapabilities that are controllable.
*/
- public void setSupportedLights(@NonNull List<LightCapabilities> supportedLights) {
- setValue(KEY_SUPPORTED_LIGHTS, supportedLights);
- }
+ public LightControlCapabilities setSupportedLights(@NonNull List<LightCapabilities> supportedLights) {
+ setValue(KEY_SUPPORTED_LIGHTS, supportedLights);
+ return this;
+ }
/**
* Sets ModuleInfo for this capability
* @param info the ModuleInfo to be set
*/
- public void setModuleInfo(ModuleInfo info) {
- setValue(KEY_MODULE_INFO, info);
- }
+ public LightControlCapabilities setModuleInfo( ModuleInfo info) {
+ setValue(KEY_MODULE_INFO, info);
+ return this;
+ }
/**
* Gets a ModuleInfo of this capability
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/LightControlData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/LightControlData.java
index 05bcb5fec..e40fd8c68 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/LightControlData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/LightControlData.java
@@ -83,7 +83,8 @@ public class LightControlData extends RPCStruct {
*
* @param lightState An array of LightNames and their current or desired status. Status of the LightNames that are not listed in the array shall remain unchanged.
*/
- public void setLightState(@NonNull List<LightState> lightState) {
- setValue(KEY_LIGHT_STATE, lightState);
- }
+ public LightControlData setLightState(@NonNull List<LightState> lightState) {
+ setValue(KEY_LIGHT_STATE, lightState);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/LightState.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/LightState.java
index 0676b50da..749d43039 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/LightState.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/LightState.java
@@ -79,9 +79,10 @@ public class LightState extends RPCStruct {
*
* @param id The name of a light or a group of lights.
*/
- public void setId(@NonNull LightName id) {
- setValue(KEY_ID, id);
- }
+ public LightState setId(@NonNull LightName id) {
+ setValue(KEY_ID, id);
+ return this;
+ }
/**
* Gets the id portion of the LightState class
@@ -97,11 +98,12 @@ public class LightState extends RPCStruct {
*
* @param status enum value of type LightStatus that describes the specific lights state
*
- * @see com.smartdevicelink.proxy.rpc.enums.LightStatus
+ * @see LightStatus
*/
- public void setStatus(@NonNull LightStatus status) {
- setValue(KEY_STATUS, status);
- }
+ public LightState setStatus(@NonNull LightStatus status) {
+ setValue(KEY_STATUS, status);
+ return this;
+ }
/**
* Gets the status portion of the LightState class
@@ -129,9 +131,10 @@ public class LightState extends RPCStruct {
*
* @param density a float representation of the density of the specific light state
*/
- public void setDensity(Float density) {
- setValue(KEY_DENSITY, density);
- }
+ public LightState setDensity( Float density) {
+ setValue(KEY_DENSITY, density);
+ return this;
+ }
/**
* Gets the color portion of the LightState class
@@ -150,9 +153,10 @@ public class LightState extends RPCStruct {
*
* @param color an RGBColor representation of the color of this specific light state
*
- * @see com.smartdevicelink.proxy.rpc.RGBColor
+ * @see RGBColor
*/
- public void setColor(RGBColor color) {
- setValue(KEY_COLOR, color);
- }
+ public LightState setColor( RGBColor color) {
+ setValue(KEY_COLOR, color);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ListFilesResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ListFilesResponse.java
index e69e0a900..b60d79522 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ListFilesResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ListFilesResponse.java
@@ -91,8 +91,9 @@ public class ListFilesResponse extends RPCResponse {
super.format(rpcVersion, formatParams);
}
- public void setFilenames(List<String> filenames) {
+ public ListFilesResponse setFilenames( List<String> filenames) {
setParameters(KEY_FILENAMES, filenames);
+ return this;
}
@SuppressWarnings("unchecked")
@@ -100,8 +101,9 @@ public class ListFilesResponse extends RPCResponse {
return (List<String>) getObject(String.class, KEY_FILENAMES);
}
- public void setSpaceAvailable(Integer spaceAvailable) {
+ public ListFilesResponse setSpaceAvailable( Integer spaceAvailable) {
setParameters(KEY_SPACE_AVAILABLE, spaceAvailable);
+ return this;
}
public Integer getSpaceAvailable() {
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/LocationDetails.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/LocationDetails.java
index f548336f2..574d16912 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/LocationDetails.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/LocationDetails.java
@@ -56,16 +56,18 @@ public class LocationDetails extends RPCStruct{
public Coordinate getCoordinate() {
return (Coordinate) getObject(Coordinate.class, KEY_COORDINATE);
}
- public void setCoordinate(Coordinate coordinate) {
+ public LocationDetails setCoordinate( Coordinate coordinate) {
setValue(KEY_COORDINATE, coordinate);
+ return this;
}
public String getLocationName() {
return getString(KEY_LOCATION_NAME);
}
- public void setLocationName(String locationName) {
+ public LocationDetails setLocationName( String locationName) {
setValue(KEY_LOCATION_NAME, locationName);
+ return this;
}
@SuppressWarnings("unchecked")
@@ -73,24 +75,27 @@ public class LocationDetails extends RPCStruct{
return (List<String>) getObject(String.class, KEY_ADDRESS_LINES);
}
- public void setAddressLines(List<String> addressLines) {
+ public LocationDetails setAddressLines( List<String> addressLines) {
setValue(KEY_ADDRESS_LINES, addressLines);
+ return this;
}
public String getLocationDescription() {
return getString(KEY_LOCATION_DESCRIPTION);
}
- public void setLocationDescription(String locationDescription) {
+ public LocationDetails setLocationDescription( String locationDescription) {
setValue(KEY_LOCATION_DESCRIPTION, locationDescription);
+ return this;
}
public String getPhoneNumber() {
return getString(KEY_PHONE_NUMBER);
}
- public void setPhoneNumber(String phoneNumber) {
+ public LocationDetails setPhoneNumber( String phoneNumber) {
setValue(KEY_PHONE_NUMBER, phoneNumber);
+ return this;
}
@SuppressWarnings("unchecked")
@@ -98,15 +103,17 @@ public class LocationDetails extends RPCStruct{
return (Image) getObject(Image.class, KEY_LOCATION_IMAGE);
}
- public void setLocationImage(Image locationImage) {
+ public LocationDetails setLocationImage( Image locationImage) {
setValue(KEY_LOCATION_IMAGE, locationImage);
+ return this;
}
@SuppressWarnings("unchecked")
public OasisAddress getSearchAddress() {
return (OasisAddress) getObject(OasisAddress.class, KEY_SEARCH_ADDRESS);
}
- public void setSearchAddress(OasisAddress searchAddress) {
+ public LocationDetails setSearchAddress( OasisAddress searchAddress) {
setValue(KEY_SEARCH_ADDRESS, searchAddress);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/MassageCushionFirmness.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/MassageCushionFirmness.java
index 6a4694a22..5d6219e14 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/MassageCushionFirmness.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/MassageCushionFirmness.java
@@ -77,9 +77,10 @@ public class MassageCushionFirmness extends RPCStruct {
*
* @param cushion type of MassageCushion for multi-contour massage seat
*/
- public void setCushion(@NonNull MassageCushion cushion) {
- setValue(KEY_CUSHION, cushion);
- }
+ public MassageCushionFirmness setCushion(@NonNull MassageCushion cushion) {
+ setValue(KEY_CUSHION, cushion);
+ return this;
+ }
/**
* Gets the type of MassageCushion for multi-contour massage seat
@@ -95,9 +96,10 @@ public class MassageCushionFirmness extends RPCStruct {
*
* @param firmness firmness of the supplied MassageCushion (Min: 0 Max: 100)
*/
- public void setFirmness(@NonNull Integer firmness) {
- setValue(KEY_FIRMNESS, firmness);
- }
+ public MassageCushionFirmness setFirmness(@NonNull Integer firmness) {
+ setValue(KEY_FIRMNESS, firmness);
+ return this;
+ }
/**
* Gets the firmness associated with the supplied MassageCushion
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/MassageModeData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/MassageModeData.java
index 1802c18c3..fee40d30d 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/MassageModeData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/MassageModeData.java
@@ -78,9 +78,10 @@ public class MassageModeData extends RPCStruct {
*
* @param massageZone the zone of a multi-contour massage seat
*/
- public void setMassageZone(@NonNull MassageZone massageZone) {
- setValue(KEY_MASSAGE_ZONE, massageZone);
- }
+ public MassageModeData setMassageZone(@NonNull MassageZone massageZone) {
+ setValue(KEY_MASSAGE_ZONE, massageZone);
+ return this;
+ }
/**
* Gets the massageZone that will be associated with the supplied massage mode
@@ -105,7 +106,8 @@ public class MassageModeData extends RPCStruct {
*
* @param massageMode mode of massage to be used (OFF, LOW, HIGH)
*/
- public void setMassageMode(@NonNull MassageMode massageMode) {
- setValue(KEY_MASSAGE_MODE, massageMode);
- }
+ public MassageModeData setMassageMode(@NonNull MassageMode massageMode) {
+ setValue(KEY_MASSAGE_MODE, massageMode);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/MediaServiceData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/MediaServiceData.java
index 16065f669..a4722adb9 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/MediaServiceData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/MediaServiceData.java
@@ -68,9 +68,10 @@ public class MediaServiceData extends RPCStruct {
/**
* @param mediaType - The type of the currently playing or paused track.
*/
- public void setMediaType(MediaType mediaType) {
- setValue(KEY_MEDIA_TYPE, mediaType);
- }
+ public MediaServiceData setMediaType( MediaType mediaType) {
+ setValue(KEY_MEDIA_TYPE, mediaType);
+ return this;
+ }
/**
* @return mediaType - The type of the currently playing or paused track.
@@ -85,9 +86,10 @@ public class MediaServiceData extends RPCStruct {
* Audiobook: The name of the current chapter
* @param mediaTitle -
*/
- public void setMediaTitle(String mediaTitle) {
- setValue(KEY_MEDIA_TITLE, mediaTitle);
- }
+ public MediaServiceData setMediaTitle( String mediaTitle) {
+ setValue(KEY_MEDIA_TITLE, mediaTitle);
+ return this;
+ }
/**
* Music: The name of the current track
@@ -105,9 +107,10 @@ public class MediaServiceData extends RPCStruct {
* Audiobook: The book author's name
* @param mediaArtist -
*/
- public void setMediaArtist(String mediaArtist) {
- setValue(KEY_MEDIA_ARTIST, mediaArtist);
- }
+ public MediaServiceData setMediaArtist( String mediaArtist) {
+ setValue(KEY_MEDIA_ARTIST, mediaArtist);
+ return this;
+ }
/**
* Music: The name of the current album artist
@@ -125,9 +128,10 @@ public class MediaServiceData extends RPCStruct {
* Audiobook: The name of the current book
* @param mediaAlbum -
*/
- public void setMediaAlbum(String mediaAlbum) {
- setValue(KEY_MEDIA_ALBUM, mediaAlbum);
- }
+ public MediaServiceData setMediaAlbum( String mediaAlbum) {
+ setValue(KEY_MEDIA_ALBUM, mediaAlbum);
+ return this;
+ }
/**
* Music: The name of the current album
@@ -146,9 +150,10 @@ public class MediaServiceData extends RPCStruct {
* Audiobook: The book or chapter artwork of the current audiobook
* @param mediaImage
*/
- public void setMediaImage(Image mediaImage){
- setValue(KEY_MEDIA_IMAGE, mediaImage);
- }
+ public MediaServiceData setMediaImage( Image mediaImage) {
+ setValue(KEY_MEDIA_IMAGE, mediaImage);
+ return this;
+ }
/**
* Returns the media image associated with the currently playing media
@@ -166,9 +171,10 @@ public class MediaServiceData extends RPCStruct {
* Audiobook: Likely not applicable, possibly a collection or "playlist" of books
* @param playlistName -
*/
- public void setPlaylistName(String playlistName) {
- setValue(KEY_PLAYLIST_NAME, playlistName);
- }
+ public MediaServiceData setPlaylistName( String playlistName) {
+ setValue(KEY_PLAYLIST_NAME, playlistName);
+ return this;
+ }
/**
* Music: The name of the playlist or radio station, if the user is playing from a playlist, otherwise, Null
@@ -183,9 +189,10 @@ public class MediaServiceData extends RPCStruct {
/**
* @param isExplicit - Whether or not the content currently playing (e.g. the track, episode, or book) contains explicit content
*/
- public void setIsExplicit(Boolean isExplicit) {
- setValue(KEY_IS_EXPLICIT, isExplicit);
- }
+ public MediaServiceData setIsExplicit( Boolean isExplicit) {
+ setValue(KEY_IS_EXPLICIT, isExplicit);
+ return this;
+ }
/**
* @return isExplicit - Whether or not the content currently playing (e.g. the track, episode, or book) contains explicit content
@@ -200,9 +207,10 @@ public class MediaServiceData extends RPCStruct {
* Audiobook: The current progress of the current segment (e.g. the chapter) in seconds
* @param trackPlaybackProgress -
*/
- public void setTrackPlaybackProgress(Integer trackPlaybackProgress) {
- setValue(KEY_TRACK_PLAYBACK_PROGRESS, trackPlaybackProgress);
- }
+ public MediaServiceData setTrackPlaybackProgress( Integer trackPlaybackProgress) {
+ setValue(KEY_TRACK_PLAYBACK_PROGRESS, trackPlaybackProgress);
+ return this;
+ }
/**
* Music: The current progress of the track in seconds
@@ -220,9 +228,10 @@ public class MediaServiceData extends RPCStruct {
* Audiobook: The total duration of the current segment (e.g. the chapter) in seconds
* @param trackPlaybackDuration -
*/
- public void setTrackPlaybackDuration(Integer trackPlaybackDuration) {
- setValue(KEY_TRACK_PLAYBACK_DURATION, trackPlaybackDuration);
- }
+ public MediaServiceData setTrackPlaybackDuration( Integer trackPlaybackDuration) {
+ setValue(KEY_TRACK_PLAYBACK_DURATION, trackPlaybackDuration);
+ return this;
+ }
/**
* Music: The total duration of the track in seconds
@@ -240,9 +249,10 @@ public class MediaServiceData extends RPCStruct {
* Audiobook: The current progress of the playback queue (e.g. the book) in seconds
* @param queuePlaybackProgress -
*/
- public void setQueuePlaybackProgress(Integer queuePlaybackProgress) {
- setValue(KEY_QUEUE_PLAYBACK_PROGRESS, queuePlaybackProgress);
- }
+ public MediaServiceData setQueuePlaybackProgress( Integer queuePlaybackProgress) {
+ setValue(KEY_QUEUE_PLAYBACK_PROGRESS, queuePlaybackProgress);
+ return this;
+ }
/**
* Music: The current progress of the playback queue in seconds
@@ -260,9 +270,10 @@ public class MediaServiceData extends RPCStruct {
* Audiobook: The total duration of the playback queue (e.g. the book) in seconds
* @param queuePlaybackDuration -
*/
- public void setQueuePlaybackDuration(Integer queuePlaybackDuration) {
- setValue(KEY_QUEUE_PLAYBACK_DURATION, queuePlaybackDuration);
- }
+ public MediaServiceData setQueuePlaybackDuration( Integer queuePlaybackDuration) {
+ setValue(KEY_QUEUE_PLAYBACK_DURATION, queuePlaybackDuration);
+ return this;
+ }
/**
* Music: The total duration of the playback queue in seconds
@@ -280,9 +291,10 @@ public class MediaServiceData extends RPCStruct {
* Audiobook: The current number (1 based) of the episode in the playback queue (e.g. the chapter number in the book)
* @param queueCurrentTrackNumber -
*/
- public void setQueueCurrentTrackNumber(Integer queueCurrentTrackNumber) {
- setValue(KEY_QUEUE_CURRENT_TRACK_NUMBER, queueCurrentTrackNumber);
- }
+ public MediaServiceData setQueueCurrentTrackNumber( Integer queueCurrentTrackNumber) {
+ setValue(KEY_QUEUE_CURRENT_TRACK_NUMBER, queueCurrentTrackNumber);
+ return this;
+ }
/**
* Music: The current number (1 based) of the track in the playback queue
@@ -300,9 +312,10 @@ public class MediaServiceData extends RPCStruct {
* Audiobook: The total number of sections in the playback queue (e.g. the number of chapters in the book)
* @param queueTotalTrackCount -
*/
- public void setQueueTotalTrackCount(Integer queueTotalTrackCount) {
- setValue(KEY_QUEUE_TOTAL_TRACK_COUNT, queueTotalTrackCount);
- }
+ public MediaServiceData setQueueTotalTrackCount( Integer queueTotalTrackCount) {
+ setValue(KEY_QUEUE_TOTAL_TRACK_COUNT, queueTotalTrackCount);
+ return this;
+ }
/**
* Music: The total number of tracks in the playback queue
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/MenuParams.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/MenuParams.java
index 3ed8db072..408c36f71 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/MenuParams.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/MenuParams.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -123,9 +123,10 @@ public class MenuParams extends RPCStruct {
* Set the unique ID of an existing submenu to which a command will be added.
* If this element is not provided, the command will be added to the top level of the Command Menu.
* @param parentID Min: 0; Max: 2000000000
- */
- public void setParentID( Integer parentID ) {
+ */
+ public MenuParams setParentID( Integer parentID) {
setValue(KEY_PARENT_ID, parentID);
+ return this;
}
/**
* Get the position within the items of the parent Command Menu. 0 will insert at the front, 1 will insert after the first existing element, etc.
@@ -142,7 +143,7 @@ public class MenuParams extends RPCStruct {
return getInteger( KEY_POSITION );
}
/**
- * Set the position within the items of the parent Command Menu. 0 will insert at the front, 1 will insert after the first existing element, etc.
+ * Set the position within the items of the parent Command Menu. 0 will insert at the front, 1 will insert after the first existing element, etc.
* Position of any submenu will always be located before the return and exit options.
* <ul>
* <li>Min Value: 0</li>
@@ -151,9 +152,10 @@ public class MenuParams extends RPCStruct {
* <li>If this element is omitted, the entry will be added at the end of the parent menu.</li>
* </ul>
* @param position Mix: 0 Max: 1000
- */
- public void setPosition( Integer position ) {
+ */
+ public MenuParams setPosition( Integer position) {
setValue(KEY_POSITION, position);
+ return this;
}
/**
* Get the text which appears in menu, representing this command.
@@ -175,8 +177,9 @@ public class MenuParams extends RPCStruct {
* </ul>
* @param menuName the menu name
*/
-
- public void setMenuName( @NonNull String menuName ) {
+
+ public MenuParams setMenuName(@NonNull String menuName) {
setValue(KEY_MENU_NAME, menuName);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/MetadataTags.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/MetadataTags.java
index 49afcd86b..6894109fa 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/MetadataTags.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/MetadataTags.java
@@ -59,16 +59,18 @@ public class MetadataTags extends RPCStruct {
/**
* Set the metadata types of data contained in the "mainField1" text field
*/
- public void setMainField1( List<MetadataType> metadataTypes ) {
- setValue(KEY_MAIN_FIELD_1_TYPE, metadataTypes);
- }
+ public MetadataTags setMainField1( List<MetadataType> metadataTypes) {
+ setValue(KEY_MAIN_FIELD_1_TYPE, metadataTypes);
+ return this;
+ }
/**
* Set the metadata type of data contained in the "mainField1" text field
*/
- public void setMainField1(MetadataType metadataType) {
- setValue(KEY_MAIN_FIELD_1_TYPE, Collections.singletonList(metadataType));
- }
+ public MetadataTags setMainField1( MetadataType metadataType) {
+ setValue(KEY_MAIN_FIELD_1_TYPE, Collections.singletonList(metadataType));
+ return this;
+ }
/**
* @return The type of data contained in the "mainField1" text field
@@ -81,16 +83,18 @@ public class MetadataTags extends RPCStruct {
/**
* Set the metadata types of data contained in the "mainField2" text field
*/
- public void setMainField2( List<MetadataType> metadataTypes ) {
- setValue(KEY_MAIN_FIELD_2_TYPE, metadataTypes);
- }
+ public MetadataTags setMainField2( List<MetadataType> metadataTypes) {
+ setValue(KEY_MAIN_FIELD_2_TYPE, metadataTypes);
+ return this;
+ }
/**
* Set the metadata type of data contained in the "mainField2" text field
*/
- public void setMainField2(MetadataType metadataType) {
- setValue(KEY_MAIN_FIELD_2_TYPE, Collections.singletonList(metadataType));
- }
+ public MetadataTags setMainField2( MetadataType metadataType) {
+ setValue(KEY_MAIN_FIELD_2_TYPE, Collections.singletonList(metadataType));
+ return this;
+ }
/**
* @return The type of data contained in the "mainField2" text field
@@ -103,16 +107,18 @@ public class MetadataTags extends RPCStruct {
/**
* Set the metadata types of data contained in the "mainField3" text field
*/
- public void setMainField3( List<MetadataType> metadataTypes ) {
- setValue(KEY_MAIN_FIELD_3_TYPE, metadataTypes);
- }
+ public MetadataTags setMainField3( List<MetadataType> metadataTypes) {
+ setValue(KEY_MAIN_FIELD_3_TYPE, metadataTypes);
+ return this;
+ }
/**
* Set the metadata type of data contained in the "mainField3" text field
*/
- public void setMainField3(MetadataType metadataType) {
- setValue(KEY_MAIN_FIELD_3_TYPE, Collections.singletonList(metadataType));
- }
+ public MetadataTags setMainField3( MetadataType metadataType) {
+ setValue(KEY_MAIN_FIELD_3_TYPE, Collections.singletonList(metadataType));
+ return this;
+ }
/**
* @return The type of data contained in the "mainField3" text field
@@ -125,16 +131,18 @@ public class MetadataTags extends RPCStruct {
/**
* Set the metadata types of data contained in the "mainField4" text field
*/
- public void setMainField4( List<MetadataType> metadataTypes ) {
- setValue(KEY_MAIN_FIELD_4_TYPE, metadataTypes);
- }
+ public MetadataTags setMainField4( List<MetadataType> metadataTypes) {
+ setValue(KEY_MAIN_FIELD_4_TYPE, metadataTypes);
+ return this;
+ }
/**
* Set the metadata type of data contained in the "mainField4" text field
*/
- public void setMainField4(MetadataType metadataType) {
- setValue(KEY_MAIN_FIELD_4_TYPE, Collections.singletonList(metadataType));
- }
+ public MetadataTags setMainField4( MetadataType metadataType) {
+ setValue(KEY_MAIN_FIELD_4_TYPE, Collections.singletonList(metadataType));
+ return this;
+ }
/**
* @return The type of data contained in the "mainField4" text field
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ModuleData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ModuleData.java
index 1c1333102..b20124551 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ModuleData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ModuleData.java
@@ -66,9 +66,10 @@ public class ModuleData extends RPCStruct {
* @param moduleType The moduleType indicates which type of data should be changed and identifies which data object exists in this struct.
* For example, if the moduleType is CLIMATE then a "climateControlData" should exist
*/
- public void setModuleType(@NonNull ModuleType moduleType) {
- setValue(KEY_MODULE_TYPE, moduleType);
- }
+ public ModuleData setModuleType(@NonNull ModuleType moduleType) {
+ setValue(KEY_MODULE_TYPE, moduleType);
+ return this;
+ }
/**
* Gets the moduleType portion of the ModuleData class
@@ -85,9 +86,10 @@ public class ModuleData extends RPCStruct {
*
* @param radioControlData
*/
- public void setRadioControlData(RadioControlData radioControlData) {
- setValue(KEY_RADIO_CONTROL_DATA, radioControlData);
- }
+ public ModuleData setRadioControlData( RadioControlData radioControlData) {
+ setValue(KEY_RADIO_CONTROL_DATA, radioControlData);
+ return this;
+ }
/**
* Gets the radioControlData portion of the ModuleData class
@@ -103,9 +105,10 @@ public class ModuleData extends RPCStruct {
*
* @param climateControlData
*/
- public void setClimateControlData(ClimateControlData climateControlData) {
- setValue(KEY_CLIMATE_CONTROL_DATA, climateControlData);
- }
+ public ModuleData setClimateControlData( ClimateControlData climateControlData) {
+ setValue(KEY_CLIMATE_CONTROL_DATA, climateControlData);
+ return this;
+ }
/**
* Gets the climateControlData portion of the ModuleData class
@@ -121,9 +124,10 @@ public class ModuleData extends RPCStruct {
*
* @param seatControlData
*/
- public void setSeatControlData(SeatControlData seatControlData) {
- setValue(KEY_SEAT_CONTROL_DATA, seatControlData);
- }
+ public ModuleData setSeatControlData( SeatControlData seatControlData) {
+ setValue(KEY_SEAT_CONTROL_DATA, seatControlData);
+ return this;
+ }
/**
* Gets the seatControlData portion of the ModuleData class
@@ -139,9 +143,10 @@ public class ModuleData extends RPCStruct {
*
* @param audioControlData
*/
- public void setAudioControlData(AudioControlData audioControlData) {
- setValue(KEY_AUDIO_CONTROL_DATA, audioControlData);
- }
+ public ModuleData setAudioControlData( AudioControlData audioControlData) {
+ setValue(KEY_AUDIO_CONTROL_DATA, audioControlData);
+ return this;
+ }
/**
* Gets the audioControlData portion of the ModuleData class
@@ -157,9 +162,10 @@ public class ModuleData extends RPCStruct {
*
* @param lightControlData
*/
- public void setLightControlData(LightControlData lightControlData) {
- setValue(KEY_LIGHT_CONTROL_DATA, lightControlData);
- }
+ public ModuleData setLightControlData( LightControlData lightControlData) {
+ setValue(KEY_LIGHT_CONTROL_DATA, lightControlData);
+ return this;
+ }
/**
* Gets the lightControlData portion of the ModuleData class
@@ -175,9 +181,10 @@ public class ModuleData extends RPCStruct {
*
* @param hmiSettingsControlData
*/
- public void setHmiSettingsControlData(HMISettingsControlData hmiSettingsControlData) {
- setValue(KEY_HMI_SETTINGS_CONTROL_DATA, hmiSettingsControlData);
- }
+ public ModuleData setHmiSettingsControlData( HMISettingsControlData hmiSettingsControlData) {
+ setValue(KEY_HMI_SETTINGS_CONTROL_DATA, hmiSettingsControlData);
+ return this;
+ }
/**
* Gets the hmiSettingsControlData portion of the ModuleData class
@@ -192,9 +199,10 @@ public class ModuleData extends RPCStruct {
* Sets the Module ID of the ModuleData class
* @param id the id to be set
*/
- public void setModuleId(String id) {
- setValue(KEY_MODULE_ID, id);
- }
+ public ModuleData setModuleId( String id) {
+ setValue(KEY_MODULE_ID, id);
+ return this;
+ }
/**
* Gets the Module ID of the ModuleData class
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ModuleInfo.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ModuleInfo.java
index 701fe6c09..65debe0cf 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ModuleInfo.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ModuleInfo.java
@@ -34,8 +34,9 @@ public class ModuleInfo extends RPCStruct {
* Sets the Module ID for this Module
* @param id the id to be set
*/
- public void setModuleId(@NonNull String id) {
+ public ModuleInfo setModuleId(@NonNull String id) {
setValue(KEY_MODULE_ID, id);
+ return this;
}
/**
@@ -50,8 +51,9 @@ public class ModuleInfo extends RPCStruct {
* Sets the location of this Module
* @param location the location to be set
*/
- public void setModuleLocation(Grid location) {
+ public ModuleInfo setModuleLocation( Grid location) {
setValue(KEY_MODULE_LOCATION, location);
+ return this;
}
/**
@@ -66,8 +68,9 @@ public class ModuleInfo extends RPCStruct {
* Sets the service area of this Module
* @param serviceArea the service area of this Module
*/
- public void setModuleServiceArea(Grid serviceArea) {
+ public ModuleInfo setModuleServiceArea( Grid serviceArea) {
setValue(KEY_MODULE_SERVICE_AREA, serviceArea);
+ return this;
}
/**
@@ -82,8 +85,9 @@ public class ModuleInfo extends RPCStruct {
* Sets the multiple access allowance for this Module
* @param isMultipleAccess the access to be set
*/
- public void setMultipleAccessAllowance(Boolean isMultipleAccess) {
+ public ModuleInfo setMultipleAccessAllowance( Boolean isMultipleAccess) {
setValue(KEY_MULTIPLE_ACCESS_ALLOWED, isMultipleAccess);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/MyKey.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/MyKey.java
index c72b8a203..e73565677 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/MyKey.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/MyKey.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -84,8 +84,9 @@ public class MyKey extends RPCStruct {
this();
setE911Override(e911Override);
}
- public void setE911Override(@NonNull VehicleDataStatus e911Override) {
+ public MyKey setE911Override(@NonNull VehicleDataStatus e911Override) {
setValue(KEY_E_911_OVERRIDE, e911Override);
+ return this;
}
public VehicleDataStatus getE911Override() {
return (VehicleDataStatus) getObject(VehicleDataStatus.class, KEY_E_911_OVERRIDE);
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationCapability.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationCapability.java
index 486a3c2ea..c3d19c3b1 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationCapability.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationCapability.java
@@ -52,15 +52,17 @@ public class NavigationCapability extends RPCStruct{
return getBoolean(KEY_LOCATION_ENABLED);
}
- public void setSendLocationEnabled(Boolean sendLocationEnabled){
- setValue(KEY_LOCATION_ENABLED, sendLocationEnabled);
- }
+ public NavigationCapability setSendLocationEnabled( Boolean sendLocationEnabled) {
+ setValue(KEY_LOCATION_ENABLED, sendLocationEnabled);
+ return this;
+ }
public Boolean getWayPointsEnabled(){
return getBoolean(KEY_GETWAYPOINTS_ENABLED);
}
- public void setWayPointsEnabled(Boolean getWayPointsEnabled){
- setValue(KEY_GETWAYPOINTS_ENABLED, getWayPointsEnabled);
- }
+ public NavigationCapability setWayPointsEnabled( Boolean getWayPointsEnabled) {
+ setValue(KEY_GETWAYPOINTS_ENABLED, getWayPointsEnabled);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationInstruction.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationInstruction.java
index bd7bbc0eb..e4c3136ab 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationInstruction.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationInstruction.java
@@ -70,9 +70,10 @@ public class NavigationInstruction extends RPCStruct {
/**
* @param locationDetails -
*/
- public void setLocationDetails(@NonNull LocationDetails locationDetails){
- setValue(KEY_LOCATION_DETAILS, locationDetails);
- }
+ public NavigationInstruction setLocationDetails(@NonNull LocationDetails locationDetails) {
+ setValue(KEY_LOCATION_DETAILS, locationDetails);
+ return this;
+ }
/**
* @return locationDetails
@@ -84,9 +85,10 @@ public class NavigationInstruction extends RPCStruct {
/**
* @param action -
*/
- public void setAction(@NonNull NavigationAction action){
- setValue(KEY_ACTION, action);
- }
+ public NavigationInstruction setAction(@NonNull NavigationAction action) {
+ setValue(KEY_ACTION, action);
+ return this;
+ }
/**
* @return action
@@ -98,9 +100,10 @@ public class NavigationInstruction extends RPCStruct {
/**
* @param eta -
*/
- public void setEta(DateTime eta){
- setValue(KEY_ETA, eta);
- }
+ public NavigationInstruction setEta( DateTime eta) {
+ setValue(KEY_ETA, eta);
+ return this;
+ }
/**
* @return eta
@@ -115,9 +118,10 @@ public class NavigationInstruction extends RPCStruct {
* a U-Turn, etc.
* @param bearing - minValue="0" maxValue="359"
*/
- public void setBearing(Integer bearing){
- setValue(KEY_BEARING, bearing);
- }
+ public NavigationInstruction setBearing( Integer bearing) {
+ setValue(KEY_BEARING, bearing);
+ return this;
+ }
/**
* The angle at which this instruction takes place. For example, 0 would mean straight, <=45
@@ -132,9 +136,10 @@ public class NavigationInstruction extends RPCStruct {
/**
* @param junctionType -
*/
- public void setJunctionType(NavigationJunction junctionType){
- setValue(KEY_JUNCTION_TYPE, junctionType);
- }
+ public NavigationInstruction setJunctionType( NavigationJunction junctionType) {
+ setValue(KEY_JUNCTION_TYPE, junctionType);
+ return this;
+ }
/**
* @return junctionType
@@ -148,9 +153,10 @@ public class NavigationInstruction extends RPCStruct {
* will determine which direction the turn should take place.
* @param drivingSide - Direction enum value that represents the driving side
*/
- public void setDrivingSide(Direction drivingSide){
- setValue(KEY_DRIVING_SIDE, drivingSide);
- }
+ public NavigationInstruction setDrivingSide( Direction drivingSide) {
+ setValue(KEY_DRIVING_SIDE, drivingSide);
+ return this;
+ }
/**
* Used to infer which side of the road this instruction takes place. For a U-Turn (action=TURN, bearing=180) this
@@ -167,9 +173,10 @@ public class NavigationInstruction extends RPCStruct {
* NavigationServiceData for that.
* @param details -
*/
- public void setDetails(String details){
- setValue(KEY_DETAILS, details);
- }
+ public NavigationInstruction setDetails( String details) {
+ setValue(KEY_DETAILS, details);
+ return this;
+ }
/**
* This is a string representation of this instruction, used to display instructions to the
@@ -185,9 +192,10 @@ public class NavigationInstruction extends RPCStruct {
* An image representation of this instruction.
* @param image -
*/
- public void setImage(Image image){
- setValue(KEY_IMAGE, image);
- }
+ public NavigationInstruction setImage( Image image) {
+ setValue(KEY_IMAGE, image);
+ return this;
+ }
/**
* An image representation of this instruction.
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationServiceData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationServiceData.java
index ae566c6e8..dd4b9237f 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationServiceData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationServiceData.java
@@ -73,9 +73,10 @@ public class NavigationServiceData extends RPCStruct {
* given in the data can accurately be adjusted if necessary.
* @param timeStamp -
*/
- public void setTimeStamp(@NonNull DateTime timeStamp){
- setValue(KEY_TIMESTAMP, timeStamp);
- }
+ public NavigationServiceData setTimeStamp(@NonNull DateTime timeStamp) {
+ setValue(KEY_TIMESTAMP, timeStamp);
+ return this;
+ }
/**
* This is the timeStamp of when the data was generated. This is to ensure any time or distance
@@ -89,9 +90,10 @@ public class NavigationServiceData extends RPCStruct {
/**
* @param origin -
*/
- public void setOrigin(LocationDetails origin){
- setValue(KEY_ORIGIN, origin);
- }
+ public NavigationServiceData setOrigin( LocationDetails origin) {
+ setValue(KEY_ORIGIN, origin);
+ return this;
+ }
/**
* @return origin
@@ -103,9 +105,10 @@ public class NavigationServiceData extends RPCStruct {
/**
* @param destination -
*/
- public void setDestination(LocationDetails destination){
- setValue(KEY_DESTINATION, destination);
- }
+ public NavigationServiceData setDestination( LocationDetails destination) {
+ setValue(KEY_DESTINATION, destination);
+ return this;
+ }
/**
* @return destination
@@ -117,9 +120,10 @@ public class NavigationServiceData extends RPCStruct {
/**
* @param destinationETA -
*/
- public void setDestinationETA(DateTime destinationETA){
- setValue(KEY_DESTINATION_ETA, destinationETA);
- }
+ public NavigationServiceData setDestinationETA( DateTime destinationETA) {
+ setValue(KEY_DESTINATION_ETA, destinationETA);
+ return this;
+ }
/**
* @return destinationETA
@@ -133,9 +137,10 @@ public class NavigationServiceData extends RPCStruct {
* always contain the next instruction.
* @param instructions -
*/
- public void setInstructions(List<NavigationInstruction> instructions){
- setValue(KEY_INSTRUCTIONS, instructions);
- }
+ public NavigationServiceData setInstructions( List<NavigationInstruction> instructions) {
+ setValue(KEY_INSTRUCTIONS, instructions);
+ return this;
+ }
/**
* This array should be ordered with all remaining instructions. The start of this array should
@@ -150,9 +155,10 @@ public class NavigationServiceData extends RPCStruct {
/**
* @param nextInstructionETA -
*/
- public void setNextInstructionETA(DateTime nextInstructionETA){
- setValue(KEY_NEXT_INSTRUCTION_ETA, nextInstructionETA);
- }
+ public NavigationServiceData setNextInstructionETA( DateTime nextInstructionETA) {
+ setValue(KEY_NEXT_INSTRUCTION_ETA, nextInstructionETA);
+ return this;
+ }
/**
* @return nextInstructionETA
@@ -167,9 +173,10 @@ public class NavigationServiceData extends RPCStruct {
* the next instruction.
* @param nextInstructionDistance -
*/
- public void setNextInstructionDistance(Float nextInstructionDistance){
- setValue(KEY_NEXT_INSTRUCTION_DISTANCE, nextInstructionDistance);
- }
+ public NavigationServiceData setNextInstructionDistance( Float nextInstructionDistance) {
+ setValue(KEY_NEXT_INSTRUCTION_DISTANCE, nextInstructionDistance);
+ return this;
+ }
/**
* The distance to this instruction from current location. This should only be updated every
@@ -185,9 +192,10 @@ public class NavigationServiceData extends RPCStruct {
* Distance till next maneuver (starting from) from previous maneuver.
* @param nextInstructionDistanceScale -
*/
- public void setNextInstructionDistanceScale(Float nextInstructionDistanceScale){
- setValue(KEY_NEXT_INSTRUCTION_DISTANCE_SCALE, nextInstructionDistanceScale);
- }
+ public NavigationServiceData setNextInstructionDistanceScale( Float nextInstructionDistanceScale) {
+ setValue(KEY_NEXT_INSTRUCTION_DISTANCE_SCALE, nextInstructionDistanceScale);
+ return this;
+ }
/**
* Distance till next maneuver (starting from) from previous maneuver.
@@ -203,9 +211,10 @@ public class NavigationServiceData extends RPCStruct {
* instruction, post instruction, alerts that affect the current navigation session, etc.
* @param prompt -
*/
- public void setPrompt(String prompt){
- setValue(KEY_PROMPT, prompt);
- }
+ public NavigationServiceData setPrompt( String prompt) {
+ setValue(KEY_PROMPT, prompt);
+ return this;
+ }
/**
* This is a prompt message that should be conveyed to the user through either display or voice
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationServiceManifest.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationServiceManifest.java
index 78b392865..e355c7a1c 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationServiceManifest.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/NavigationServiceManifest.java
@@ -53,9 +53,10 @@ public class NavigationServiceManifest extends RPCStruct {
* Informs the subscriber if this service can actually accept way points.
* @param acceptsWayPoints -
*/
- public void setAcceptsWayPoints(Boolean acceptsWayPoints){
- setValue(KEY_ACCEPTS_WAY_POINTS, acceptsWayPoints);
- }
+ public NavigationServiceManifest setAcceptsWayPoints( Boolean acceptsWayPoints) {
+ setValue(KEY_ACCEPTS_WAY_POINTS, acceptsWayPoints);
+ return this;
+ }
/**
* Informs the subscriber if this service can actually accept way points.
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OasisAddress.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OasisAddress.java
index 7b4d09478..775f50d2c 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OasisAddress.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OasisAddress.java
@@ -71,13 +71,14 @@ public class OasisAddress extends RPCStruct{
/**
* Sets the localized Name of the country associated with the OasisAddress class.
- *
+ *
* @param countryName
* The localized Name of the country associated with the OasisAddress class.
- *
+ *
*/
- public void setCountryName(String countryName) {
+ public OasisAddress setCountryName( String countryName) {
setValue(KEY_COUNTRY_NAME, countryName);
+ return this;
}
/**
@@ -92,13 +93,14 @@ public class OasisAddress extends RPCStruct{
/**
* Sets the country code in ISO 3166-2 format associated with the OasisAddress class.
- *
+ *
* @param countryCode
* The country code in ISO 3166-2 format associated with the OasisAddress class.
- *
- */
- public void setCountryCode(String countryCode) {
+ *
+ */
+ public OasisAddress setCountryCode( String countryCode) {
setValue(KEY_COUNTRY_CODE, countryCode);
+ return this;
}
/**
@@ -113,13 +115,14 @@ public class OasisAddress extends RPCStruct{
/**
* Sets the Postal Code associated with the OasisAddress class.
- *
+ *
* @param postalCode
* The Postal Code associated with the OasisAddress class.
- *
- */
- public void setPostalCode(String postalCode) {
+ *
+ */
+ public OasisAddress setPostalCode( String postalCode) {
setValue(KEY_POSTAL_CODE, postalCode);
+ return this;
}
/**
@@ -134,13 +137,14 @@ public class OasisAddress extends RPCStruct{
/**
* Sets the Administrative Area associated with the OasisAddress class. A portion of the country - Administrative Area can include details of the top-level area division in the country, such as state, district, province, island, region, etc.
- *
+ *
* @param administrativeArea
* The Administrative Area associated with the OasisAddress class.
- *
- */
- public void setAdministrativeArea(String administrativeArea) {
+ *
+ */
+ public OasisAddress setAdministrativeArea( String administrativeArea) {
setValue(KEY_ADMINISTRATIVE_AREA, administrativeArea);
+ return this;
}
/**
@@ -155,13 +159,14 @@ public class OasisAddress extends RPCStruct{
/**
* Sets the SubAdministrative Area associated with the OasisAddress class. A portion of the administrativeArea - The next level down division of the area. E.g. state / county, province / reservation.
- *
+ *
* @param subAdministrativeArea
* The SubAdministrative Area associated with the OasisAddress class.
- *
- */
- public void setSubAdministrativeArea(String subAdministrativeArea) {
+ *
+ */
+ public OasisAddress setSubAdministrativeArea( String subAdministrativeArea) {
setValue(KEY_SUB_ADMINISTRATIVE_AREA, subAdministrativeArea);
+ return this;
}
/**
@@ -176,13 +181,14 @@ public class OasisAddress extends RPCStruct{
/**
* Sets the Locality associated with the OasisAddress class. - A hypernym for city/village.
- *
+ *
* @param locality
* The Locality associated with the OasisAddress class.
- *
+ *
*/
- public void setLocality(String locality) {
+ public OasisAddress setLocality( String locality) {
setValue(KEY_LOCALITY, locality);
+ return this;
}
/**
@@ -197,13 +203,14 @@ public class OasisAddress extends RPCStruct{
/**
* Sets the Sub-Locality associated with the OasisAddress class. A hypernym for district.
- *
+ *
* @param subLocality
* The Sub-Locality associated with the OasisAddress class.
- *
- */
- public void setSubLocality(String subLocality) {
+ *
+ */
+ public OasisAddress setSubLocality( String subLocality) {
setValue(KEY_SUB_LOCALITY, subLocality);
+ return this;
}
/**
@@ -218,13 +225,14 @@ public class OasisAddress extends RPCStruct{
/**
* Sets the Thoroughfare associated with the OasisAddress class. A hypernym for street, road etc.
- *
+ *
* @param thoroughFare
* The Thoroughfare associated with the OasisAddress class.
- *
- */
- public void setThoroughfare(String thoroughFare) {
+ *
+ */
+ public OasisAddress setThoroughfare( String thoroughFare) {
setValue(KEY_THOROUGH_FARE, thoroughFare);
+ return this;
}
/**
@@ -238,12 +246,13 @@ public class OasisAddress extends RPCStruct{
/**
* Sets the Sub-Thoroughfare associated with the OasisAddress class. - A Portion of thoroughfare (e.g. house number).
- *
+ *
* @param subThoroughfare
* The Sub-Thoroughfare associated with the OasisAddress class.
- *
- */
- public void setSubThoroughfare(String subThoroughfare) {
+ *
+ */
+ public OasisAddress setSubThoroughfare( String subThoroughfare) {
setValue(KEY_SUB_THOROUGH_FARE, subThoroughfare);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnAppInterfaceUnregistered.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnAppInterfaceUnregistered.java
index 30fe4e755..33a896c2f 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnAppInterfaceUnregistered.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnAppInterfaceUnregistered.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -105,8 +105,9 @@ public class OnAppInterfaceUnregistered extends RPCNotification {
/**
* <p>Set the reason application's interface was terminated</p>
* @param reason The reason application's interface registration was terminated
- */
- public void setReason( @NonNull AppInterfaceUnregisteredReason reason ) {
+ */
+ public OnAppInterfaceUnregistered setReason(@NonNull AppInterfaceUnregisteredReason reason) {
setParameters(KEY_REASON, reason);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnAppServiceData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnAppServiceData.java
index e959b78f4..61b696809 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnAppServiceData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnAppServiceData.java
@@ -65,9 +65,10 @@ public class OnAppServiceData extends RPCNotification {
/**
* @param serviceData -
*/
- public void setServiceData(@NonNull AppServiceData serviceData){
- setParameters(KEY_SERVICE_DATA, serviceData);
- }
+ public OnAppServiceData setServiceData(@NonNull AppServiceData serviceData) {
+ setParameters(KEY_SERVICE_DATA, serviceData);
+ return this;
+ }
/**
* @return serviceData
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnAudioPassThru.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnAudioPassThru.java
index ab1ea3770..e5b9a5993 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnAudioPassThru.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnAudioPassThru.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import com.smartdevicelink.protocol.enums.FunctionID;
@@ -84,8 +84,9 @@ public class OnAudioPassThru extends RPCNotification {
public OnAudioPassThru(Hashtable<String, Object> hash) {
super(hash);
}
- public void setAPTData(byte[] aptData) {
+ public OnAudioPassThru setAPTData( byte[] aptData) {
setBulkData(aptData);
+ return this;
}
public byte[] getAPTData() {
return getBulkData();
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnButtonEvent.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnButtonEvent.java
index d4e1b01b7..ca408c580 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnButtonEvent.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnButtonEvent.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -160,11 +160,12 @@ public class OnButtonEvent extends RPCNotification {
}
/**
- * <p>Set the button's name</p>
+ * <p>Set the button's name</p>
* @param buttonName name of the button
- */
- public void setButtonName(@NonNull ButtonName buttonName) {
+ */
+ public OnButtonEvent setButtonName(@NonNull ButtonName buttonName) {
setParameters(KEY_BUTTON_NAME, buttonName);
+ return this;
}
/**
@@ -179,13 +180,15 @@ public class OnButtonEvent extends RPCNotification {
* <p> Set the event mode of the button,pressed or released</p>
* @param buttonEventMode indicates the button is pressed or released
* @see ButtonEventMode
- */
- public void setButtonEventMode(@NonNull ButtonEventMode buttonEventMode) {
+ */
+ public OnButtonEvent setButtonEventMode(@NonNull ButtonEventMode buttonEventMode) {
setParameters(KEY_BUTTON_EVENT_MODE, buttonEventMode);
+ return this;
}
- public void setCustomButtonID(Integer customButtonID) {
+ public OnButtonEvent setCustomButtonID( Integer customButtonID) {
setParameters(KEY_CUSTOM_BUTTON_ID, customButtonID);
+ return this;
}
public Integer getCustomButtonID() {
return getInteger(KEY_CUSTOM_BUTTON_ID);
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnButtonPress.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnButtonPress.java
index 8c0003db8..e214e8b96 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnButtonPress.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnButtonPress.java
@@ -160,11 +160,12 @@ public class OnButtonPress extends RPCNotification {
return (ButtonName) getObject(ButtonName.class, KEY_BUTTON_NAME);
}
/**
- * <p>Set the button's name</p>
+ * <p>Set the button's name</p>
* @param buttonName name of the button
- */
- public void setButtonName( @NonNull ButtonName buttonName ) {
+ */
+ public OnButtonPress setButtonName(@NonNull ButtonName buttonName) {
setParameters(KEY_BUTTON_NAME, buttonName);
+ return this;
}
/**<p>Returns <i>{@linkplain ButtonPressMode}</i></p>
* @return ButtonPressMode whether this is a long or short button press event
@@ -175,9 +176,10 @@ public class OnButtonPress extends RPCNotification {
/**
* <p>Set the button press mode of the event</p>
* @param buttonPressMode indicates whether this is a short or long press
- */
- public void setButtonPressMode( @NonNull ButtonPressMode buttonPressMode ) {
+ */
+ public OnButtonPress setButtonPressMode(@NonNull ButtonPressMode buttonPressMode) {
setParameters(KEY_BUTTON_PRESS_MODE, buttonPressMode);
+ return this;
}
/**
@@ -185,8 +187,9 @@ public class OnButtonPress extends RPCNotification {
* If ButtonName is "CUSTOM_BUTTON", this references the integer ID passed by a custom button. (e.g. softButton ID)
* @param customButtonID CustomButtonID of the button
*/
- public void setCustomButtonID(Integer customButtonID) {
+ public OnButtonPress setCustomButtonID( Integer customButtonID) {
setParameters(KEY_CUSTOM_BUTTON_ID, customButtonID);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnCommand.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnCommand.java
index 1f474bd30..12695323d 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnCommand.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnCommand.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -118,11 +118,12 @@ public class OnCommand extends RPCNotification {
return getInteger( KEY_CMD_ID );
}
/**
- * <p>Sets a Command ID</p>
+ * <p>Sets a Command ID</p>
* @param cmdID an integer object representing a Command ID
- */
- public void setCmdID( @NonNull Integer cmdID ) {
+ */
+ public OnCommand setCmdID(@NonNull Integer cmdID) {
setParameters(KEY_CMD_ID, cmdID);
+ return this;
}
/**
* <p>Returns a <I>TriggerSource</I> object which will be shown in the HMI</p>
@@ -133,10 +134,11 @@ public class OnCommand extends RPCNotification {
}
/**
* <p>Sets TriggerSource</p>
- * <p>Indicates whether command was selected via VR or via a menu selection (using the OK button).</p>
+ * <p>Indicates whether command was selected via VR or via a menu selection (using the OK button).</p>
* @param triggerSource a TriggerSource object
- */
- public void setTriggerSource( @NonNull TriggerSource triggerSource ) {
+ */
+ public OnCommand setTriggerSource(@NonNull TriggerSource triggerSource) {
setParameters(KEY_TRIGGER_SOURCE, triggerSource);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnDriverDistraction.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnDriverDistraction.java
index dc0b1b5e7..d9c16e50d 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnDriverDistraction.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnDriverDistraction.java
@@ -106,17 +106,19 @@ public class OnDriverDistraction extends RPCNotification {
/**
* <p>Called to set the driver distraction state(i.e. whether driver distraction rules are in effect, or not)</p>
* @param state the current driver distraction state
- */
- public void setState( @NonNull DriverDistractionState state ) {
+ */
+ public OnDriverDistraction setState(@NonNull DriverDistractionState state) {
setParameters(KEY_STATE, state);
+ return this;
}
/**
* <p>Called to set dismissible state of Lockscreen</p>
* @param isDismissible the Lockscreen's dismissibility
*/
- public void setLockscreenDismissibility(boolean isDismissible) {
+ public OnDriverDistraction setLockscreenDismissibility( boolean isDismissible) {
setParameters(KEY_LOCKSCREEN_DISMISSIBLE, isDismissible);
+ return this;
}
/**
@@ -131,8 +133,9 @@ public class OnDriverDistraction extends RPCNotification {
* Called to set a warning message for the lockscreen
* @param msg the message to be set
*/
- public void setLockscreenWarningMessage(String msg) {
+ public OnDriverDistraction setLockscreenWarningMessage( String msg) {
setParameters(KEY_LOCKSCREEN_DISMISSIBLE_MSG, msg);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnHMIStatus.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnHMIStatus.java
index ba2a5300b..52f3c4b84 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnHMIStatus.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnHMIStatus.java
@@ -158,9 +158,10 @@ public class OnHMIStatus extends RPCNotification {
/**
* <p>Set the HMILevel of OnHMIStatus</p>
* @param hmiLevel the HMILevel to set
- */
- public void setHmiLevel( @NonNull HMILevel hmiLevel ) {
+ */
+ public OnHMIStatus setHmiLevel(@NonNull HMILevel hmiLevel) {
setParameters(KEY_HMI_LEVEL, hmiLevel);
+ return this;
}
/**
* <p>Get current state of audio streaming for the application</p>
@@ -172,9 +173,10 @@ public class OnHMIStatus extends RPCNotification {
/**
* <p>Set the audio streaming state</p>
* @param audioStreamingState the state of audio streaming of the application
- */
- public void setAudioStreamingState(@NonNull AudioStreamingState audioStreamingState ) {
+ */
+ public OnHMIStatus setAudioStreamingState(@NonNull AudioStreamingState audioStreamingState) {
setParameters(KEY_AUDIO_STREAMING_STATE, audioStreamingState);
+ return this;
}
/**
* <p>Get current state of video streaming for the application</p>
@@ -187,8 +189,9 @@ public class OnHMIStatus extends RPCNotification {
* <p>Set the video streaming state</p>
* @param videoStreamingState the state of video streaming of the application
*/
- public void setVideoStreamingState( VideoStreamingState videoStreamingState ) {
+ public OnHMIStatus setVideoStreamingState( VideoStreamingState videoStreamingState) {
setParameters(KEY_VIDEO_STREAMING_STATE, videoStreamingState);
+ return this;
}
/**
* <p>Get the System Context</p>
@@ -199,11 +202,12 @@ public class OnHMIStatus extends RPCNotification {
}
/**
* <p>Set the System Context of OnHMIStatus</p>
- * @param systemContext Indicates that a user-initiated interaction is in-progress
+ * @param systemContext Indicates that a user-initiated interaction is in-progress
* (VRSESSION or MENU), or not (MAIN)
- */
- public void setSystemContext( @NonNull SystemContext systemContext ) {
+ */
+ public OnHMIStatus setSystemContext(@NonNull SystemContext systemContext) {
setParameters(KEY_SYSTEM_CONTEXT, systemContext);
+ return this;
}
/**
* <p>Query whether it's the first run</p>
@@ -215,9 +219,10 @@ public class OnHMIStatus extends RPCNotification {
/**
* <p>Set the firstRun value</p>
* @param firstRun True if it is the first run, False or not
- */
- public void setFirstRun(Boolean firstRun) {
- this.firstRun = firstRun;
+ */
+ public OnHMIStatus setFirstRun( Boolean firstRun) {
+ this.firstRun = firstRun;
+ return this;
}
/**
* <p>Set the windowID value</p>
@@ -226,8 +231,9 @@ public class OnHMIStatus extends RPCNotification {
* See PredefinedWindows enum.
* @since 6.0
*/
- public void setWindowID(Integer windowID) {
+ public OnHMIStatus setWindowID( Integer windowID) {
setParameters(KEY_WINDOW_ID, windowID);
+ return this;
}
/**
* <p>Get the windowID value</p>
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnHashChange.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnHashChange.java
index 0abe4c1a8..baea12ec3 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnHashChange.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnHashChange.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -99,8 +99,9 @@ public class OnHashChange extends RPCNotification {
return getString(KEY_HASH_ID);
}
- public void setHashID(@NonNull String hashID) {
+ public OnHashChange setHashID(@NonNull String hashID) {
setParameters(KEY_HASH_ID, hashID);
- }
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnInteriorVehicleData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnInteriorVehicleData.java
index 37c9d107c..a532421d9 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnInteriorVehicleData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnInteriorVehicleData.java
@@ -83,7 +83,8 @@ public class OnInteriorVehicleData extends RPCNotification {
*
* @param moduleData
*/
- public void setModuleData(@NonNull ModuleData moduleData) {
+ public OnInteriorVehicleData setModuleData(@NonNull ModuleData moduleData) {
setParameters(KEY_MODULE_DATA, moduleData);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnKeyboardInput.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnKeyboardInput.java
index d888c685b..3b2f71269 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnKeyboardInput.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnKeyboardInput.java
@@ -107,12 +107,14 @@ public class OnKeyboardInput extends RPCNotification {
return (KeyboardEvent) getObject(KeyboardEvent.class, KEY_EVENT);
}
- public void setEvent(@NonNull KeyboardEvent event) {
+ public OnKeyboardInput setEvent(@NonNull KeyboardEvent event) {
setParameters(KEY_EVENT, event);
+ return this;
}
- public void setData(String data) {
+ public OnKeyboardInput setData( String data) {
setParameters(KEY_DATA, data);
+ return this;
}
public String getData() {
Object obj = getParameters(KEY_DATA);
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnLanguageChange.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnLanguageChange.java
index bf72f5f19..cc58efaf6 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnLanguageChange.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnLanguageChange.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -116,11 +116,12 @@ public class OnLanguageChange extends RPCNotification {
setHmiDisplayLanguage(hmiDisplayLanguage);
}
/**
- * <p>Sets language that current SDL voice engine(VR+TTS) use</p>
+ * <p>Sets language that current SDL voice engine(VR+TTS) use</p>
* @param language language that current SDL voice engine(VR+TTS) use
- */
- public void setLanguage(@NonNull Language language) {
+ */
+ public OnLanguageChange setLanguage(@NonNull Language language) {
setParameters(KEY_LANGUAGE, language);
+ return this;
}
/**
* <p>Returns language that current SDL voice engine(VR+TTS) use</p>
@@ -130,11 +131,12 @@ public class OnLanguageChange extends RPCNotification {
return (Language) getObject(Language.class, KEY_LANGUAGE);
}
/**
- * <p>Sets language that current display use</p>
+ * <p>Sets language that current display use</p>
* @param hmiDisplayLanguage language that current SDL voice engine(VR+TTS) use
- */
- public void setHmiDisplayLanguage(@NonNull Language hmiDisplayLanguage) {
+ */
+ public OnLanguageChange setHmiDisplayLanguage(@NonNull Language hmiDisplayLanguage) {
setParameters(KEY_HMI_DISPLAY_LANGUAGE, hmiDisplayLanguage);
+ return this;
}
/**
* <p>Returns language that current display use</p>
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnPermissionsChange.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnPermissionsChange.java
index 41e003981..ebc95f699 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnPermissionsChange.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnPermissionsChange.java
@@ -113,12 +113,13 @@ public class OnPermissionsChange extends RPCNotification {
return (List<PermissionItem>) getObject(PermissionItem.class, KEY_PERMISSION_ITEM);
}
/**
- * <p>Sets PermissionItems describing change in permissions for a given set of RPCs</p>
+ * <p>Sets PermissionItems describing change in permissions for a given set of RPCs</p>
* @param permissionItem an List of PermissionItem describing change in permissions for a given set of RPCs
- */
- public void setPermissionItem(@NonNull List<PermissionItem> permissionItem) {
- setParameters(KEY_PERMISSION_ITEM, permissionItem);
- }
+ */
+ public OnPermissionsChange setPermissionItem(@NonNull List<PermissionItem> permissionItem) {
+ setParameters(KEY_PERMISSION_ITEM, permissionItem);
+ return this;
+ }
/**
* Returns the encryption requirement for this permission change
@@ -132,7 +133,8 @@ public class OnPermissionsChange extends RPCNotification {
* Sets the encryption requirement for this permission change
* @param isRequired the boolean requirement to be set
*/
- public void setRequireEncryption(Boolean isRequired) {
- setParameters(KEY_REQUIRE_ENCRYPTION, isRequired);
- }
+ public OnPermissionsChange setRequireEncryption( Boolean isRequired) {
+ setParameters(KEY_REQUIRE_ENCRYPTION, isRequired);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnRCStatus.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnRCStatus.java
index ffd7f03cc..e2f7831c9 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnRCStatus.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnRCStatus.java
@@ -77,24 +77,27 @@ public class OnRCStatus extends RPCNotification {
return (List<ModuleData>) getObject(ModuleData.class, KEY_ALLOCATED_MODULES);
}
- public void setAllocatedModules(@NonNull List<ModuleData> allocatedModules) {
- setParameters(KEY_ALLOCATED_MODULES, allocatedModules);
- }
+ public OnRCStatus setAllocatedModules(@NonNull List<ModuleData> allocatedModules) {
+ setParameters(KEY_ALLOCATED_MODULES, allocatedModules);
+ return this;
+ }
@SuppressWarnings("unchecked")
public List<ModuleData> getFreeModules() {
return (List<ModuleData>) getObject(ModuleData.class, KEY_FREE_MODULES);
}
- public void setFreeModules(@NonNull List<ModuleData> freeModules) {
- setParameters(KEY_FREE_MODULES, freeModules);
- }
+ public OnRCStatus setFreeModules(@NonNull List<ModuleData> freeModules) {
+ setParameters(KEY_FREE_MODULES, freeModules);
+ return this;
+ }
public Boolean getAllowed() {
return getBoolean(KEY_ALLOWED);
}
- public void setAllowed(Boolean allowed) {
- setParameters(KEY_ALLOWED, allowed);
- }
+ public OnRCStatus setAllowed( Boolean allowed) {
+ setParameters(KEY_ALLOWED, allowed);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnSystemCapabilityUpdated.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnSystemCapabilityUpdated.java
index d01bf757d..98e9088c6 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnSystemCapabilityUpdated.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnSystemCapabilityUpdated.java
@@ -65,9 +65,10 @@ public class OnSystemCapabilityUpdated extends RPCNotification {
/**
* @param systemCapability - The system capability that has been updated
*/
- public void setSystemCapability(@NonNull SystemCapability systemCapability){
- setParameters(KEY_SYSTEM_CAPABILITY, systemCapability);
- }
+ public OnSystemCapabilityUpdated setSystemCapability(@NonNull SystemCapability systemCapability) {
+ setParameters(KEY_SYSTEM_CAPABILITY, systemCapability);
+ return this;
+ }
/**
* @return systemCapability - The system capability that has been updated
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnSystemRequest.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnSystemRequest.java
index 5de6c922b..ff7f1b959 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnSystemRequest.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnSystemRequest.java
@@ -231,9 +231,10 @@ public class OnSystemRequest extends RPCNotification {
}
@Override
- public void setBulkData(byte[] bulkData){
+ public OnSystemRequest setBulkData(byte[] bulkData){
super.setBulkData(bulkData);
handleBulkData(bulkData);
+ return this;
}
@@ -246,12 +247,14 @@ public class OnSystemRequest extends RPCNotification {
return this.body;
}
- public void setBody(String body) {
+ public OnSystemRequest setBody( String body) {
this.body = body;
+ return this;
}
- public void setHeaders(Headers header) {
+ public OnSystemRequest setHeaders( Headers header) {
this.headers = header;
+ return this;
}
public Headers getHeader() {
@@ -262,16 +265,18 @@ public class OnSystemRequest extends RPCNotification {
return (RequestType) getObject(RequestType.class, KEY_REQUEST_TYPE);
}
- public void setRequestType(@NonNull RequestType requestType) {
+ public OnSystemRequest setRequestType(@NonNull RequestType requestType) {
setParameters(KEY_REQUEST_TYPE, requestType);
+ return this;
}
public String getRequestSubType() {
return getString(KEY_REQUEST_SUB_TYPE);
}
- public void setRequestSubType(String requestSubType) {
+ public OnSystemRequest setRequestSubType( String requestSubType) {
setParameters(KEY_REQUEST_SUB_TYPE, requestSubType);
+ return this;
}
public String getUrl() {
@@ -290,28 +295,31 @@ public class OnSystemRequest extends RPCNotification {
return null;
}
- public void setUrl(String url) {
+ public OnSystemRequest setUrl( String url) {
setParameters(KEY_URL, url);
+ return this;
}
public FileType getFileType() {
return (FileType) getObject(FileType.class, KEY_FILE_TYPE);
}
- public void setFileType(FileType fileType) {
+ public OnSystemRequest setFileType( FileType fileType) {
setParameters(KEY_FILE_TYPE, fileType);
+ return this;
}
/**
* @deprecated as of SmartDeviceLink 4.0
* @param offset of the data attached
*/
- public void setOffset(Integer offset) {
- if(offset == null){
+ public OnSystemRequest setOffset( Integer offset) {
+ if(offset == null){
setOffset((Long)null);
}else{
setOffset(offset.longValue());
}
+ return this;
}
public Long getOffset() {
@@ -329,8 +337,9 @@ public class OnSystemRequest extends RPCNotification {
return null;
}
- public void setOffset(Long offset) {
+ public OnSystemRequest setOffset( Long offset) {
setParameters(KEY_OFFSET, offset);
+ return this;
}
public Integer getTimeout() {
@@ -347,9 +356,10 @@ public class OnSystemRequest extends RPCNotification {
return null;
}
- public void setTimeout(Integer timeout) {
+ public OnSystemRequest setTimeout( Integer timeout) {
setParameters(KEY_TIMEOUT, timeout);
- }
+ return this;
+ }
public Long getLength() {
final Object o = getParameters(KEY_LENGTH);
@@ -369,15 +379,17 @@ public class OnSystemRequest extends RPCNotification {
* @deprecated as of SmartDeviceLink 4.0
* @param length of the data attached
*/
- public void setLength(Integer length) {
- if(length == null){
+ public OnSystemRequest setLength( Integer length) {
+ if(length == null){
setLength((Long)null);
}else{
setLength(length.longValue());
}
+ return this;
}
- public void setLength(Long length) {
+ public OnSystemRequest setLength( Long length) {
setParameters(KEY_LENGTH, length);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnTBTClientState.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnTBTClientState.java
index c11eb1066..977e2afe9 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnTBTClientState.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnTBTClientState.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -104,8 +104,9 @@ public class OnTBTClientState extends RPCNotification {
/**
* <p>Called to set the current state of TBT client</p>
* @param state current state of TBT client
- */
- public void setState( TBTState state ) {
+ */
+ public OnTBTClientState setState( TBTState state) {
setParameters(KEY_STATE, state);
+ return this;
}
} // end-class
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnTouchEvent.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnTouchEvent.java
index b898cc398..bdc83bfab 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnTouchEvent.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnTouchEvent.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -109,16 +109,18 @@ public class OnTouchEvent extends RPCNotification {
setEvent(event);
}
- public void setType(@NonNull TouchType type) {
- setParameters(KEY_TYPE, type);
+ public OnTouchEvent setType(@NonNull TouchType type) {
+ setParameters(KEY_TYPE, type);
+ return this;
}
public TouchType getType() {
return (TouchType) getObject(TouchType.class, KEY_TYPE);
}
- public void setEvent(@NonNull List<TouchEvent> event) {
- setParameters(KEY_EVENT, event);
+ public OnTouchEvent setEvent(@NonNull List<TouchEvent> event) {
+ setParameters(KEY_EVENT, event);
+ return this;
}
@SuppressWarnings("unchecked")
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnUpdateFile.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnUpdateFile.java
index 2f1c63cf8..9a7b32c5c 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnUpdateFile.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnUpdateFile.java
@@ -96,8 +96,9 @@ public class OnUpdateFile extends RPCNotification {
*
* @param fileName File reference name.
*/
- public void setFileName(@NonNull String fileName) {
+ public OnUpdateFile setFileName(@NonNull String fileName) {
setParameters(KEY_FILE_NAME, fileName);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnUpdateSubMenu.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnUpdateSubMenu.java
index e6fb05829..e430aa71d 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnUpdateSubMenu.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnUpdateSubMenu.java
@@ -105,8 +105,9 @@ public class OnUpdateSubMenu extends RPCNotification {
*
* @param menuID This menuID must match a menuID in the current menu structure
*/
- public void setMenuID(@NonNull Integer menuID) {
+ public OnUpdateSubMenu setMenuID(@NonNull Integer menuID) {
setParameters(KEY_MENU_ID, menuID);
+ return this;
}
/**
@@ -125,8 +126,9 @@ public class OnUpdateSubMenu extends RPCNotification {
* the menuID. These AddCommands will then be attached to the submenu and displayed if the
* submenu is selected.
*/
- public void setUpdateSubCells(Boolean updateSubCells) {
+ public OnUpdateSubMenu setUpdateSubCells( Boolean updateSubCells) {
setParameters(KEY_UPDATE_SUB_CELLS, updateSubCells);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnVehicleData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnVehicleData.java
index 74fcda171..c134eba57 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnVehicleData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnVehicleData.java
@@ -93,19 +93,27 @@ import java.util.List;
* </tr>
* <tr>
* <td>fuelLevel</td>
- * <td>Float</td>
- * <td>The fuel level in the tank (percentage)</td>
+ * <td>Boolean</td>
+ * <td>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec7.0, please see fuelRange.</td>
* <td>N</td>
* <td>Subscribable</td>
- * <td>SmartDeviceLink 2.0</td>
+ * <td>SmartDeviceLink 7.0.0</td>
* </tr>
* <tr>
* <td>fuelLevel_State</td>
- * <td>ComponentVolumeStatus</td>
- * <td>The fuel level state (Ok/Low)</td>
+ * <td>Boolean</td>
+ * <td>The fuel level state. This parameter is deprecated starting RPC Spec 7.0, please seefuelRange.</td>
* <td>N</td>
* <td>Subscribable</td>
- * <td>SmartDeviceLink 2.0</td>
+ * <td>SmartDeviceLink 7.0.0</td>
+ * </tr>
+ * <tr>
+ * <td>fuelRange</td>
+ * <td>Boolean</td>
+ * <td>The fuel type, estimated range in KM, fuel level/capacity and fuel level state for thevehicle. See struct FuelRange for details.</td>
+ * <td>N</td>
+ * <td>{"array_min_size": 0, "array_max_size": 100}</td>
+ * <td>SmartDeviceLink 5.0.0</td>
* </tr>
* <tr>
* <td>instantFuelConsumption</td>
@@ -311,6 +319,13 @@ import java.util.List;
* <td>N</td>
* <td>SmartDeviceLink 7.0.0</td>
* </tr>
+ * <tr>
+ * <td>stabilityControlsStatus</td>
+ * <td>StabilityControlsStatus</td>
+ * <td>See StabilityControlsStatus</td>
+ * <td>N</td>
+ * <td>SmartDeviceLink 7.0.0</td>
+ * </tr>
* </table>
*
* @since SmartDeviceLink 1.0
@@ -324,7 +339,6 @@ public class OnVehicleData extends RPCNotification {
public static final String KEY_SPEED = "speed";
public static final String KEY_RPM = "rpm";
public static final String KEY_EXTERNAL_TEMPERATURE = "externalTemperature";
- public static final String KEY_FUEL_LEVEL = "fuelLevel";
public static final String KEY_VIN = "vin";
public static final String KEY_PRNDL = "prndl";
public static final String KEY_TIRE_PRESSURE = "tirePressure";
@@ -332,7 +346,6 @@ public class OnVehicleData extends RPCNotification {
public static final String KEY_ENGINE_OIL_LIFE = "engineOilLife";
public static final String KEY_ODOMETER = "odometer";
public static final String KEY_GPS = "gps";
- public static final String KEY_FUEL_LEVEL_STATE = "fuelLevel_State";
public static final String KEY_INSTANT_FUEL_CONSUMPTION = "instantFuelConsumption";
public static final String KEY_BELT_STATUS = "beltStatus";
public static final String KEY_BODY_INFORMATION = "bodyInformation";
@@ -354,7 +367,18 @@ public class OnVehicleData extends RPCNotification {
public static final String KEY_HANDS_OFF_STEERING = "handsOffSteering";
public static final String KEY_WINDOW_STATUS = "windowStatus";
public static final String KEY_GEAR_STATUS = "gearStatus";
+ /**
+ * @deprecated
+ */
+ @Deprecated
+ public static final String KEY_FUEL_LEVEL = "fuelLevel";
+ /**
+ * @deprecated
+ */
+ @Deprecated
+ public static final String KEY_FUEL_LEVEL_STATE = "fuelLevel_State";
+ public static final String KEY_STABILITY_CONTROLS_STATUS = "stabilityControlsStatus";
public OnVehicleData() {
super(FunctionID.ON_VEHICLE_DATA.toString());
@@ -362,55 +386,81 @@ public class OnVehicleData extends RPCNotification {
public OnVehicleData(Hashtable<String, Object> hash) {
super(hash);
}
- public void setGps(GPSData gps) {
+ public OnVehicleData setGps( GPSData gps) {
setParameters(KEY_GPS, gps);
+ return this;
}
@SuppressWarnings("unchecked")
public GPSData getGps() {
return (GPSData) getObject(GPSData.class, KEY_GPS);
}
- public void setSpeed(Double speed) {
+ public OnVehicleData setSpeed( Double speed) {
setParameters(KEY_SPEED, speed);
+ return this;
}
public Double getSpeed() {
Object object = getParameters(KEY_SPEED);
return SdlDataTypeConverter.objectToDouble(object);
}
- public void setRpm(Integer rpm) {
+ public OnVehicleData setRpm( Integer rpm) {
setParameters(KEY_RPM, rpm);
+ return this;
}
public Integer getRpm() {
return getInteger(KEY_RPM);
}
- public void setFuelLevel(Double fuelLevel) {
+
+ /**
+ * Sets the fuelLevel.
+ *
+ * @param fuelLevel The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec
+ * 7.0, please see fuelRange.
+ */
+ @Deprecated
+ public OnVehicleData setFuelLevel( Double fuelLevel) {
setParameters(KEY_FUEL_LEVEL, fuelLevel);
+ return this;
}
+
+ /**
+ * Gets the fuelLevel.
+ *
+ * @return Float The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec
+ * 7.0, please see fuelRange.
+ */
+ @Deprecated
public Double getFuelLevel() {
Object object = getParameters(KEY_FUEL_LEVEL);
return SdlDataTypeConverter.objectToDouble(object);
}
- public void setFuelLevelState(ComponentVolumeStatus fuelLevelState) {
+ @Deprecated
+ public OnVehicleData setFuelLevelState( ComponentVolumeStatus fuelLevelState) {
setParameters(KEY_FUEL_LEVEL_STATE, fuelLevelState);
+ return this;
}
+ @Deprecated
public ComponentVolumeStatus getFuelLevelState() {
return (ComponentVolumeStatus) getObject(ComponentVolumeStatus.class, KEY_FUEL_LEVEL_STATE);
}
- public void setInstantFuelConsumption(Double instantFuelConsumption) {
+ public OnVehicleData setInstantFuelConsumption( Double instantFuelConsumption) {
setParameters(KEY_INSTANT_FUEL_CONSUMPTION, instantFuelConsumption);
+ return this;
}
public Double getInstantFuelConsumption() {
Object object = getParameters(KEY_INSTANT_FUEL_CONSUMPTION);
return SdlDataTypeConverter.objectToDouble(object);
}
- public void setExternalTemperature(Double externalTemperature) {
+ public OnVehicleData setExternalTemperature( Double externalTemperature) {
setParameters(KEY_EXTERNAL_TEMPERATURE, externalTemperature);
+ return this;
}
public Double getExternalTemperature() {
Object object = getParameters(KEY_EXTERNAL_TEMPERATURE);
return SdlDataTypeConverter.objectToDouble(object);
}
- public void setVin(String vin) {
+ public OnVehicleData setVin( String vin) {
setParameters(KEY_VIN, vin);
+ return this;
}
public String getVin() {
return getString(KEY_VIN);
@@ -423,8 +473,9 @@ public class OnVehicleData extends RPCNotification {
* @deprecated in SmartDeviceLink 7.0.0
*/
@Deprecated
- public void setPrndl(PRNDL prndl) {
+ public OnVehicleData setPrndl( PRNDL prndl) {
setParameters(KEY_PRNDL, prndl);
+ return this;
}
/**
@@ -443,117 +494,134 @@ public class OnVehicleData extends RPCNotification {
*
* @param tirePressure See TireStatus
*/
- public void setTirePressure(TireStatus tirePressure) {
+ public OnVehicleData setTirePressure( TireStatus tirePressure) {
setParameters(KEY_TIRE_PRESSURE, tirePressure);
+ return this;
}
@SuppressWarnings("unchecked")
public TireStatus getTirePressure() {
return (TireStatus) getObject(TireStatus.class, KEY_TIRE_PRESSURE);
}
- public void setOdometer(Integer odometer) {
+ public OnVehicleData setOdometer( Integer odometer) {
setParameters(KEY_ODOMETER, odometer);
+ return this;
}
public Integer getOdometer() {
return getInteger(KEY_ODOMETER);
}
- public void setBeltStatus(BeltStatus beltStatus) {
+ public OnVehicleData setBeltStatus( BeltStatus beltStatus) {
setParameters(KEY_BELT_STATUS, beltStatus);
+ return this;
}
@SuppressWarnings("unchecked")
public BeltStatus getBeltStatus() {
return (BeltStatus) getObject(BeltStatus.class, KEY_BELT_STATUS);
}
- public void setBodyInformation(BodyInformation bodyInformation) {
+ public OnVehicleData setBodyInformation( BodyInformation bodyInformation) {
setParameters(KEY_BODY_INFORMATION, bodyInformation);
+ return this;
}
@SuppressWarnings("unchecked")
public BodyInformation getBodyInformation() {
return (BodyInformation) getObject(BodyInformation.class, KEY_BODY_INFORMATION);
}
- public void setDeviceStatus(DeviceStatus deviceStatus) {
+ public OnVehicleData setDeviceStatus( DeviceStatus deviceStatus) {
setParameters(KEY_DEVICE_STATUS, deviceStatus);
+ return this;
}
@SuppressWarnings("unchecked")
public DeviceStatus getDeviceStatus() {
return (DeviceStatus) getObject(DeviceStatus.class, KEY_DEVICE_STATUS);
}
- public void setDriverBraking(VehicleDataEventStatus driverBraking) {
+ public OnVehicleData setDriverBraking( VehicleDataEventStatus driverBraking) {
setParameters(KEY_DRIVER_BRAKING, driverBraking);
+ return this;
}
public VehicleDataEventStatus getDriverBraking() {
return (VehicleDataEventStatus) getObject(VehicleDataEventStatus.class, KEY_DRIVER_BRAKING);
}
- public void setWiperStatus(WiperStatus wiperStatus) {
+ public OnVehicleData setWiperStatus( WiperStatus wiperStatus) {
setParameters(KEY_WIPER_STATUS, wiperStatus);
+ return this;
}
public WiperStatus getWiperStatus() {
return (WiperStatus) getObject(WiperStatus.class, KEY_WIPER_STATUS);
}
- public void setHeadLampStatus(HeadLampStatus headLampStatus) {
+ public OnVehicleData setHeadLampStatus( HeadLampStatus headLampStatus) {
setParameters(KEY_HEAD_LAMP_STATUS, headLampStatus);
+ return this;
}
@SuppressWarnings("unchecked")
public HeadLampStatus getHeadLampStatus() {
return (HeadLampStatus) getObject(HeadLampStatus.class, KEY_HEAD_LAMP_STATUS);
}
- public void setEngineTorque(Double engineTorque) {
+ public OnVehicleData setEngineTorque( Double engineTorque) {
setParameters(KEY_ENGINE_TORQUE, engineTorque);
+ return this;
}
public Double getEngineTorque() {
Object object = getParameters(KEY_ENGINE_TORQUE);
return SdlDataTypeConverter.objectToDouble(object);
}
- public void setEngineOilLife(Float engineOilLife) {
+ public OnVehicleData setEngineOilLife( Float engineOilLife) {
setParameters(KEY_ENGINE_OIL_LIFE, engineOilLife);
+ return this;
}
public Float getEngineOilLife() {
Object object = getParameters(KEY_ENGINE_OIL_LIFE);
return SdlDataTypeConverter.objectToFloat(object);
}
- public void setAccPedalPosition(Double accPedalPosition) {
+ public OnVehicleData setAccPedalPosition( Double accPedalPosition) {
setParameters(KEY_ACC_PEDAL_POSITION, accPedalPosition);
+ return this;
}
public Double getAccPedalPosition() {
Object object = getParameters(KEY_ACC_PEDAL_POSITION);
return SdlDataTypeConverter.objectToDouble(object);
}
- public void setSteeringWheelAngle(Double steeringWheelAngle) {
+ public OnVehicleData setSteeringWheelAngle( Double steeringWheelAngle) {
setParameters(KEY_STEERING_WHEEL_ANGLE, steeringWheelAngle);
+ return this;
}
public Double getSteeringWheelAngle() {
Object object = getParameters(KEY_STEERING_WHEEL_ANGLE);
return SdlDataTypeConverter.objectToDouble(object);
}
- public void setECallInfo(ECallInfo eCallInfo) {
+ public OnVehicleData setECallInfo( ECallInfo eCallInfo) {
setParameters(KEY_E_CALL_INFO, eCallInfo);
+ return this;
}
@SuppressWarnings("unchecked")
public ECallInfo getECallInfo() {
return (ECallInfo) getObject(ECallInfo.class, KEY_E_CALL_INFO);
}
- public void setAirbagStatus(AirbagStatus airbagStatus) {
+ public OnVehicleData setAirbagStatus( AirbagStatus airbagStatus) {
setParameters(KEY_AIRBAG_STATUS, airbagStatus);
+ return this;
}
@SuppressWarnings("unchecked")
public AirbagStatus getAirbagStatus() {
return (AirbagStatus) getObject(AirbagStatus.class, KEY_AIRBAG_STATUS);
}
- public void setEmergencyEvent(EmergencyEvent emergencyEvent) {
+ public OnVehicleData setEmergencyEvent( EmergencyEvent emergencyEvent) {
setParameters(KEY_EMERGENCY_EVENT, emergencyEvent);
+ return this;
}
@SuppressWarnings("unchecked")
public EmergencyEvent getEmergencyEvent() {
return (EmergencyEvent) getObject(EmergencyEvent.class, KEY_EMERGENCY_EVENT);
}
- public void setClusterModeStatus(ClusterModeStatus clusterModeStatus) {
+ public OnVehicleData setClusterModeStatus( ClusterModeStatus clusterModeStatus) {
setParameters(KEY_CLUSTER_MODE_STATUS, clusterModeStatus);
+ return this;
}
@SuppressWarnings("unchecked")
public ClusterModeStatus getClusterModeStatus() {
return (ClusterModeStatus) getObject(ClusterModeStatus.class, KEY_CLUSTER_MODE_STATUS);
}
- public void setMyKey(MyKey myKey) {
+ public OnVehicleData setMyKey( MyKey myKey) {
setParameters(KEY_MY_KEY, myKey);
+ return this;
}
@SuppressWarnings("unchecked")
public MyKey getMyKey() {
@@ -561,17 +629,26 @@ public class OnVehicleData extends RPCNotification {
}
/**
- * Sets Fuel Range List. Fuel Range - The estimate range in KM the vehicle can travel based on fuel level and consumption.
- * @param fuelRange
+ * Sets the fuelRange.
+ *
+ * @param fuelRange The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the
+ * vehicle. See struct FuelRange for details.
+ * {"array_min_size": 0, "array_max_size": 100}
+ * @since SmartDeviceLink 5.0.0
*/
- public void setFuelRange(List<FuelRange> fuelRange) {
+ public OnVehicleData setFuelRange( List<FuelRange> fuelRange) {
setParameters(KEY_FUEL_RANGE, fuelRange);
+ return this;
}
/**
- * Gets Fuel Range List.
- * @return List<FuelRange>
- * Fuel Range - The estimate range in KM the vehicle can travel based on fuel level and consumption.
+ * Gets the fuelRange.
+ *
+ * @return List<FuelRange> The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the
+ * vehicle. See struct FuelRange for details.
+ * {"array_min_size": 0, "array_max_size": 100}
+ * @since SmartDeviceLink 5.0.0
+
*/
@SuppressWarnings("unchecked")
public List<FuelRange> getFuelRange() {
@@ -582,8 +659,9 @@ public class OnVehicleData extends RPCNotification {
* Sets turnSignal
* @param turnSignal
*/
- public void setTurnSignal(TurnSignal turnSignal) {
+ public OnVehicleData setTurnSignal( TurnSignal turnSignal) {
setParameters(KEY_TURN_SIGNAL, turnSignal);
+ return this;
}
/**
@@ -599,8 +677,9 @@ public class OnVehicleData extends RPCNotification {
* Sets electronicParkBrakeStatus
* @param electronicParkBrakeStatus
*/
- public void setElectronicParkBrakeStatus(ElectronicParkBrakeStatus electronicParkBrakeStatus){
+ public OnVehicleData setElectronicParkBrakeStatus( ElectronicParkBrakeStatus electronicParkBrakeStatus) {
setParameters(KEY_ELECTRONIC_PARK_BRAKE_STATUS, electronicParkBrakeStatus);
+ return this;
}
/**
@@ -615,8 +694,9 @@ public class OnVehicleData extends RPCNotification {
* Sets a string value for the cloud app vehicle ID
* @param cloudAppVehicleID a string value
*/
- public void setCloudAppVehicleID(String cloudAppVehicleID){
+ public OnVehicleData setCloudAppVehicleID( String cloudAppVehicleID) {
setParameters(KEY_CLOUD_APP_VEHICLE_ID, cloudAppVehicleID);
+ return this;
}
/**
@@ -632,8 +712,9 @@ public class OnVehicleData extends RPCNotification {
* @param vehicleDataName a String value
* @param vehicleDataState a VehicleDataResult value
*/
- public void setOEMCustomVehicleData(String vehicleDataName, Object vehicleDataState){
+ public OnVehicleData setOEMCustomVehicleData( String vehicleDataName, Object vehicleDataState) {
setParameters(vehicleDataName, vehicleDataState);
+ return this;
}
/**
@@ -650,8 +731,9 @@ public class OnVehicleData extends RPCNotification {
* @param windowStatus See WindowStatus
* @since SmartDeviceLink 7.0.0
*/
- public void setWindowStatus(List<WindowStatus> windowStatus) {
+ public OnVehicleData setWindowStatus( List<WindowStatus> windowStatus) {
setParameters(KEY_WINDOW_STATUS, windowStatus);
+ return this;
}
/**
@@ -666,13 +748,35 @@ public class OnVehicleData extends RPCNotification {
}
/**
+ * Gets the stabilityControlsStatus.
+ *
+ * @return StabilityControlsStatus See StabilityControlsStatus
+ * @since SmartDeviceLink 7.0.0
+ */
+ public StabilityControlsStatus getStabilityControlsStatus() {
+ return (StabilityControlsStatus) getObject(StabilityControlsStatus.class, KEY_STABILITY_CONTROLS_STATUS);
+ }
+
+ /**
+ * Sets the stabilityControlsStatus.
+ *
+ * @param stabilityControlsStatus See StabilityControlsStatus
+ * @since SmartDeviceLink 7.0.0
+ */
+ public OnVehicleData setStabilityControlsStatus( StabilityControlsStatus stabilityControlsStatus) {
+ setParameters(KEY_STABILITY_CONTROLS_STATUS, stabilityControlsStatus);
+ return this;
+ }
+
+ /**
* Sets the handsOffSteering.
*
* @param handsOffSteering To indicate whether driver hands are off the steering wheel
* @since SmartDeviceLink 7.0.0
*/
- public void setHandsOffSteering(Boolean handsOffSteering) {
+ public OnVehicleData setHandsOffSteering( Boolean handsOffSteering) {
setParameters(KEY_HANDS_OFF_STEERING, handsOffSteering);
+ return this;
}
/**
@@ -690,8 +794,9 @@ public class OnVehicleData extends RPCNotification {
* @param gearStatus See GearStatus
* @since SmartDeviceLink 7.0.0
*/
- public void setGearStatus(GearStatus gearStatus) {
+ public OnVehicleData setGearStatus( GearStatus gearStatus) {
setParameters(KEY_GEAR_STATUS, gearStatus);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnWayPointChange.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnWayPointChange.java
index f204b6998..27809115b 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/OnWayPointChange.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/OnWayPointChange.java
@@ -60,7 +60,8 @@ public class OnWayPointChange extends RPCNotification {
return (List<LocationDetails>) getObject(LocationDetails.class, KEY_WAY_POINTS);
}
- public void setWayPoints(@NonNull List<LocationDetails> wayPoints) {
- setParameters(KEY_WAY_POINTS, wayPoints);
- }
+ public OnWayPointChange setWayPoints(@NonNull List<LocationDetails> wayPoints) {
+ setParameters(KEY_WAY_POINTS, wayPoints);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ParameterPermissions.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ParameterPermissions.java
index 4de4ad82c..e102f56c0 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ParameterPermissions.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ParameterPermissions.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -116,8 +116,9 @@ public class ParameterPermissions extends RPCStruct {
* set a set of all parameters that are permitted for this given RPC.
* @param allowed parameter that is permitted for this given RPC
*/
- public void setAllowed(@NonNull List<String> allowed) {
+ public ParameterPermissions setAllowed(@NonNull List<String> allowed) {
setValue(KEY_ALLOWED, allowed);
+ return this;
}
/**
@@ -133,7 +134,8 @@ public class ParameterPermissions extends RPCStruct {
* set a set of all parameters that are prohibited for this given RPC.
* @param userDisallowed paramter that is prohibited for this given RPC
*/
- public void setUserDisallowed(@NonNull List<String> userDisallowed) {
+ public ParameterPermissions setUserDisallowed(@NonNull List<String> userDisallowed) {
setValue(KEY_USER_DISALLOWED, userDisallowed);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformAppServiceInteraction.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformAppServiceInteraction.java
index a71f1b25a..af70ab1c0 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformAppServiceInteraction.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformAppServiceInteraction.java
@@ -67,9 +67,10 @@ public class PerformAppServiceInteraction extends RPCRequest {
* URI is correct.
* @param serviceUri -
*/
- public void setServiceUri(@NonNull String serviceUri){
- setParameters(KEY_SERVICE_URI, serviceUri);
- }
+ public PerformAppServiceInteraction setServiceUri(@NonNull String serviceUri) {
+ setParameters(KEY_SERVICE_URI, serviceUri);
+ return this;
+ }
/**
* Fully qualified URI based on a predetermined scheme provided by the app service. SDL makes no guarantee that this
@@ -84,9 +85,10 @@ public class PerformAppServiceInteraction extends RPCRequest {
* The service ID that the app consumer wishes to send this URI.
* @param appServiceId -
*/
- public void setServiceID(@NonNull String appServiceId){
- setParameters(KEY_SERVICE_ID, appServiceId);
- }
+ public PerformAppServiceInteraction setServiceID(@NonNull String appServiceId) {
+ setParameters(KEY_SERVICE_ID, appServiceId);
+ return this;
+ }
/**
* The service ID that the app consumer wishes to send this URI.
@@ -100,9 +102,10 @@ public class PerformAppServiceInteraction extends RPCRequest {
* This string is the appID of the app requesting the app service provider take the specific action.
* @param originApp -
*/
- public void setOriginApp(@NonNull String originApp){
- setParameters(KEY_ORIGIN_APP, originApp);
- }
+ public PerformAppServiceInteraction setOriginApp(@NonNull String originApp) {
+ setParameters(KEY_ORIGIN_APP, originApp);
+ return this;
+ }
/**
* This string is the appID of the app requesting the app service provider take the specific action.
@@ -117,9 +120,10 @@ public class PerformAppServiceInteraction extends RPCRequest {
* service of the destination's type.
* @param requestServiceActive -
*/
- public void setRequestServiceActive(Boolean requestServiceActive){
- setParameters(KEY_REQUEST_SERVICE_ACTIVE, requestServiceActive);
- }
+ public PerformAppServiceInteraction setRequestServiceActive( Boolean requestServiceActive) {
+ setParameters(KEY_REQUEST_SERVICE_ACTIVE, requestServiceActive);
+ return this;
+ }
/**
* This string is the appID of the app requesting the app service provider take the specific action.
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformAppServiceInteractionResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformAppServiceInteractionResponse.java
index cc6d5c5f4..481c91e17 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformAppServiceInteractionResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformAppServiceInteractionResponse.java
@@ -70,9 +70,10 @@ public class PerformAppServiceInteractionResponse extends RPCResponse {
* The service can provide specific result strings to the consumer through this param.
* @param serviceSpecificResult -
*/
- public void setServiceSpecificResult(String serviceSpecificResult){
- setParameters(KEY_SERVICE_SPECIFIC_RESULT, serviceSpecificResult);
- }
+ public PerformAppServiceInteractionResponse setServiceSpecificResult( String serviceSpecificResult) {
+ setParameters(KEY_SERVICE_SPECIFIC_RESULT, serviceSpecificResult);
+ return this;
+ }
/**
* The service can provide specific result strings to the consumer through this param.
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformAudioPassThru.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformAudioPassThru.java
index f9a4a29cb..0e125f8a7 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformAudioPassThru.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformAudioPassThru.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -170,7 +170,7 @@ public class PerformAudioPassThru extends RPCRequest {
/**
* Sets initial prompt which will be spoken before opening the audio pass
* thru session by SDL
- *
+ *
* @param initialPrompt
* a List<TTSChunk> value represents the initial prompt which
* will be spoken before opening the audio pass thru session by
@@ -185,8 +185,9 @@ public class PerformAudioPassThru extends RPCRequest {
* <li>Array Maxsize: 100</li>
* </ul>
*/
- public void setInitialPrompt(List<TTSChunk> initialPrompt) {
- setParameters(KEY_INITIAL_PROMPT, initialPrompt);
+ public PerformAudioPassThru setInitialPrompt( List<TTSChunk> initialPrompt) {
+ setParameters(KEY_INITIAL_PROMPT, initialPrompt);
+ return this;
}
/**
@@ -204,15 +205,16 @@ public class PerformAudioPassThru extends RPCRequest {
/**
* Sets a line of text displayed during audio capture
- *
+ *
* @param audioPassThruDisplayText1
* <p>a String value representing the line of text displayed during
* audio capture</p>
* <p></p>
* <b>Notes: </b>Maxlength=500
*/
- public void setAudioPassThruDisplayText1(String audioPassThruDisplayText1) {
- setParameters(KEY_AUDIO_PASS_THRU_DISPLAY_TEXT_1, audioPassThruDisplayText1);
+ public PerformAudioPassThru setAudioPassThruDisplayText1( String audioPassThruDisplayText1) {
+ setParameters(KEY_AUDIO_PASS_THRU_DISPLAY_TEXT_1, audioPassThruDisplayText1);
+ return this;
}
/**
@@ -227,15 +229,16 @@ public class PerformAudioPassThru extends RPCRequest {
/**
* Sets a line of text displayed during audio capture
- *
+ *
* @param audioPassThruDisplayText2
* <p>a String value representing the line of text displayed during
* audio capture</p>
* <p></p>
* <b>Notes: </b>Maxlength=500
*/
- public void setAudioPassThruDisplayText2(String audioPassThruDisplayText2) {
- setParameters(KEY_AUDIO_PASS_THRU_DISPLAY_TEXT_2, audioPassThruDisplayText2);
+ public PerformAudioPassThru setAudioPassThruDisplayText2( String audioPassThruDisplayText2) {
+ setParameters(KEY_AUDIO_PASS_THRU_DISPLAY_TEXT_2, audioPassThruDisplayText2);
+ return this;
}
/**
@@ -250,12 +253,13 @@ public class PerformAudioPassThru extends RPCRequest {
/**
* Sets a samplingRate
- *
+ *
* @param samplingRate
* a SamplingRate value representing a 8 or 16 or 22 or 24 khz
*/
- public void setSamplingRate(@NonNull SamplingRate samplingRate) {
- setParameters(KEY_SAMPLING_RATE, samplingRate);
+ public PerformAudioPassThru setSamplingRate(@NonNull SamplingRate samplingRate) {
+ setParameters(KEY_SAMPLING_RATE, samplingRate);
+ return this;
}
/**
@@ -269,15 +273,16 @@ public class PerformAudioPassThru extends RPCRequest {
/**
* Sets the maximum duration of audio recording in milliseconds
- *
+ *
* @param maxDuration
* an Integer value representing the maximum duration of audio
* recording in millisecond
* <p></p>
* <b>Notes: </b>Minvalue:1; Maxvalue:1000000
*/
- public void setMaxDuration(@NonNull Integer maxDuration) {
- setParameters(KEY_MAX_DURATION, maxDuration);
+ public PerformAudioPassThru setMaxDuration(@NonNull Integer maxDuration) {
+ setParameters(KEY_MAX_DURATION, maxDuration);
+ return this;
}
/**
@@ -292,12 +297,13 @@ public class PerformAudioPassThru extends RPCRequest {
/**
* Sets the quality the audio is recorded - 8 bit or 16 bit
- *
+ *
* @param audioQuality
* a BitsPerSample value representing 8 bit or 16 bit
*/
- public void setBitsPerSample(@NonNull BitsPerSample audioQuality) {
- setParameters(KEY_BITS_PER_SAMPLE, audioQuality);
+ public PerformAudioPassThru setBitsPerSample(@NonNull BitsPerSample audioQuality) {
+ setParameters(KEY_BITS_PER_SAMPLE, audioQuality);
+ return this;
}
/**
@@ -311,12 +317,13 @@ public class PerformAudioPassThru extends RPCRequest {
/**
* Sets an audioType
- *
+ *
* @param audioType
* an audioType
*/
- public void setAudioType(@NonNull AudioType audioType) {
- setParameters(KEY_AUDIO_TYPE, audioType);
+ public PerformAudioPassThru setAudioType(@NonNull AudioType audioType) {
+ setParameters(KEY_AUDIO_TYPE, audioType);
+ return this;
}
/**
@@ -345,13 +352,14 @@ public class PerformAudioPassThru extends RPCRequest {
* muted during the APT session
* If not, the audio source will play without interruption. If omitted, the
* value is set to true</p>
- *
- *
+ *
+ *
* @param muteAudio
* a Boolean value representing if the current audio source
* should be muted during the APT session
*/
- public void setMuteAudio(Boolean muteAudio) {
- setParameters(KEY_MUTE_AUDIO, muteAudio);
- }
+ public PerformAudioPassThru setMuteAudio( Boolean muteAudio) {
+ setParameters(KEY_MUTE_AUDIO, muteAudio);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformInteraction.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformInteraction.java
index 129825f6c..99efbb2ef 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformInteraction.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformInteraction.java
@@ -207,12 +207,13 @@ public class PerformInteraction extends RPCRequest {
* be overlaid by the "Listening" prompt during the interaction. Text is
* displayed on first line of multiline display, and is centered. If text
* does not fit on line, it will be truncated
- *
+ *
* @param initialText
* a String value that Displayed when the interaction begins
- */
- public void setInitialText(@NonNull String initialText) {
- setParameters(KEY_INITIAL_TEXT, initialText);
+ */
+ public PerformInteraction setInitialText(@NonNull String initialText) {
+ setParameters(KEY_INITIAL_TEXT, initialText);
+ return this;
}
/**
* Gets an An array of one or more TTSChunks that, taken together, specify
@@ -228,13 +229,14 @@ public class PerformInteraction extends RPCRequest {
/**
* Sets An array of one or more TTSChunks that, taken together, specify what
* is to be spoken to the user at the start of an interaction
- *
+ *
* @param initialPrompt
* a List<TTSChunk> value, specify what is to be spoken to the
* user at the start of an interaction
- */
- public void setInitialPrompt(List<TTSChunk> initialPrompt) {
- setParameters(KEY_INITIAL_PROMPT, initialPrompt);
+ */
+ public PerformInteraction setInitialPrompt( List<TTSChunk> initialPrompt) {
+ setParameters(KEY_INITIAL_PROMPT, initialPrompt);
+ return this;
}
/**
* Gets the Indicates mode that indicate how user selects interaction
@@ -251,13 +253,14 @@ public class PerformInteraction extends RPCRequest {
* Sets the Indicates mode that indicate how user selects interaction
* choice. User can choose either by voice (VR_ONLY), by visual selection
* from the menu (MANUAL_ONLY), or by either mode (BOTH)
- *
+ *
* @param interactionMode
* indicate how user selects interaction choice (VR_ONLY,
* MANUAL_ONLY or BOTH)
- */
- public void setInteractionMode(@NonNull InteractionMode interactionMode) {
- setParameters(KEY_INTERACTION_MODE, interactionMode);
+ */
+ public PerformInteraction setInteractionMode(@NonNull InteractionMode interactionMode) {
+ setParameters(KEY_INTERACTION_MODE, interactionMode);
+ return this;
}
/**
* Gets a List<Integer> value representing an Array of one or more Choice
@@ -274,16 +277,17 @@ public class PerformInteraction extends RPCRequest {
/**
* Sets a List<Integer> representing an Array of one or more Choice Set
* IDs. User can select any choice from any of the specified Choice Sets
- *
+ *
* @param interactionChoiceSetIDList
* -a List<Integer> representing an Array of one or more Choice
* Set IDs. User can select any choice from any of the specified
* Choice Sets
* <p></p>
* <b>Notes: </b>Min Value: 0; Max Vlaue: 2000000000
- */
- public void setInteractionChoiceSetIDList(@NonNull List<Integer> interactionChoiceSetIDList) {
- setParameters(KEY_INTERACTION_CHOICE_SET_ID_LIST, interactionChoiceSetIDList);
+ */
+ public PerformInteraction setInteractionChoiceSetIDList(@NonNull List<Integer> interactionChoiceSetIDList) {
+ setParameters(KEY_INTERACTION_CHOICE_SET_ID_LIST, interactionChoiceSetIDList);
+ return this;
}
/**
* Gets a List<TTSChunk> which taken together, specify the help phrase to
@@ -307,14 +311,15 @@ public class PerformInteraction extends RPCRequest {
* <P></p>
* <b>Notes: </b>The helpPrompt specified in
* {@linkplain SetGlobalProperties} is not used by PerformInteraction
- *
+ *
* @param helpPrompt
* a List<TTSChunk> which taken together, specify the help
* phrase to be spoken when the user says "help" during the VR
* session
- */
- public void setHelpPrompt(List<TTSChunk> helpPrompt) {
- setParameters(KEY_HELP_PROMPT, helpPrompt);
+ */
+ public PerformInteraction setHelpPrompt( List<TTSChunk> helpPrompt) {
+ setParameters(KEY_HELP_PROMPT, helpPrompt);
+ return this;
}
/**
* Gets An array of TTSChunks which, taken together, specify the phrase to
@@ -333,13 +338,14 @@ public class PerformInteraction extends RPCRequest {
* <p></p>
* <b>Notes: </b>The timeoutPrompt specified in
* {@linkplain SetGlobalProperties} is not used by PerformInteraction
- *
+ *
* @param timeoutPrompt
* a List<TTSChunk> specify the phrase to be spoken when the
* listen times out during the VR session
- */
- public void setTimeoutPrompt(List<TTSChunk> timeoutPrompt) {
- setParameters(KEY_TIMEOUT_PROMPT, timeoutPrompt);
+ */
+ public PerformInteraction setTimeoutPrompt( List<TTSChunk> timeoutPrompt) {
+ setParameters(KEY_TIMEOUT_PROMPT, timeoutPrompt);
+ return this;
}
/**
* Gets a Integer value representing the amount of time, in milliseconds,
@@ -360,16 +366,17 @@ public class PerformInteraction extends RPCRequest {
* take place after SDL speaks the timeout prompt. If that times out as
* well, the interaction will end completely. If omitted, the default is
* 10000ms
- *
+ *
* @param timeout
* an Integer value representing the amount of time, in
* milliseconds, SDL will wait for the user to make a choice (VR
* or Menu)
* <p></p>
* <b>Notes: </b>Min Value: 5000; Max Value: 100000
- */
- public void setTimeout(Integer timeout) {
- setParameters(KEY_TIMEOUT, timeout);
+ */
+ public PerformInteraction setTimeout( Integer timeout) {
+ setParameters(KEY_TIMEOUT, timeout);
+ return this;
}
/**
@@ -396,8 +403,9 @@ public class PerformInteraction extends RPCRequest {
* <b>Notes: </b>Min=1; Max=100
* @since SmartDeviceLink 2.0
*/
- public void setVrHelp(List<VrHelpItem> vrHelp) {
- setParameters(KEY_VR_HELP, vrHelp);
+ public PerformInteraction setVrHelp( List<VrHelpItem> vrHelp) {
+ setParameters(KEY_VR_HELP, vrHelp);
+ return this;
}
/**
@@ -418,8 +426,9 @@ public class PerformInteraction extends RPCRequest {
*
* @since SmartDeviceLink 3.0
*/
- public void setInteractionLayout(LayoutMode interactionLayout ) {
- setParameters(KEY_INTERACTION_LAYOUT, interactionLayout);
+ public PerformInteraction setInteractionLayout( LayoutMode interactionLayout) {
+ setParameters(KEY_INTERACTION_LAYOUT, interactionLayout);
+ return this;
}
/**
@@ -440,7 +449,8 @@ public class PerformInteraction extends RPCRequest {
*
* @since SmartDeviceLink 6.0
*/
- public void setCancelID(Integer cancelID) {
- setParameters(KEY_CANCEL_ID, cancelID);
- }
+ public PerformInteraction setCancelID( Integer cancelID) {
+ setParameters(KEY_CANCEL_ID, cancelID);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformInteractionResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformInteractionResponse.java
index 20fec4c85..9bd0e37a9 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformInteractionResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/PerformInteractionResponse.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -88,9 +88,10 @@ public class PerformInteractionResponse extends RPCResponse {
/**
* Sets the application-scoped identifier that uniquely identifies this choice.
* @param choiceID Min: 0 Max: 65535
- */
- public void setChoiceID( Integer choiceID ) {
+ */
+ public PerformInteractionResponse setChoiceID( Integer choiceID) {
setParameters(KEY_CHOICE_ID, choiceID);
+ return this;
}
/**
* <p>Returns a <I>TriggerSource</I> object which will be shown in the HMI</p>
@@ -101,15 +102,17 @@ public class PerformInteractionResponse extends RPCResponse {
}
/**
* <p>Sets TriggerSource
- * Indicates whether command was selected via VR or via a menu selection (using the OK button).</p>
+ * Indicates whether command was selected via VR or via a menu selection (using the OK button).</p>
* @param triggerSource a TriggerSource object
- */
- public void setTriggerSource( TriggerSource triggerSource ) {
+ */
+ public PerformInteractionResponse setTriggerSource( TriggerSource triggerSource) {
setParameters(KEY_TRIGGER_SOURCE, triggerSource);
+ return this;
}
- public void setManualTextEntry(String manualTextEntry) {
+ public PerformInteractionResponse setManualTextEntry( String manualTextEntry) {
setParameters(KEY_MANUAL_TEXT_ENTRY, manualTextEntry);
+ return this;
}
public String getManualTextEntry() {
return getString(KEY_MANUAL_TEXT_ENTRY);
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/PermissionItem.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/PermissionItem.java
index ce0ec00a7..237fe84cc 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/PermissionItem.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/PermissionItem.java
@@ -109,22 +109,25 @@ public class PermissionItem extends RPCStruct {
public String getRpcName() {
return getString(KEY_RPC_NAME);
}
- public void setRpcName(@NonNull String rpcName) {
+ public PermissionItem setRpcName(@NonNull String rpcName) {
setValue(KEY_RPC_NAME, rpcName);
+ return this;
}
@SuppressWarnings("unchecked")
public HMIPermissions getHMIPermissions() {
return (HMIPermissions) getObject(HMIPermissions.class, KEY_HMI_PERMISSIONS);
}
- public void setHMIPermissions(@NonNull HMIPermissions hmiPermissions) {
+ public PermissionItem setHMIPermissions(@NonNull HMIPermissions hmiPermissions) {
setValue(KEY_HMI_PERMISSIONS, hmiPermissions);
+ return this;
}
@SuppressWarnings("unchecked")
public ParameterPermissions getParameterPermissions() {
return (ParameterPermissions) getObject(ParameterPermissions.class, KEY_PARAMETER_PERMISSIONS);
}
- public void setParameterPermissions(@NonNull ParameterPermissions parameterPermissions) {
+ public PermissionItem setParameterPermissions(@NonNull ParameterPermissions parameterPermissions) {
setValue(KEY_PARAMETER_PERMISSIONS, parameterPermissions);
+ return this;
}
/**
@@ -139,7 +142,8 @@ public class PermissionItem extends RPCStruct {
* Sets the encryption requirement for this item
* @param isRequired the boolean requirement to be set
*/
- public void setRequireEncryption(Boolean isRequired) {
+ public PermissionItem setRequireEncryption( Boolean isRequired) {
setValue(KEY_REQUIRE_ENCRYPTION, isRequired);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/PhoneCapability.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/PhoneCapability.java
index 348f23f25..bffabdf09 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/PhoneCapability.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/PhoneCapability.java
@@ -52,7 +52,8 @@ public class PhoneCapability extends RPCStruct {
return getBoolean(KEY_DIALNUMBER_ENABLED);
}
- public void setDialNumberEnabled(Boolean dialNumberEnabled){
- setValue(KEY_DIALNUMBER_ENABLED, dialNumberEnabled);
- }
+ public PhoneCapability setDialNumberEnabled( Boolean dialNumberEnabled) {
+ setValue(KEY_DIALNUMBER_ENABLED, dialNumberEnabled);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/PresetBankCapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/PresetBankCapabilities.java
index 4b218e143..cb59d5f6c 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/PresetBankCapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/PresetBankCapabilities.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -86,8 +86,9 @@ public class PresetBankCapabilities extends RPCStruct {
* set if Onscreen custom presets are available.
* @param onScreenPresetsAvailable if Onscreen custom presets are available.
*/
- public void setOnScreenPresetsAvailable(@NonNull Boolean onScreenPresetsAvailable) {
- setValue(KEY_ON_SCREEN_PRESETS_AVAILABLE, onScreenPresetsAvailable);
+ public PresetBankCapabilities setOnScreenPresetsAvailable(@NonNull Boolean onScreenPresetsAvailable) {
+ setValue(KEY_ON_SCREEN_PRESETS_AVAILABLE, onScreenPresetsAvailable);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/PublishAppService.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/PublishAppService.java
index 9c121bc22..bc3e48e33 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/PublishAppService.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/PublishAppService.java
@@ -79,9 +79,10 @@ public class PublishAppService extends RPCRequest {
* If already published, the updated manifest for this service.
* @param serviceManifest - the App Service Manifest
*/
- public void setAppServiceManifest(@NonNull AppServiceManifest serviceManifest){
- setParameters(KEY_APP_SERVICE_MANIFEST, serviceManifest);
- }
+ public PublishAppService setAppServiceManifest(@NonNull AppServiceManifest serviceManifest) {
+ setParameters(KEY_APP_SERVICE_MANIFEST, serviceManifest);
+ return this;
+ }
/**
* The manifest of the service that wishes to be published.
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/PublishAppServiceResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/PublishAppServiceResponse.java
index 6fcddfd47..d52a310dd 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/PublishAppServiceResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/PublishAppServiceResponse.java
@@ -70,9 +70,10 @@ public class PublishAppServiceResponse extends RPCResponse {
* for the published service. This will include the Core supplied service ID.
* @param appServiceRecord - the App Service Record
*/
- public void setServiceRecord(AppServiceRecord appServiceRecord){
- setParameters(KEY_APP_SERVICE_RECORD, appServiceRecord);
- }
+ public PublishAppServiceResponse setServiceRecord( AppServiceRecord appServiceRecord) {
+ setParameters(KEY_APP_SERVICE_RECORD, appServiceRecord);
+ return this;
+ }
/**
* If the request was successful, this object will be the current status of the service record
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/PutFile.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/PutFile.java
index 2d01d9a47..da4adfb1d 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/PutFile.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/PutFile.java
@@ -189,14 +189,15 @@ public class PutFile extends RPCRequest {
/**
* Sets a file reference name
- *
+ *
* @param sdlFileName
* a String value representing a file reference name
* <p></p>
* <b>Notes: </b>Maxlength=500, however the max file name length may vary based on remote filesystem limitations
*/
- public void setSdlFileName(@NonNull String sdlFileName) {
+ public PutFile setSdlFileName(@NonNull String sdlFileName) {
setParameters(KEY_SDL_FILE_NAME, sdlFileName);
+ return this;
}
/**
@@ -210,12 +211,13 @@ public class PutFile extends RPCRequest {
/**
* Sets file type
- *
+ *
* @param fileType
* a FileType value representing a selected file type
*/
- public void setFileType(@NonNull FileType fileType) {
+ public PutFile setFileType(@NonNull FileType fileType) {
setParameters(KEY_FILE_TYPE, fileType);
+ return this;
}
/**
@@ -236,12 +238,13 @@ public class PutFile extends RPCRequest {
* system, the app will receive a rejection and have to resend the file. If
* omitted, the value will be set to false
* <p></p>
- *
+ *
* @param persistentFile
* a Boolean value
*/
- public void setPersistentFile(Boolean persistentFile) {
+ public PutFile setPersistentFile( Boolean persistentFile) {
setParameters(KEY_PERSISTENT_FILE, persistentFile);
+ return this;
}
/**
@@ -254,8 +257,9 @@ public class PutFile extends RPCRequest {
public Boolean getPersistentFile() {
return getBoolean(KEY_PERSISTENT_FILE);
}
- public void setFileData(byte[] fileData) {
+ public PutFile setFileData( byte[] fileData) {
setBulkData(fileData);
+ return this;
}
public byte[] getFileData() {
return getBulkData();
@@ -265,19 +269,21 @@ public class PutFile extends RPCRequest {
* @deprecated as of SmartDeviceLink 4.0
* @param offset Optional offset in bytes for resuming partial data chunks
*/
- public void setOffset(Integer offset) {
- if(offset == null){
+ public PutFile setOffset( Integer offset) {
+ if(offset == null){
setOffset((Long)null);
}else{
setOffset(offset.longValue());
}
+ return this;
}
/**
* @param offset Optional offset in bytes for resuming partial data chunks
*/
- public void setOffset(Long offset) {
+ public PutFile setOffset( Long offset) {
setParameters(KEY_OFFSET, offset);
+ return this;
}
public Long getOffset() {
@@ -300,20 +306,22 @@ public class PutFile extends RPCRequest {
* @param length Optional length in bytes for resuming partial data chunks. If offset is set to 0, then length is
* the total length of the file to be downloaded
*/
- public void setLength(Integer length) {
- if(length == null){
+ public PutFile setLength( Integer length) {
+ if(length == null){
setLength((Long)null);
}else{
setLength(length.longValue());
}
+ return this;
}
/**
* @param length Optional length in bytes for resuming partial data chunks. If offset is set to 0, then length is
* the total length of the file to be downloaded
*/
- public void setLength(Long length) {
+ public PutFile setLength( Long length) {
setParameters(KEY_LENGTH, length);
+ return this;
}
public Long getLength() {
@@ -330,8 +338,9 @@ public class PutFile extends RPCRequest {
return null;
}
- public void setSystemFile(Boolean systemFile) {
+ public PutFile setSystemFile( Boolean systemFile) {
setParameters(KEY_SYSTEM_FILE, systemFile);
+ return this;
}
public Boolean getSystemFile() {
@@ -348,15 +357,16 @@ public class PutFile extends RPCRequest {
* CRC32 for it.
* @param fileData - the file as a byte array
*/
- public void setCRC(byte[] fileData) {
- if (fileData != null) {
+ public PutFile setCRC( byte[] fileData) {
+ if (fileData != null) {
CRC32 crc = new CRC32();
crc.update(fileData);
parameters.put(KEY_CRC, crc.getValue());
} else {
parameters.remove(KEY_CRC);
}
- }
+ return this;
+ }
/**
* This assumes you have created your own CRC32 and are setting it with the file
@@ -364,13 +374,14 @@ public class PutFile extends RPCRequest {
* included in java.util</STRONG>
* @param crc - the CRC32 of the file being set
*/
- public void setCRC(Long crc) {
- if (crc != null) {
+ public PutFile setCRC( Long crc) {
+ if (crc != null) {
parameters.put(KEY_CRC, crc);
} else {
parameters.remove(KEY_CRC);
}
- }
+ return this;
+ }
/**
* This returns the CRC, if it has been set, for the file object
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/PutFileResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/PutFileResponse.java
index e1bf71a43..1bc5a6887 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/PutFileResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/PutFileResponse.java
@@ -97,8 +97,9 @@ public class PutFileResponse extends RPCResponse {
super.format(rpcVersion, formatParams);
}
- public void setSpaceAvailable(Integer spaceAvailable) {
+ public PutFileResponse setSpaceAvailable( Integer spaceAvailable) {
setParameters(KEY_SPACE_AVAILABLE, spaceAvailable);
+ return this;
}
public Integer getSpaceAvailable() {
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/RGBColor.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/RGBColor.java
index 0cac1951d..0a22821ac 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/RGBColor.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/RGBColor.java
@@ -121,10 +121,11 @@ public class RGBColor extends RPCStruct{
* Sets the red value of the color object
* @param color red value - min: 0; max: 255
*/
- public void setRed(Integer color) {
+ public RGBColor setRed( Integer color) {
if (color != null && color >= MIN_VALUE && color <= MAX_VALUE) {
setValue(KEY_RED, color);
}
+ return this;
}
/**
@@ -139,10 +140,11 @@ public class RGBColor extends RPCStruct{
* Sets the green value of the color object
* @param color green value - min: 0; max: 255
*/
- public void setGreen(Integer color) {
+ public RGBColor setGreen( Integer color) {
if (color != null && color >= MIN_VALUE && color <= MAX_VALUE) {
setValue(KEY_GREEN, color);
}
+ return this;
}
/**
@@ -157,10 +159,11 @@ public class RGBColor extends RPCStruct{
* Sets the blue value of the color object
* @param color blue value - min: 0; max: 255
*/
- public void setBlue(Integer color) {
+ public RGBColor setBlue( Integer color) {
if (color != null && color >= MIN_VALUE && color <= MAX_VALUE) {
setValue(KEY_BLUE, color);
}
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/RadioControlCapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/RadioControlCapabilities.java
index 8ab552526..0b6297b68 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/RadioControlCapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/RadioControlCapabilities.java
@@ -81,8 +81,9 @@ public class RadioControlCapabilities extends RPCStruct{
* The short friendly name of the climate control module.
* It should not be used to identify a module by mobile application.
*/
- public void setModuleName(@NonNull String moduleName) {
+ public RadioControlCapabilities setModuleName(@NonNull String moduleName) {
setValue(KEY_MODULE_NAME, moduleName);
+ return this;
}
/**
@@ -101,8 +102,9 @@ public class RadioControlCapabilities extends RPCStruct{
* Availability of the control of enable/disable radio.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setRadioEnableAvailable(Boolean radioEnableAvailable) {
+ public RadioControlCapabilities setRadioEnableAvailable( Boolean radioEnableAvailable) {
setValue(KEY_RADIO_ENABLE_AVAILABLE, radioEnableAvailable);
+ return this;
}
/**
@@ -122,8 +124,9 @@ public class RadioControlCapabilities extends RPCStruct{
* Availability of the control of radio band.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setRadioBandAvailable(Boolean radioBandAvailable) {
+ public RadioControlCapabilities setRadioBandAvailable( Boolean radioBandAvailable) {
setValue(KEY_RADIO_BAND_AVAILABLE, radioBandAvailable);
+ return this;
}
/**
@@ -143,8 +146,9 @@ public class RadioControlCapabilities extends RPCStruct{
* Availability of the control of radio frequency.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setRadioFrequencyAvailable(Boolean radioFrequencyAvailable) {
+ public RadioControlCapabilities setRadioFrequencyAvailable( Boolean radioFrequencyAvailable) {
setValue(KEY_RADIO_FREQUENCY_AVAILABLE, radioFrequencyAvailable);
+ return this;
}
/**
@@ -164,8 +168,9 @@ public class RadioControlCapabilities extends RPCStruct{
* Availability of the control of HD radio channel.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setHdChannelAvailable(Boolean hdChannelAvailable) {
+ public RadioControlCapabilities setHdChannelAvailable( Boolean hdChannelAvailable) {
setValue(KEY_HD_CHANNEL_AVAILABLE, hdChannelAvailable);
+ return this;
}
/**
@@ -185,8 +190,9 @@ public class RadioControlCapabilities extends RPCStruct{
* Availability of the getting Radio Data System (RDS) data.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setRdsDataAvailable(Boolean rdsDataAvailable) {
+ public RadioControlCapabilities setRdsDataAvailable( Boolean rdsDataAvailable) {
setValue(KEY_RDS_DATA_AVAILABLE, rdsDataAvailable);
+ return this;
}
/**
@@ -207,8 +213,9 @@ public class RadioControlCapabilities extends RPCStruct{
* True: Available, False: Not Available, Not present: Not Available.
*/
@Deprecated
- public void setAvailableHDsAvailable(Boolean availableHDsAvailable) {
+ public RadioControlCapabilities setAvailableHDsAvailable( Boolean availableHDsAvailable) {
setValue(KEY_AVAILABLE_HDS_AVAILABLE, availableHDsAvailable);
+ return this;
}
/**
@@ -229,8 +236,9 @@ public class RadioControlCapabilities extends RPCStruct{
* Availability of the list of available HD sub-channel indexes.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setAvailableHdChannelsAvailable(Boolean availableHdChannelsAvailable) {
+ public RadioControlCapabilities setAvailableHdChannelsAvailable( Boolean availableHdChannelsAvailable) {
setValue(KEY_AVAILABLE_HD_CHANNELS_AVAILABLE, availableHdChannelsAvailable);
+ return this;
}
/**
@@ -250,8 +258,9 @@ public class RadioControlCapabilities extends RPCStruct{
* Availability of the getting the Radio state.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setStateAvailable(Boolean stateAvailable) {
+ public RadioControlCapabilities setStateAvailable( Boolean stateAvailable) {
setValue(KEY_STATE_AVAILABLE, stateAvailable);
+ return this;
}
/**
@@ -271,8 +280,9 @@ public class RadioControlCapabilities extends RPCStruct{
* Availability of the getting the signal strength.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setSignalStrengthAvailable(Boolean signalStrengthAvailable) {
+ public RadioControlCapabilities setSignalStrengthAvailable( Boolean signalStrengthAvailable) {
setValue(KEY_SIGNAL_STRENGTH_AVAILABLE, signalStrengthAvailable);
+ return this;
}
/**
@@ -292,8 +302,9 @@ public class RadioControlCapabilities extends RPCStruct{
* Availability of the getting the signal Change Threshold.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setSignalChangeThresholdAvailable(Boolean signalChangeThresholdAvailable) {
+ public RadioControlCapabilities setSignalChangeThresholdAvailable( Boolean signalChangeThresholdAvailable) {
setValue(KEY_SIGNAL_CHANGE_THRESHOLD_AVAILABLE, signalChangeThresholdAvailable);
+ return this;
}
/**
@@ -312,8 +323,9 @@ public class RadioControlCapabilities extends RPCStruct{
* @param hdRadioEnableAvailable Availability of the control of enable/disable HD radio.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setHdRadioEnableAvailable(Boolean hdRadioEnableAvailable) {
+ public RadioControlCapabilities setHdRadioEnableAvailable( Boolean hdRadioEnableAvailable) {
setValue(KEY_HD_RADIO_ENABLE_AVAILABLE, hdRadioEnableAvailable);
+ return this;
}
/**
@@ -332,8 +344,9 @@ public class RadioControlCapabilities extends RPCStruct{
* @param siriusxmRadioAvailable Availability of sirius XM radio.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setSiriusXMRadioAvailable(Boolean siriusxmRadioAvailable) {
+ public RadioControlCapabilities setSiriusXMRadioAvailable( Boolean siriusxmRadioAvailable) {
setValue(KEY_SIRIUS_XM_RADIO_AVAILABLE, siriusxmRadioAvailable);
+ return this;
}
/**
@@ -352,8 +365,9 @@ public class RadioControlCapabilities extends RPCStruct{
* @param sisDataAvailable Availability of the getting HD radio Station Information Service (SIS) data.
* True: Available, False: Not Available, Not present: Not Available.
*/
- public void setSisDataAvailable(Boolean sisDataAvailable) {
+ public RadioControlCapabilities setSisDataAvailable( Boolean sisDataAvailable) {
setValue(KEY_SIS_DATA_AVAILABLE, sisDataAvailable);
+ return this;
}
/**
@@ -370,8 +384,9 @@ public class RadioControlCapabilities extends RPCStruct{
* Sets ModuleInfo for this capability
* @param info the ModuleInfo to be set
*/
- public void setModuleInfo(ModuleInfo info) {
+ public RadioControlCapabilities setModuleInfo( ModuleInfo info) {
setValue(KEY_MODULE_INFO, info);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/RadioControlData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/RadioControlData.java
index 86cd9c962..433d7ad28 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/RadioControlData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/RadioControlData.java
@@ -70,8 +70,9 @@ public class RadioControlData extends RPCStruct{
* @param frequencyInteger
* The integer part of the frequency i.e. for 101.7 this value should be 101
*/
- public void setFrequencyInteger(Integer frequencyInteger) {
+ public RadioControlData setFrequencyInteger( Integer frequencyInteger) {
setValue(KEY_FREQUENCY_INTEGER, frequencyInteger);
+ return this;
}
/**
@@ -89,8 +90,9 @@ public class RadioControlData extends RPCStruct{
* @param frequencyFraction
* The fractional part of the frequency i.e. for 101.7 is 7.
*/
- public void setFrequencyFraction(Integer frequencyFraction) {
+ public RadioControlData setFrequencyFraction( Integer frequencyFraction) {
setValue(KEY_FREQUENCY_FRACTION, frequencyFraction);
+ return this;
}
/**
@@ -108,8 +110,9 @@ public class RadioControlData extends RPCStruct{
* @param band
* The radio band (AM|FM|XM) of the radio tuner.
*/
- public void setBand(RadioBand band) {
+ public RadioControlData setBand( RadioBand band) {
setValue(KEY_BAND, band);
+ return this;
}
/**
@@ -127,8 +130,9 @@ public class RadioControlData extends RPCStruct{
* @param rdsData
* Read only parameter. See RdsData data type for details.
*/
- public void setRdsData(RdsData rdsData) {
+ public RadioControlData setRdsData( RdsData rdsData) {
setValue(KEY_RDS_DATA, rdsData);
+ return this;
}
/**
@@ -147,8 +151,9 @@ public class RadioControlData extends RPCStruct{
* Number of HD sub-channels if available.
*/
@Deprecated
- public void setAvailableHDs(Integer availableHDs) {
+ public RadioControlData setAvailableHDs( Integer availableHDs) {
setValue(KEY_AVAILABLE_HDS, availableHDs);
+ return this;
}
/**
@@ -167,8 +172,9 @@ public class RadioControlData extends RPCStruct{
* @param hdChannel
* Current HD sub-channel if available.
*/
- public void setHdChannel(Integer hdChannel) {
+ public RadioControlData setHdChannel( Integer hdChannel) {
setValue(KEY_HD_CHANNEL, hdChannel);
+ return this;
}
/**
@@ -186,8 +192,9 @@ public class RadioControlData extends RPCStruct{
* @param signalStrength
* Read only parameter. Indicates the strength of receiving radio signal in current frequency.
*/
- public void setSignalStrength(Integer signalStrength) {
+ public RadioControlData setSignalStrength( Integer signalStrength) {
setValue(KEY_SIGNAL_STRENGTH, signalStrength);
+ return this;
}
/**
@@ -205,8 +212,9 @@ public class RadioControlData extends RPCStruct{
* @param signalChangeThreshold
* If the signal strength falls below the set value for this parameter, the radio will tune to an alternative frequency.
*/
- public void setSignalChangeThreshold(Integer signalChangeThreshold) {
+ public RadioControlData setSignalChangeThreshold( Integer signalChangeThreshold) {
setValue(KEY_SIGNAL_CHANGE_THRESHOLD, signalChangeThreshold);
+ return this;
}
/**
@@ -226,8 +234,9 @@ public class RadioControlData extends RPCStruct{
* @param radioEnable
* True if the radio is on, false is the radio is off.
*/
- public void setRadioEnable(Boolean radioEnable) {
+ public RadioControlData setRadioEnable( Boolean radioEnable) {
setValue(KEY_RADIO_ENABLE, radioEnable);
+ return this;
}
/**
@@ -246,8 +255,9 @@ public class RadioControlData extends RPCStruct{
* @param state
* Read only parameter. See RadioState data type for details.
*/
- public void setState(RadioState state) {
+ public RadioControlData setState( RadioState state) {
setValue(KEY_STATE, state);
+ return this;
}
/**
@@ -264,8 +274,9 @@ public class RadioControlData extends RPCStruct{
*
* @param hdRadioEnable True if the hd radio is on, false if the radio is off.
*/
- public void setHdRadioEnable(Boolean hdRadioEnable) {
+ public RadioControlData setHdRadioEnable( Boolean hdRadioEnable) {
setValue(KEY_HD_RADIO_ENABLE, hdRadioEnable);
+ return this;
}
/**
@@ -282,8 +293,9 @@ public class RadioControlData extends RPCStruct{
*
* @param sisData Read-only Station Information Service (SIS) data provides basic information about the station such as call sign, as well as information not displayable to the consumer such as the station identification number.
*/
- public void setSisData(SisData sisData) {
+ public RadioControlData setSisData( SisData sisData) {
setValue(KEY_SIS_DATA, sisData);
+ return this;
}
/**
@@ -300,8 +312,9 @@ public class RadioControlData extends RPCStruct{
*
* @param availableHdChannels List of available hd sub-channel indexes, empty list means no Hd channel is available, read-only.
*/
- public void setAvailableHdChannels(List<Integer> availableHdChannels){
+ public RadioControlData setAvailableHdChannels( List<Integer> availableHdChannels) {
setValue(KEY_AVAILABLE_HD_CHANNELS, availableHdChannels);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/RdsData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/RdsData.java
index 29326e550..223adebd7 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/RdsData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/RdsData.java
@@ -62,8 +62,9 @@ public class RdsData extends RPCStruct{
* @param programService
* Program Service Name.
*/
- public void setProgramService(String programService) {
+ public RdsData setProgramService( String programService) {
setValue(KEY_PS, programService);
+ return this;
}
/**
@@ -81,8 +82,9 @@ public class RdsData extends RPCStruct{
* @param radioText
* Radio Text.
*/
- public void setRadioText(String radioText) {
+ public RdsData setRadioText( String radioText) {
setValue(KEY_RT, radioText);
+ return this;
}
/**
@@ -100,8 +102,9 @@ public class RdsData extends RPCStruct{
* @param clockText
* The clock text in UTC format as YYYY-MM-DDThh:mm:ss.sTZD.
*/
- public void setClockText(String clockText) {
+ public RdsData setClockText( String clockText) {
setValue(KEY_CT, clockText);
+ return this;
}
/**
@@ -119,8 +122,9 @@ public class RdsData extends RPCStruct{
* @param programIdentification
* Program Identification - the call sign for the radio station.
*/
- public void setProgramIdentification(String programIdentification) {
+ public RdsData setProgramIdentification( String programIdentification) {
setValue(KEY_PI, programIdentification);
+ return this;
}
/**
@@ -138,8 +142,9 @@ public class RdsData extends RPCStruct{
* @param region
* Region.
*/
- public void setRegion(String region) {
+ public RdsData setRegion( String region) {
setValue(KEY_REG, region);
+ return this;
}
/**
@@ -157,8 +162,9 @@ public class RdsData extends RPCStruct{
* @param trafficProgram
* Traffic Program Identification - Identifies a station that offers traffic.
*/
- public void setTrafficProgram(Boolean trafficProgram) {
+ public RdsData setTrafficProgram( Boolean trafficProgram) {
setValue(KEY_TP, trafficProgram);
+ return this;
}
/**
@@ -176,8 +182,9 @@ public class RdsData extends RPCStruct{
* @param trafficAnnouncement
* Traffic Announcement Identification - Indicates an ongoing traffic announcement.
*/
- public void setTrafficAnnouncement(Boolean trafficAnnouncement) {
+ public RdsData setTrafficAnnouncement( Boolean trafficAnnouncement) {
setValue(KEY_TA, trafficAnnouncement);
+ return this;
}
/**
@@ -195,8 +202,9 @@ public class RdsData extends RPCStruct{
* @param programType
* The program type - The region should be used to differentiate between EU and North America program types.
*/
- public void setProgramType(Integer programType) {
+ public RdsData setProgramType( Integer programType) {
setValue(KEY_PTY, programType);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ReadDID.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ReadDID.java
index 553922e0f..b72524eeb 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ReadDID.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ReadDID.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -139,14 +139,15 @@ public class ReadDID extends RPCRequest {
/**
* Sets an ID of the vehicle module
- *
+ *
* @param ecuName
* an Integer value representing the ID of the vehicle module
* <p></p>
* <b>Notes: </b>Minvalue:0; Maxvalue:65535
*/
- public void setEcuName(@NonNull Integer ecuName) {
- setParameters(KEY_ECU_NAME, ecuName);
+ public ReadDID setEcuName(@NonNull Integer ecuName) {
+ setParameters(KEY_ECU_NAME, ecuName);
+ return this;
}
/**
@@ -161,7 +162,7 @@ public class ReadDID extends RPCRequest {
/**
* Sets raw data from vehicle data DID location(s)
- *
+ *
* @param didLocation
* a List<Integer> value representing raw data from vehicle
* data DID location(s)
@@ -172,8 +173,9 @@ public class ReadDID extends RPCRequest {
* <li>ArrayMin:0; ArrayMax:1000</li>
* </ul>
*/
- public void setDidLocation(@NonNull List<Integer> didLocation) {
- setParameters(KEY_DID_LOCATION, didLocation);
+ public ReadDID setDidLocation(@NonNull List<Integer> didLocation) {
+ setParameters(KEY_DID_LOCATION, didLocation);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ReadDIDResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ReadDIDResponse.java
index 41694c446..61158da36 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ReadDIDResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ReadDIDResponse.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -64,8 +64,9 @@ public class ReadDIDResponse extends RPCResponse {
setSuccess(success);
setResultCode(resultCode);
}
- public void setDidResult(List<DIDResult> didResult) {
- setParameters(KEY_DID_RESULT, didResult);
+ public ReadDIDResponse setDidResult( List<DIDResult> didResult) {
+ setParameters(KEY_DID_RESULT, didResult);
+ return this;
}
@SuppressWarnings("unchecked")
public List<DIDResult> getDidResult() {
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/Rectangle.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/Rectangle.java
index fc7f16c26..69f6c26ef 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/Rectangle.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/Rectangle.java
@@ -64,9 +64,10 @@ public class Rectangle extends RPCStruct {
/**
* Set the X-coordinate pixel in of the user control that starts in the upper left corner
*/
- public void setX(@NonNull Float x) {
- setValue(KEY_X, x);
- }
+ public Rectangle setX(@NonNull Float x) {
+ setValue(KEY_X, x);
+ return this;
+ }
/**
* @return the X-coordinate pixel of the user control that starts in the upper left corner
@@ -78,9 +79,10 @@ public class Rectangle extends RPCStruct {
/**
* Set the Y-coordinate pixel of the user control that starts in the upper left corner
*/
- public void setY(@NonNull Float y) {
- setValue(KEY_Y, y);
- }
+ public Rectangle setY(@NonNull Float y) {
+ setValue(KEY_Y, y);
+ return this;
+ }
/**
* @return the Y-coordinate pixel of the user control that starts in the upper left corner
@@ -92,9 +94,10 @@ public class Rectangle extends RPCStruct {
/**
* Set the width in pixels of the user control's bounding rectangle in pixels
*/
- public void setWidth(@NonNull Float width) {
- setValue(KEY_WIDTH, width);
- }
+ public Rectangle setWidth(@NonNull Float width) {
+ setValue(KEY_WIDTH, width);
+ return this;
+ }
/**
* @return the width in pixels of the user control's bounding rectangle in pixels
@@ -106,9 +109,10 @@ public class Rectangle extends RPCStruct {
/**
* The height in pixels of the user control's bounding rectangle
*/
- public void setHeight(@NonNull Float height) {
- setValue(KEY_HEIGHT, height);
- }
+ public Rectangle setHeight(@NonNull Float height) {
+ setValue(KEY_HEIGHT, height);
+ return this;
+ }
/**
* @return the width in pixels of the user control's bounding rectangle in pixels
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/RegisterAppInterface.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/RegisterAppInterface.java
index ee741f7c1..ae4c0e874 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/RegisterAppInterface.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/RegisterAppInterface.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -358,7 +358,7 @@ public class RegisterAppInterface extends RPCRequest {
}
/**
* Sets the version of the SDL&reg; SmartDeviceLink interface
- *
+ *
* @param sdlMsgVersion
* a SdlMsgVersion object representing version of the SDL&reg;
* SmartDeviceLink interface
@@ -375,9 +375,10 @@ public class RegisterAppInterface extends RPCRequest {
* number sent from the app to SDL&reg; (in RegisterAppInterface
* request) is ignored by SDL&reg;
*
- */
- public void setSdlMsgVersion(@NonNull SdlMsgVersion sdlMsgVersion) {
+ */
+ public RegisterAppInterface setSdlMsgVersion(@NonNull SdlMsgVersion sdlMsgVersion) {
setParameters(KEY_SDL_MSG_VERSION, sdlMsgVersion);
+ return this;
}
@SuppressWarnings("unchecked")
@@ -385,9 +386,10 @@ public class RegisterAppInterface extends RPCRequest {
return (DeviceInfo) getObject(DeviceInfo.class, KEY_DEVICE_INFO);
}
- public void setDeviceInfo(DeviceInfo deviceInfo) {
- setParameters(KEY_DEVICE_INFO, deviceInfo);
- }
+ public RegisterAppInterface setDeviceInfo( DeviceInfo deviceInfo) {
+ setParameters(KEY_DEVICE_INFO, deviceInfo);
+ return this;
+ }
/**
* Gets Mobile Application's Name
*
@@ -400,7 +402,7 @@ public class RegisterAppInterface extends RPCRequest {
* Sets Mobile Application's Name, This name is displayed in the SDL&reg;
* Mobile Applications menu. It also serves as the unique identifier of the
* application for SmartDeviceLink
- *
+ *
* @param appName
* a String value representing the Mobile Application's Name
* <p></p>
@@ -411,9 +413,10 @@ public class RegisterAppInterface extends RPCRequest {
* the name or any synonym of any currently-registered
* application</li>
* </ul>
- */
- public void setAppName(@NonNull String appName) {
- setParameters(KEY_APP_NAME, appName);
+ */
+ public RegisterAppInterface setAppName(@NonNull String appName) {
+ setParameters(KEY_APP_NAME, appName);
+ return this;
}
/**
@@ -428,7 +431,7 @@ public class RegisterAppInterface extends RPCRequest {
}
/**
- *
+ *
* @param ttsName
* a List<TTSChunk> value represeting the TTS Name
* <p></p>
@@ -445,8 +448,9 @@ public class RegisterAppInterface extends RPCRequest {
* </ul>
* @since SmartDeviceLink 2.0
*/
- public void setTtsName(List<TTSChunk> ttsName) {
- setParameters(KEY_TTS_NAME, ttsName);
+ public RegisterAppInterface setTtsName( List<TTSChunk> ttsName) {
+ setParameters(KEY_TTS_NAME, ttsName);
+ return this;
}
/**
* Gets a String representing an abbreviated version of the mobile
@@ -463,7 +467,7 @@ public class RegisterAppInterface extends RPCRequest {
* Sets a String representing an abbreviated version of the mobile
* applincation's name (if necessary) that will be displayed on the NGN
* media screen
- *
+ *
* @param ngnMediaScreenAppName
* a String value representing an abbreviated version of the
* mobile applincation's name
@@ -474,9 +478,10 @@ public class RegisterAppInterface extends RPCRequest {
* <li>If not provided, value will be derived from appName
* truncated to 5 characters</li>
* </ul>
- */
- public void setNgnMediaScreenAppName(String ngnMediaScreenAppName) {
- setParameters(KEY_NGN_MEDIA_SCREEN_APP_NAME, ngnMediaScreenAppName);
+ */
+ public RegisterAppInterface setNgnMediaScreenAppName( String ngnMediaScreenAppName) {
+ setParameters(KEY_NGN_MEDIA_SCREEN_APP_NAME, ngnMediaScreenAppName);
+ return this;
}
/**
* Gets the List<String> representing the an array of 1-100 elements, each
@@ -493,7 +498,7 @@ public class RegisterAppInterface extends RPCRequest {
/**
* Sets a vrSynonyms representing the an array of 1-100 elements, each
* element containing a voice-recognition synonym
- *
+ *
* @param vrSynonyms
* a List<String> value representing the an array of 1-100
* elements
@@ -506,9 +511,10 @@ public class RegisterAppInterface extends RPCRequest {
* the name or any synonym of any currently-registered
* application</li>
* </ul>
- */
- public void setVrSynonyms(List<String> vrSynonyms) {
- setParameters(KEY_VR_SYNONYMS, vrSynonyms);
+ */
+ public RegisterAppInterface setVrSynonyms( List<String> vrSynonyms) {
+ setParameters(KEY_VR_SYNONYMS, vrSynonyms);
+ return this;
}
/**
* Gets a Boolean representing MediaApplication
@@ -522,12 +528,13 @@ public class RegisterAppInterface extends RPCRequest {
/**
* Sets a Boolean to indicate a mobile application that is a media
* application or not
- *
+ *
* @param isMediaApplication
* a Boolean value
- */
- public void setIsMediaApplication(@NonNull Boolean isMediaApplication) {
- setParameters(KEY_IS_MEDIA_APPLICATION, isMediaApplication);
+ */
+ public RegisterAppInterface setIsMediaApplication(@NonNull Boolean isMediaApplication) {
+ setParameters(KEY_IS_MEDIA_APPLICATION, isMediaApplication);
+ return this;
}
/**
* Gets a Language enumeration indicating what language the application
@@ -541,14 +548,15 @@ public class RegisterAppInterface extends RPCRequest {
/**
* Sets an enumeration indicating what language the application intends to
* use for user interaction (Display, TTS and VR)
- *
+ *
* @param languageDesired
* a Language Enumeration
- *
- *
- */
- public void setLanguageDesired(@NonNull Language languageDesired) {
- setParameters(KEY_LANGUAGE_DESIRED, languageDesired);
+ *
+ *
+ */
+ public RegisterAppInterface setLanguageDesired(@NonNull Language languageDesired) {
+ setParameters(KEY_LANGUAGE_DESIRED, languageDesired);
+ return this;
}
/**
@@ -567,12 +575,13 @@ public class RegisterAppInterface extends RPCRequest {
/**
* Sets an enumeration indicating what language the application intends to
* use for user interaction ( Display)
- *
+ *
* @param hmiDisplayLanguageDesired the requested language to be used on the HMI/Display
* @since SmartDeviceLink 2.0
*/
- public void setHmiDisplayLanguageDesired(@NonNull Language hmiDisplayLanguageDesired) {
- setParameters(KEY_HMI_DISPLAY_LANGUAGE_DESIRED, hmiDisplayLanguageDesired);
+ public RegisterAppInterface setHmiDisplayLanguageDesired(@NonNull Language hmiDisplayLanguageDesired) {
+ setParameters(KEY_HMI_DISPLAY_LANGUAGE_DESIRED, hmiDisplayLanguageDesired);
+ return this;
}
/**
@@ -594,7 +603,7 @@ public class RegisterAppInterface extends RPCRequest {
* Sets a a list of all applicable app types stating which classifications
* to be given to the app. e.g. for platforms , like GEN2, this will
* determine which "corner(s)" the app can populate
- *
+ *
* @param appHMIType
* a List<AppHMIType>
* <p></p>
@@ -605,16 +614,18 @@ public class RegisterAppInterface extends RPCRequest {
* </ul>
* @since SmartDeviceLink 2.0
*/
- public void setAppHMIType(List<AppHMIType> appHMIType) {
- setParameters(KEY_APP_HMI_TYPE, appHMIType);
+ public RegisterAppInterface setAppHMIType( List<AppHMIType> appHMIType) {
+ setParameters(KEY_APP_HMI_TYPE, appHMIType);
+ return this;
}
public String getHashID() {
return getString(KEY_HASH_ID);
}
- public void setHashID(String hashID) {
- setParameters(KEY_HASH_ID, hashID);
+ public RegisterAppInterface setHashID( String hashID) {
+ setParameters(KEY_HASH_ID, hashID);
+ return this;
}
/**
@@ -629,9 +640,10 @@ public class RegisterAppInterface extends RPCRequest {
* Sets detailed information about the registered application
* @param appInfo - detailed information about the registered application
*/
- public void setAppInfo(AppInfo appInfo) {
- setParameters(KEY_APP_INFO, appInfo);
- }
+ public RegisterAppInterface setAppInfo( AppInfo appInfo) {
+ setParameters(KEY_APP_INFO, appInfo);
+ return this;
+ }
/**
* Gets the unique ID, which an app will be given when approved
@@ -654,13 +666,14 @@ public class RegisterAppInterface extends RPCRequest {
* <b>Notes: </b>Maxlength = 100
* @since SmartDeviceLink 2.0
*/
- public void setAppID(@NonNull String appID) {
- if (appID != null) {
+ public RegisterAppInterface setAppID(@NonNull String appID) {
+ if (appID != null) {
setParameters(KEY_APP_ID, appID.toLowerCase());
} else {
setParameters(KEY_APP_ID, appID);
}
- }
+ return this;
+ }
/**
* Gets the unique ID, which an app will be given when approved
@@ -683,8 +696,8 @@ public class RegisterAppInterface extends RPCRequest {
* <b>Notes: </b>Maxlength = 100
* @since SmartDeviceLink 5.0
*/
- public void setFullAppID(String fullAppID) {
- if (fullAppID != null) {
+ public RegisterAppInterface setFullAppID( String fullAppID) {
+ if (fullAppID != null) {
fullAppID = fullAppID.toLowerCase();
setParameters(KEY_FULL_APP_ID, fullAppID);
String appID;
@@ -697,7 +710,8 @@ public class RegisterAppInterface extends RPCRequest {
} else {
setParameters(KEY_FULL_APP_ID, null);
}
- }
+ return this;
+ }
@Override
public void format(Version rpcVersion, boolean formatParams) {
@@ -727,9 +741,10 @@ public class RegisterAppInterface extends RPCRequest {
* used for day color scheme
* @since SmartDeviceLink 5.0
*/
- public void setDayColorScheme(TemplateColorScheme templateColorScheme){
- setParameters(KEY_DAY_COLOR_SCHEME, templateColorScheme);
- }
+ public RegisterAppInterface setDayColorScheme( TemplateColorScheme templateColorScheme) {
+ setParameters(KEY_DAY_COLOR_SCHEME, templateColorScheme);
+ return this;
+ }
/**
* Gets the color scheme that is currently used for night
@@ -749,7 +764,8 @@ public class RegisterAppInterface extends RPCRequest {
* used for night color scheme
* @since SmartDeviceLink 5.0
*/
- public void setNightColorScheme(TemplateColorScheme templateColorScheme){
- setParameters(KEY_NIGHT_COLOR_SCHEME, templateColorScheme);
- }
+ public RegisterAppInterface setNightColorScheme( TemplateColorScheme templateColorScheme) {
+ setParameters(KEY_NIGHT_COLOR_SCHEME, templateColorScheme);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/RegisterAppInterfaceResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/RegisterAppInterfaceResponse.java
index 449056871..967737c85 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/RegisterAppInterfaceResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/RegisterAppInterfaceResponse.java
@@ -143,7 +143,7 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
/**
* Sets the version of the SDL&reg; SmartDeviceLink interface
- *
+ *
* @param sdlMsgVersion
* a SdlMsgVersion object representing version of the SDL&reg;
* SmartDeviceLink interface
@@ -160,8 +160,9 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
* number sent from the app to SDL&reg; (in RegisterAppInterface
* request) is ignored by SDL&reg;
*/
- public void setSdlMsgVersion(SdlMsgVersion sdlMsgVersion) {
- setParameters(KEY_SDL_MSG_VERSION, sdlMsgVersion);
+ public RegisterAppInterfaceResponse setSdlMsgVersion( SdlMsgVersion sdlMsgVersion) {
+ setParameters(KEY_SDL_MSG_VERSION, sdlMsgVersion);
+ return this;
}
/**
@@ -177,14 +178,15 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
/**
* Sets an enumeration indicating what language the application intends to
* use for user interaction (Display, TTS and VR)
- *
+ *
* @param language
* a Language Enumeration
- *
- *
+ *
+ *
*/
- public void setLanguage(Language language) {
- setParameters(KEY_LANGUAGE, language);
+ public RegisterAppInterfaceResponse setLanguage( Language language) {
+ setParameters(KEY_LANGUAGE, language);
+ return this;
}
/**
@@ -203,12 +205,13 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
/**
* Sets an enumeration indicating what language the application intends to
* use for user interaction ( Display)
- *
+ *
* @param hmiDisplayLanguage
* @since SmartDeviceLink 2.0
*/
- public void setHmiDisplayLanguage(Language hmiDisplayLanguage) {
- setParameters(KEY_HMI_DISPLAY_LANGUAGE, hmiDisplayLanguage);
+ public RegisterAppInterfaceResponse setHmiDisplayLanguage( Language hmiDisplayLanguage) {
+ setParameters(KEY_HMI_DISPLAY_LANGUAGE, hmiDisplayLanguage);
+ return this;
}
/**
@@ -226,8 +229,9 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
* @param displayCapabilities
*/
@Deprecated
- public void setDisplayCapabilities(DisplayCapabilities displayCapabilities) {
- setParameters(KEY_DISPLAY_CAPABILITIES, displayCapabilities);
+ public RegisterAppInterfaceResponse setDisplayCapabilities( DisplayCapabilities displayCapabilities) {
+ setParameters(KEY_DISPLAY_CAPABILITIES, displayCapabilities);
+ return this;
}
/**
@@ -245,8 +249,9 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
* @param buttonCapabilities
*/
@Deprecated
- public void setButtonCapabilities(List<ButtonCapabilities> buttonCapabilities) {
- setParameters(KEY_BUTTON_CAPABILITIES, buttonCapabilities);
+ public RegisterAppInterfaceResponse setButtonCapabilities( List<ButtonCapabilities> buttonCapabilities) {
+ setParameters(KEY_BUTTON_CAPABILITIES, buttonCapabilities);
+ return this;
}
/**
* Gets getSoftButtonCapabilities set when application interface is registered.
@@ -263,8 +268,9 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
* @param softButtonCapabilities
*/
@Deprecated
- public void setSoftButtonCapabilities(List<SoftButtonCapabilities> softButtonCapabilities) {
- setParameters(KEY_SOFT_BUTTON_CAPABILITIES, softButtonCapabilities);
+ public RegisterAppInterfaceResponse setSoftButtonCapabilities( List<SoftButtonCapabilities> softButtonCapabilities) {
+ setParameters(KEY_SOFT_BUTTON_CAPABILITIES, softButtonCapabilities);
+ return this;
}
/**
@@ -282,8 +288,9 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
* @param presetBankCapabilities
*/
@Deprecated
- public void setPresetBankCapabilities(PresetBankCapabilities presetBankCapabilities) {
- setParameters(KEY_PRESET_BANK_CAPABILITIES, presetBankCapabilities);
+ public RegisterAppInterfaceResponse setPresetBankCapabilities( PresetBankCapabilities presetBankCapabilities) {
+ setParameters(KEY_PRESET_BANK_CAPABILITIES, presetBankCapabilities);
+ return this;
}
/**
@@ -299,8 +306,9 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
* Sets hmiZoneCapabilities
* @param hmiZoneCapabilities
*/
- public void setHmiZoneCapabilities(List<HmiZoneCapabilities> hmiZoneCapabilities) {
- setParameters(KEY_HMI_ZONE_CAPABILITIES, hmiZoneCapabilities);
+ public RegisterAppInterfaceResponse setHmiZoneCapabilities( List<HmiZoneCapabilities> hmiZoneCapabilities) {
+ setParameters(KEY_HMI_ZONE_CAPABILITIES, hmiZoneCapabilities);
+ return this;
}
/**
@@ -325,8 +333,9 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
* Sets speechCapabilities
* @param speechCapabilities
*/
- public void setSpeechCapabilities(List<SpeechCapabilities> speechCapabilities) {
- setParameters(KEY_SPEECH_CAPABILITIES, speechCapabilities);
+ public RegisterAppInterfaceResponse setSpeechCapabilities( List<SpeechCapabilities> speechCapabilities) {
+ setParameters(KEY_SPEECH_CAPABILITIES, speechCapabilities);
+ return this;
}
@@ -335,8 +344,9 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
return (List<PrerecordedSpeech>) getObject(PrerecordedSpeech.class, KEY_PRERECORDED_SPEECH);
}
- public void setPrerecordedSpeech(List<PrerecordedSpeech> prerecordedSpeech) {
- setParameters(KEY_PRERECORDED_SPEECH, prerecordedSpeech);
+ public RegisterAppInterfaceResponse setPrerecordedSpeech( List<PrerecordedSpeech> prerecordedSpeech) {
+ setParameters(KEY_PRERECORDED_SPEECH, prerecordedSpeech);
+ return this;
}
@@ -353,8 +363,9 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
* Sets VrCapabilities
* @param vrCapabilities
*/
- public void setVrCapabilities(List<VrCapabilities> vrCapabilities) {
- setParameters(KEY_VR_CAPABILITIES, vrCapabilities);
+ public RegisterAppInterfaceResponse setVrCapabilities( List<VrCapabilities> vrCapabilities) {
+ setParameters(KEY_VR_CAPABILITIES, vrCapabilities);
+ return this;
}
/**
@@ -370,8 +381,9 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
* Sets vehicleType
* @param vehicleType
*/
- public void setVehicleType(VehicleType vehicleType) {
- setParameters(KEY_VEHICLE_TYPE, vehicleType);
+ public RegisterAppInterfaceResponse setVehicleType( VehicleType vehicleType) {
+ setParameters(KEY_VEHICLE_TYPE, vehicleType);
+ return this;
}
/**
@@ -387,8 +399,9 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
* Sets AudioPassThruCapabilities
* @param audioPassThruCapabilities
*/
- public void setAudioPassThruCapabilities(List<AudioPassThruCapabilities> audioPassThruCapabilities) {
- setParameters(KEY_AUDIO_PASS_THRU_CAPABILITIES, audioPassThruCapabilities);
+ public RegisterAppInterfaceResponse setAudioPassThruCapabilities( List<AudioPassThruCapabilities> audioPassThruCapabilities) {
+ setParameters(KEY_AUDIO_PASS_THRU_CAPABILITIES, audioPassThruCapabilities);
+ return this;
}
/**
@@ -404,12 +417,14 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
* Sets pcmStreamingCapabilities
* @param pcmStreamingCapabilities
*/
- public void setPcmStreamingCapabilities(AudioPassThruCapabilities pcmStreamingCapabilities) {
- setParameters(KEY_PCM_STREAM_CAPABILITIES, pcmStreamingCapabilities);
- }
+ public RegisterAppInterfaceResponse setPcmStreamingCapabilities( AudioPassThruCapabilities pcmStreamingCapabilities) {
+ setParameters(KEY_PCM_STREAM_CAPABILITIES, pcmStreamingCapabilities);
+ return this;
+ }
- public void setSupportedDiagModes(List<Integer> supportedDiagModes) {
- setParameters(KEY_SUPPORTED_DIAG_MODES, supportedDiagModes);
+ public RegisterAppInterfaceResponse setSupportedDiagModes( List<Integer> supportedDiagModes) {
+ setParameters(KEY_SUPPORTED_DIAG_MODES, supportedDiagModes);
+ return this;
}
@SuppressWarnings("unchecked")
@@ -417,8 +432,9 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
return (List<Integer>) getObject(Integer.class, KEY_SUPPORTED_DIAG_MODES);
}
- public void setHmiCapabilities(HMICapabilities hmiCapabilities) {
- setParameters(KEY_HMI_CAPABILITIES, hmiCapabilities);
+ public RegisterAppInterfaceResponse setHmiCapabilities( HMICapabilities hmiCapabilities) {
+ setParameters(KEY_HMI_CAPABILITIES, hmiCapabilities);
+ return this;
}
@SuppressWarnings("unchecked")
@@ -426,16 +442,18 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
return (HMICapabilities) getObject(HMICapabilities.class, KEY_HMI_CAPABILITIES);
}
- public void setSdlVersion(String sdlVersion) {
- setParameters(KEY_SDL_VERSION, sdlVersion);
+ public RegisterAppInterfaceResponse setSdlVersion( String sdlVersion) {
+ setParameters(KEY_SDL_VERSION, sdlVersion);
+ return this;
}
public String getSdlVersion() {
return getString(KEY_SDL_VERSION);
}
- public void setSystemSoftwareVersion(String systemSoftwareVersion) {
- setParameters(KEY_SYSTEM_SOFTWARE_VERSION, systemSoftwareVersion);
+ public RegisterAppInterfaceResponse setSystemSoftwareVersion( String systemSoftwareVersion) {
+ setParameters(KEY_SYSTEM_SOFTWARE_VERSION, systemSoftwareVersion);
+ return this;
}
public String getSystemSoftwareVersion() {
@@ -446,11 +464,12 @@ public class RegisterAppInterfaceResponse extends RPCResponse {
* Sets Icon Resumed Boolean
* @param iconResumed - if param not included, set to false
*/
- public void setIconResumed(Boolean iconResumed){
+ public RegisterAppInterfaceResponse setIconResumed(Boolean iconResumed){
if(iconResumed == null){
iconResumed = false;
}
setParameters(KEY_ICON_RESUMED, iconResumed);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ReleaseInteriorVehicleDataModule.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ReleaseInteriorVehicleDataModule.java
index 807e239da..0c52a9e0a 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ReleaseInteriorVehicleDataModule.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ReleaseInteriorVehicleDataModule.java
@@ -32,8 +32,9 @@ public class ReleaseInteriorVehicleDataModule extends RPCRequest {
* Sets the Module Type for this class
* @param type the Module Type to be set
*/
- public void setModuleType(@NonNull ModuleType type) {
+ public ReleaseInteriorVehicleDataModule setModuleType(@NonNull ModuleType type) {
setParameters(KEY_MODULE_TYPE, type);
+ return this;
}
/**
@@ -48,8 +49,9 @@ public class ReleaseInteriorVehicleDataModule extends RPCRequest {
* Sets the Module Ids for this class
* @param id the ids to be set
*/
- public void setModuleId(String id) {
+ public ReleaseInteriorVehicleDataModule setModuleId( String id) {
setParameters(KEY_MODULE_ID, id);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/RemoteControlCapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/RemoteControlCapabilities.java
index 5703f1cc2..31fd12534 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/RemoteControlCapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/RemoteControlCapabilities.java
@@ -58,9 +58,10 @@ public class RemoteControlCapabilities extends RPCStruct {
* @param climateControlCapabilities If included, the platform supports RC climate controls.
* For this baseline version, maxsize=1. i.e. only one climate control module is supported.
*/
- public void setClimateControlCapabilities(List<ClimateControlCapabilities> climateControlCapabilities) {
- setValue(KEY_CLIMATE_CONTROL_CAPABILITIES, climateControlCapabilities);
- }
+ public RemoteControlCapabilities setClimateControlCapabilities( List<ClimateControlCapabilities> climateControlCapabilities) {
+ setValue(KEY_CLIMATE_CONTROL_CAPABILITIES, climateControlCapabilities);
+ return this;
+ }
/**
* Gets the climateControlCapabilities portion of the RemoteControlCapabilities class
@@ -79,9 +80,10 @@ public class RemoteControlCapabilities extends RPCStruct {
* @param radioControlCapabilities If included, the platform supports RC climate controls.
* For this baseline version, maxsize=1. i.e. only one radio control module is supported.
*/
- public void setRadioControlCapabilities(List<RadioControlCapabilities> radioControlCapabilities) {
- setValue(KEY_RADIO_CONTROL_CAPABILITIES, radioControlCapabilities);
- }
+ public RemoteControlCapabilities setRadioControlCapabilities( List<RadioControlCapabilities> radioControlCapabilities) {
+ setValue(KEY_RADIO_CONTROL_CAPABILITIES, radioControlCapabilities);
+ return this;
+ }
/**
* Gets the radioControlCapabilities portion of the RemoteControlCapabilities class
@@ -99,9 +101,10 @@ public class RemoteControlCapabilities extends RPCStruct {
*
* @param buttonCapabilities If included, the platform supports RC button controls with the included button names.
*/
- public void setButtonCapabilities(List<ButtonCapabilities> buttonCapabilities) {
- setValue(KEY_BUTTON_CAPABILITIES, buttonCapabilities);
- }
+ public RemoteControlCapabilities setButtonCapabilities( List<ButtonCapabilities> buttonCapabilities) {
+ setValue(KEY_BUTTON_CAPABILITIES, buttonCapabilities);
+ return this;
+ }
/**
* Gets the buttonCapabilities portion of the RemoteControlCapabilities class
@@ -118,9 +121,10 @@ public class RemoteControlCapabilities extends RPCStruct {
*
* @param seatControlCapabilities If included, the platform supports seat controls.
*/
- public void setSeatControlCapabilities(List<SeatControlCapabilities> seatControlCapabilities) {
- setValue(KEY_SEAT_CONTROL_CAPABILITIES, seatControlCapabilities);
- }
+ public RemoteControlCapabilities setSeatControlCapabilities( List<SeatControlCapabilities> seatControlCapabilities) {
+ setValue(KEY_SEAT_CONTROL_CAPABILITIES, seatControlCapabilities);
+ return this;
+ }
/**
* Gets the seatControlCapabilities portion of the RemoteControlCapabilities class
@@ -137,9 +141,10 @@ public class RemoteControlCapabilities extends RPCStruct {
*
* @param audioControlCapabilities If included, the platform supports audio controls.
*/
- public void setAudioControlCapabilities(List<AudioControlCapabilities> audioControlCapabilities) {
- setValue(KEY_AUDIO_CONTROL_CAPABILITIES, audioControlCapabilities);
- }
+ public RemoteControlCapabilities setAudioControlCapabilities( List<AudioControlCapabilities> audioControlCapabilities) {
+ setValue(KEY_AUDIO_CONTROL_CAPABILITIES, audioControlCapabilities);
+ return this;
+ }
/**
* Gets the audioControlCapabilities portion of the RemoteControlCapabilities class
@@ -156,9 +161,10 @@ public class RemoteControlCapabilities extends RPCStruct {
*
* @param hmiSettingsControlCapabilities If included, the platform supports hmi setting controls.
*/
- public void setHmiSettingsControlCapabilities(HMISettingsControlCapabilities hmiSettingsControlCapabilities) {
- setValue(KEY_HMI_SETTINGS_CONTROL_CAPABILITIES, hmiSettingsControlCapabilities);
- }
+ public RemoteControlCapabilities setHmiSettingsControlCapabilities( HMISettingsControlCapabilities hmiSettingsControlCapabilities) {
+ setValue(KEY_HMI_SETTINGS_CONTROL_CAPABILITIES, hmiSettingsControlCapabilities);
+ return this;
+ }
/**
* Gets the hmiSettingsControlCapabilities portion of the RemoteControlCapabilities class
@@ -174,9 +180,10 @@ public class RemoteControlCapabilities extends RPCStruct {
*
* @param lightControlCapabilities If included, the platform supports light controls.
*/
- public void setLightControlCapabilities(LightControlCapabilities lightControlCapabilities) {
- setValue(KEY_LIGHT_CONTROL_CAPABILITIES, lightControlCapabilities);
- }
+ public RemoteControlCapabilities setLightControlCapabilities( LightControlCapabilities lightControlCapabilities) {
+ setValue(KEY_LIGHT_CONTROL_CAPABILITIES, lightControlCapabilities);
+ return this;
+ }
/**
* Gets the lightControlCapabilities portion of the RemoteControlCapabilities class
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ResetGlobalProperties.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ResetGlobalProperties.java
index a88ca2950..1bd508186 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ResetGlobalProperties.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ResetGlobalProperties.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -132,15 +132,16 @@ public class ResetGlobalProperties extends RPCRequest {
/**
* Sets an array of one or more GlobalProperty enumeration elements
* indicating which global properties to reset to their default value
- *
+ *
* @param properties
* a List<GlobalProperty> An array of one or more
* GlobalProperty enumeration elements indicating which global
* properties to reset to their default value
* <p></p>
* <b>Notes: </b>Array must have at least one element
- */
- public void setProperties(@NonNull List<GlobalProperty> properties ) {
- setParameters(KEY_PROPERTIES, properties);
+ */
+ public ResetGlobalProperties setProperties(@NonNull List<GlobalProperty> properties) {
+ setParameters(KEY_PROPERTIES, properties);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ScreenParams.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ScreenParams.java
index a5b9e1525..fd644cb40 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ScreenParams.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ScreenParams.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -105,14 +105,16 @@ public class ScreenParams extends RPCStruct {
public ImageResolution getImageResolution() {
return (ImageResolution) getObject(ImageResolution.class, KEY_RESOLUTION);
}
- public void setImageResolution( @NonNull ImageResolution resolution ) {
+ public ScreenParams setImageResolution(@NonNull ImageResolution resolution) {
setValue(KEY_RESOLUTION, resolution);
+ return this;
}
@SuppressWarnings("unchecked")
public TouchEventCapabilities getTouchEventAvailable() {
return (TouchEventCapabilities) getObject(TouchEventCapabilities.class, KEY_TOUCH_EVENT_AVAILABLE);
}
- public void setTouchEventAvailable( TouchEventCapabilities touchEventAvailable ) {
- setValue(KEY_TOUCH_EVENT_AVAILABLE, touchEventAvailable);
- }
+ public ScreenParams setTouchEventAvailable( TouchEventCapabilities touchEventAvailable) {
+ setValue(KEY_TOUCH_EVENT_AVAILABLE, touchEventAvailable);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ScrollableMessage.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ScrollableMessage.java
index 1ad0d0846..cb331914a 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ScrollableMessage.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ScrollableMessage.java
@@ -144,15 +144,16 @@ public class ScrollableMessage extends RPCRequest {
/**
* Sets a Body of text that can include newlines and tabs
- *
+ *
* @param scrollableMessageBody
* a String value representing the Body of text that can include
* newlines and tabs
* <p></p>
* <b>Notes: </b>Maxlength=500
*/
- public void setScrollableMessageBody(@NonNull String scrollableMessageBody) {
- setParameters(KEY_SCROLLABLE_MESSAGE_BODY, scrollableMessageBody);
+ public ScrollableMessage setScrollableMessageBody(@NonNull String scrollableMessageBody) {
+ setParameters(KEY_SCROLLABLE_MESSAGE_BODY, scrollableMessageBody);
+ return this;
}
/**
@@ -167,14 +168,15 @@ public class ScrollableMessage extends RPCRequest {
/**
* Sets an App defined timeout. Indicates how long of a timeout from the
* last action
- *
+ *
* @param timeout
* an Integer value representing an App defined timeout
* <p></p>
* <b>Notes</b>:Minval=0; Maxval=65535;Default=30000
*/
- public void setTimeout(Integer timeout) {
- setParameters(KEY_TIMEOUT, timeout);
+ public ScrollableMessage setTimeout( Integer timeout) {
+ setParameters(KEY_TIMEOUT, timeout);
+ return this;
}
/**
@@ -189,15 +191,16 @@ public class ScrollableMessage extends RPCRequest {
/**
* Sets App defined SoftButtons.If omitted on supported displays, only the
* system defined "Close" SoftButton will be displayed
- *
+ *
* @param softButtons
* a List<SoftButton> value representing App defined
* SoftButtons
* <p></p>
* <b>Notes: </b>Minsize=0, Maxsize=8
*/
- public void setSoftButtons(List<SoftButton> softButtons) {
- setParameters(KEY_SOFT_BUTTONS, softButtons);
+ public ScrollableMessage setSoftButtons( List<SoftButton> softButtons) {
+ setParameters(KEY_SOFT_BUTTONS, softButtons);
+ return this;
}
/**
@@ -227,7 +230,8 @@ public class ScrollableMessage extends RPCRequest {
*
* @since SmartDeviceLink 6.0
*/
- public void setCancelID(Integer cancelID) {
- setParameters(KEY_CANCEL_ID, cancelID);
- }
+ public ScrollableMessage setCancelID( Integer cancelID) {
+ setParameters(KEY_CANCEL_ID, cancelID);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SdlMsgVersion.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SdlMsgVersion.java
index 8a2135753..0e8f9453f 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SdlMsgVersion.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SdlMsgVersion.java
@@ -138,10 +138,11 @@ public class SdlMsgVersion extends RPCStruct {
* <li>minvalue="1"</li>
* <li>maxvalue="10"</li>
* </ul>
- * @param majorVersion minvalue="1" and maxvalue="10"
- */
- public void setMajorVersion( @NonNull Integer majorVersion ) {
+ * @param majorVersion minvalue="1" and maxvalue="10"
+ */
+ public SdlMsgVersion setMajorVersion(@NonNull Integer majorVersion) {
setValue(KEY_MAJOR_VERSION, majorVersion);
+ return this;
}
/**
* Get minor version
@@ -162,8 +163,9 @@ public class SdlMsgVersion extends RPCStruct {
* </ul>
* @param minorVersion min: 0; max: 1000
*/
- public void setMinorVersion( @NonNull Integer minorVersion ) {
+ public SdlMsgVersion setMinorVersion(@NonNull Integer minorVersion) {
setValue(KEY_MINOR_VERSION, minorVersion);
+ return this;
}
/**
@@ -185,8 +187,9 @@ public class SdlMsgVersion extends RPCStruct {
* </ul>
* @param patchVersion min: 0; max: 1000
*/
- public void setPatchVersion( Integer patchVersion ) {
+ public SdlMsgVersion setPatchVersion( Integer patchVersion) {
setValue(KEY_PATCH_VERSION, patchVersion);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatControlCapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatControlCapabilities.java
index 106edf2cb..82d3cf72c 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatControlCapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatControlCapabilities.java
@@ -95,18 +95,20 @@ public class SeatControlCapabilities extends RPCStruct {
*
* @param moduleName - The short friendly name of the light control module. It should not be used to identify a module by mobile application.
*/
- public void setModuleName(@NonNull String moduleName) {
- setValue(KEY_MODULE_NAME, moduleName);
- }
+ public SeatControlCapabilities setModuleName(@NonNull String moduleName) {
+ setValue(KEY_MODULE_NAME, moduleName);
+ return this;
+ }
/**
* Sets the heatingEnabledAvailable portion of the SeatControlCapabilities class
*
* @param heatingEnabledAvailable
*/
- public void setHeatingEnabledAvailable(Boolean heatingEnabledAvailable) {
- setValue(KEY_HEATING_ENABLED_AVAILABLE, heatingEnabledAvailable);
- }
+ public SeatControlCapabilities setHeatingEnabledAvailable( Boolean heatingEnabledAvailable) {
+ setValue(KEY_HEATING_ENABLED_AVAILABLE, heatingEnabledAvailable);
+ return this;
+ }
/**
* Gets the heatingEnabledAvailable portion of the SeatControlCapabilities class
@@ -122,9 +124,10 @@ public class SeatControlCapabilities extends RPCStruct {
*
* @param coolingEnabledAvailable
*/
- public void setCoolingEnabledAvailable(Boolean coolingEnabledAvailable) {
- setValue(KEY_COOLING_ENABLED_AVAILABLE, coolingEnabledAvailable);
- }
+ public SeatControlCapabilities setCoolingEnabledAvailable( Boolean coolingEnabledAvailable) {
+ setValue(KEY_COOLING_ENABLED_AVAILABLE, coolingEnabledAvailable);
+ return this;
+ }
/**
* Gets the coolingEnabledAvailable portion of the SeatControlCapabilities class
@@ -140,9 +143,10 @@ public class SeatControlCapabilities extends RPCStruct {
*
* @param heatingLevelAvailable
*/
- public void setHeatingLevelAvailable(Boolean heatingLevelAvailable) {
- setValue(KEY_HEATING_LEVEL_AVAILABLE, heatingLevelAvailable);
- }
+ public SeatControlCapabilities setHeatingLevelAvailable( Boolean heatingLevelAvailable) {
+ setValue(KEY_HEATING_LEVEL_AVAILABLE, heatingLevelAvailable);
+ return this;
+ }
/**
* Gets the heatingLevelAvailable portion of the SeatControlCapabilities class
@@ -158,9 +162,10 @@ public class SeatControlCapabilities extends RPCStruct {
*
* @param coolingLevelAvailable
*/
- public void setCoolingLevelAvailable(Boolean coolingLevelAvailable) {
- setValue(KEY_COOLING_LEVEL_AVAILABLE, coolingLevelAvailable);
- }
+ public SeatControlCapabilities setCoolingLevelAvailable( Boolean coolingLevelAvailable) {
+ setValue(KEY_COOLING_LEVEL_AVAILABLE, coolingLevelAvailable);
+ return this;
+ }
/**
* Gets the coolingLevelAvailable portion of the SeatControlCapabilities class
@@ -176,9 +181,10 @@ public class SeatControlCapabilities extends RPCStruct {
*
* @param horizontalPositionAvailable
*/
- public void setHorizontalPositionAvailable(Boolean horizontalPositionAvailable) {
- setValue(KEY_HORIZONTAL_POSITION_AVAILABLE, horizontalPositionAvailable);
- }
+ public SeatControlCapabilities setHorizontalPositionAvailable( Boolean horizontalPositionAvailable) {
+ setValue(KEY_HORIZONTAL_POSITION_AVAILABLE, horizontalPositionAvailable);
+ return this;
+ }
/**
* Gets the horizontalPositionAvailable portion of the SeatControlCapabilities class
@@ -194,9 +200,10 @@ public class SeatControlCapabilities extends RPCStruct {
*
* @param verticalPositionAvailable
*/
- public void setVerticalPositionAvailable(Boolean verticalPositionAvailable) {
- setValue(KEY_VERTICAL_POSITION_AVAILABLE, verticalPositionAvailable);
- }
+ public SeatControlCapabilities setVerticalPositionAvailable( Boolean verticalPositionAvailable) {
+ setValue(KEY_VERTICAL_POSITION_AVAILABLE, verticalPositionAvailable);
+ return this;
+ }
/**
* Gets the verticalPositionAvailable portion of the SeatControlCapabilities class
@@ -212,9 +219,10 @@ public class SeatControlCapabilities extends RPCStruct {
*
* @param frontVerticalPositionAvailable
*/
- public void setFrontVerticalPositionAvailable(Boolean frontVerticalPositionAvailable) {
- setValue(KEY_FRONT_VERTICAL_POSITION_AVAILABLE, frontVerticalPositionAvailable);
- }
+ public SeatControlCapabilities setFrontVerticalPositionAvailable( Boolean frontVerticalPositionAvailable) {
+ setValue(KEY_FRONT_VERTICAL_POSITION_AVAILABLE, frontVerticalPositionAvailable);
+ return this;
+ }
/**
* Gets the frontVerticalPositionAvailable portion of the SeatControlCapabilities class
@@ -230,9 +238,10 @@ public class SeatControlCapabilities extends RPCStruct {
*
* @param backVerticalPositionAvailable
*/
- public void setBackVerticalPositionAvailable(Boolean backVerticalPositionAvailable) {
- setValue(KEY_BACK_VERTICAL_POSITION_AVAILABLE, backVerticalPositionAvailable);
- }
+ public SeatControlCapabilities setBackVerticalPositionAvailable( Boolean backVerticalPositionAvailable) {
+ setValue(KEY_BACK_VERTICAL_POSITION_AVAILABLE, backVerticalPositionAvailable);
+ return this;
+ }
/**
* Gets the backVerticalPositionAvailable portion of the SeatControlCapabilities class
@@ -248,9 +257,10 @@ public class SeatControlCapabilities extends RPCStruct {
*
* @param backTiltAngleAvailable
*/
- public void setBackTiltAngleAvailable(Boolean backTiltAngleAvailable) {
- setValue(KEY_BACK_TILT_ANGLE_AVAILABLE, backTiltAngleAvailable);
- }
+ public SeatControlCapabilities setBackTiltAngleAvailable( Boolean backTiltAngleAvailable) {
+ setValue(KEY_BACK_TILT_ANGLE_AVAILABLE, backTiltAngleAvailable);
+ return this;
+ }
/**
* Gets the backTiltAngleAvailable portion of the SeatControlCapabilities class
@@ -266,9 +276,10 @@ public class SeatControlCapabilities extends RPCStruct {
*
* @param headSupportHorizontalPositionAvailable
*/
- public void setHeadSupportHorizontalPositionAvailable(Boolean headSupportHorizontalPositionAvailable) {
- setValue(KEY_HEAD_SUPPORT_HORIZONTAL_POSITION_AVAILABLE, headSupportHorizontalPositionAvailable);
- }
+ public SeatControlCapabilities setHeadSupportHorizontalPositionAvailable( Boolean headSupportHorizontalPositionAvailable) {
+ setValue(KEY_HEAD_SUPPORT_HORIZONTAL_POSITION_AVAILABLE, headSupportHorizontalPositionAvailable);
+ return this;
+ }
/**
* Gets the headSupportHorizontalPositionAvailable portion of the SeatControlCapabilities class
@@ -284,9 +295,10 @@ public class SeatControlCapabilities extends RPCStruct {
*
* @param headSupportVerticalPositionAvailable
*/
- public void setHeadSupportVerticalPositionAvailable(Boolean headSupportVerticalPositionAvailable) {
- setValue(KEY_HEAD_SUPPORT_VERTICAL_POSITION_AVAILABLE, headSupportVerticalPositionAvailable);
- }
+ public SeatControlCapabilities setHeadSupportVerticalPositionAvailable( Boolean headSupportVerticalPositionAvailable) {
+ setValue(KEY_HEAD_SUPPORT_VERTICAL_POSITION_AVAILABLE, headSupportVerticalPositionAvailable);
+ return this;
+ }
/**
* Gets the headSupportVerticalPositionAvailable portion of the SeatControlCapabilities class
@@ -302,9 +314,10 @@ public class SeatControlCapabilities extends RPCStruct {
*
* @param massageEnabledAvailable
*/
- public void setMassageEnabledAvailable(Boolean massageEnabledAvailable) {
- setValue(KEY_MASSAGE_ENABLED_AVAILABLE, massageEnabledAvailable);
- }
+ public SeatControlCapabilities setMassageEnabledAvailable( Boolean massageEnabledAvailable) {
+ setValue(KEY_MASSAGE_ENABLED_AVAILABLE, massageEnabledAvailable);
+ return this;
+ }
/**
* Gets the massageEnabledAvailable portion of the SeatControlCapabilities class
@@ -320,9 +333,10 @@ public class SeatControlCapabilities extends RPCStruct {
*
* @param massageModeAvailable
*/
- public void setMassageModeAvailable(Boolean massageModeAvailable) {
- setValue(KEY_MASSAGE_MODE_AVAILABLE, massageModeAvailable);
- }
+ public SeatControlCapabilities setMassageModeAvailable( Boolean massageModeAvailable) {
+ setValue(KEY_MASSAGE_MODE_AVAILABLE, massageModeAvailable);
+ return this;
+ }
/**
* Gets the massageModeAvailable portion of the SeatControlCapabilities class
@@ -338,9 +352,10 @@ public class SeatControlCapabilities extends RPCStruct {
*
* @param massageCushionFirmnessAvailable
*/
- public void setMassageCushionFirmnessAvailable(Boolean massageCushionFirmnessAvailable) {
- setValue(KEY_MASSAGE_CUSHION_FIRMNESS_AVAILABLE, massageCushionFirmnessAvailable);
- }
+ public SeatControlCapabilities setMassageCushionFirmnessAvailable( Boolean massageCushionFirmnessAvailable) {
+ setValue(KEY_MASSAGE_CUSHION_FIRMNESS_AVAILABLE, massageCushionFirmnessAvailable);
+ return this;
+ }
/**
* Gets the massageCushionFirmnessAvailable portion of the SeatControlCapabilities class
@@ -356,9 +371,10 @@ public class SeatControlCapabilities extends RPCStruct {
*
* @param memoryAvailable
*/
- public void setMemoryAvailable(Boolean memoryAvailable) {
- setValue(KEY_MEMORY_AVAILABLE, memoryAvailable);
- }
+ public SeatControlCapabilities setMemoryAvailable( Boolean memoryAvailable) {
+ setValue(KEY_MEMORY_AVAILABLE, memoryAvailable);
+ return this;
+ }
/**
* Gets the memoryAvailable portion of the SeatControlCapabilities class
@@ -373,9 +389,10 @@ public class SeatControlCapabilities extends RPCStruct {
* Sets ModuleInfo for this capability
* @param info the ModuleInfo to be set
*/
- public void setModuleInfo(ModuleInfo info) {
- setValue(KEY_MODULE_INFO, info);
- }
+ public SeatControlCapabilities setModuleInfo( ModuleInfo info) {
+ setValue(KEY_MODULE_INFO, info);
+ return this;
+ }
/**
* Gets a ModuleInfo of this capability
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatControlData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatControlData.java
index fbaf55fad..8f63ff39e 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatControlData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatControlData.java
@@ -90,9 +90,10 @@ public class SeatControlData extends RPCStruct {
*
* @param id
*/
- public void setId(@NonNull SupportedSeat id) {
- setValue(KEY_ID, id);
- }
+ public SeatControlData setId(@NonNull SupportedSeat id) {
+ setValue(KEY_ID, id);
+ return this;
+ }
/**
* Gets the id portion of the SeatControlData class
@@ -108,9 +109,10 @@ public class SeatControlData extends RPCStruct {
*
* @param heatingEnabled
*/
- public void setHeatingEnabled(Boolean heatingEnabled) {
- setValue(KEY_HEATING_ENABLED, heatingEnabled);
- }
+ public SeatControlData setHeatingEnabled( Boolean heatingEnabled) {
+ setValue(KEY_HEATING_ENABLED, heatingEnabled);
+ return this;
+ }
/**
* Gets the heatingEnabled portion of the SeatControlData class
@@ -126,9 +128,10 @@ public class SeatControlData extends RPCStruct {
*
* @param coolingEnabled
*/
- public void setCoolingEnabled(Boolean coolingEnabled) {
- setValue(KEY_COOLING_ENABLED, coolingEnabled);
- }
+ public SeatControlData setCoolingEnabled( Boolean coolingEnabled) {
+ setValue(KEY_COOLING_ENABLED, coolingEnabled);
+ return this;
+ }
/**
* Gets the coolingEnabled portion of the SeatControlData class
@@ -144,9 +147,10 @@ public class SeatControlData extends RPCStruct {
*
* @param heatingLevel
*/
- public void setHeatingLevel(Integer heatingLevel) {
- setValue(KEY_HEATING_LEVEL, heatingLevel);
- }
+ public SeatControlData setHeatingLevel( Integer heatingLevel) {
+ setValue(KEY_HEATING_LEVEL, heatingLevel);
+ return this;
+ }
/**
* Gets the heatingLevel portion of the SeatControlData class
@@ -162,9 +166,10 @@ public class SeatControlData extends RPCStruct {
*
* @param coolingLevel
*/
- public void setCoolingLevel(Integer coolingLevel) {
- setValue(KEY_COOLING_LEVEL, coolingLevel);
- }
+ public SeatControlData setCoolingLevel( Integer coolingLevel) {
+ setValue(KEY_COOLING_LEVEL, coolingLevel);
+ return this;
+ }
/**
* Gets the coolingLevel portion of the SeatControlData class
@@ -180,9 +185,10 @@ public class SeatControlData extends RPCStruct {
*
* @param horizontalPosition
*/
- public void setHorizontalPosition(Integer horizontalPosition) {
- setValue(KEY_HORIZONTAL_POSITION, horizontalPosition);
- }
+ public SeatControlData setHorizontalPosition( Integer horizontalPosition) {
+ setValue(KEY_HORIZONTAL_POSITION, horizontalPosition);
+ return this;
+ }
/**
* Gets the horizontalPosition portion of the SeatControlData class
@@ -198,9 +204,10 @@ public class SeatControlData extends RPCStruct {
*
* @param verticalPosition
*/
- public void setVerticalPosition(Integer verticalPosition) {
- setValue(KEY_VERTICAL_POSITION, verticalPosition);
- }
+ public SeatControlData setVerticalPosition( Integer verticalPosition) {
+ setValue(KEY_VERTICAL_POSITION, verticalPosition);
+ return this;
+ }
/**
* Gets the verticalPosition portion of the SeatControlData class
@@ -216,9 +223,10 @@ public class SeatControlData extends RPCStruct {
*
* @param frontVerticalPosition
*/
- public void setFrontVerticalPosition(Integer frontVerticalPosition) {
- setValue(KEY_FRONT_VERTICAL_POSITION, frontVerticalPosition);
- }
+ public SeatControlData setFrontVerticalPosition( Integer frontVerticalPosition) {
+ setValue(KEY_FRONT_VERTICAL_POSITION, frontVerticalPosition);
+ return this;
+ }
/**
* Gets the frontVerticalPosition portion of the SeatControlData class
@@ -234,9 +242,10 @@ public class SeatControlData extends RPCStruct {
*
* @param backVerticalPosition
*/
- public void setBackVerticalPosition(Integer backVerticalPosition) {
- setValue(KEY_BACK_VERTICAL_POSITION, backVerticalPosition);
- }
+ public SeatControlData setBackVerticalPosition( Integer backVerticalPosition) {
+ setValue(KEY_BACK_VERTICAL_POSITION, backVerticalPosition);
+ return this;
+ }
/**
* Gets the backVerticalPosition portion of the SeatControlData class
@@ -252,9 +261,10 @@ public class SeatControlData extends RPCStruct {
*
* @param backTiltAngle
*/
- public void setBackTiltAngle(Integer backTiltAngle) {
- setValue(KEY_BACK_TILT_ANGLE, backTiltAngle);
- }
+ public SeatControlData setBackTiltAngle( Integer backTiltAngle) {
+ setValue(KEY_BACK_TILT_ANGLE, backTiltAngle);
+ return this;
+ }
/**
* Gets the backTiltAngle portion of the SeatControlData class
@@ -270,9 +280,10 @@ public class SeatControlData extends RPCStruct {
*
* @param headSupportHorizontalPosition
*/
- public void setHeadSupportHorizontalPosition(Integer headSupportHorizontalPosition) {
- setValue(KEY_HEAD_SUPPORT_HORIZONTAL_POSITION, headSupportHorizontalPosition);
- }
+ public SeatControlData setHeadSupportHorizontalPosition( Integer headSupportHorizontalPosition) {
+ setValue(KEY_HEAD_SUPPORT_HORIZONTAL_POSITION, headSupportHorizontalPosition);
+ return this;
+ }
/**
* Gets the headSupportHorizontalPosition portion of the SeatControlData class
@@ -288,9 +299,10 @@ public class SeatControlData extends RPCStruct {
*
* @param headSupportVerticalPosition
*/
- public void setHeadSupportVerticalPosition(Integer headSupportVerticalPosition) {
- setValue(KEY_HEAD_SUPPORT_VERTICAL_POSITION, headSupportVerticalPosition);
- }
+ public SeatControlData setHeadSupportVerticalPosition( Integer headSupportVerticalPosition) {
+ setValue(KEY_HEAD_SUPPORT_VERTICAL_POSITION, headSupportVerticalPosition);
+ return this;
+ }
/**
* Gets the headSupportVerticalPosition portion of the SeatControlData class
@@ -306,9 +318,10 @@ public class SeatControlData extends RPCStruct {
*
* @param massageEnabled
*/
- public void setMassageEnabled(Boolean massageEnabled) {
- setValue(KEY_MASSAGE_ENABLED, massageEnabled);
- }
+ public SeatControlData setMassageEnabled( Boolean massageEnabled) {
+ setValue(KEY_MASSAGE_ENABLED, massageEnabled);
+ return this;
+ }
/**
* Gets the massageEnabled portion of the SeatControlData class
@@ -334,9 +347,10 @@ public class SeatControlData extends RPCStruct {
*
* @param massageMode
*/
- public void setMassageMode(List<MassageModeData> massageMode) {
- setValue(KEY_MASSAGE_MODE, massageMode);
- }
+ public SeatControlData setMassageMode( List<MassageModeData> massageMode) {
+ setValue(KEY_MASSAGE_MODE, massageMode);
+ return this;
+ }
/**
* Gets the List<MassageCushionFirmness> portion of the SeatControlData class
@@ -353,18 +367,20 @@ public class SeatControlData extends RPCStruct {
*
* @param massageCushionFirmness
*/
- public void setMassageCushionFirmness(List<MassageCushionFirmness> massageCushionFirmness) {
- setValue(KEY_MASSAGE_CUSHION_FIRMNESS, massageCushionFirmness);
- }
+ public SeatControlData setMassageCushionFirmness( List<MassageCushionFirmness> massageCushionFirmness) {
+ setValue(KEY_MASSAGE_CUSHION_FIRMNESS, massageCushionFirmness);
+ return this;
+ }
/**
* Sets the memory portion of the SeatControlData class
*
* @param memory
*/
- public void setMemory(SeatMemoryAction memory) {
- setValue(KEY_MEMORY, memory);
- }
+ public SeatControlData setMemory( SeatMemoryAction memory) {
+ setValue(KEY_MEMORY, memory);
+ return this;
+ }
/**
* Gets the memory portion of the SeatControlData class
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatLocation.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatLocation.java
index a4b33d1bd..a0b1338e7 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatLocation.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatLocation.java
@@ -17,8 +17,9 @@ public class SeatLocation extends RPCStruct {
* Sets grid data for this seat location
* @param grid the grid to be set
*/
- public void setGrid(Grid grid) {
+ public SeatLocation setGrid( Grid grid) {
setValue(KEY_GRID, grid);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatLocationCapability.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatLocationCapability.java
index 3fc34bada..160e6c33e 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatLocationCapability.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatLocationCapability.java
@@ -22,8 +22,9 @@ public class SeatLocationCapability extends RPCStruct {
* Sets the seat rows for this capability
* @param rows rows to be set
*/
- public void setRows(Integer rows) {
+ public SeatLocationCapability setRows( Integer rows) {
setValue(KEY_ROWS, rows);
+ return this;
}
/**
@@ -38,8 +39,9 @@ public class SeatLocationCapability extends RPCStruct {
* Sets the seat columns for this capability
* @param cols the seat columns to be set
*/
- public void setCols(Integer cols) {
+ public SeatLocationCapability setCols( Integer cols) {
setValue(KEY_COLS, cols);
+ return this;
}
/**
@@ -54,8 +56,9 @@ public class SeatLocationCapability extends RPCStruct {
* Sets the levels for this capability
* @param levels the levels to be set
*/
- public void setLevels(Integer levels) {
+ public SeatLocationCapability setLevels( Integer levels) {
setValue(KEY_LEVELS, levels);
+ return this;
}
/**
@@ -70,8 +73,9 @@ public class SeatLocationCapability extends RPCStruct {
* Sets the seat locations for this capability
* @param locations the locations to be set
*/
- public void setSeats(List<SeatLocation> locations) {
+ public SeatLocationCapability setSeats( List<SeatLocation> locations) {
setValue(KEY_SEATS, locations);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatMemoryAction.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatMemoryAction.java
index af27805db..1dc2411ba 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatMemoryAction.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatMemoryAction.java
@@ -75,9 +75,10 @@ public class SeatMemoryAction extends RPCStruct {
*
* @param id
*/
- public void setId(@NonNull Integer id) {
- setValue(KEY_ID, id);
- }
+ public SeatMemoryAction setId(@NonNull Integer id) {
+ setValue(KEY_ID, id);
+ return this;
+ }
/**
* Gets the id portion of the SeatMemoryAction class
@@ -93,9 +94,10 @@ public class SeatMemoryAction extends RPCStruct {
*
* @param label
*/
- public void setLabel(String label) {
- setValue(KEY_LABEL, label);
- }
+ public SeatMemoryAction setLabel( String label) {
+ setValue(KEY_LABEL, label);
+ return this;
+ }
/**
* Gets the label portion of the SeatMemoryAction class
@@ -111,9 +113,10 @@ public class SeatMemoryAction extends RPCStruct {
*
* @param action
*/
- public void setAction(@NonNull SeatMemoryActionType action) {
- setValue(KEY_ACTION, action);
- }
+ public SeatMemoryAction setAction(@NonNull SeatMemoryActionType action) {
+ setValue(KEY_ACTION, action);
+ return this;
+ }
/**
* Gets the action portion of the SeatMemoryAction class
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SendHapticData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SendHapticData.java
index 6cee332f1..34295d9c5 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SendHapticData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SendHapticData.java
@@ -71,9 +71,10 @@ public class SendHapticData extends RPCRequest {
* When a request is sent, if successful, it will replace all spatial data previously sent through RPC.
* If an empty array is sent, the existing spatial data will be cleared
*/
- public void setHapticRectData(List<HapticRect> hapticRectData) {
- setParameters(KEY_HAPTIC_RECT_DATA, hapticRectData);
- }
+ public SendHapticData setHapticRectData( List<HapticRect> hapticRectData) {
+ setParameters(KEY_HAPTIC_RECT_DATA, hapticRectData);
+ return this;
+ }
/**
* Get the haptic data
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SendLocation.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SendLocation.java
index 87fa67bb6..1ed6cfb10 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SendLocation.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SendLocation.java
@@ -97,8 +97,9 @@ public class SendLocation extends RPCRequest{
* Setter for longitude of the location to send.
* @param longitudeDegrees degrees of the longitudinal position
*/
- public void setLongitudeDegrees(Double longitudeDegrees){
+ public SendLocation setLongitudeDegrees( Double longitudeDegrees) {
setParameters(KEY_LON_DEGREES, longitudeDegrees);
+ return this;
}
/**
@@ -120,8 +121,9 @@ public class SendLocation extends RPCRequest{
* Setter for latitude of the location to send.
* @param latitudeDegrees degrees of the latitudinal position
*/
- public void setLatitudeDegrees(Double latitudeDegrees){
+ public SendLocation setLatitudeDegrees( Double latitudeDegrees) {
setParameters(KEY_LAT_DEGREES, latitudeDegrees);
+ return this;
}
/**
@@ -136,8 +138,9 @@ public class SendLocation extends RPCRequest{
* Setter for name of the location to send.
* @param locationName The name of the location
*/
- public void setLocationName(String locationName){
+ public SendLocation setLocationName( String locationName) {
setParameters(KEY_LOCATION_NAME, locationName);
+ return this;
}
/**
@@ -152,8 +155,9 @@ public class SendLocation extends RPCRequest{
* Setter for description of the location to send.
* @param locationDescription The description of the location
*/
- public void setLocationDescription(String locationDescription){
+ public SendLocation setLocationDescription( String locationDescription) {
setParameters(KEY_LOCATION_DESCRIPTION, locationDescription);
+ return this;
}
/**
@@ -168,8 +172,9 @@ public class SendLocation extends RPCRequest{
* Setter for phone number of the location to send.
* @param phoneNumber The phone number of the location
*/
- public void setPhoneNumber(String phoneNumber){
+ public SendLocation setPhoneNumber( String phoneNumber) {
setParameters(KEY_PHONE_NUMBER, phoneNumber);
+ return this;
}
/**
@@ -185,8 +190,9 @@ public class SendLocation extends RPCRequest{
* Setter for address lines of the location to send.
* @param addressLines The address lines of the location
*/
- public void setAddressLines(List<String> addressLines){
+ public SendLocation setAddressLines( List<String> addressLines) {
setParameters(KEY_ADDRESS_LINES, addressLines);
+ return this;
}
/**
@@ -202,33 +208,37 @@ public class SendLocation extends RPCRequest{
* Setter for image of the location to send.
* @param locationImage The image of the location to send
*/
- public void setLocationImage(Image locationImage){
+ public SendLocation setLocationImage( Image locationImage) {
setParameters(KEY_LOCATION_IMAGE, locationImage);
+ return this;
}
public DeliveryMode getDeliveryMode() {
return (DeliveryMode) getObject(DeliveryMode.class, KEY_DELIVERY_MODE);
}
- public void setDeliveryMode(DeliveryMode deliveryMode) {
+ public SendLocation setDeliveryMode( DeliveryMode deliveryMode) {
setParameters(KEY_DELIVERY_MODE, deliveryMode);
- }
+ return this;
+ }
@SuppressWarnings("unchecked")
public DateTime getTimeStamp() {
return (DateTime) getObject(DateTime.class, KEY_TIME_STAMP);
}
- public void setTimeStamp(DateTime timeStamp) {
+ public SendLocation setTimeStamp( DateTime timeStamp) {
setParameters(KEY_TIME_STAMP, timeStamp);
- }
+ return this;
+ }
@SuppressWarnings("unchecked")
public OasisAddress getAddress() {
return (OasisAddress) getObject(OasisAddress.class, KEY_ADDRESS);
}
- public void setAddress(OasisAddress address) {
+ public SendLocation setAddress( OasisAddress address) {
setParameters(KEY_ADDRESS, address);
- }
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SetAppIcon.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SetAppIcon.java
index 6443be188..084332432 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SetAppIcon.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SetAppIcon.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -109,14 +109,15 @@ public class SetAppIcon extends RPCRequest {
/**
* Sets a file reference name
- *
+ *
* @param sdlFileName
* a String value representing a file reference name
* <p></p>
* <b>Notes: </b>Maxlength=500, however the max file name length may vary based on remote filesystem limitations
*/
- public void setSdlFileName(@NonNull String sdlFileName) {
- setParameters(KEY_SDL_FILE_NAME, sdlFileName);
+ public SetAppIcon setSdlFileName(@NonNull String sdlFileName) {
+ setParameters(KEY_SDL_FILE_NAME, sdlFileName);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SetCloudAppProperties.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SetCloudAppProperties.java
index a457304e3..48bc1196d 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SetCloudAppProperties.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SetCloudAppProperties.java
@@ -55,8 +55,9 @@ public class SetCloudAppProperties extends RPCRequest {
setParameters(KEY_PROPERTIES, cloudAppProperties);
}
- public void setProperties(@NonNull CloudAppProperties cloudAppProperties){
+ public SetCloudAppProperties setProperties(@NonNull CloudAppProperties cloudAppProperties) {
setParameters(KEY_PROPERTIES, cloudAppProperties);
+ return this;
}
public CloudAppProperties getProperties(){
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SetDisplayLayout.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SetDisplayLayout.java
index 937c8e8da..1b07d047a 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SetDisplayLayout.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SetDisplayLayout.java
@@ -131,12 +131,13 @@ public class SetDisplayLayout extends RPCRequest {
* Currently only predefined screen layouts are defined. Predefined layouts
* include: "ONSCREEN_PRESETS" Custom screen containing app-defined onscreen
* presets. Currently defined for GEN2
- *
+ *
* @param displayLayout
* a String value representing a display layout
*/
- public void setDisplayLayout(@NonNull String displayLayout) {
- setParameters(KEY_DISPLAY_LAYOUT, displayLayout);
+ public SetDisplayLayout setDisplayLayout(@NonNull String displayLayout) {
+ setParameters(KEY_DISPLAY_LAYOUT, displayLayout);
+ return this;
}
/**
@@ -164,9 +165,10 @@ public class SetDisplayLayout extends RPCRequest {
* used for day color scheme
* @since SmartDeviceLink 5.0
*/
- public void setDayColorScheme(TemplateColorScheme templateColorScheme){
- setParameters(KEY_DAY_COLOR_SCHEME, templateColorScheme);
- }
+ public SetDisplayLayout setDayColorScheme( TemplateColorScheme templateColorScheme) {
+ setParameters(KEY_DAY_COLOR_SCHEME, templateColorScheme);
+ return this;
+ }
/**
* Gets the color scheme that is currently used for night
@@ -186,7 +188,8 @@ public class SetDisplayLayout extends RPCRequest {
* used for night color scheme
* @since SmartDeviceLink 5.0
*/
- public void setNightColorScheme(TemplateColorScheme templateColorScheme){
- setParameters(KEY_NIGHT_COLOR_SCHEME, templateColorScheme);
- }
+ public SetDisplayLayout setNightColorScheme( TemplateColorScheme templateColorScheme) {
+ setParameters(KEY_NIGHT_COLOR_SCHEME, templateColorScheme);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SetDisplayLayoutResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SetDisplayLayoutResponse.java
index 011dcf6ac..eb4e641d9 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SetDisplayLayoutResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SetDisplayLayoutResponse.java
@@ -87,8 +87,9 @@ public class SetDisplayLayoutResponse extends RPCResponse {
return (DisplayCapabilities) getObject(DisplayCapabilities.class, KEY_DISPLAY_CAPABILITIES);
}
- public void setDisplayCapabilities(DisplayCapabilities displayCapabilities) {
+ public SetDisplayLayoutResponse setDisplayCapabilities( DisplayCapabilities displayCapabilities) {
setParameters(KEY_DISPLAY_CAPABILITIES, displayCapabilities);
+ return this;
}
@SuppressWarnings("unchecked")
@@ -96,8 +97,9 @@ public class SetDisplayLayoutResponse extends RPCResponse {
return (List<ButtonCapabilities>) getObject(ButtonCapabilities.class, KEY_BUTTON_CAPABILITIES);
}
- public void setButtonCapabilities(List<ButtonCapabilities> buttonCapabilities) {
+ public SetDisplayLayoutResponse setButtonCapabilities( List<ButtonCapabilities> buttonCapabilities) {
setParameters(KEY_BUTTON_CAPABILITIES, buttonCapabilities);
+ return this;
}
@SuppressWarnings("unchecked")
@@ -105,8 +107,9 @@ public class SetDisplayLayoutResponse extends RPCResponse {
return (List<SoftButtonCapabilities>) getObject(SoftButtonCapabilities.class, KEY_SOFT_BUTTON_CAPABILITIES);
}
- public void setSoftButtonCapabilities(List<SoftButtonCapabilities> softButtonCapabilities) {
+ public SetDisplayLayoutResponse setSoftButtonCapabilities( List<SoftButtonCapabilities> softButtonCapabilities) {
setParameters(KEY_SOFT_BUTTON_CAPABILITIES, softButtonCapabilities);
+ return this;
}
@SuppressWarnings("unchecked")
@@ -114,8 +117,9 @@ public class SetDisplayLayoutResponse extends RPCResponse {
return (PresetBankCapabilities) getObject(PresetBankCapabilities.class, KEY_PRESET_BANK_CAPABILITIES);
}
- public void setPresetBankCapabilities(PresetBankCapabilities presetBankCapabilities) {
+ public SetDisplayLayoutResponse setPresetBankCapabilities( PresetBankCapabilities presetBankCapabilities) {
setParameters(KEY_PRESET_BANK_CAPABILITIES, presetBankCapabilities);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SetGlobalProperties.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SetGlobalProperties.java
index 82e7738ee..28050a867 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SetGlobalProperties.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SetGlobalProperties.java
@@ -188,7 +188,7 @@ public class SetGlobalProperties extends RPCRequest {
* Sets a List<TTSChunk> for Help Prompt that Array of one or more
* TTSChunk elements specifying the help prompt used in an interaction
* started by PTT
- *
+ *
* @param helpPrompt
* a List<TTSChunk> of one or more TTSChunk elements
* <p></p>
@@ -197,9 +197,10 @@ public class SetGlobalProperties extends RPCRequest {
* <li>Array must have at least one element</li>
* <li>Only optional it timeoutPrompt has been specified</li>
* </ul>
- */
- public void setHelpPrompt(List<TTSChunk> helpPrompt) {
- setParameters(KEY_HELP_PROMPT, helpPrompt);
+ */
+ public SetGlobalProperties setHelpPrompt( List<TTSChunk> helpPrompt) {
+ setParameters(KEY_HELP_PROMPT, helpPrompt);
+ return this;
}
/**
* Gets a List<TTSChunk> for Timeout Prompt representing Array of one or
@@ -217,10 +218,11 @@ public class SetGlobalProperties extends RPCRequest {
* Sets a List<TTSChunk> for Timeout Prompt representing Array of one or
* more TTSChunk elements specifying the help prompt used in an interaction
* started by PTT
- *
- */
- public void setTimeoutPrompt(List<TTSChunk> timeoutPrompt) {
- setParameters(KEY_TIMEOUT_PROMPT, timeoutPrompt);
+ *
+ */
+ public SetGlobalProperties setTimeoutPrompt( List<TTSChunk> timeoutPrompt) {
+ setParameters(KEY_TIMEOUT_PROMPT, timeoutPrompt);
+ return this;
}
/**
@@ -236,7 +238,7 @@ public class SetGlobalProperties extends RPCRequest {
/**
* Sets a voice recognition Help Title
- *
+ *
* @param vrHelpTitle
* a String value representing a voice recognition Help Title
* <p></p>
@@ -250,8 +252,9 @@ public class SetGlobalProperties extends RPCRequest {
* </ul>
* @since SmartDeviceLink 2.0
*/
- public void setVrHelpTitle(String vrHelpTitle) {
- setParameters(KEY_VR_HELP_TITLE, vrHelpTitle);
+ public SetGlobalProperties setVrHelpTitle( String vrHelpTitle) {
+ setParameters(KEY_VR_HELP_TITLE, vrHelpTitle);
+ return this;
}
/**
@@ -270,7 +273,7 @@ public class SetGlobalProperties extends RPCRequest {
/**
* Sets the items listed in the VR help screen used in an interaction
* started by PTT
- *
+ *
* @param vrHelp
* a List value representing items listed in the VR help screen
* used in an interaction started by PTT
@@ -288,20 +291,23 @@ public class SetGlobalProperties extends RPCRequest {
* </ul>
* @since SmartDeviceLink 2.0
*/
- public void setVrHelp(List<VrHelpItem> vrHelp) {
- setParameters(KEY_VR_HELP, vrHelp);
+ public SetGlobalProperties setVrHelp( List<VrHelpItem> vrHelp) {
+ setParameters(KEY_VR_HELP, vrHelp);
+ return this;
}
public String getMenuTitle() {
return getString(KEY_MENU_TITLE);
}
- public void setMenuTitle(String menuTitle) {
- setParameters(KEY_MENU_TITLE, menuTitle);
+ public SetGlobalProperties setMenuTitle( String menuTitle) {
+ setParameters(KEY_MENU_TITLE, menuTitle);
+ return this;
}
- public void setMenuIcon(Image menuIcon) {
- setParameters(KEY_MENU_ICON, menuIcon);
+ public SetGlobalProperties setMenuIcon( Image menuIcon) {
+ setParameters(KEY_MENU_ICON, menuIcon);
+ return this;
}
@SuppressWarnings("unchecked")
@@ -309,17 +315,19 @@ public class SetGlobalProperties extends RPCRequest {
return (Image) getObject(Image.class, KEY_MENU_ICON);
}
- public void setKeyboardProperties(KeyboardProperties keyboardProperties) {
- setParameters(KEY_KEYBOARD_PROPERTIES, keyboardProperties);
+ public SetGlobalProperties setKeyboardProperties( KeyboardProperties keyboardProperties) {
+ setParameters(KEY_KEYBOARD_PROPERTIES, keyboardProperties);
+ return this;
}
/**
* Sets the user seat location
* @param location the location to be set
*/
- public void setUserLocation(SeatLocation location) {
- setParameters(KEY_USER_LOCATION, location);
- }
+ public SetGlobalProperties setUserLocation( SeatLocation location) {
+ setParameters(KEY_USER_LOCATION, location);
+ return this;
+ }
/**
* Gets the user seat location
@@ -339,9 +347,10 @@ public class SetGlobalProperties extends RPCRequest {
* the head unit will change the display to the new layout type.
* @param menuLayout - the menuLayout
*/
- public void setMenuLayout(MenuLayout menuLayout) {
- setParameters(KEY_MENU_LAYOUT, menuLayout);
- }
+ public SetGlobalProperties setMenuLayout( MenuLayout menuLayout) {
+ setParameters(KEY_MENU_LAYOUT, menuLayout);
+ return this;
+ }
/**
* Sets the layout of the main menu screen. If this is sent while a menu is already on-screen,
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SetInteriorVehicleData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SetInteriorVehicleData.java
index 130d1e277..60e792023 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SetInteriorVehicleData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SetInteriorVehicleData.java
@@ -78,8 +78,9 @@ public class SetInteriorVehicleData extends RPCRequest {
*
* @param moduleData
*/
- public void setModuleData(@NonNull ModuleData moduleData) {
+ public SetInteriorVehicleData setModuleData(@NonNull ModuleData moduleData) {
setParameters(KEY_MODULE_DATA, moduleData);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SetInteriorVehicleDataResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SetInteriorVehicleDataResponse.java
index 81390e64a..01ceed4ea 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SetInteriorVehicleDataResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SetInteriorVehicleDataResponse.java
@@ -86,7 +86,8 @@ public class SetInteriorVehicleDataResponse extends RPCResponse {
*
* @param moduleData
*/
- public void setModuleData(ModuleData moduleData) {
- setParameters(KEY_MODULE_DATA, moduleData);
- }
+ public SetInteriorVehicleDataResponse setModuleData( ModuleData moduleData) {
+ setParameters(KEY_MODULE_DATA, moduleData);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SetMediaClockTimer.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SetMediaClockTimer.java
index 67353132f..05a97cc62 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SetMediaClockTimer.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SetMediaClockTimer.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -268,7 +268,7 @@ public class SetMediaClockTimer extends RPCRequest {
}
/**
* Sets a Start Time with specifying hour, minute, second values
- *
+ *
* @param startTime
* a startTime object with specifying hour, minute, second values
* <p></p>
@@ -278,9 +278,10 @@ public class SetMediaClockTimer extends RPCRequest {
* must be provided</li>
* <li>Will be ignored for PAUSE/RESUME and CLEAR</li>
* </ul>
- */
- public void setStartTime( StartTime startTime ) {
- setParameters(KEY_START_TIME, startTime);
+ */
+ public SetMediaClockTimer setStartTime( StartTime startTime) {
+ setParameters(KEY_START_TIME, startTime);
+ return this;
}
@SuppressWarnings("unchecked")
@@ -288,8 +289,9 @@ public class SetMediaClockTimer extends RPCRequest {
return (StartTime) getObject(StartTime.class, KEY_END_TIME);
}
- public void setEndTime( StartTime endTime ) {
- setParameters(KEY_END_TIME, endTime);
+ public SetMediaClockTimer setEndTime( StartTime endTime) {
+ setParameters(KEY_END_TIME, endTime);
+ return this;
}
/**
@@ -302,7 +304,7 @@ public class SetMediaClockTimer extends RPCRequest {
}
/**
* Sets the media clock/timer update mode (COUNTUP/COUNTDOWN/PAUSE/RESUME)
- *
+ *
* @param updateMode
* a Enumeration value (COUNTUP/COUNTDOWN/PAUSE/RESUME)
* <p></p>
@@ -313,9 +315,10 @@ public class SetMediaClockTimer extends RPCRequest {
* <li>When updateMode is RESUME, the timer resumes counting from
* the timer's value when it was paused</li>
* </ul>
- */
- public void setUpdateMode( @NonNull UpdateMode updateMode ) {
- setParameters(KEY_UPDATE_MODE, updateMode);
+ */
+ public SetMediaClockTimer setUpdateMode(@NonNull UpdateMode updateMode) {
+ setParameters(KEY_UPDATE_MODE, updateMode);
+ return this;
}
/**
@@ -330,7 +333,8 @@ public class SetMediaClockTimer extends RPCRequest {
/**
* Sets the playback status of a media app
*/
- public void setAudioStreamingIndicator(AudioStreamingIndicator audioStreamingIndicator ) {
- setParameters(KEY_AUDIO_STREAMING_INDICATOR, audioStreamingIndicator);
- }
+ public SetMediaClockTimer setAudioStreamingIndicator( AudioStreamingIndicator audioStreamingIndicator) {
+ setParameters(KEY_AUDIO_STREAMING_INDICATOR, audioStreamingIndicator);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/Show.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/Show.java
index e663c9f2b..dceae1a3b 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/Show.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/Show.java
@@ -238,7 +238,7 @@ public class Show extends RPCRequest {
/**
* Sets the text displayed in a single-line display, or in the upper display
* line in a two-line display
- *
+ *
* @param mainField1
* the String value representing the text displayed in a
* single-line display, or in the upper display line in a
@@ -251,9 +251,10 @@ public class Show extends RPCRequest {
* <li>If this parameter is an empty string, the field will be
* cleared</li>
* </ul>
- */
- public void setMainField1(String mainField1) {
- setParameters(KEY_MAIN_FIELD_1, mainField1);
+ */
+ public Show setMainField1( String mainField1) {
+ setParameters(KEY_MAIN_FIELD_1, mainField1);
+ return this;
}
/**
* Gets the text displayed on the second display line of a two-line display
@@ -266,7 +267,7 @@ public class Show extends RPCRequest {
}
/**
* Sets the text displayed on the second display line of a two-line display
- *
+ *
* @param mainField2
* the String value representing the text displayed on the second
* display line of a two-line display
@@ -281,9 +282,10 @@ public class Show extends RPCRequest {
* parameter is ignored</li>
* <li>Maxlength = 500</li>
* </ul>
- */
- public void setMainField2(String mainField2) {
- setParameters(KEY_MAIN_FIELD_2, mainField2);
+ */
+ public Show setMainField2( String mainField2) {
+ setParameters(KEY_MAIN_FIELD_2, mainField2);
+ return this;
}
/**
@@ -299,7 +301,7 @@ public class Show extends RPCRequest {
/**
* Sets the text displayed on the first display line of the second page
- *
+ *
* @param mainField3
* the String value representing the text displayed on the first
* display line of the second page
@@ -316,8 +318,9 @@ public class Show extends RPCRequest {
* </ul>
* @since SmartDeviceLink 2.0
*/
- public void setMainField3(String mainField3) {
- setParameters(KEY_MAIN_FIELD_3, mainField3);
+ public Show setMainField3( String mainField3) {
+ setParameters(KEY_MAIN_FIELD_3, mainField3);
+ return this;
}
/**
@@ -333,7 +336,7 @@ public class Show extends RPCRequest {
/**
* Sets the text displayed on the second display line of the second page
- *
+ *
* @param mainField4
* the String value representing the text displayed on the second
* display line of the second page
@@ -350,8 +353,9 @@ public class Show extends RPCRequest {
* </ul>
* @since SmartDeviceLink 2.0
*/
- public void setMainField4(String mainField4) {
- setParameters(KEY_MAIN_FIELD_4, mainField4);
+ public Show setMainField4( String mainField4) {
+ setParameters(KEY_MAIN_FIELD_4, mainField4);
+ return this;
}
/**
* Gets the alignment that Specifies how mainField1 and mainField2 text
@@ -365,7 +369,7 @@ public class Show extends RPCRequest {
/**
* Sets the alignment that Specifies how mainField1 and mainField2 text
* should be aligned on display
- *
+ *
* @param alignment
* an Enumeration value
* <p></p>
@@ -377,9 +381,10 @@ public class Show extends RPCRequest {
* mainField2 will be centered</li>
* <li>Has no effect with navigation display</li>
* </ul>
- */
- public void setAlignment(TextAlignment alignment) {
- setParameters(KEY_ALIGNMENT, alignment);
+ */
+ public Show setAlignment( TextAlignment alignment) {
+ setParameters(KEY_ALIGNMENT, alignment);
+ return this;
}
/**
* Gets text in the Status Bar
@@ -391,7 +396,7 @@ public class Show extends RPCRequest {
}
/**
* Sets text in the Status Bar
- *
+ *
* @param statusBar
* a String representing the text you want to add in the Status
* Bar
@@ -406,9 +411,10 @@ public class Show extends RPCRequest {
* <li>If provided and the display has no status bar, this
* parameter is ignored</li>
* </ul>
- */
- public void setStatusBar(String statusBar) {
- setParameters(KEY_STATUS_BAR, statusBar);
+ */
+ public Show setStatusBar( String statusBar) {
+ setParameters(KEY_STATUS_BAR, statusBar);
+ return this;
}
/**
* Gets the String value of the MediaClock
@@ -422,7 +428,7 @@ public class Show extends RPCRequest {
/**
* Sets the value for the MediaClock field using a format described in the
* MediaClockFormat enumeration
- *
+ *
* @param mediaClock
* a String value for the MdaiaClock
* <p></p>
@@ -436,8 +442,9 @@ public class Show extends RPCRequest {
* </ul>
*/
@Deprecated
- public void setMediaClock(String mediaClock) {
- setParameters(KEY_MEDIA_CLOCK, mediaClock);
+ public Show setMediaClock( String mediaClock) {
+ setParameters(KEY_MEDIA_CLOCK, mediaClock);
+ return this;
}
/**
* Gets the text in the track field
@@ -449,7 +456,7 @@ public class Show extends RPCRequest {
}
/**
* Sets the text in the track field
- *
+ *
* @param mediaTrack
* a String value displayed in the track field
* <p></p>
@@ -459,14 +466,15 @@ public class Show extends RPCRequest {
* <li>If an empty string is provided, the field will be cleared</li>
* <li>This field is only valid for media applications on navigation displays</li>
* </ul>
- */
- public void setMediaTrack(String mediaTrack) {
- setParameters(KEY_MEDIA_TRACK, mediaTrack);
+ */
+ public Show setMediaTrack( String mediaTrack) {
+ setParameters(KEY_MEDIA_TRACK, mediaTrack);
+ return this;
}
/**
* Sets an image to be shown on supported displays
- *
+ *
* @param graphic
* the value representing the image shown on supported displays
* <p></p>
@@ -474,8 +482,9 @@ public class Show extends RPCRequest {
* graphic shall not change
* @since SmartDeviceLink 2.0
*/
- public void setGraphic(Image graphic) {
- setParameters(KEY_GRAPHIC, graphic);
+ public Show setGraphic( Image graphic) {
+ setParameters(KEY_GRAPHIC, graphic);
+ return this;
}
/**
@@ -491,8 +500,9 @@ public class Show extends RPCRequest {
}
- public void setSecondaryGraphic(Image secondaryGraphic) {
- setParameters(KEY_SECONDARY_GRAPHIC, secondaryGraphic);
+ public Show setSecondaryGraphic( Image secondaryGraphic) {
+ setParameters(KEY_SECONDARY_GRAPHIC, secondaryGraphic);
+ return this;
}
@@ -516,7 +526,7 @@ public class Show extends RPCRequest {
/**
* Sets the the Soft buttons defined by the App
- *
+ *
* @param softButtons
* a List value represemting the Soft buttons defined by the
* App
@@ -528,11 +538,12 @@ public class Show extends RPCRequest {
* <li>Array Minsize: 0</li>
* <li>Array Maxsize: 8</li>
* </ul>
- *
+ *
* @since SmartDeviceLink 2.0
*/
- public void setSoftButtons(List<SoftButton> softButtons) {
- setParameters(KEY_SOFT_BUTTONS, softButtons);
+ public Show setSoftButtons( List<SoftButton> softButtons) {
+ setParameters(KEY_SOFT_BUTTONS, softButtons);
+ return this;
}
/**
@@ -549,7 +560,7 @@ public class Show extends RPCRequest {
/**
* Sets the Custom Presets defined by the App
- *
+ *
* @param customPresets
* a List value representing the Custom Presets defined by the
* App
@@ -561,8 +572,9 @@ public class Show extends RPCRequest {
* </ul>
* @since SmartDeviceLink 2.0
*/
- public void setCustomPresets(List<String> customPresets) {
- setParameters(KEY_CUSTOM_PRESETS, customPresets);
+ public Show setCustomPresets( List<String> customPresets) {
+ setParameters(KEY_CUSTOM_PRESETS, customPresets);
+ return this;
}
/**
@@ -574,9 +586,10 @@ public class Show extends RPCRequest {
* <ul>
* @since SmartDeviceLink 4.5.0
*/
- public void setMetadataTags(MetadataTags metadataTags){
- setParameters(KEY_METADATA_TAGS, metadataTags);
- }
+ public Show setMetadataTags( MetadataTags metadataTags) {
+ setParameters(KEY_METADATA_TAGS, metadataTags);
+ return this;
+ }
/**
* Gets text field metadata defined by the App
@@ -599,9 +612,10 @@ public class Show extends RPCRequest {
*
* @since 6.0
*/
- public void setWindowID(Integer windowID) {
- setParameters(KEY_WINDOW_ID, windowID);
- }
+ public Show setWindowID( Integer windowID) {
+ setParameters(KEY_WINDOW_ID, windowID);
+ return this;
+ }
/**
* Gets the windowID.
@@ -628,9 +642,10 @@ public class Show extends RPCRequest {
* Sets the templateConfiguration. It's used to set an alternate template layout to a window.
* @param templateConfiguration
*/
- public void setTemplateConfiguration(TemplateConfiguration templateConfiguration) {
- setParameters(KEY_TEMPLATE_CONFIGURATION, templateConfiguration);
- }
+ public Show setTemplateConfiguration( TemplateConfiguration templateConfiguration) {
+ setParameters(KEY_TEMPLATE_CONFIGURATION, templateConfiguration);
+ return this;
+ }
/**
* Sets the title of the new template that will be displayed.
@@ -643,9 +658,10 @@ public class Show extends RPCRequest {
* </ul>
* @since SmartDeviceLink 6.0.0
*/
- public void setTemplateTitle(String templateTitle){
- setParameters(KEY_TEMPLATE_TITLE, templateTitle);
- }
+ public Show setTemplateTitle( String templateTitle) {
+ setParameters(KEY_TEMPLATE_TITLE, templateTitle);
+ return this;
+ }
/**
* Gets the title of the new template that will be displayed
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ShowAppMenu.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ShowAppMenu.java
index 6c6c2e7c9..6531427d8 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ShowAppMenu.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ShowAppMenu.java
@@ -68,9 +68,10 @@ public class ShowAppMenu extends RPCRequest {
* previously added using `AddSubMenu`.
* @param menuID - The SubMenu ID to open
*/
- public void setMenuID(Integer menuID){
- setParameters(KEY_MENU_ID, menuID);
- }
+ public ShowAppMenu setMenuID( Integer menuID) {
+ setParameters(KEY_MENU_ID, menuID);
+ return this;
+ }
/**
* If omitted the HMI opens the apps menu.
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/ShowConstantTbt.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/ShowConstantTbt.java
index 43ab3a137..a8e375b8f 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ShowConstantTbt.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ShowConstantTbt.java
@@ -84,14 +84,15 @@ public class ShowConstantTbt extends RPCRequest{
/**
* Sets a text for navigation text field 1
- *
+ *
* @param navigationText1
* a String value representing a text for navigation text field 1
* <p></p>
* <b>Notes: </b>Maxlength=500
*/
- public void setNavigationText1(String navigationText1){
+ public ShowConstantTbt setNavigationText1( String navigationText1) {
setParameters(KEY_TEXT1, navigationText1);
+ return this;
}
/**
@@ -105,14 +106,15 @@ public class ShowConstantTbt extends RPCRequest{
/**
* Sets a text for navigation text field 2
- *
+ *
* @param navigationText2
* a String value representing a text for navigation text field 2
* <p></p>
* <b>Notes: </b>Maxlength=500
*/
- public void setNavigationText2(String navigationText2){
+ public ShowConstantTbt setNavigationText2( String navigationText2) {
setParameters(KEY_TEXT2, navigationText2);
+ return this;
}
/**
@@ -126,14 +128,15 @@ public class ShowConstantTbt extends RPCRequest{
/**
* Sets a text field for estimated time of arrival
- *
+ *
* @param eta
* a String value representing a text field for estimated time of arrival
* <p></p>
* <b>Notes: </b>Maxlength=500
*/
- public void setEta(String eta){
+ public ShowConstantTbt setEta( String eta) {
setParameters(KEY_ETA, eta);
+ return this;
}
/**
@@ -147,14 +150,15 @@ public class ShowConstantTbt extends RPCRequest{
/**
* Sets a text field for total distance
- *
+ *
* @param totalDistance
* a String value representing a text field for total distance
* <p></p>
* <b>Notes: </b>Maxlength=500
*/
- public void setTotalDistance(String totalDistance){
+ public ShowConstantTbt setTotalDistance( String totalDistance) {
setParameters(KEY_TOTAL_DISTANCE, totalDistance);
+ return this;
}
/**
@@ -168,12 +172,13 @@ public class ShowConstantTbt extends RPCRequest{
/**
* Sets an Image for turnicon
- *
+ *
* @param turnIcon
* an Image value
*/
- public void setTurnIcon(Image turnIcon){
+ public ShowConstantTbt setTurnIcon( Image turnIcon) {
setParameters(KEY_MANEUVER_IMAGE, turnIcon);
+ return this;
}
/**
@@ -188,12 +193,13 @@ public class ShowConstantTbt extends RPCRequest{
/**
* Sets an Image for nextTurnIcon
- *
+ *
* @param nextTurnIcon
* an Image value
*/
- public void setNextTurnIcon(Image nextTurnIcon){
+ public ShowConstantTbt setNextTurnIcon( Image nextTurnIcon) {
setParameters(KEY_NEXT_MANEUVER_IMAGE, nextTurnIcon);
+ return this;
}
/**
@@ -208,14 +214,15 @@ public class ShowConstantTbt extends RPCRequest{
/**
* Sets a Fraction of distance till next maneuver
- *
+ *
* @param distanceToManeuver
* a Double value representing a Fraction of distance till next maneuver
* <p></p>
* <b>Notes: </b>Minvalue=0; Maxvalue=1000000000
*/
- public void setDistanceToManeuver(Double distanceToManeuver){
+ public ShowConstantTbt setDistanceToManeuver( Double distanceToManeuver) {
setParameters(KEY_MANEUVER_DISTANCE, distanceToManeuver);
+ return this;
}
/**
@@ -229,14 +236,15 @@ public class ShowConstantTbt extends RPCRequest{
/**
* Sets a Distance till next maneuver (starting from) from previous maneuver
- *
+ *
* @param distanceToManeuverScale
* a Double value representing a Distance till next maneuver (starting from) from previous maneuver
* <p></p>
* <b>Notes: </b>Minvalue=0; Maxvalue=1000000000
*/
- public void setDistanceToManeuverScale(Double distanceToManeuverScale){
+ public ShowConstantTbt setDistanceToManeuverScale( Double distanceToManeuverScale) {
setParameters(KEY_MANEUVER_DISTANCE_SCALE, distanceToManeuverScale);
+ return this;
}
/**
@@ -252,13 +260,14 @@ public class ShowConstantTbt extends RPCRequest{
* <p>Sets a maneuver complete flag. If and when a maneuver has completed while an AlertManeuver is active, the app
* must send this value set to TRUE in order to clear the AlertManeuver overlay
* If omitted the value will be assumed as FALSE</p>
- *
- *
+ *
+ *
* @param maneuverComplete
* a Boolean value
*/
- public void setManeuverComplete(Boolean maneuverComplete){
+ public ShowConstantTbt setManeuverComplete( Boolean maneuverComplete) {
setParameters(KEY_MANEUVER_COMPLETE, maneuverComplete);
+ return this;
}
/**
@@ -273,14 +282,15 @@ public class ShowConstantTbt extends RPCRequest{
/**
* <p>Sets Three dynamic SoftButtons available (first SoftButton is fixed to "Turns"). If omitted on supported
* displays, the currently displayed SoftButton values will not change</p>
- *
+ *
* <p><b>Notes: </b>Minsize=0; Maxsize=3</p>
- *
+ *
* @param softButtons
* a List<SoftButton> value
*/
- public void setSoftButtons(List<SoftButton> softButtons){
+ public ShowConstantTbt setSoftButtons( List<SoftButton> softButtons) {
setParameters(KEY_SOFT_BUTTONS, softButtons);
+ return this;
}
/**
@@ -294,8 +304,9 @@ public class ShowConstantTbt extends RPCRequest{
return (List<SoftButton>) getObject(SoftButton.class, KEY_SOFT_BUTTONS);
}
- public void setTimeToDestination(String timeToDestination){
+ public ShowConstantTbt setTimeToDestination( String timeToDestination) {
setParameters(KEY_TIME_TO_DESTINATION, timeToDestination);
+ return this;
}
public String getTimeToDestination(){
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SingleTireStatus.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SingleTireStatus.java
index 7a0edfa3c..faadb2406 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SingleTireStatus.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SingleTireStatus.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -105,8 +105,9 @@ public class SingleTireStatus extends RPCStruct {
* set the volume status of a single tire
* @param status the volume status of a single tire
*/
- public void setStatus(@NonNull ComponentVolumeStatus status) {
- setValue(KEY_STATUS, status);
+ public SingleTireStatus setStatus(@NonNull ComponentVolumeStatus status) {
+ setValue(KEY_STATUS, status);
+ return this;
}
/**
@@ -121,7 +122,10 @@ public class SingleTireStatus extends RPCStruct {
* Set the status of TPMS according to the particular tire.
* @param tpms The status of TPMS
*/
- public void setTPMS(@NonNull TPMS tpms) { setValue(KEY_TPMS, tpms); }
+ public SingleTireStatus setTPMS(@NonNull TPMS tpms) {
+ setValue(KEY_TPMS, tpms);
+ return this;
+ }
/**
* Get the status of TPMS according to the particular tire.
@@ -134,7 +138,10 @@ public class SingleTireStatus extends RPCStruct {
/**
* @param pressure The pressure value of the particular tire in kilo pascal.
*/
- public void setPressure(@NonNull Float pressure) { setValue(KEY_PRESSURE, pressure); }
+ public SingleTireStatus setPressure(@NonNull Float pressure) {
+ setValue(KEY_PRESSURE, pressure);
+ return this;
+ }
/**
* @return the pressure value of the particular tire in kilo pascal.
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SisData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SisData.java
index be97e14cd..e25ac69b9 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SisData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SisData.java
@@ -63,9 +63,10 @@ public class SisData extends RPCStruct {
*
* @param stationShortName Identifies the 4-alpha-character station call sign plus an optional (-FM) extension.
*/
- public void setStationShortName(String stationShortName) {
- setValue(KEY_STATION_SHORT_NAME, stationShortName);
- }
+ public SisData setStationShortName( String stationShortName) {
+ setValue(KEY_STATION_SHORT_NAME, stationShortName);
+ return this;
+ }
/**
* Gets the stationShortName portion of the SisData class
@@ -81,9 +82,10 @@ public class SisData extends RPCStruct {
*
* @param stationIDNumber Consists of Country Code and FCC Facility ID
*/
- public void setStationIDNumber(StationIDNumber stationIDNumber) {
- setValue(KEY_STATION_ID_NUMBER, stationIDNumber);
- }
+ public SisData setStationIDNumber( StationIDNumber stationIDNumber) {
+ setValue(KEY_STATION_ID_NUMBER, stationIDNumber);
+ return this;
+ }
/**
* Gets the stationIDNumber which is used for network Application. Consists of Country Code and FCC Facility ID
@@ -100,9 +102,10 @@ public class SisData extends RPCStruct {
*
* @param stationLongName Identifies the station call sign or other identifying information in the long format.
*/
- public void setStationLongName(String stationLongName) {
- setValue(KEY_STATION_LONG_NAME, stationLongName);
- }
+ public SisData setStationLongName( String stationLongName) {
+ setValue(KEY_STATION_LONG_NAME, stationLongName);
+ return this;
+ }
/**
* Gets the stationLongName portion of the SisData class
@@ -118,9 +121,10 @@ public class SisData extends RPCStruct {
*
* @param stationLocation Provides the 3-dimensional geographic station location.
*/
- public void setStationLocation(GPSData stationLocation) {
- setValue(KEY_STATION_LOCATION, stationLocation);
- }
+ public SisData setStationLocation( GPSData stationLocation) {
+ setValue(KEY_STATION_LOCATION, stationLocation);
+ return this;
+ }
/**
* Gets the stationLocation portion of the SisData class
@@ -138,9 +142,10 @@ public class SisData extends RPCStruct {
* @param stationMessage May be used to convey textual information of general interest to the consumer such as weather forecasts or public service announcements.
* Includes a high priority delivery feature to convey emergencies that may be in the listening area.
*/
- public void setStationMessage(String stationMessage) {
- setValue(KEY_STATION_MESSAGE, stationMessage);
- }
+ public SisData setStationMessage( String stationMessage) {
+ setValue(KEY_STATION_MESSAGE, stationMessage);
+ return this;
+ }
/**
* Gets the stationMessage portion of the SisData class
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/Slider.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/Slider.java
index 374c610fe..0b9f10491 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/Slider.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/Slider.java
@@ -168,15 +168,16 @@ public class Slider extends RPCRequest {
/**
* Sets a number of selectable items on a horizontal axis
- *
+ *
* @param numTicks
* an Integer value representing a number of selectable items on
* a horizontal axis
* <p></p>
* <b>Notes: </b>Minvalue=2; Maxvalue=26
*/
- public void setNumTicks(@NonNull Integer numTicks) {
- setParameters(KEY_NUM_TICKS, numTicks);
+ public Slider setNumTicks(@NonNull Integer numTicks) {
+ setParameters(KEY_NUM_TICKS, numTicks);
+ return this;
}
/**
@@ -191,15 +192,16 @@ public class Slider extends RPCRequest {
/**
* Sets an Initial position of slider control
- *
+ *
* @param position
* an Integer value representing an Initial position of slider
* control
* <p></p>
* <b>Notes: </b>Minvalue=1; Maxvalue=26
*/
- public void setPosition(@NonNull Integer position) {
- setParameters(KEY_POSITION, position);
+ public Slider setPosition(@NonNull Integer position) {
+ setParameters(KEY_POSITION, position);
+ return this;
}
/**
@@ -214,14 +216,15 @@ public class Slider extends RPCRequest {
/**
* Sets a text header to display
- *
+ *
* @param sliderHeader
* a String value
* <p></p>
* <b>Notes: </b>Maxlength=500
*/
- public void setSliderHeader(@NonNull String sliderHeader) {
- setParameters(KEY_SLIDER_HEADER, sliderHeader);
+ public Slider setSliderHeader(@NonNull String sliderHeader) {
+ setParameters(KEY_SLIDER_HEADER, sliderHeader);
+ return this;
}
/**
@@ -235,14 +238,15 @@ public class Slider extends RPCRequest {
/**
* Sets a text footer to display
- *
+ *
* @param sliderFooter
* a List<String> value representing a text footer to display
* <p></p>
* <b>Notes: </b>Maxlength=500; Minvalue=1; Maxvalue=26
*/
- public void setSliderFooter(List<String> sliderFooter) {
- setParameters(KEY_SLIDER_FOOTER, sliderFooter);
+ public Slider setSliderFooter( List<String> sliderFooter) {
+ setParameters(KEY_SLIDER_FOOTER, sliderFooter);
+ return this;
}
/**
@@ -257,14 +261,15 @@ public class Slider extends RPCRequest {
/**
* Sets an App defined timeout
- *
+ *
* @param timeout
* an Integer value representing an App defined timeout
* <p></p>
* <b>Notes: </b>Minvalue=0; Maxvalue=65535; Defvalue=10000
*/
- public void setTimeout(Integer timeout) {
- setParameters(KEY_TIMEOUT, timeout);
+ public Slider setTimeout( Integer timeout) {
+ setParameters(KEY_TIMEOUT, timeout);
+ return this;
}
/**
@@ -293,7 +298,8 @@ public class Slider extends RPCRequest {
*
* @since SmartDeviceLink 6.0
*/
- public void setCancelID(Integer cancelID) {
- setParameters(KEY_CANCEL_ID, cancelID);
- }
+ public Slider setCancelID( Integer cancelID) {
+ setParameters(KEY_CANCEL_ID, cancelID);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SliderResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SliderResponse.java
index cad93b19b..5f802bd19 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SliderResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SliderResponse.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -81,8 +81,9 @@ public class SliderResponse extends RPCResponse {
* Sets an Initial position of slider control
* @param sliderPosition the starting position of the slider control
*/
- public void setSliderPosition(Integer sliderPosition) {
- setParameters(KEY_SLIDER_POSITION, sliderPosition);
+ public SliderResponse setSliderPosition( Integer sliderPosition) {
+ setParameters(KEY_SLIDER_POSITION, sliderPosition);
+ return this;
}
/**
* Gets an Initial position of slider control
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SoftButton.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SoftButton.java
index bfafea14e..ef25006da 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SoftButton.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SoftButton.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -136,39 +136,45 @@ public class SoftButton extends RPCStruct {
setSoftButtonID(softButtonID);
}
- public void setType(@NonNull SoftButtonType type) {
+ public SoftButton setType(@NonNull SoftButtonType type) {
setValue(KEY_TYPE, type);
+ return this;
}
public SoftButtonType getType() {
return (SoftButtonType) getObject(SoftButtonType.class, KEY_TYPE);
}
- public void setText(String text) {
+ public SoftButton setText( String text) {
setValue(KEY_TEXT, text);
+ return this;
}
public String getText() {
return getString(KEY_TEXT);
}
- public void setImage(Image image) {
+ public SoftButton setImage( Image image) {
setValue(KEY_IMAGE, image);
+ return this;
}
@SuppressWarnings("unchecked")
public Image getImage() {
return (Image) getObject(Image.class, KEY_IMAGE);
}
- public void setIsHighlighted(Boolean isHighlighted) {
+ public SoftButton setIsHighlighted( Boolean isHighlighted) {
setValue(KEY_IS_HIGHLIGHTED, isHighlighted);
+ return this;
}
public Boolean getIsHighlighted() {
return getBoolean(KEY_IS_HIGHLIGHTED);
}
- public void setSoftButtonID(@NonNull Integer softButtonID) {
+ public SoftButton setSoftButtonID(@NonNull Integer softButtonID) {
setValue(KEY_SOFT_BUTTON_ID, softButtonID);
+ return this;
}
public Integer getSoftButtonID() {
return getInteger(KEY_SOFT_BUTTON_ID);
}
- public void setSystemAction(SystemAction systemAction) {
+ public SoftButton setSystemAction( SystemAction systemAction) {
setValue(KEY_SYSTEM_ACTION, systemAction);
+ return this;
}
public SystemAction getSystemAction() {
return (SystemAction) getObject(SystemAction.class, KEY_SYSTEM_ACTION);
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SoftButtonCapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SoftButtonCapabilities.java
index bdd2a0b9b..baac6ecda 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SoftButtonCapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SoftButtonCapabilities.java
@@ -131,8 +131,9 @@ public class SoftButtonCapabilities extends RPCStruct {
* set the button supports a short press.
* @param shortPressAvailable whether the button supports a short press.
*/
- public void setShortPressAvailable(@NonNull Boolean shortPressAvailable) {
+ public SoftButtonCapabilities setShortPressAvailable(@NonNull Boolean shortPressAvailable) {
setValue(KEY_SHORT_PRESS_AVAILABLE, shortPressAvailable);
+ return this;
}
/**
@@ -147,8 +148,9 @@ public class SoftButtonCapabilities extends RPCStruct {
* set the button supports a LONG press.
* @param longPressAvailable whether the button supports a long press
*/
- public void setLongPressAvailable(@NonNull Boolean longPressAvailable) {
+ public SoftButtonCapabilities setLongPressAvailable(@NonNull Boolean longPressAvailable) {
setValue(KEY_LONG_PRESS_AVAILABLE, longPressAvailable);
+ return this;
}
/**
@@ -160,11 +162,12 @@ public class SoftButtonCapabilities extends RPCStruct {
}
/**
- * set the button supports "button down" and "button up".
- * @param upDownAvailable the button supports "button down" and "button up".
+ * set the button supports "button down" and "button up".
+ * @param upDownAvailable the button supports "button down" and "button up".
*/
- public void setUpDownAvailable(@NonNull Boolean upDownAvailable) {
+ public SoftButtonCapabilities setUpDownAvailable(@NonNull Boolean upDownAvailable) {
setValue(KEY_UP_DOWN_AVAILABLE, upDownAvailable);
+ return this;
}
/**
@@ -179,8 +182,9 @@ public class SoftButtonCapabilities extends RPCStruct {
* set the button supports referencing a static or dynamic image.
* @param imageSupported whether the button supports referencing a static or dynamic image.
*/
- public void setImageSupported(@NonNull Boolean imageSupported) {
+ public SoftButtonCapabilities setImageSupported(@NonNull Boolean imageSupported) {
setValue(KEY_IMAGE_SUPPORTED, imageSupported);
+ return this;
}
/**
@@ -196,8 +200,9 @@ public class SoftButtonCapabilities extends RPCStruct {
* @param textSupported whether the button supports the use of text or not.
* @since 6.0
*/
- public void setTextSupported(Boolean textSupported) {
+ public SoftButtonCapabilities setTextSupported( Boolean textSupported) {
setValue(KEY_TEXT_SUPPORTED, textSupported);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/Speak.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/Speak.java
index a0c66a99f..d48e6e757 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/Speak.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/Speak.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -180,7 +180,7 @@ public class Speak extends RPCRequest {
/**
* Sets a List<TTSChunk> representing an array of 1-100 TTSChunk structs
* which, taken together, specify the phrase to be spoken
- *
+ *
* @param ttsChunks
* a List<TTSChunk> value representing an array of 1-100 TTSChunk structs
* which specify the phrase to be spoken
@@ -192,8 +192,9 @@ public class Speak extends RPCRequest {
* be rejected</li>
* <li>Each chunk can be no more than 500 characters</li>
* </ul>
- */
- public void setTtsChunks( @NonNull List<TTSChunk> ttsChunks ) {
- setParameters(KEY_TTS_CHUNKS, ttsChunks);
+ */
+ public Speak setTtsChunks(@NonNull List<TTSChunk> ttsChunks) {
+ setParameters(KEY_TTS_CHUNKS, ttsChunks);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/StabilityControlsStatus.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/StabilityControlsStatus.java
new file mode 100644
index 000000000..78eb84149
--- /dev/null
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/StabilityControlsStatus.java
@@ -0,0 +1,127 @@
+/*
+ * Copyright (c) 2017 - 2020, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium Inc. nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+package com.smartdevicelink.proxy.rpc;
+
+import com.smartdevicelink.proxy.RPCStruct;
+import com.smartdevicelink.proxy.rpc.enums.VehicleDataStatus;
+
+import java.util.Hashtable;
+
+/**
+ *
+ * <p><b>Parameter List</b></p>
+ *
+ * <table border="1" rules="all">
+ * <tr>
+ * <th>Param Name</th>
+ * <th>Type</th>
+ * <th>Description</th>
+ * <th>Required</th>
+ * <th>Notes</th>
+ * <th>Version Available</th>
+ * </tr>
+ * <tr>
+ * <td>escSystem</td>
+ * <td>VehicleDataStatus</td>
+ * <td>true if vehicle stability control is ON, else false</td>
+ * <td>N</td>
+ * <td></td>
+ * <td></td>
+ * </tr>
+ * <tr>
+ * <td>trailerSwayControl</td>
+ * <td>VehicleDataStatus</td>
+ * <td>true if vehicle trailer sway control is ON, else false</td>
+ * <td>N</td>
+ * <td></td>
+ * <td></td>
+ * </tr>
+ * </table>
+ * @since SmartDeviceLink 7.0.0
+ */
+public class StabilityControlsStatus extends RPCStruct {
+ public static final String KEY_ESC_SYSTEM = "escSystem";
+ public static final String KEY_TRAILER_SWAY_CONTROL = "trailerSwayControl";
+
+
+ /**
+ * Constructs a new StabilityControlsStatus object
+ */
+ public StabilityControlsStatus() { }
+
+ /**
+ * Constructs a new StabilityControlsStatus object indicated by the Hashtable parameter
+ *
+ * @param hash The Hashtable to use
+ */
+ public StabilityControlsStatus(Hashtable<String, Object> hash) {
+ super(hash);
+ }
+
+ /**
+ * Gets the escSystem.
+ *
+ * @return VehicleDataStatus true if vehicle stability control is ON, else false
+ */
+ public VehicleDataStatus getEscSystem() {
+ return (VehicleDataStatus) getObject(VehicleDataStatus.class, KEY_ESC_SYSTEM);
+ }
+
+ /**
+ * Sets the escSystem.
+ *
+ * @param escSystem true if vehicle stability control is ON, else false
+ */
+ public StabilityControlsStatus setEscSystem( VehicleDataStatus escSystem) {
+ setValue(KEY_ESC_SYSTEM, escSystem);
+ return this;
+ }
+
+ /**
+ * Sets the trailerSwayControl.
+ *
+ * @param trailerSwayControl true if vehicle trailer sway control is ON, else false
+ */
+ public StabilityControlsStatus setTrailerSwayControl( VehicleDataStatus trailerSwayControl) {
+ setValue(KEY_TRAILER_SWAY_CONTROL, trailerSwayControl);
+ return this;
+ }
+
+ /**
+ * Gets the trailerSwayControl.
+ *
+ * @return VehicleDataStatus true if vehicle trailer sway control is ON, else false
+ */
+ public VehicleDataStatus getTrailerSwayControl() {
+ return (VehicleDataStatus) getObject(VehicleDataStatus.class, KEY_TRAILER_SWAY_CONTROL);
+ }
+}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/StartTime.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/StartTime.java
index 96060d535..fd7f640bf 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/StartTime.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/StartTime.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -124,9 +124,10 @@ public class StartTime extends RPCStruct {
* Set the hour. Minvalue="0", maxvalue="59"
* <p><b>Note:</b></p>Some display types only support a max value of 19. If out of range, it will be rejected.
* @param hours min: 0; max: 59
- */
- public void setHours(@NonNull Integer hours ) {
+ */
+ public StartTime setHours(@NonNull Integer hours) {
setValue(KEY_HOURS, hours);
+ return this;
}
/**
* Get the minute. Minvalue="0", maxvalue="59".
@@ -138,9 +139,10 @@ public class StartTime extends RPCStruct {
/**
* Set the minute. Minvalue="0", maxvalue="59".
* @param minutes min: 0; max: 59
- */
- public void setMinutes( @NonNull Integer minutes ) {
+ */
+ public StartTime setMinutes(@NonNull Integer minutes) {
setValue(KEY_MINUTES, minutes);
+ return this;
}
/**
* Get the second. Minvalue="0", maxvalue="59".
@@ -152,8 +154,9 @@ public class StartTime extends RPCStruct {
/**
* Set the second. Minvalue="0", maxvalue="59".
* @param seconds min: 0 max: 59
- */
- public void setSeconds( @NonNull Integer seconds ) {
+ */
+ public StartTime setSeconds(@NonNull Integer seconds) {
setValue(KEY_SECONDS, seconds);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/StationIDNumber.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/StationIDNumber.java
index b75cb3752..fd0365e66 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/StationIDNumber.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/StationIDNumber.java
@@ -51,9 +51,10 @@ public class StationIDNumber extends RPCStruct {
*
* @param countryCode Binary Representation of ITU Country Code. USA Code is 001.
*/
- public void setCountryCode(Integer countryCode) {
- setValue(KEY_COUNTRY_CODE, countryCode);
- }
+ public StationIDNumber setCountryCode( Integer countryCode) {
+ setValue(KEY_COUNTRY_CODE, countryCode);
+ return this;
+ }
/**
* Gets the countryCode portion of the StationIDNumber class
@@ -69,9 +70,10 @@ public class StationIDNumber extends RPCStruct {
*
* @param fccFacilityId Binary representation of unique facility ID assigned by the FCC; FCC controlled for U.S. territory.
*/
- public void setFccFacilityId(Integer fccFacilityId) {
- setValue(KEY_FCC_FACILITY_ID, fccFacilityId);
- }
+ public StationIDNumber setFccFacilityId( Integer fccFacilityId) {
+ setValue(KEY_FCC_FACILITY_ID, fccFacilityId);
+ return this;
+ }
/**
* Gets the fccFacilityId portion of the StationIDNumber class
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeButton.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeButton.java
index 3c830dd61..171c4b18e 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeButton.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeButton.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -144,9 +144,10 @@ public class SubscribeButton extends RPCRequest {
}
/**
* Sets a name of the button to subscribe to
- * @param buttonName a <i>{@linkplain com.smartdevicelink.proxy.rpc.enums.ButtonName}</i> value
- */
- public void setButtonName(@NonNull ButtonName buttonName ) {
+ * @param buttonName a <i>{@linkplain ButtonName}</i> value
+ */
+ public SubscribeButton setButtonName(@NonNull ButtonName buttonName) {
setParameters(KEY_BUTTON_NAME, buttonName);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleData.java
index 9b67c145f..7dbbbc247 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleData.java
@@ -84,18 +84,26 @@ import java.util.Hashtable;
* <tr>
* <td>fuelLevel</td>
* <td>Boolean</td>
- * <td>The fuel level in the tank (percentage)</td>
+ * <td>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec7.0, please see fuelRange.</td>
* <td>N</td>
* <td>Subscribable</td>
- * <td>SmartDeviceLink 2.0 </td>
+ * <td>SmartDeviceLink 7.0.0</td>
* </tr>
* <tr>
* <td>fuelLevel_State</td>
* <td>Boolean</td>
- * <td>The fuel level state</td>
+ * <td>The fuel level state. This parameter is deprecated starting RPC Spec 7.0, please seefuelRange.</td>
* <td>N</td>
* <td>Subscribable</td>
- * <td>SmartDeviceLink 2.0 </td>
+ * <td>SmartDeviceLink 7.0.0</td>
+ * </tr>
+ * <tr>
+ * <td>fuelRange</td>
+ * <td>Boolean</td>
+ * <td>The fuel type, estimated range in KM, fuel level/capacity and fuel level state for thevehicle. See struct FuelRange for details.</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 5.0.0</td>
* </tr>
* <tr>
* <td>instantFuelConsumption</td>
@@ -293,6 +301,13 @@ import java.util.Hashtable;
* <td>N</td>
* <td>SmartDeviceLink 7.0.0</td>
* </tr>
+ * <tr>
+ * <td>stabilityControlsStatus</td>
+ * <td>Boolean</td>
+ * <td>See StabilityControlsStatus</td>
+ * <td>N</td>
+ * <td>SmartDeviceLink 7.0.0</td>
+ * </tr>
* </table>
*
* <p> <b>Response</b></p>
@@ -315,14 +330,12 @@ import java.util.Hashtable;
public class SubscribeVehicleData extends RPCRequest {
public static final String KEY_RPM = "rpm";
public static final String KEY_EXTERNAL_TEMPERATURE = "externalTemperature";
- public static final String KEY_FUEL_LEVEL = "fuelLevel";
public static final String KEY_PRNDL = "prndl";
public static final String KEY_TIRE_PRESSURE = "tirePressure";
public static final String KEY_ENGINE_TORQUE = "engineTorque";
public static final String KEY_ENGINE_OIL_LIFE = "engineOilLife";
public static final String KEY_ODOMETER = "odometer";
public static final String KEY_GPS = "gps";
- public static final String KEY_FUEL_LEVEL_STATE = "fuelLevel_State";
public static final String KEY_INSTANT_FUEL_CONSUMPTION = "instantFuelConsumption";
public static final String KEY_BELT_STATUS = "beltStatus";
public static final String KEY_BODY_INFORMATION = "bodyInformation";
@@ -345,6 +358,17 @@ public class SubscribeVehicleData extends RPCRequest {
public static final String KEY_HANDS_OFF_STEERING = "handsOffSteering";
public static final String KEY_WINDOW_STATUS = "windowStatus";
public static final String KEY_GEAR_STATUS = "gearStatus";
+ /**
+ * @deprecated
+ */
+ @Deprecated
+ public static final String KEY_FUEL_LEVEL = "fuelLevel";
+ /**
+ * @deprecated
+ */
+ @Deprecated
+ public static final String KEY_FUEL_LEVEL_STATE = "fuelLevel_State";
+ public static final String KEY_STABILITY_CONTROLS_STATUS = "stabilityControlsStatus";
/**
* Constructs a new SubscribeVehicleData object
@@ -367,12 +391,13 @@ public class SubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, subscribes Gps data
- *
+ *
* @param gps
* a boolean value
*/
- public void setGps(Boolean gps) {
- setParameters(KEY_GPS, gps);
+ public SubscribeVehicleData setGps( Boolean gps) {
+ setParameters(KEY_GPS, gps);
+ return this;
}
/**
@@ -387,12 +412,13 @@ public class SubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, subscribes speed data
- *
+ *
* @param speed
* a boolean value
*/
- public void setSpeed(Boolean speed) {
- setParameters(KEY_SPEED, speed);
+ public SubscribeVehicleData setSpeed( Boolean speed) {
+ setParameters(KEY_SPEED, speed);
+ return this;
}
/**
@@ -407,12 +433,13 @@ public class SubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, subscribes rpm data
- *
+ *
* @param rpm
* a boolean value
*/
- public void setRpm(Boolean rpm) {
- setParameters(KEY_RPM, rpm);
+ public SubscribeVehicleData setRpm( Boolean rpm) {
+ setParameters(KEY_RPM, rpm);
+ return this;
}
/**
@@ -426,34 +453,38 @@ public class SubscribeVehicleData extends RPCRequest {
}
/**
- * Sets a boolean value. If true, subscribes FuelLevel data
- *
- * @param fuelLevel
- * a boolean value
+ * Sets the fuelLevel.
+ *
+ * @param fuelLevel The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec
+ * 7.0, please see fuelRange.
*/
- public void setFuelLevel(Boolean fuelLevel) {
- setParameters(KEY_FUEL_LEVEL, fuelLevel);
+ @Deprecated
+ public SubscribeVehicleData setFuelLevel( Boolean fuelLevel) {
+ setParameters(KEY_FUEL_LEVEL, fuelLevel);
+ return this;
}
/**
- * Gets a boolean value. If true, means the FuelLevel data has been
- * subscribed.
+ * Gets the fuelLevel.
*
- * @return Boolean -a Boolean value. If true, means the FuelLevel data has
- * been subscribed.
+ * @return Float The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec
+ * 7.0, please see fuelRange.
*/
+ @Deprecated
public Boolean getFuelLevel() {
return getBoolean(KEY_FUEL_LEVEL);
}
/**
* Sets a boolean value. If true, subscribes fuelLevelState data
- *
+ *
* @param fuelLevelState
* a boolean value
*/
- public void setFuelLevelState(Boolean fuelLevelState) {
- setParameters(KEY_FUEL_LEVEL_STATE, fuelLevelState);
+ @Deprecated
+ public SubscribeVehicleData setFuelLevelState( Boolean fuelLevelState) {
+ setParameters(KEY_FUEL_LEVEL_STATE, fuelLevelState);
+ return this;
}
/**
@@ -463,18 +494,20 @@ public class SubscribeVehicleData extends RPCRequest {
* @return Boolean -a Boolean value. If true, means the fuelLevelState data
* has been subscribed.
*/
- public Boolean getFuelLevelState() {
+ @Deprecated
+ public Boolean getFuelLevelState() {
return getBoolean(KEY_FUEL_LEVEL_STATE);
}
/**
* Sets a boolean value. If true, subscribes instantFuelConsumption data
- *
+ *
* @param instantFuelConsumption
* a boolean value
*/
- public void setInstantFuelConsumption(Boolean instantFuelConsumption) {
- setParameters(KEY_INSTANT_FUEL_CONSUMPTION, instantFuelConsumption);
+ public SubscribeVehicleData setInstantFuelConsumption( Boolean instantFuelConsumption) {
+ setParameters(KEY_INSTANT_FUEL_CONSUMPTION, instantFuelConsumption);
+ return this;
}
/**
@@ -490,12 +523,13 @@ public class SubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, subscribes externalTemperature data
- *
+ *
* @param externalTemperature
* a boolean value
*/
- public void setExternalTemperature(Boolean externalTemperature) {
- setParameters(KEY_EXTERNAL_TEMPERATURE, externalTemperature);
+ public SubscribeVehicleData setExternalTemperature( Boolean externalTemperature) {
+ setParameters(KEY_EXTERNAL_TEMPERATURE, externalTemperature);
+ return this;
}
/**
@@ -515,8 +549,9 @@ public class SubscribeVehicleData extends RPCRequest {
* @param gearStatus See GearStatus
* @since SmartDeviceLink 7.0.0
*/
- public void setGearStatus(Boolean gearStatus) {
+ public SubscribeVehicleData setGearStatus( Boolean gearStatus) {
setParameters(KEY_GEAR_STATUS, gearStatus);
+ return this;
}
/**
@@ -536,8 +571,9 @@ public class SubscribeVehicleData extends RPCRequest {
* @deprecated in SmartDeviceLink 7.0.0
*/
@Deprecated
- public void setPrndl(Boolean prndl) {
- setParameters(KEY_PRNDL, prndl);
+ public SubscribeVehicleData setPrndl( Boolean prndl) {
+ setParameters(KEY_PRNDL, prndl);
+ return this;
}
/**
@@ -553,12 +589,13 @@ public class SubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, subscribes tire pressure status data
- *
+ *
* @param tirePressure
* a boolean value
*/
- public void setTirePressure(Boolean tirePressure) {
- setParameters(KEY_TIRE_PRESSURE, tirePressure);
+ public SubscribeVehicleData setTirePressure( Boolean tirePressure) {
+ setParameters(KEY_TIRE_PRESSURE, tirePressure);
+ return this;
}
/**
@@ -574,12 +611,13 @@ public class SubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, subscribes odometer data
- *
+ *
* @param odometer
* a boolean value
*/
- public void setOdometer(Boolean odometer) {
- setParameters(KEY_ODOMETER, odometer);
+ public SubscribeVehicleData setOdometer( Boolean odometer) {
+ setParameters(KEY_ODOMETER, odometer);
+ return this;
}
/**
@@ -595,12 +633,13 @@ public class SubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, subscribes belt Status data
- *
+ *
* @param beltStatus
* a boolean value
*/
- public void setBeltStatus(Boolean beltStatus) {
- setParameters(KEY_BELT_STATUS, beltStatus);
+ public SubscribeVehicleData setBeltStatus( Boolean beltStatus) {
+ setParameters(KEY_BELT_STATUS, beltStatus);
+ return this;
}
/**
@@ -616,12 +655,13 @@ public class SubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, subscribes body Information data
- *
+ *
* @param bodyInformation
* a boolean value
*/
- public void setBodyInformation(Boolean bodyInformation) {
- setParameters(KEY_BODY_INFORMATION, bodyInformation);
+ public SubscribeVehicleData setBodyInformation( Boolean bodyInformation) {
+ setParameters(KEY_BODY_INFORMATION, bodyInformation);
+ return this;
}
/**
@@ -637,12 +677,13 @@ public class SubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, subscribes device Status data
- *
+ *
* @param deviceStatus
* a boolean value
*/
- public void setDeviceStatus(Boolean deviceStatus) {
- setParameters(KEY_DEVICE_STATUS, deviceStatus);
+ public SubscribeVehicleData setDeviceStatus( Boolean deviceStatus) {
+ setParameters(KEY_DEVICE_STATUS, deviceStatus);
+ return this;
}
/**
@@ -658,12 +699,13 @@ public class SubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, subscribes driver Braking data
- *
+ *
* @param driverBraking
* a boolean value
*/
- public void setDriverBraking(Boolean driverBraking) {
- setParameters(KEY_DRIVER_BRAKING, driverBraking);
+ public SubscribeVehicleData setDriverBraking( Boolean driverBraking) {
+ setParameters(KEY_DRIVER_BRAKING, driverBraking);
+ return this;
}
/**
@@ -679,12 +721,13 @@ public class SubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, subscribes wiper Status data
- *
+ *
* @param wiperStatus
* a boolean value
*/
- public void setWiperStatus(Boolean wiperStatus) {
- setParameters(KEY_WIPER_STATUS, wiperStatus);
+ public SubscribeVehicleData setWiperStatus( Boolean wiperStatus) {
+ setParameters(KEY_WIPER_STATUS, wiperStatus);
+ return this;
}
/**
@@ -700,12 +743,13 @@ public class SubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, subscribes Head Lamp Status data
- *
+ *
* @param headLampStatus
* a boolean value
*/
- public void setHeadLampStatus(Boolean headLampStatus) {
- setParameters(KEY_HEAD_LAMP_STATUS, headLampStatus);
+ public SubscribeVehicleData setHeadLampStatus( Boolean headLampStatus) {
+ setParameters(KEY_HEAD_LAMP_STATUS, headLampStatus);
+ return this;
}
/**
@@ -725,9 +769,10 @@ public class SubscribeVehicleData extends RPCRequest {
* @param engineTorque
* a boolean value
*/
- public void setEngineTorque(Boolean engineTorque) {
- setParameters(KEY_ENGINE_TORQUE, engineTorque);
- }
+ public SubscribeVehicleData setEngineTorque( Boolean engineTorque) {
+ setParameters(KEY_ENGINE_TORQUE, engineTorque);
+ return this;
+ }
/**
* Gets a boolean value. If true, means the Engine Oil Life data has been
@@ -746,9 +791,10 @@ public class SubscribeVehicleData extends RPCRequest {
* @param engineOilLife
* a boolean value
*/
- public void setEngineOilLife(Boolean engineOilLife) {
- setParameters(KEY_ENGINE_OIL_LIFE, engineOilLife);
- }
+ public SubscribeVehicleData setEngineOilLife( Boolean engineOilLife) {
+ setParameters(KEY_ENGINE_OIL_LIFE, engineOilLife);
+ return this;
+ }
/**
* Gets a boolean value. If true, means the Engine Torque data has been
@@ -767,8 +813,9 @@ public class SubscribeVehicleData extends RPCRequest {
* @param accPedalPosition
* a boolean value
*/
- public void setAccPedalPosition(Boolean accPedalPosition) {
- setParameters(KEY_ACC_PEDAL_POSITION, accPedalPosition);
+ public SubscribeVehicleData setAccPedalPosition( Boolean accPedalPosition) {
+ setParameters(KEY_ACC_PEDAL_POSITION, accPedalPosition);
+ return this;
}
/**
@@ -782,61 +829,68 @@ public class SubscribeVehicleData extends RPCRequest {
return getBoolean(KEY_ACC_PEDAL_POSITION);
}
- public void setSteeringWheelAngle(Boolean steeringWheelAngle) {
- setParameters(KEY_STEERING_WHEEL_ANGLE, steeringWheelAngle);
+ public SubscribeVehicleData setSteeringWheelAngle( Boolean steeringWheelAngle) {
+ setParameters(KEY_STEERING_WHEEL_ANGLE, steeringWheelAngle);
+ return this;
}
public Boolean getSteeringWheelAngle() {
return getBoolean(KEY_STEERING_WHEEL_ANGLE);
}
- public void setECallInfo(Boolean eCallInfo) {
- setParameters(KEY_E_CALL_INFO, eCallInfo);
+ public SubscribeVehicleData setECallInfo( Boolean eCallInfo) {
+ setParameters(KEY_E_CALL_INFO, eCallInfo);
+ return this;
}
public Boolean getECallInfo() {
return getBoolean(KEY_E_CALL_INFO);
}
- public void setAirbagStatus(Boolean airbagStatus) {
- setParameters(KEY_AIRBAG_STATUS, airbagStatus);
+ public SubscribeVehicleData setAirbagStatus( Boolean airbagStatus) {
+ setParameters(KEY_AIRBAG_STATUS, airbagStatus);
+ return this;
}
public Boolean getAirbagStatus() {
return getBoolean(KEY_AIRBAG_STATUS);
}
- public void setEmergencyEvent(Boolean emergencyEvent) {
- setParameters(KEY_EMERGENCY_EVENT, emergencyEvent);
+ public SubscribeVehicleData setEmergencyEvent( Boolean emergencyEvent) {
+ setParameters(KEY_EMERGENCY_EVENT, emergencyEvent);
+ return this;
}
public Boolean getEmergencyEvent() {
return getBoolean(KEY_EMERGENCY_EVENT);
}
- public void setClusterModeStatus(Boolean clusterModeStatus) {
- setParameters(KEY_CLUSTER_MODE_STATUS, clusterModeStatus);
+ public SubscribeVehicleData setClusterModeStatus( Boolean clusterModeStatus) {
+ setParameters(KEY_CLUSTER_MODE_STATUS, clusterModeStatus);
+ return this;
}
public Boolean getClusterModeStatus() {
return getBoolean(KEY_CLUSTER_MODE_STATUS);
}
- public void setMyKey(Boolean myKey) {
- setParameters(KEY_MY_KEY, myKey);
+ public SubscribeVehicleData setMyKey( Boolean myKey) {
+ setParameters(KEY_MY_KEY, myKey);
+ return this;
}
public Boolean getMyKey() {
return getBoolean(KEY_MY_KEY);
}
/**
- * Sets a boolean value. If true, subscribes fuelRange data
+ * Sets the fuelRange.
*
- * @param fuelRange
- * a boolean value
+ * @param fuelRange The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the
+ * vehicle. See struct FuelRange for details.
+ * @since SmartDeviceLink 5.0.0
*/
- public void setFuelRange(Boolean fuelRange) {
- setParameters(KEY_FUEL_RANGE, fuelRange);
- }
+ public SubscribeVehicleData setFuelRange( Boolean fuelRange) {
+ setParameters(KEY_FUEL_RANGE, fuelRange);
+ return this;
+ }
/**
- * Gets a boolean value. If true, means the Fuel Range data has been
- * subscribed.
- *
- * @return Boolean -a Boolean value. If true, means the Fuel Range data
- * has been subscribed.
+ * Gets the fuelRange.
*
+ * @return Boolean The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the
+ * vehicle. See struct FuelRange for details.
+ * @since SmartDeviceLink 5.0.0
*/
public Boolean getFuelRange() {
return getBoolean(KEY_FUEL_RANGE);
@@ -846,7 +900,10 @@ public class SubscribeVehicleData extends RPCRequest {
* Sets a boolean value. If true, subscribes turnSignal data
* @param turnSignal a boolean value
*/
- public void setTurnSignal(Boolean turnSignal) { setParameters(KEY_TURN_SIGNAL, turnSignal); }
+ public SubscribeVehicleData setTurnSignal( Boolean turnSignal) {
+ setParameters(KEY_TURN_SIGNAL, turnSignal);
+ return this;
+ }
/**
* Gets a boolean value. If true, means the turnSignal data has been subscribed.
@@ -858,9 +915,10 @@ public class SubscribeVehicleData extends RPCRequest {
* Sets a boolean value. If true, subscribes electronicParkBrakeStatus data
* @param electronicParkBrakeStatus a boolean value
*/
- public void setElectronicParkBrakeStatus(boolean electronicParkBrakeStatus){
- setParameters(KEY_ELECTRONIC_PARK_BRAKE_STATUS, electronicParkBrakeStatus);
- }
+ public SubscribeVehicleData setElectronicParkBrakeStatus( boolean electronicParkBrakeStatus) {
+ setParameters(KEY_ELECTRONIC_PARK_BRAKE_STATUS, electronicParkBrakeStatus);
+ return this;
+ }
/**
* Gets a boolean value. If true, means the electronicParkBrakeStatus data has been subscribed.
@@ -874,9 +932,10 @@ public class SubscribeVehicleData extends RPCRequest {
* Sets a boolean value. If true, subscribes cloudAppVehicleID data
* @param cloudAppVehicleID a boolean value
*/
- public void setCloudAppVehicleID(boolean cloudAppVehicleID){
- setParameters(KEY_CLOUD_APP_VEHICLE_ID, cloudAppVehicleID);
- }
+ public SubscribeVehicleData setCloudAppVehicleID( boolean cloudAppVehicleID) {
+ setParameters(KEY_CLOUD_APP_VEHICLE_ID, cloudAppVehicleID);
+ return this;
+ }
/**
* Gets a boolean value. If true, means the cloudAppVehicleDataID data has been subscribed.
@@ -891,9 +950,10 @@ public class SubscribeVehicleData extends RPCRequest {
* @param vehicleDataName a String value
* @param vehicleDataState a boolean value
*/
- public void setOEMCustomVehicleData(String vehicleDataName, Boolean vehicleDataState){
- setParameters(vehicleDataName, vehicleDataState);
- }
+ public SubscribeVehicleData setOEMCustomVehicleData( String vehicleDataName, Boolean vehicleDataState) {
+ setParameters(vehicleDataName, vehicleDataState);
+ return this;
+ }
/**
* Gets a boolean value for OEM Custom VehicleData.
@@ -909,8 +969,9 @@ public class SubscribeVehicleData extends RPCRequest {
* @param windowStatus See WindowStatus
* @since SmartDeviceLink 7.0.0
*/
- public void setWindowStatus(Boolean windowStatus) {
+ public SubscribeVehicleData setWindowStatus( Boolean windowStatus) {
setParameters(KEY_WINDOW_STATUS, windowStatus);
+ return this;
}
/**
@@ -929,8 +990,9 @@ public class SubscribeVehicleData extends RPCRequest {
* @param handsOffSteering To indicate whether driver hands are off the steering wheel
* @since SmartDeviceLink 7.0.0
*/
- public void setHandsOffSteering(Boolean handsOffSteering) {
+ public SubscribeVehicleData setHandsOffSteering( Boolean handsOffSteering) {
setParameters(KEY_HANDS_OFF_STEERING, handsOffSteering);
+ return this;
}
/**
@@ -942,4 +1004,25 @@ public class SubscribeVehicleData extends RPCRequest {
public Boolean getHandsOffSteering() {
return getBoolean(KEY_HANDS_OFF_STEERING);
}
+
+ /**
+ * Gets the stabilityControlsStatus.
+ *
+ * @return Boolean See StabilityControlsStatus
+ * @since SmartDeviceLink 7.0.0
+ */
+ public Boolean getStabilityControlsStatus() {
+ return getBoolean(KEY_STABILITY_CONTROLS_STATUS);
+ }
+
+ /**
+ * Sets the stabilityControlsStatus.
+ *
+ * @param stabilityControlsStatus See StabilityControlsStatus
+ * @since SmartDeviceLink 7.0.0
+ */
+ public SubscribeVehicleData setStabilityControlsStatus( Boolean stabilityControlsStatus) {
+ setParameters(KEY_STABILITY_CONTROLS_STATUS, stabilityControlsStatus);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleDataResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleDataResponse.java
index cb869336a..dfe668f66 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleDataResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleDataResponse.java
@@ -47,7 +47,6 @@ import java.util.Hashtable;
public class SubscribeVehicleDataResponse extends RPCResponse {
public static final String KEY_SPEED = "speed";
public static final String KEY_RPM = "rpm";
- public static final String KEY_FUEL_LEVEL = "fuelLevel";
public static final String KEY_EXTERNAL_TEMPERATURE = "externalTemperature";
public static final String KEY_PRNDL = "prndl";
public static final String KEY_TIRE_PRESSURE = "tirePressure";
@@ -55,7 +54,6 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
public static final String KEY_ENGINE_OIL_LIFE = "engineOilLife";
public static final String KEY_ODOMETER = "odometer";
public static final String KEY_GPS = "gps";
- public static final String KEY_FUEL_LEVEL_STATE = "fuelLevel_State";
public static final String KEY_INSTANT_FUEL_CONSUMPTION = "instantFuelConsumption";
public static final String KEY_BELT_STATUS = "beltStatus";
public static final String KEY_BODY_INFORMATION = "bodyInformation";
@@ -77,6 +75,17 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
public static final String KEY_GEAR_STATUS = "gearStatus";
public static final String KEY_HANDS_OFF_STEERING = "handsOffSteering";
public static final String KEY_WINDOW_STATUS = "windowStatus";
+ /**
+ * @deprecated
+ */
+ @Deprecated
+ public static final String KEY_FUEL_LEVEL = "fuelLevel";
+ /**
+ * @deprecated
+ */
+ @Deprecated
+ public static final String KEY_FUEL_LEVEL_STATE = "fuelLevel_State";
+ public static final String KEY_STABILITY_CONTROLS_STATUS = "stabilityControlsStatus";
/**
* Constructs a new SubscribeVehicleDataResponse object
@@ -109,8 +118,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets Gps
* @param gps a VehicleDataResult related to GPS
*/
- public void setGps(VehicleDataResult gps) {
+ public SubscribeVehicleDataResponse setGps( VehicleDataResult gps) {
setParameters(KEY_GPS, gps);
+ return this;
}
/**
* Gets Gps
@@ -124,8 +134,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets Speed
* @param speed a VehicleDataResult related to speed
*/
- public void setSpeed(VehicleDataResult speed) {
+ public SubscribeVehicleDataResponse setSpeed( VehicleDataResult speed) {
setParameters(KEY_SPEED, speed);
+ return this;
}
/**
* Gets Speed
@@ -139,8 +150,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets rpm
* @param rpm a VehicleDataResult related to RPM
*/
- public void setRpm(VehicleDataResult rpm) {
+ public SubscribeVehicleDataResponse setRpm( VehicleDataResult rpm) {
setParameters(KEY_RPM, rpm);
+ return this;
}
/**
* Gets rpm
@@ -151,17 +163,24 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_RPM);
}
/**
- * Sets Fuel Level
- * @param fuelLevel a VehicleDataResult related to Fuel Level
+ * Sets the fuelLevel.
+ *
+ * @param fuelLevel The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec
+ * 7.0, please see fuelRange.
*/
- public void setFuelLevel(VehicleDataResult fuelLevel) {
+ @Deprecated
+ public SubscribeVehicleDataResponse setFuelLevel( VehicleDataResult fuelLevel) {
setParameters(KEY_FUEL_LEVEL, fuelLevel);
+ return this;
}
/**
- * Gets Fuel Level
- * @return a VehicleDataResult related to FuelLevel
+ * Gets the fuelLevel.
+ *
+ * @return VehicleDataResult The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec
+ * 7.0, please see fuelRange.
*/
@SuppressWarnings("unchecked")
+ @Deprecated
public VehicleDataResult getFuelLevel() {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_FUEL_LEVEL);
}
@@ -169,13 +188,16 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets Fuel Level State
* @param fuelLevelState a VehicleDataResult related to FuelLevel State
*/
- public void setFuelLevelState(VehicleDataResult fuelLevelState) {
+ @Deprecated
+ public SubscribeVehicleDataResponse setFuelLevelState( VehicleDataResult fuelLevelState) {
setParameters(KEY_FUEL_LEVEL_STATE, fuelLevelState);
+ return this;
}
/**
* Gets Fuel Level State
* @return a VehicleDataResult related to FuelLevel State
*/
+ @Deprecated
@SuppressWarnings("unchecked")
public VehicleDataResult getFuelLevelState() {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_FUEL_LEVEL_STATE);
@@ -184,8 +206,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets Instant Fuel Consumption
* @param instantFuelConsumption a VehicleDataResult related to instant fuel consumption
*/
- public void setInstantFuelConsumption(VehicleDataResult instantFuelConsumption) {
+ public SubscribeVehicleDataResponse setInstantFuelConsumption( VehicleDataResult instantFuelConsumption) {
setParameters(KEY_INSTANT_FUEL_CONSUMPTION, instantFuelConsumption);
+ return this;
}
/**
* Gets Instant Fuel Consumption
@@ -199,8 +222,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets External Temperature
* @param externalTemperature a VehicleDataResult related to external temperature
*/
- public void setExternalTemperature(VehicleDataResult externalTemperature) {
+ public SubscribeVehicleDataResponse setExternalTemperature( VehicleDataResult externalTemperature) {
setParameters(KEY_EXTERNAL_TEMPERATURE, externalTemperature);
+ return this;
}
/**
* Gets External Temperature
@@ -217,8 +241,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* @deprecated in SmartDeviceLink 7.0.0
*/
@Deprecated
- public void setPrndl(VehicleDataResult prndl) {
+ public SubscribeVehicleDataResponse setPrndl( VehicleDataResult prndl) {
setParameters(KEY_PRNDL, prndl);
+ return this;
}
/**
* Gets the prndl.
@@ -235,8 +260,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets Tire Pressure
* @param tirePressure a VehicleDataResult related to tire pressure
*/
- public void setTirePressure(VehicleDataResult tirePressure) {
+ public SubscribeVehicleDataResponse setTirePressure( VehicleDataResult tirePressure) {
setParameters(KEY_TIRE_PRESSURE, tirePressure);
+ return this;
}
/**
* Gets Tire Pressure
@@ -250,8 +276,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets Odometer
* @param odometer a VehicleDataResult related to the odometer
*/
- public void setOdometer(VehicleDataResult odometer) {
+ public SubscribeVehicleDataResponse setOdometer( VehicleDataResult odometer) {
setParameters(KEY_ODOMETER, odometer);
+ return this;
}
/**
* Gets Odometer
@@ -265,8 +292,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets Belt Status
* @param beltStatus a VehicleDataResult related to the seat belt status
*/
- public void setBeltStatus(VehicleDataResult beltStatus) {
+ public SubscribeVehicleDataResponse setBeltStatus( VehicleDataResult beltStatus) {
setParameters(KEY_BELT_STATUS, beltStatus);
+ return this;
}
/**
* Gets Belt Status
@@ -280,8 +308,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets Body Information
* @param bodyInformation a VehicleDataResult related to the body info
*/
- public void setBodyInformation(VehicleDataResult bodyInformation) {
+ public SubscribeVehicleDataResponse setBodyInformation( VehicleDataResult bodyInformation) {
setParameters(KEY_BODY_INFORMATION, bodyInformation);
+ return this;
}
/**
* Gets Body Information
@@ -295,8 +324,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets Device Status
* @param deviceStatus a VehicleDataResult related to the device status of the connected device
*/
- public void setDeviceStatus(VehicleDataResult deviceStatus) {
+ public SubscribeVehicleDataResponse setDeviceStatus( VehicleDataResult deviceStatus) {
setParameters(KEY_DEVICE_STATUS, deviceStatus);
+ return this;
}
/**
* Gets Device Status
@@ -310,8 +340,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets Driver Braking
* @param driverBraking a VehicleDataResult related to the driver breaking status
*/
- public void setDriverBraking(VehicleDataResult driverBraking) {
+ public SubscribeVehicleDataResponse setDriverBraking( VehicleDataResult driverBraking) {
setParameters(KEY_DRIVER_BRAKING, driverBraking);
+ return this;
}
/**
* Gets Driver Braking
@@ -325,8 +356,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets Wiper Status
* @param wiperStatus a VehicleDataResult related to the wiper status
*/
- public void setWiperStatus(VehicleDataResult wiperStatus) {
+ public SubscribeVehicleDataResponse setWiperStatus( VehicleDataResult wiperStatus) {
setParameters(KEY_WIPER_STATUS, wiperStatus);
+ return this;
}
/**
* Gets Wiper Status
@@ -340,8 +372,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets Head Lamp Status
* @param headLampStatus a VehicleDataResult related to the headlamp status
*/
- public void setHeadLampStatus(VehicleDataResult headLampStatus) {
+ public SubscribeVehicleDataResponse setHeadLampStatus( VehicleDataResult headLampStatus) {
setParameters(KEY_HEAD_LAMP_STATUS, headLampStatus);
+ return this;
}
/**
* Gets Head Lamp Status
@@ -355,8 +388,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets Engine Torque
* @param engineTorque a VehicleDataResult related to the engine's torque
*/
- public void setEngineTorque(VehicleDataResult engineTorque) {
+ public SubscribeVehicleDataResponse setEngineTorque( VehicleDataResult engineTorque) {
setParameters(KEY_ENGINE_TORQUE, engineTorque);
+ return this;
}
/**
* Gets Engine Torque
@@ -370,8 +404,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets Engine Oil Life
* @param engineOilLife a VehicleDataResult related to the engine's oil life
*/
- public void setEngineOilLife(VehicleDataResult engineOilLife) {
+ public SubscribeVehicleDataResponse setEngineOilLife( VehicleDataResult engineOilLife) {
setParameters(KEY_ENGINE_OIL_LIFE, engineOilLife);
+ return this;
}
/**
* Gets Engine Oil Life
@@ -385,8 +420,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets AccPedal Position
* @param accPedalPosition a VehicleDataResult related to the accelerator pedal's position
*/
- public void setAccPedalPosition(VehicleDataResult accPedalPosition) {
+ public SubscribeVehicleDataResponse setAccPedalPosition( VehicleDataResult accPedalPosition) {
setParameters(KEY_ACC_PEDAL_POSITION, accPedalPosition);
+ return this;
}
/**
* Gets AccPedal Position
@@ -397,8 +433,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_ACC_PEDAL_POSITION);
}
- public void setSteeringWheelAngle(VehicleDataResult steeringWheelAngle) {
+ public SubscribeVehicleDataResponse setSteeringWheelAngle( VehicleDataResult steeringWheelAngle) {
setParameters(KEY_STEERING_WHEEL_ANGLE, steeringWheelAngle);
+ return this;
}
@SuppressWarnings("unchecked")
@@ -406,36 +443,41 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_STEERING_WHEEL_ANGLE);
}
- public void setECallInfo(VehicleDataResult eCallInfo) {
+ public SubscribeVehicleDataResponse setECallInfo( VehicleDataResult eCallInfo) {
setParameters(KEY_E_CALL_INFO, eCallInfo);
+ return this;
}
@SuppressWarnings("unchecked")
public VehicleDataResult getECallInfo() {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_E_CALL_INFO);
}
- public void setAirbagStatus(VehicleDataResult airbagStatus) {
+ public SubscribeVehicleDataResponse setAirbagStatus( VehicleDataResult airbagStatus) {
setParameters(KEY_AIRBAG_STATUS, airbagStatus);
+ return this;
}
@SuppressWarnings("unchecked")
public VehicleDataResult getAirbagStatus() {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_AIRBAG_STATUS);
}
- public void setEmergencyEvent(VehicleDataResult emergencyEvent) {
+ public SubscribeVehicleDataResponse setEmergencyEvent( VehicleDataResult emergencyEvent) {
setParameters(KEY_EMERGENCY_EVENT, emergencyEvent);
+ return this;
}
@SuppressWarnings("unchecked")
public VehicleDataResult getEmergencyEvent() {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_EMERGENCY_EVENT);
}
- public void setClusterModeStatus(VehicleDataResult clusterModeStatus) {
+ public SubscribeVehicleDataResponse setClusterModeStatus( VehicleDataResult clusterModeStatus) {
setParameters(KEY_CLUSTER_MODE_STATUS, clusterModeStatus);
+ return this;
}
@SuppressWarnings("unchecked")
public VehicleDataResult getClusterModeStatus() {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_CLUSTER_MODE_STATUS);
}
- public void setMyKey(VehicleDataResult myKey) {
+ public SubscribeVehicleDataResponse setMyKey( VehicleDataResult myKey) {
setParameters(KEY_MY_KEY, myKey);
+ return this;
}
@SuppressWarnings("unchecked")
public VehicleDataResult getMyKey() {
@@ -443,16 +485,23 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
}
/**
- * Sets Fuel Range
- * @param fuelRange a VehicleDataResult related to the fuel range
+ * Sets the fuelRange.
+ *
+ * @param fuelRange The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the
+ * vehicle. See struct FuelRange for details.
+ * @since SmartDeviceLink 5.0.0
*/
- public void setFuelRange(VehicleDataResult fuelRange) {
+ public SubscribeVehicleDataResponse setFuelRange( VehicleDataResult fuelRange) {
setParameters(KEY_FUEL_RANGE, fuelRange);
+ return this;
}
/**
- * Gets Fuel Range
- * @return a VehicleDataResult related to the fuel range
+ * Gets the fuelRange.
+ *
+ * @return VehicleDataResult The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the
+ * vehicle. See struct FuelRange for details.
+ * @since SmartDeviceLink 5.0.0
*/
@SuppressWarnings("unchecked")
public VehicleDataResult getFuelRange() {
@@ -463,8 +512,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets turnSignal
* @param turnSignal a VehicleDataResult related to the turn signal status
*/
- public void setTurnSignal(VehicleDataResult turnSignal) {
+ public SubscribeVehicleDataResponse setTurnSignal( VehicleDataResult turnSignal) {
setParameters(KEY_TURN_SIGNAL, turnSignal);
+ return this;
}
/**
@@ -480,8 +530,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets electronicParkBrakeStatus
* @param electronicParkBrakeStatus a VehicleDataResult related to the electronic park brake status
*/
- public void setElectronicParkBrakeStatus(VehicleDataResult electronicParkBrakeStatus){
+ public SubscribeVehicleDataResponse setElectronicParkBrakeStatus( VehicleDataResult electronicParkBrakeStatus) {
setParameters(KEY_ELECTRONIC_PARK_BRAKE_STATUS, electronicParkBrakeStatus);
+ return this;
}
/**
@@ -496,8 +547,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* Sets cloudAppVehicleID
* @param cloudAppVehicleID a VehicleDataResult related to the cloud app vehicle ID
*/
- public void setCloudAppVehicleID(VehicleDataResult cloudAppVehicleID){
+ public SubscribeVehicleDataResponse setCloudAppVehicleID( VehicleDataResult cloudAppVehicleID) {
setParameters(KEY_CLOUD_APP_VEHICLE_ID, cloudAppVehicleID);
+ return this;
}
/**
@@ -513,8 +565,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* @param vehicleDataName a String value
* @param vehicleDataState a VehicleDataResult value
*/
- public void setOEMCustomVehicleData(String vehicleDataName, VehicleDataResult vehicleDataState){
+ public SubscribeVehicleDataResponse setOEMCustomVehicleData( String vehicleDataName, VehicleDataResult vehicleDataState) {
setParameters(vehicleDataName, vehicleDataState);
+ return this;
}
/**
@@ -531,8 +584,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* @param handsOffSteering To indicate whether driver hands are off the steering wheel
* @since SmartDeviceLink 7.0.0
*/
- public void setHandsOffSteering(VehicleDataResult handsOffSteering) {
+ public SubscribeVehicleDataResponse setHandsOffSteering( VehicleDataResult handsOffSteering) {
setParameters(KEY_HANDS_OFF_STEERING, handsOffSteering);
+ return this;
}
/**
@@ -550,8 +604,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* @param gearStatus See GearStatus
* @since SmartDeviceLink 7.0.0
*/
- public void setGearStatus(VehicleDataResult gearStatus){
+ public SubscribeVehicleDataResponse setGearStatus( VehicleDataResult gearStatus) {
setParameters(KEY_GEAR_STATUS, gearStatus);
+ return this;
}
/**
@@ -571,8 +626,9 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
* @param windowStatus See WindowStatus
* @since SmartDeviceLink 7.0.0
*/
- public void setWindowStatus(VehicleDataResult windowStatus) {
+ public SubscribeVehicleDataResponse setWindowStatus( VehicleDataResult windowStatus) {
setParameters(KEY_WINDOW_STATUS, windowStatus);
+ return this;
}
/**
@@ -584,4 +640,25 @@ public class SubscribeVehicleDataResponse extends RPCResponse {
public VehicleDataResult getWindowStatus() {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_WINDOW_STATUS);
}
+
+ /**
+ * Gets the stabilityControlsStatus.
+ *
+ * @return VehicleDataResult See StabilityControlsStatus
+ * @since SmartDeviceLink 7.0.0
+ */
+ public VehicleDataResult getStabilityControlsStatus() {
+ return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_STABILITY_CONTROLS_STATUS);
+ }
+
+ /**
+ * Sets the stabilityControlsStatus.
+ *
+ * @param stabilityControlsStatus See StabilityControlsStatus
+ * @since SmartDeviceLink 7.0.0
+ */
+ public SubscribeVehicleDataResponse setStabilityControlsStatus( VehicleDataResult stabilityControlsStatus) {
+ setParameters(KEY_STABILITY_CONTROLS_STATUS, stabilityControlsStatus);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SubtleAlert.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SubtleAlert.java
index 42752ff8d..a3b96e4ec 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SubtleAlert.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SubtleAlert.java
@@ -142,8 +142,9 @@ public class SubtleAlert extends RPCRequest {
*
* @param alertText1 The first line of the alert text field
*/
- public void setAlertText1(String alertText1) {
+ public SubtleAlert setAlertText1( String alertText1) {
setParameters(KEY_ALERT_TEXT_1, alertText1);
+ return this;
}
/**
@@ -160,8 +161,9 @@ public class SubtleAlert extends RPCRequest {
*
* @param alertText2 The second line of the alert text field
*/
- public void setAlertText2(String alertText2) {
+ public SubtleAlert setAlertText2( String alertText2) {
setParameters(KEY_ALERT_TEXT_2, alertText2);
+ return this;
}
/**
@@ -179,8 +181,9 @@ public class SubtleAlert extends RPCRequest {
* @param alertIcon Image to be displayed for the corresponding alert. See Image. If omitted on supported
* displays, no (or the default if applicable) icon should be displayed.
*/
- public void setAlertIcon(Image alertIcon) {
+ public SubtleAlert setAlertIcon( Image alertIcon) {
setParameters(KEY_ALERT_ICON, alertIcon);
+ return this;
}
/**
@@ -199,8 +202,9 @@ public class SubtleAlert extends RPCRequest {
* @param ttsChunks An array of text chunks of type TTSChunk. See TTSChunk. The array must have at least one
* item.
*/
- public void setTtsChunks(List<TTSChunk> ttsChunks) {
+ public SubtleAlert setTtsChunks( List<TTSChunk> ttsChunks) {
setParameters(KEY_TTS_CHUNKS, ttsChunks);
+ return this;
}
/**
@@ -220,8 +224,9 @@ public class SubtleAlert extends RPCRequest {
* @param duration Timeout in milliseconds. Typical timeouts are 3-5 seconds. If omitted, timeout is set to
* 5s.
*/
- public void setDuration(Integer duration) {
+ public SubtleAlert setDuration( Integer duration) {
setParameters(KEY_DURATION, duration);
+ return this;
}
/**
@@ -240,8 +245,9 @@ public class SubtleAlert extends RPCRequest {
* @param softButtons App defined SoftButtons. If omitted on supported displays, the displayed alert shall not
* have any SoftButtons.
*/
- public void setSoftButtons(List<SoftButton> softButtons) {
+ public SubtleAlert setSoftButtons( List<SoftButton> softButtons) {
setParameters(KEY_SOFT_BUTTONS, softButtons);
+ return this;
}
/**
@@ -260,8 +266,9 @@ public class SubtleAlert extends RPCRequest {
*
* @param cancelID An ID for this specific alert to allow cancellation through the `CancelInteraction` RPC.
*/
- public void setCancelID(Integer cancelID) {
+ public SubtleAlert setCancelID( Integer cancelID) {
setParameters(KEY_CANCEL_ID, cancelID);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SubtleAlertResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SubtleAlertResponse.java
index a15dbe13b..9e1e5b2c3 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SubtleAlertResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SubtleAlertResponse.java
@@ -80,8 +80,9 @@ public class SubtleAlertResponse extends RPCResponse {
* If provided, another system event or overlay currently has a higher priority than this alert.
* An app must not send an alert without waiting at least the amount of time dictated.
*/
- public void setTryAgainTime(Integer tryAgainTime) {
+ public SubtleAlertResponse setTryAgainTime( Integer tryAgainTime) {
setParameters(KEY_TRY_AGAIN_TIME, tryAgainTime);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SystemCapability.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SystemCapability.java
index 470321627..6ae6fa914 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SystemCapability.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SystemCapability.java
@@ -79,8 +79,9 @@ public class SystemCapability extends RPCStruct {
/**
* @param value Set the SystemCapabilityType that indicates which type of data should be changed and identifies which data object exists in this struct.
*/
- public void setSystemCapabilityType(@NonNull SystemCapabilityType value){
+ public SystemCapability setSystemCapabilityType(@NonNull SystemCapabilityType value) {
setValue(KEY_SYSTEM_CAPABILITY_TYPE, value);
+ return this;
}
public Object getCapabilityForType(SystemCapabilityType type) {
@@ -107,9 +108,9 @@ public class SystemCapability extends RPCStruct {
}
}
- public void setCapabilityForType(SystemCapabilityType type, Object capability) {
+ public SystemCapability setCapabilityForType( SystemCapabilityType type, Object capability) {
if (type == null) {
- return;
+ return this;
} else if (type.equals(SystemCapabilityType.NAVIGATION)) {
setValue(KEY_NAVIGATION_CAPABILITY, capability);
} else if (type.equals(SystemCapabilityType.PHONE_CALL)) {
@@ -127,8 +128,9 @@ public class SystemCapability extends RPCStruct {
} else if (type.equals(SystemCapabilityType.DRIVER_DISTRACTION)) {
setValue(KEY_DRIVER_DISTRACTION_CAPABILITY, capability);
} else {
- return;
+ return this;
}
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/SystemRequest.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/SystemRequest.java
index 5c02cfe7d..839d49953 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/SystemRequest.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/SystemRequest.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -118,31 +118,35 @@ public class SystemRequest extends RPCRequest {
return (List<String>) getObject(String.class, KEY_DATA);
}
- public void setLegacyData( List<String> data ) {
+ public SystemRequest setLegacyData( List<String> data) {
setParameters(KEY_DATA, data);
- }
+ return this;
+ }
public String getFileName() {
return getString(KEY_FILE_NAME);
}
- public void setFileName(String fileName) {
+ public SystemRequest setFileName( String fileName) {
setParameters(KEY_FILE_NAME, fileName);
- }
+ return this;
+ }
public RequestType getRequestType() {
return (RequestType) getObject(RequestType.class, KEY_REQUEST_TYPE);
}
- public void setRequestType(@NonNull RequestType requestType) {
+ public SystemRequest setRequestType(@NonNull RequestType requestType) {
setParameters(KEY_REQUEST_TYPE, requestType);
+ return this;
}
public String getRequestSubType() {
return getString(KEY_REQUEST_SUB_TYPE);
}
- public void setRequestSubType(String requestSubType) {
+ public SystemRequest setRequestSubType( String requestSubType) {
setParameters(KEY_REQUEST_SUB_TYPE, requestSubType);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/TTSChunk.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/TTSChunk.java
index fbd526b30..9eed92f3f 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/TTSChunk.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/TTSChunk.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -105,9 +105,10 @@ public class TTSChunk extends RPCStruct {
/**
* Set the text to be spoken, or a phoneme specification, or the name of a pre-recorded sound. The contents of this field are indicated by the "type" field.
* @param text to be spoken, or a phoneme specification, or the name of a pre-recorded sound.
- */
- public void setText(@NonNull String text ) {
+ */
+ public TTSChunk setText(@NonNull String text) {
setValue(KEY_TEXT, text);
+ return this;
}
/**
* Get the type of information in the "text" field (e.g. phrase to be spoken, phoneme specification, name of pre-recorded sound).
@@ -117,10 +118,11 @@ public class TTSChunk extends RPCStruct {
return (SpeechCapabilities) getObject(SpeechCapabilities.class, KEY_TYPE);
}
/**
- * Set the type of information in the "text" field (e.g. phrase to be spoken, phoneme specification, name of pre-recorded sound).
+ * Set the type of information in the "text" field (e.g. phrase to be spoken, phoneme specification, name of pre-recorded sound).
* @param type the type of information in the "text" field
- */
- public void setType(@NonNull SpeechCapabilities type ) {
+ */
+ public TTSChunk setType(@NonNull SpeechCapabilities type) {
setValue(KEY_TYPE, type);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/Temperature.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/Temperature.java
index c2c809f13..9bd23d4a0 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/Temperature.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/Temperature.java
@@ -65,8 +65,9 @@ public class Temperature extends RPCStruct{
* @param unit
* Temperature Unit.
*/
- public void setUnit(@NonNull TemperatureUnit unit) {
+ public Temperature setUnit(@NonNull TemperatureUnit unit) {
setValue(KEY_UNIT, unit);
+ return this;
}
/**
@@ -94,7 +95,8 @@ public class Temperature extends RPCStruct{
* @param value
* Temperature Value in TemperatureUnit specified unit. Range depends on OEM and is not checked by SDL.
*/
- public void setValue(@NonNull Float value) {
+ public Temperature setValue(@NonNull Float value) {
setValue(KEY_VALUE, value);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/TemplateColorScheme.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/TemplateColorScheme.java
index aa2e2b2f6..e65f25659 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/TemplateColorScheme.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/TemplateColorScheme.java
@@ -94,8 +94,9 @@ public class TemplateColorScheme extends RPCStruct {
* Sets the primaryColor of the scheme
* @param color an RGBColor object representing the primaryColor
*/
- public void setPrimaryColor(RGBColor color) {
+ public TemplateColorScheme setPrimaryColor( RGBColor color) {
setValue(KEY_PRIMARY_COLOR, color);
+ return this;
}
/**
@@ -110,8 +111,9 @@ public class TemplateColorScheme extends RPCStruct {
* Sets the secondaryColor of the scheme
* @param color an RGBColor object representing the secondaryColor
*/
- public void setSecondaryColor(RGBColor color) {
+ public TemplateColorScheme setSecondaryColor( RGBColor color) {
setValue(KEY_SECONDARY_COLOR, color);
+ return this;
}
/**
@@ -126,8 +128,9 @@ public class TemplateColorScheme extends RPCStruct {
* Sets the backgroundColor of the scheme
* @param color an RGBColor object representing the backgroundColor
*/
- public void setBackgroundColor(RGBColor color) {
+ public TemplateColorScheme setBackgroundColor( RGBColor color) {
setValue(KEY_BACKGROUND_COLOR, color);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/TemplateConfiguration.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/TemplateConfiguration.java
index c82b4c481..edaf224e5 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/TemplateConfiguration.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/TemplateConfiguration.java
@@ -55,8 +55,9 @@ public class TemplateConfiguration extends RPCStruct {
*
* @param template Predefined or dynamically created window template. Currently only predefined window template layouts are defined.
*/
- public void setTemplate(@NonNull String template) {
+ public TemplateConfiguration setTemplate(@NonNull String template) {
setValue(KEY_TEMPLATE, template);
+ return this;
}
/**
@@ -74,8 +75,9 @@ public class TemplateConfiguration extends RPCStruct {
*
* @param dayColorScheme TemplateColorScheme for the day
*/
- public void setDayColorScheme(TemplateColorScheme dayColorScheme) {
+ public TemplateConfiguration setDayColorScheme( TemplateColorScheme dayColorScheme) {
setValue(KEY_DAY_COLOR_SCHEME, dayColorScheme);
+ return this;
}
/**
@@ -93,7 +95,8 @@ public class TemplateConfiguration extends RPCStruct {
*
* @param nightColorScheme TemplateColorScheme for the night
*/
- public void setNightColorScheme(TemplateColorScheme nightColorScheme) {
+ public TemplateConfiguration setNightColorScheme( TemplateColorScheme nightColorScheme) {
setValue(KEY_NIGHT_COLOR_SCHEME, nightColorScheme);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/TextField.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/TextField.java
index dc9907bad..317138936 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/TextField.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/TextField.java
@@ -135,11 +135,12 @@ public class TextField extends RPCStruct {
return (TextFieldName) getObject(TextFieldName.class, KEY_NAME);
}
/**
- * Set the enumeration identifying the field.
+ * Set the enumeration identifying the field.
* @param name the name of TextField
- */
- public void setName(@NonNull TextFieldName name ) {
+ */
+ public TextField setName(@NonNull TextFieldName name) {
setValue(KEY_NAME, name);
+ return this;
}
/**
* Get the character set that is supported in this field.
@@ -155,9 +156,10 @@ public class TextField extends RPCStruct {
* @param characterSet - The set of characters that are supported by this text field.
* All text is sent in UTF-8 format, but not all systems may support all of the characters expressed by UTF-8.
* All systems will support at least ASCII, but they may support more, either the LATIN-1 character set, or the full UTF-8 character set.
- */
- public void setCharacterSet(@NonNull CharacterSet characterSet ) {
+ */
+ public TextField setCharacterSet(@NonNull CharacterSet characterSet) {
setValue(KEY_CHARACTER_SET, characterSet);
+ return this;
}
/**
* Get the number of characters in one row of this field.
@@ -177,9 +179,10 @@ public class TextField extends RPCStruct {
* <li>maxvalue="500"</li>
* </ul>
* @param width the number of characters in one row of this field
- */
- public void setWidth(@NonNull Integer width ) {
+ */
+ public TextField setWidth(@NonNull Integer width) {
setValue(KEY_WIDTH, width);
+ return this;
}
/**
*Get the number of rows for this text field.
@@ -192,7 +195,8 @@ public class TextField extends RPCStruct {
public Integer getRows() {
return getInteger( KEY_ROWS );
}
- public void setRows(@NonNull Integer rows ) {
+ public TextField setRows(@NonNull Integer rows) {
setValue(KEY_ROWS, rows);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/TireStatus.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/TireStatus.java
index c5e2626b8..92c524b79 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/TireStatus.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/TireStatus.java
@@ -141,49 +141,56 @@ public class TireStatus extends RPCStruct {
setInnerRightRear(innerRightRear);
}
- public void setPressureTellTale(@NonNull WarningLightStatus pressureTellTale) {
- setValue(KEY_PRESSURE_TELL_TALE, pressureTellTale);
+ public TireStatus setPressureTellTale(@NonNull WarningLightStatus pressureTellTale) {
+ setValue(KEY_PRESSURE_TELL_TALE, pressureTellTale);
+ return this;
}
public WarningLightStatus getPressureTellTale() {
return (WarningLightStatus) getObject(WarningLightStatus.class, KEY_PRESSURE_TELL_TALE);
}
- public void setLeftFront(@NonNull SingleTireStatus leftFront) {
- setValue(KEY_LEFT_FRONT, leftFront);
+ public TireStatus setLeftFront(@NonNull SingleTireStatus leftFront) {
+ setValue(KEY_LEFT_FRONT, leftFront);
+ return this;
}
@SuppressWarnings("unchecked")
public SingleTireStatus getLeftFront() {
return (SingleTireStatus) getObject(SingleTireStatus.class, KEY_LEFT_FRONT);
}
- public void setRightFront(@NonNull SingleTireStatus rightFront) {
- setValue(KEY_RIGHT_FRONT, rightFront);
+ public TireStatus setRightFront(@NonNull SingleTireStatus rightFront) {
+ setValue(KEY_RIGHT_FRONT, rightFront);
+ return this;
}
@SuppressWarnings("unchecked")
public SingleTireStatus getRightFront() {
return (SingleTireStatus) getObject(SingleTireStatus.class, KEY_RIGHT_FRONT);
}
- public void setLeftRear(@NonNull SingleTireStatus leftRear) {
- setValue(KEY_LEFT_REAR, leftRear);
+ public TireStatus setLeftRear(@NonNull SingleTireStatus leftRear) {
+ setValue(KEY_LEFT_REAR, leftRear);
+ return this;
}
@SuppressWarnings("unchecked")
public SingleTireStatus getLeftRear() {
return (SingleTireStatus) getObject(SingleTireStatus.class, KEY_LEFT_REAR);
}
- public void setRightRear(@NonNull SingleTireStatus rightRear) {
- setValue(KEY_RIGHT_REAR, rightRear);
+ public TireStatus setRightRear(@NonNull SingleTireStatus rightRear) {
+ setValue(KEY_RIGHT_REAR, rightRear);
+ return this;
}
@SuppressWarnings("unchecked")
public SingleTireStatus getRightRear() {
return (SingleTireStatus) getObject(SingleTireStatus.class, KEY_RIGHT_REAR);
}
- public void setInnerLeftRear(@NonNull SingleTireStatus innerLeftRear) {
- setValue(KEY_INNER_LEFT_REAR, innerLeftRear);
+ public TireStatus setInnerLeftRear(@NonNull SingleTireStatus innerLeftRear) {
+ setValue(KEY_INNER_LEFT_REAR, innerLeftRear);
+ return this;
}
@SuppressWarnings("unchecked")
public SingleTireStatus getInnerLeftRear() {
return (SingleTireStatus) getObject(SingleTireStatus.class, KEY_INNER_LEFT_REAR);
}
- public void setInnerRightRear(@NonNull SingleTireStatus innerRightRear) {
- setValue(KEY_INNER_RIGHT_REAR, innerRightRear);
+ public TireStatus setInnerRightRear(@NonNull SingleTireStatus innerRightRear) {
+ setValue(KEY_INNER_RIGHT_REAR, innerRightRear);
+ return this;
}
@SuppressWarnings("unchecked")
public SingleTireStatus getInnerRightRear() {
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/TouchCoord.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/TouchCoord.java
index 3e33369cf..c2f71e09e 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/TouchCoord.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/TouchCoord.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -101,16 +101,18 @@ public class TouchCoord extends RPCStruct {
setY(y);
}
- public void setX(@NonNull Integer x) {
+ public TouchCoord setX(@NonNull Integer x) {
setValue(KEY_X, x);
+ return this;
}
public Integer getX() {
return getInteger(KEY_X);
}
- public void setY(@NonNull Integer y) {
+ public TouchCoord setY(@NonNull Integer y) {
setValue(KEY_Y, y);
+ return this;
}
public Integer getY() {
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/TouchEvent.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/TouchEvent.java
index 47f29c0b1..55bb75249 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/TouchEvent.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/TouchEvent.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -116,8 +116,9 @@ public class TouchEvent extends RPCStruct {
setTouchCoordinates(c);
}
- public void setId(@NonNull Integer id) {
+ public TouchEvent setId(@NonNull Integer id) {
setValue(KEY_ID, id);
+ return this;
}
public Integer getId() {
@@ -156,18 +157,20 @@ public class TouchEvent extends RPCStruct {
return null;
}
- public void setTimestamps(@NonNull List<Long> ts){
+ public TouchEvent setTimestamps(@NonNull List<Long> ts) {
setValue(KEY_TS, ts);
+ return this;
}
/**
- * Use setTimestamps.
+ * Use setTimestamps.
* @deprecated 4.0.2
* @param ts
*/
@Deprecated
- public void setTs(List<Long> ts) {
- setTimestamps(ts);
+ public TouchEvent setTs( List<Long> ts) {
+ setTimestamps(ts);
+ return this;
}
/**
@@ -190,11 +193,13 @@ public class TouchEvent extends RPCStruct {
* @return
*/
@Deprecated
- public void setC( List<TouchCoord> c ) {
- setTouchCoordinates(c);
+ public TouchEvent setC( List<TouchCoord> c) {
+ setTouchCoordinates(c);
+ return this;
}
- public void setTouchCoordinates(@NonNull List<TouchCoord> c ) {
+ public TouchEvent setTouchCoordinates(@NonNull List<TouchCoord> c) {
setValue(KEY_C, c);
- }
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/TouchEventCapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/TouchEventCapabilities.java
index 423ae4fa2..cb455bf59 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/TouchEventCapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/TouchEventCapabilities.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -99,24 +99,27 @@ public class TouchEventCapabilities extends RPCStruct {
setDoublePressAvailable(doublePressAvailable);
}
- public void setPressAvailable(@NonNull Boolean pressAvailable) {
+ public TouchEventCapabilities setPressAvailable(@NonNull Boolean pressAvailable) {
setValue(KEY_PRESS_AVAILABLE, pressAvailable);
+ return this;
}
public Boolean getPressAvailable() {
return getBoolean(KEY_PRESS_AVAILABLE);
}
- public void setMultiTouchAvailable(@NonNull Boolean multiTouchAvailable) {
+ public TouchEventCapabilities setMultiTouchAvailable(@NonNull Boolean multiTouchAvailable) {
setValue(KEY_MULTI_TOUCH_AVAILABLE, multiTouchAvailable);
+ return this;
}
public Boolean getMultiTouchAvailable() {
return getBoolean(KEY_MULTI_TOUCH_AVAILABLE);
}
- public void setDoublePressAvailable(@NonNull Boolean doublePressAvailable) {
+ public TouchEventCapabilities setDoublePressAvailable(@NonNull Boolean doublePressAvailable) {
setValue(KEY_DOUBLE_PRESS_AVAILABLE, doublePressAvailable);
+ return this;
}
public Boolean getDoublePressAvailable() {
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/Turn.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/Turn.java
index 0498023ea..d282e6200 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/Turn.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/Turn.java
@@ -77,12 +77,13 @@ public class Turn extends RPCStruct{
/**
* set the text to describe the turn (e.g. streetname)
- *
+ *
* @param navigationText
* the text to describe the turn (e.g. streetname)
*/
- public void setNavigationText(String navigationText){
+ public Turn setNavigationText( String navigationText) {
setValue(KEY_NAVIGATION_TEXT, navigationText);
+ return this;
}
/**
@@ -96,12 +97,13 @@ public class Turn extends RPCStruct{
/**
* set Image to be shown for a turn
- *
+ *
* @param turnIcon
* the image to be shown for a turn
*/
- public void setTurnIcon(Image turnIcon){
+ public Turn setTurnIcon( Image turnIcon) {
setValue(KEY_TURN_IMAGE, turnIcon);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/UnpublishAppService.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/UnpublishAppService.java
index 6e509fe1f..60a59f77b 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/UnpublishAppService.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/UnpublishAppService.java
@@ -80,9 +80,10 @@ public class UnpublishAppService extends RPCRequest {
* The ID of the service to be unpublished.
* @param serviceID - set the service ID for the service to be unpublished
*/
- public void setServiceID(String serviceID){
- setParameters(KEY_SERVICE_ID, serviceID);
- }
+ public UnpublishAppService setServiceID( String serviceID) {
+ setParameters(KEY_SERVICE_ID, serviceID);
+ return this;
+ }
/**
* The ID of the service to be unpublished.
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/UnsubscribeButton.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/UnsubscribeButton.java
index 48c287ea8..87dcc9cfb 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/UnsubscribeButton.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/UnsubscribeButton.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -121,10 +121,11 @@ public class UnsubscribeButton extends RPCRequest {
}
/**
* Sets the name of the button to unsubscribe from
- *
- * @param buttonName an enum value, see <i> {@linkplain com.smartdevicelink.proxy.rpc.enums.ButtonName}</i>
+ *
+ * @param buttonName an enum value, see <i> {@linkplain ButtonName}</i>
*/
- public void setButtonName(@NonNull ButtonName buttonName ) {
- setParameters(KEY_BUTTON_NAME, buttonName);
+ public UnsubscribeButton setButtonName(@NonNull ButtonName buttonName) {
+ setParameters(KEY_BUTTON_NAME, buttonName);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/UnsubscribeVehicleData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/UnsubscribeVehicleData.java
index 5a998a268..8e7adb2d2 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/UnsubscribeVehicleData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/UnsubscribeVehicleData.java
@@ -79,18 +79,26 @@ import java.util.Hashtable;
* <tr>
* <td>fuelLevel</td>
* <td>Boolean</td>
- * <td>The fuel level in the tank (percentage)</td>
+ * <td>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec7.0, please see fuelRange.</td>
* <td>N</td>
* <td>Subscribable</td>
- * <td>SmartDeviceLink 2.0 </td>
+ * <td>SmartDeviceLink 7.0.0</td>
* </tr>
* <tr>
* <td>fuelLevel_State</td>
* <td>Boolean</td>
- * <td>The fuel level state</td>
+ * <td>The fuel level state. This parameter is deprecated starting RPC Spec 7.0, please seefuelRange.</td>
* <td>N</td>
* <td>Subscribable</td>
- * <td>SmartDeviceLink 2.0 </td>
+ * <td>SmartDeviceLink 7.0.0</td>
+ * </tr>
+ * <tr>
+ * <td>fuelRange</td>
+ * <td>Boolean</td>
+ * <td>The fuel type, estimated range in KM, fuel level/capacity and fuel level state for thevehicle. See struct FuelRange for details.</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 5.0.0</td>
* </tr>
* <tr>
* <td>instantFuelConsumption</td>
@@ -280,6 +288,15 @@ import java.util.Hashtable;
* <td>N</td>
* <td>SmartDeviceLink 7.0.0</td>
* </tr>
+ * <tr>
+ * <td>stabilityControlsStatus</td>
+ * <td>Boolean</td>
+ * <td>See StabilityControlsStatus</td>
+ * <td>N</td>
+ * <td>SmartDeviceLink 7.0.0</td>
+ * </tr>
+ *
+
* </table>
* <p><b> Response</b></p>
* <p><b>Non-default Result Codes:</b></p>
@@ -301,14 +318,12 @@ public class UnsubscribeVehicleData extends RPCRequest {
public static final String KEY_SPEED = "speed";
public static final String KEY_RPM = "rpm";
public static final String KEY_EXTERNAL_TEMPERATURE = "externalTemperature";
- public static final String KEY_FUEL_LEVEL = "fuelLevel";
public static final String KEY_PRNDL = "prndl";
public static final String KEY_TIRE_PRESSURE = "tirePressure";
public static final String KEY_ENGINE_TORQUE = "engineTorque";
public static final String KEY_ENGINE_OIL_LIFE = "engineOilLife";
public static final String KEY_ODOMETER = "odometer";
public static final String KEY_GPS = "gps";
- public static final String KEY_FUEL_LEVEL_STATE = "fuelLevel_State";
public static final String KEY_INSTANT_FUEL_CONSUMPTION = "instantFuelConsumption";
public static final String KEY_BELT_STATUS = "beltStatus";
public static final String KEY_BODY_INFORMATION = "bodyInformation";
@@ -330,6 +345,17 @@ public class UnsubscribeVehicleData extends RPCRequest {
public static final String KEY_HANDS_OFF_STEERING = "handsOffSteering";
public static final String KEY_GEAR_STATUS = "gearStatus";
public static final String KEY_WINDOW_STATUS = "windowStatus";
+ /**
+ * @deprecated
+ */
+ @Deprecated
+ public static final String KEY_FUEL_LEVEL = "fuelLevel";
+ /**
+ * @deprecated
+ */
+ @Deprecated
+ public static final String KEY_FUEL_LEVEL_STATE = "fuelLevel_State";
+ public static final String KEY_STABILITY_CONTROLS_STATUS = "stabilityControlsStatus";
/**
* Constructs a new UnsubscribeVehicleData object
@@ -352,12 +378,13 @@ public class UnsubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, unsubscribes from Gps data
- *
+ *
* @param gps
* a boolean value
*/
- public void setGps(Boolean gps) {
- setParameters(KEY_GPS, gps);
+ public UnsubscribeVehicleData setGps( Boolean gps) {
+ setParameters(KEY_GPS, gps);
+ return this;
}
/**
@@ -372,12 +399,13 @@ public class UnsubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, unsubscribes from speed data
- *
+ *
* @param speed
* a boolean value
*/
- public void setSpeed(Boolean speed) {
- setParameters(KEY_SPEED, speed);
+ public UnsubscribeVehicleData setSpeed( Boolean speed) {
+ setParameters(KEY_SPEED, speed);
+ return this;
}
/**
@@ -392,12 +420,13 @@ public class UnsubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, unsubscribe data
- *
+ *
* @param rpm
* a boolean value
*/
- public void setRpm(Boolean rpm) {
- setParameters(KEY_RPM, rpm);
+ public UnsubscribeVehicleData setRpm( Boolean rpm) {
+ setParameters(KEY_RPM, rpm);
+ return this;
}
/**
@@ -411,55 +440,62 @@ public class UnsubscribeVehicleData extends RPCRequest {
}
/**
- * Sets a boolean value. If true, unsubscribes from FuelLevel data
- *
- * @param fuelLevel
- * a boolean value
+ * Sets the fuelLevel.
+ *
+ * @param fuelLevel The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec
+ * 7.0, please see fuelRange.
*/
- public void setFuelLevel(Boolean fuelLevel) {
- setParameters(KEY_FUEL_LEVEL, fuelLevel);
+ @Deprecated
+ public UnsubscribeVehicleData setFuelLevel( Boolean fuelLevel) {
+ setParameters(KEY_FUEL_LEVEL, fuelLevel);
+ return this;
}
/**
- * Gets a boolean value. If true, means the FuelLevel data has been
- * unsubscribed.
+ * Gets the fuelLevel.
*
- * @return Boolean -a Boolean value. If true, means the FuelLevel data has
- * been unsubscribed.
+ * @return Boolean The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec
+ * 7.0, please see fuelRange.
*/
+ @Deprecated
public Boolean getFuelLevel() {
return getBoolean(KEY_FUEL_LEVEL);
}
- /**
- * Sets a boolean value. If true, unsubscribes from fuelLevelState data
- *
- * @param fuelLevelState
- * a boolean value
- */
- public void setFuelLevelState(Boolean fuelLevelState) {
- setParameters(KEY_FUEL_LEVEL_STATE, fuelLevelState);
+ /**
+ * Sets the fuelRange.
+ *
+ * @param fuelLevelState The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the
+ * vehicle. See struct FuelRange for details.
+ * @since SmartDeviceLink 5.0.0
+ */
+ @Deprecated
+ public UnsubscribeVehicleData setFuelLevelState( Boolean fuelLevelState) {
+ setParameters(KEY_FUEL_LEVEL_STATE, fuelLevelState);
+ return this;
}
- /**
- * Gets a boolean value. If true, means the fuelLevel_State data has been
- * unsubscribed.
- *
- * @return Boolean -a Boolean value. If true, means the fuelLevelState data
- * has been unsubscribed.
- */
+ /**
+ * Gets the fuelRange.
+ *
+ * @return Boolean The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the
+ * vehicle. See struct FuelRange for details.
+ * @since SmartDeviceLink 5.0.0
+ */
+ @Deprecated
public Boolean getFuelLevelState() {
return getBoolean(KEY_FUEL_LEVEL_STATE);
}
/**
* Sets a boolean value. If true, unsubscribes from instantFuelConsumption data
- *
+ *
* @param instantFuelConsumption
* a boolean value
*/
- public void setInstantFuelConsumption(Boolean instantFuelConsumption) {
- setParameters(KEY_INSTANT_FUEL_CONSUMPTION, instantFuelConsumption);
+ public UnsubscribeVehicleData setInstantFuelConsumption( Boolean instantFuelConsumption) {
+ setParameters(KEY_INSTANT_FUEL_CONSUMPTION, instantFuelConsumption);
+ return this;
}
/**
@@ -475,12 +511,13 @@ public class UnsubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, unsubscribes from externalTemperature data
- *
+ *
* @param externalTemperature
* a boolean value
*/
- public void setExternalTemperature(Boolean externalTemperature) {
- setParameters(KEY_EXTERNAL_TEMPERATURE, externalTemperature);
+ public UnsubscribeVehicleData setExternalTemperature( Boolean externalTemperature) {
+ setParameters(KEY_EXTERNAL_TEMPERATURE, externalTemperature);
+ return this;
}
/**
@@ -501,8 +538,9 @@ public class UnsubscribeVehicleData extends RPCRequest {
* @deprecated in SmartDeviceLink 7.0.0
*/
@Deprecated
- public void setPrndl(Boolean prndl) {
+ public UnsubscribeVehicleData setPrndl( Boolean prndl) {
setParameters(KEY_PRNDL, prndl);
+ return this;
}
/**
@@ -518,12 +556,13 @@ public class UnsubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, unsubscribes from tire pressure status data
- *
+ *
* @param tirePressure
* a boolean value
*/
- public void setTirePressure(Boolean tirePressure) {
- setParameters(KEY_TIRE_PRESSURE, tirePressure);
+ public UnsubscribeVehicleData setTirePressure( Boolean tirePressure) {
+ setParameters(KEY_TIRE_PRESSURE, tirePressure);
+ return this;
}
/**
@@ -539,12 +578,13 @@ public class UnsubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, unsubscribes from odometer data
- *
+ *
* @param odometer
* a boolean value
*/
- public void setOdometer(Boolean odometer) {
- setParameters(KEY_ODOMETER, odometer);
+ public UnsubscribeVehicleData setOdometer( Boolean odometer) {
+ setParameters(KEY_ODOMETER, odometer);
+ return this;
}
/**
@@ -560,12 +600,13 @@ public class UnsubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, unsubscribes from belt Status data
- *
+ *
* @param beltStatus
* a boolean value
*/
- public void setBeltStatus(Boolean beltStatus) {
- setParameters(KEY_BELT_STATUS, beltStatus);
+ public UnsubscribeVehicleData setBeltStatus( Boolean beltStatus) {
+ setParameters(KEY_BELT_STATUS, beltStatus);
+ return this;
}
/**
@@ -581,12 +622,13 @@ public class UnsubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, unsubscribes from body Information data
- *
+ *
* @param bodyInformation
* a boolean value
*/
- public void setBodyInformation(Boolean bodyInformation) {
- setParameters(KEY_BODY_INFORMATION, bodyInformation);
+ public UnsubscribeVehicleData setBodyInformation( Boolean bodyInformation) {
+ setParameters(KEY_BODY_INFORMATION, bodyInformation);
+ return this;
}
/**
@@ -602,12 +644,13 @@ public class UnsubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, unsubscribes from device Status data
- *
+ *
* @param deviceStatus
* a boolean value
*/
- public void setDeviceStatus(Boolean deviceStatus) {
- setParameters(KEY_DEVICE_STATUS, deviceStatus);
+ public UnsubscribeVehicleData setDeviceStatus( Boolean deviceStatus) {
+ setParameters(KEY_DEVICE_STATUS, deviceStatus);
+ return this;
}
/**
@@ -623,12 +666,13 @@ public class UnsubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, unsubscribes from driver Braking data
- *
+ *
* @param driverBraking
* a boolean value
*/
- public void setDriverBraking(Boolean driverBraking) {
- setParameters(KEY_DRIVER_BRAKING, driverBraking);
+ public UnsubscribeVehicleData setDriverBraking( Boolean driverBraking) {
+ setParameters(KEY_DRIVER_BRAKING, driverBraking);
+ return this;
}
/**
@@ -644,12 +688,13 @@ public class UnsubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, unsubscribes from wiper Status data
- *
+ *
* @param wiperStatus
* a boolean value
*/
- public void setWiperStatus(Boolean wiperStatus) {
- setParameters(KEY_WIPER_STATUS, wiperStatus);
+ public UnsubscribeVehicleData setWiperStatus( Boolean wiperStatus) {
+ setParameters(KEY_WIPER_STATUS, wiperStatus);
+ return this;
}
/**
@@ -665,12 +710,13 @@ public class UnsubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, unsubscribes from Head Lamp Status data
- *
+ *
* @param headLampStatus
* a boolean value
*/
- public void setHeadLampStatus(Boolean headLampStatus) {
- setParameters(KEY_HEAD_LAMP_STATUS, headLampStatus);
+ public UnsubscribeVehicleData setHeadLampStatus( Boolean headLampStatus) {
+ setParameters(KEY_HEAD_LAMP_STATUS, headLampStatus);
+ return this;
}
/**
@@ -690,9 +736,10 @@ public class UnsubscribeVehicleData extends RPCRequest {
* @param engineTorque
* a boolean value
*/
- public void setEngineTorque(Boolean engineTorque) {
- setParameters(KEY_ENGINE_TORQUE, engineTorque);
- }
+ public UnsubscribeVehicleData setEngineTorque( Boolean engineTorque) {
+ setParameters(KEY_ENGINE_TORQUE, engineTorque);
+ return this;
+ }
/**
* Gets a boolean value. If true, means the Engine Torque data has been
@@ -711,9 +758,10 @@ public class UnsubscribeVehicleData extends RPCRequest {
* @param engineOilLife
* a boolean value
*/
- public void setEngineOilLife(Boolean engineOilLife) {
- setParameters(KEY_ENGINE_OIL_LIFE, engineOilLife);
- }
+ public UnsubscribeVehicleData setEngineOilLife( Boolean engineOilLife) {
+ setParameters(KEY_ENGINE_OIL_LIFE, engineOilLife);
+ return this;
+ }
/**
* Gets a boolean value. If true, means the Engine Oil Life data has been
@@ -729,12 +777,13 @@ public class UnsubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, unsubscribes from accPedalPosition data
- *
+ *
* @param accPedalPosition
* a boolean value
*/
- public void setAccPedalPosition(Boolean accPedalPosition) {
- setParameters(KEY_ACC_PEDAL_POSITION, accPedalPosition);
+ public UnsubscribeVehicleData setAccPedalPosition( Boolean accPedalPosition) {
+ setParameters(KEY_ACC_PEDAL_POSITION, accPedalPosition);
+ return this;
}
/**
@@ -748,40 +797,46 @@ public class UnsubscribeVehicleData extends RPCRequest {
return getBoolean(KEY_ACC_PEDAL_POSITION);
}
- public void setSteeringWheelAngle(Boolean steeringWheelAngle) {
- setParameters(KEY_STEERING_WHEEL_ANGLE, steeringWheelAngle);
+ public UnsubscribeVehicleData setSteeringWheelAngle( Boolean steeringWheelAngle) {
+ setParameters(KEY_STEERING_WHEEL_ANGLE, steeringWheelAngle);
+ return this;
}
public Boolean getSteeringWheelAngle() {
return getBoolean(KEY_STEERING_WHEEL_ANGLE);
}
- public void setECallInfo(Boolean eCallInfo) {
- setParameters(KEY_E_CALL_INFO, eCallInfo);
+ public UnsubscribeVehicleData setECallInfo( Boolean eCallInfo) {
+ setParameters(KEY_E_CALL_INFO, eCallInfo);
+ return this;
}
public Boolean getECallInfo() {
return getBoolean(KEY_E_CALL_INFO);
}
- public void setAirbagStatus(Boolean airbagStatus) {
- setParameters(KEY_AIRBAG_STATUS, airbagStatus);
+ public UnsubscribeVehicleData setAirbagStatus( Boolean airbagStatus) {
+ setParameters(KEY_AIRBAG_STATUS, airbagStatus);
+ return this;
}
public Boolean getAirbagStatus() {
return getBoolean(KEY_AIRBAG_STATUS);
}
- public void setEmergencyEvent(Boolean emergencyEvent) {
- setParameters(KEY_EMERGENCY_EVENT, emergencyEvent);
+ public UnsubscribeVehicleData setEmergencyEvent( Boolean emergencyEvent) {
+ setParameters(KEY_EMERGENCY_EVENT, emergencyEvent);
+ return this;
}
public Boolean getEmergencyEvent() {
return getBoolean(KEY_EMERGENCY_EVENT);
}
- public void setClusterModeStatus(Boolean clusterModeStatus) {
- setParameters(KEY_CLUSTER_MODE_STATUS, clusterModeStatus);
+ public UnsubscribeVehicleData setClusterModeStatus( Boolean clusterModeStatus) {
+ setParameters(KEY_CLUSTER_MODE_STATUS, clusterModeStatus);
+ return this;
}
public Boolean getClusterModeStatus() {
return getBoolean(KEY_CLUSTER_MODE_STATUS);
}
- public void setMyKey(Boolean myKey) {
- setParameters(KEY_MY_KEY, myKey);
+ public UnsubscribeVehicleData setMyKey( Boolean myKey) {
+ setParameters(KEY_MY_KEY, myKey);
+ return this;
}
public Boolean getMyKey() {
return getBoolean(KEY_MY_KEY);
@@ -793,9 +848,10 @@ public class UnsubscribeVehicleData extends RPCRequest {
* @param fuelRange
* a boolean value
*/
- public void setFuelRange(Boolean fuelRange) {
- setParameters(KEY_FUEL_RANGE, fuelRange);
- }
+ public UnsubscribeVehicleData setFuelRange( Boolean fuelRange) {
+ setParameters(KEY_FUEL_RANGE, fuelRange);
+ return this;
+ }
/**
* Gets a boolean value. If true, means the fuelRange data has been
@@ -812,7 +868,10 @@ public class UnsubscribeVehicleData extends RPCRequest {
* Sets a boolean value. If true, unsubscribes from turnSignal data
* @param turnSignal a boolean value
*/
- public void setTurnSignal(Boolean turnSignal) { setParameters(KEY_TURN_SIGNAL, turnSignal); }
+ public UnsubscribeVehicleData setTurnSignal( Boolean turnSignal) {
+ setParameters(KEY_TURN_SIGNAL, turnSignal);
+ return this;
+ }
/**
* Gets a boolean value. If true, means the turnSignal data has been unsubscribed.
@@ -824,9 +883,10 @@ public class UnsubscribeVehicleData extends RPCRequest {
* Sets a boolean value. If true, unsubscribes from electronicParkBrakeStatus data
* @param electronicParkBrakeStatus a boolean value
*/
- public void setElectronicParkBrakeStatus(Boolean electronicParkBrakeStatus) {
- setParameters(KEY_ELECTRONIC_PARK_BRAKE_STATUS, electronicParkBrakeStatus);
- }
+ public UnsubscribeVehicleData setElectronicParkBrakeStatus( Boolean electronicParkBrakeStatus) {
+ setParameters(KEY_ELECTRONIC_PARK_BRAKE_STATUS, electronicParkBrakeStatus);
+ return this;
+ }
/**
* Gets a boolean value. If true, means the electronicParkBrakeStatus data has been subscribed.
@@ -838,11 +898,12 @@ public class UnsubscribeVehicleData extends RPCRequest {
/**
* Sets a boolean value. If true, unsubscribes from cloudAppVehicleID data
- * @param cloudAppVehicleID a boolean value.
+ * @param cloudAppVehicleID a boolean value.
*/
- public void setCloudAppVehicleID(boolean cloudAppVehicleID){
- setParameters(KEY_CLOUD_APP_VEHICLE_ID, cloudAppVehicleID);
- }
+ public UnsubscribeVehicleData setCloudAppVehicleID( boolean cloudAppVehicleID) {
+ setParameters(KEY_CLOUD_APP_VEHICLE_ID, cloudAppVehicleID);
+ return this;
+ }
/**
* Gets a boolean value. If true, means the cloudAppVehicleID data has been unsubscribed.
@@ -857,9 +918,10 @@ public class UnsubscribeVehicleData extends RPCRequest {
* @param vehicleDataName a String value
* @param vehicleDataState a boolean value
*/
- public void setOEMCustomVehicleData(String vehicleDataName, Boolean vehicleDataState){
- setParameters(vehicleDataName, vehicleDataState);
- }
+ public UnsubscribeVehicleData setOEMCustomVehicleData( String vehicleDataName, Boolean vehicleDataState) {
+ setParameters(vehicleDataName, vehicleDataState);
+ return this;
+ }
/**
* Gets a boolean value for OEM Custom VehicleData.
@@ -875,8 +937,9 @@ public class UnsubscribeVehicleData extends RPCRequest {
* @param gearStatus See GearStatus
* @since SmartDeviceLink 7.0.0
*/
- public void setGearStatus(Boolean gearStatus) {
+ public UnsubscribeVehicleData setGearStatus( Boolean gearStatus) {
setParameters(KEY_GEAR_STATUS, gearStatus);
+ return this;
}
/**
@@ -895,8 +958,9 @@ public class UnsubscribeVehicleData extends RPCRequest {
* @param handsOffSteering To indicate whether driver hands are off the steering wheel
* @since SmartDeviceLink 7.0.0
*/
- public void setHandsOffSteering(Boolean handsOffSteering) {
+ public UnsubscribeVehicleData setHandsOffSteering( Boolean handsOffSteering) {
setParameters(KEY_HANDS_OFF_STEERING, handsOffSteering);
+ return this;
}
/**
@@ -915,8 +979,9 @@ public class UnsubscribeVehicleData extends RPCRequest {
* @param windowStatus See WindowStatus
* @since SmartDeviceLink 7.0.0
*/
- public void setWindowStatus(Boolean windowStatus) {
+ public UnsubscribeVehicleData setWindowStatus( Boolean windowStatus) {
setParameters(KEY_WINDOW_STATUS, windowStatus);
+ return this;
}
/**
@@ -928,4 +993,25 @@ public class UnsubscribeVehicleData extends RPCRequest {
public Boolean getWindowStatus() {
return getBoolean(KEY_WINDOW_STATUS);
}
+
+ /**
+ * Sets the stabilityControlsStatus.
+ *
+ * @param stabilityControlsStatus See StabilityControlsStatus
+ * @since SmartDeviceLink 7.0.0
+ */
+ public UnsubscribeVehicleData setStabilityControlsStatus( Boolean stabilityControlsStatus) {
+ setParameters(KEY_STABILITY_CONTROLS_STATUS, stabilityControlsStatus);
+ return this;
+ }
+
+ /**
+ * Gets the stabilityControlsStatus.
+ *
+ * @return Boolean See StabilityControlsStatus
+ * @since SmartDeviceLink 7.0.0
+ */
+ public Boolean getStabilityControlsStatus() {
+ return getBoolean(KEY_STABILITY_CONTROLS_STATUS);
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/UnsubscribeVehicleDataResponse.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/UnsubscribeVehicleDataResponse.java
index 37b1f0c51..4f3abd5b7 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/UnsubscribeVehicleDataResponse.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/UnsubscribeVehicleDataResponse.java
@@ -47,7 +47,6 @@ import java.util.Hashtable;
public class UnsubscribeVehicleDataResponse extends RPCResponse {
public static final String KEY_SPEED = "speed";
public static final String KEY_RPM = "rpm";
- public static final String KEY_FUEL_LEVEL = "fuelLevel";
public static final String KEY_EXTERNAL_TEMPERATURE = "externalTemperature";
public static final String KEY_PRNDL = "prndl";
public static final String KEY_TIRE_PRESSURE = "tirePressure";
@@ -55,7 +54,6 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
public static final String KEY_ENGINE_OIL_LIFE = "engineOilLife";
public static final String KEY_ODOMETER = "odometer";
public static final String KEY_GPS = "gps";
- public static final String KEY_FUEL_LEVEL_STATE = "fuelLevel_State";
public static final String KEY_INSTANT_FUEL_CONSUMPTION = "instantFuelConsumption";
public static final String KEY_BELT_STATUS = "beltStatus";
public static final String KEY_BODY_INFORMATION = "bodyInformation";
@@ -77,6 +75,17 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
public static final String KEY_HANDS_OFF_STEERING = "handsOffSteering";
public static final String KEY_WINDOW_STATUS = "windowStatus";
public static final String KEY_GEAR_STATUS = "gearStatus";
+ /**
+ * @deprecated
+ */
+ @Deprecated
+ public static final String KEY_FUEL_LEVEL = "fuelLevel";
+ /**
+ * @deprecated
+ */
+ @Deprecated
+ public static final String KEY_FUEL_LEVEL_STATE = "fuelLevel_State";
+ public static final String KEY_STABILITY_CONTROLS_STATUS = "stabilityControlsStatus";
/**
* Constructs a new UnsubscribeVehicleDataResponse object
@@ -111,8 +120,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets Gps
* @param gps a VehicleDataResult related to GPS
*/
- public void setGps(VehicleDataResult gps) {
+ public UnsubscribeVehicleDataResponse setGps( VehicleDataResult gps) {
setParameters(KEY_GPS, gps);
+ return this;
}
/**
* Gets Gps
@@ -126,8 +136,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets Speed
* @param speed a VehicleDataResult related to speed
*/
- public void setSpeed(VehicleDataResult speed) {
+ public UnsubscribeVehicleDataResponse setSpeed( VehicleDataResult speed) {
setParameters(KEY_SPEED, speed);
+ return this;
}
/**
* Gets Speed
@@ -141,8 +152,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets rpm
* @param rpm a VehicleDataResult related to RPM
*/
- public void setRpm(VehicleDataResult rpm) {
+ public UnsubscribeVehicleDataResponse setRpm( VehicleDataResult rpm) {
setParameters(KEY_RPM, rpm);
+ return this;
}
/**
* Gets rpm
@@ -153,17 +165,24 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_RPM);
}
/**
- * Sets Fuel Level
- * @param fuelLevel a VehicleDataResult related to Fuel Level
+ * Sets the fuelLevel.
+ *
+ * @param fuelLevel The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec
+ * 7.0, please see fuelRange.
*/
- public void setFuelLevel(VehicleDataResult fuelLevel) {
+ @Deprecated
+ public UnsubscribeVehicleDataResponse setFuelLevel( VehicleDataResult fuelLevel) {
setParameters(KEY_FUEL_LEVEL, fuelLevel);
+ return this;
}
/**
- * Gets Fuel Level
- * @return a VehicleDataResult related to FuelLevel
+ * Gets the fuelLevel.
+ *
+ * @return VehicleDataResult The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec
+ * 7.0, please see fuelRange.
*/
@SuppressWarnings("unchecked")
+ @Deprecated
public VehicleDataResult getFuelLevel() {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_FUEL_LEVEL);
}
@@ -171,13 +190,16 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets Fuel Level State
* @param fuelLevelState a VehicleDataResult related to FuelLevel State
*/
- public void setFuelLevelState(VehicleDataResult fuelLevelState) {
+ @Deprecated
+ public UnsubscribeVehicleDataResponse setFuelLevelState( VehicleDataResult fuelLevelState) {
setParameters(KEY_FUEL_LEVEL_STATE, fuelLevelState);
+ return this;
}
/**
* Gets Fuel Level State
* @return a VehicleDataResult related to FuelLevel State
*/
+ @Deprecated
@SuppressWarnings("unchecked")
public VehicleDataResult getFuelLevelState() {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_FUEL_LEVEL_STATE);
@@ -186,8 +208,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets Instant Fuel Consumption
* @param instantFuelConsumption a VehicleDataResult related to instant fuel consumption
*/
- public void setInstantFuelConsumption(VehicleDataResult instantFuelConsumption) {
+ public UnsubscribeVehicleDataResponse setInstantFuelConsumption( VehicleDataResult instantFuelConsumption) {
setParameters(KEY_INSTANT_FUEL_CONSUMPTION, instantFuelConsumption);
+ return this;
}
/**
* Gets Instant Fuel Consumption
@@ -201,8 +224,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets External Temperature
* @param externalTemperature a VehicleDataResult related to external temperature
*/
- public void setExternalTemperature(VehicleDataResult externalTemperature) {
+ public UnsubscribeVehicleDataResponse setExternalTemperature( VehicleDataResult externalTemperature) {
setParameters(KEY_EXTERNAL_TEMPERATURE, externalTemperature);
+ return this;
}
/**
* Gets External Temperature
@@ -219,8 +243,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* @deprecated in SmartDeviceLink 7.0.0
*/
@Deprecated
- public void setPrndl(VehicleDataResult prndl) {
+ public UnsubscribeVehicleDataResponse setPrndl( VehicleDataResult prndl) {
setParameters(KEY_PRNDL, prndl);
+ return this;
}
/**
* Gets the prndl.
@@ -237,8 +262,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets Tire Pressure
* @param tirePressure a VehicleDataResult related to tire pressure
*/
- public void setTirePressure(VehicleDataResult tirePressure) {
+ public UnsubscribeVehicleDataResponse setTirePressure( VehicleDataResult tirePressure) {
setParameters(KEY_TIRE_PRESSURE, tirePressure);
+ return this;
}
/**
* Gets Tire Pressure
@@ -252,8 +278,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets Odometer
* @param odometer a VehicleDataResult related to the odometer
*/
- public void setOdometer(VehicleDataResult odometer) {
+ public UnsubscribeVehicleDataResponse setOdometer( VehicleDataResult odometer) {
setParameters(KEY_ODOMETER, odometer);
+ return this;
}
/**
* Gets Odometer
@@ -267,8 +294,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets Belt Status
* @param beltStatus a VehicleDataResult related to the seat belt status
*/
- public void setBeltStatus(VehicleDataResult beltStatus) {
+ public UnsubscribeVehicleDataResponse setBeltStatus( VehicleDataResult beltStatus) {
setParameters(KEY_BELT_STATUS, beltStatus);
+ return this;
}
/**
* Gets Belt Status
@@ -282,8 +310,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets Body Information
* @param bodyInformation a VehicleDataResult related to the body info
*/
- public void setBodyInformation(VehicleDataResult bodyInformation) {
+ public UnsubscribeVehicleDataResponse setBodyInformation( VehicleDataResult bodyInformation) {
setParameters(KEY_BODY_INFORMATION, bodyInformation);
+ return this;
}
/**
* Gets Body Information
@@ -297,8 +326,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets Device Status
* @param deviceStatus a VehicleDataResult related to the device status of the connected device
*/
- public void setDeviceStatus(VehicleDataResult deviceStatus) {
+ public UnsubscribeVehicleDataResponse setDeviceStatus( VehicleDataResult deviceStatus) {
setParameters(KEY_DEVICE_STATUS, deviceStatus);
+ return this;
}
/**
* Gets Device Status
@@ -312,8 +342,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets Driver Braking
* @param driverBraking a VehicleDataResult related to the driver breaking status
*/
- public void setDriverBraking(VehicleDataResult driverBraking) {
+ public UnsubscribeVehicleDataResponse setDriverBraking( VehicleDataResult driverBraking) {
setParameters(KEY_DRIVER_BRAKING, driverBraking);
+ return this;
}
/**
* Gets Driver Braking
@@ -327,8 +358,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets Wiper Status
* @param wiperStatus a VehicleDataResult related to the wiper status
*/
- public void setWiperStatus(VehicleDataResult wiperStatus) {
+ public UnsubscribeVehicleDataResponse setWiperStatus( VehicleDataResult wiperStatus) {
setParameters(KEY_WIPER_STATUS, wiperStatus);
+ return this;
}
/**
* Gets Wiper Status
@@ -342,8 +374,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets Head Lamp Status
* @param headLampStatus a VehicleDataResult related to the headlamp status
*/
- public void setHeadLampStatus(VehicleDataResult headLampStatus) {
+ public UnsubscribeVehicleDataResponse setHeadLampStatus( VehicleDataResult headLampStatus) {
setParameters(KEY_HEAD_LAMP_STATUS, headLampStatus);
+ return this;
}
/**
* Gets Head Lamp Status
@@ -357,8 +390,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets Engine Torque
* @param engineTorque a VehicleDataResult related to the engine's torque
*/
- public void setEngineTorque(VehicleDataResult engineTorque) {
+ public UnsubscribeVehicleDataResponse setEngineTorque( VehicleDataResult engineTorque) {
setParameters(KEY_ENGINE_TORQUE, engineTorque);
+ return this;
}
/**
* Gets Engine Torque
@@ -372,8 +406,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets Engine Oil Life
* @param engineOilLife a VehicleDataResult related to the engine's oil life
*/
- public void setEngineOilLife(VehicleDataResult engineOilLife) {
+ public UnsubscribeVehicleDataResponse setEngineOilLife( VehicleDataResult engineOilLife) {
setParameters(KEY_ENGINE_OIL_LIFE, engineOilLife);
+ return this;
}
/**
* Gets Engine Oil Life
@@ -387,8 +422,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets AccPedal Position
* @param accPedalPosition a VehicleDataResult related to the accelerator pedal's position
*/
- public void setAccPedalPosition(VehicleDataResult accPedalPosition) {
+ public UnsubscribeVehicleDataResponse setAccPedalPosition( VehicleDataResult accPedalPosition) {
setParameters(KEY_ACC_PEDAL_POSITION, accPedalPosition);
+ return this;
}
/**
* Gets AccPedal Position
@@ -399,8 +435,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_ACC_PEDAL_POSITION);
}
- public void setSteeringWheelAngle(VehicleDataResult steeringWheelAngle) {
+ public UnsubscribeVehicleDataResponse setSteeringWheelAngle( VehicleDataResult steeringWheelAngle) {
setParameters(KEY_STEERING_WHEEL_ANGLE, steeringWheelAngle);
+ return this;
}
@SuppressWarnings("unchecked")
@@ -408,36 +445,41 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_STEERING_WHEEL_ANGLE);
}
- public void setECallInfo(VehicleDataResult eCallInfo) {
+ public UnsubscribeVehicleDataResponse setECallInfo( VehicleDataResult eCallInfo) {
setParameters(KEY_E_CALL_INFO, eCallInfo);
+ return this;
}
@SuppressWarnings("unchecked")
public VehicleDataResult getECallInfo() {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_E_CALL_INFO);
}
- public void setAirbagStatus(VehicleDataResult airbagStatus) {
+ public UnsubscribeVehicleDataResponse setAirbagStatus( VehicleDataResult airbagStatus) {
setParameters(KEY_AIRBAG_STATUS, airbagStatus);
+ return this;
}
@SuppressWarnings("unchecked")
public VehicleDataResult getAirbagStatus() {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_AIRBAG_STATUS);
}
- public void setEmergencyEvent(VehicleDataResult emergencyEvent) {
+ public UnsubscribeVehicleDataResponse setEmergencyEvent( VehicleDataResult emergencyEvent) {
setParameters(KEY_EMERGENCY_EVENT, emergencyEvent);
+ return this;
}
@SuppressWarnings("unchecked")
public VehicleDataResult getEmergencyEvent() {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_EMERGENCY_EVENT);
}
- public void setClusterModeStatus(VehicleDataResult clusterModeStatus) {
+ public UnsubscribeVehicleDataResponse setClusterModeStatus( VehicleDataResult clusterModeStatus) {
setParameters(KEY_CLUSTER_MODE_STATUS, clusterModeStatus);
+ return this;
}
@SuppressWarnings("unchecked")
public VehicleDataResult getClusterModeStatus() {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_CLUSTER_MODE_STATUS);
}
- public void setMyKey(VehicleDataResult myKey) {
+ public UnsubscribeVehicleDataResponse setMyKey( VehicleDataResult myKey) {
setParameters(KEY_MY_KEY, myKey);
+ return this;
}
@SuppressWarnings("unchecked")
public VehicleDataResult getMyKey() {
@@ -445,18 +487,24 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
}
/**
- * Sets Fuel Range
- * @param fuelRange a VehicleDataResult related to the fuel range
+ * Sets the fuelRange.
+ *
+ * @param fuelRange The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the
+ * vehicle. See struct FuelRange for details.
+ * @since SmartDeviceLink 5.0.0
*/
- public void setFuelRange(VehicleDataResult fuelRange) {
+ public UnsubscribeVehicleDataResponse setFuelRange( VehicleDataResult fuelRange) {
setParameters(KEY_FUEL_RANGE, fuelRange);
+ return this;
}
/**
- * Gets Fuel Range
- * @return a VehicleDataResult related to the fuel range
+ * Gets the fuelRange.
+ *
+ * @return VehicleDataResult The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the
+ * vehicle. See struct FuelRange for details.
+ * @since SmartDeviceLink 5.0.0
*/
- @SuppressWarnings("unchecked")
public VehicleDataResult getFuelRange() {
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_FUEL_RANGE);
}
@@ -465,8 +513,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets turnSignal
* @param turnSignal a VehicleDataResult related to the turn signal status
*/
- public void setTurnSignal(VehicleDataResult turnSignal) {
+ public UnsubscribeVehicleDataResponse setTurnSignal( VehicleDataResult turnSignal) {
setParameters(KEY_TURN_SIGNAL, turnSignal);
+ return this;
}
/**
@@ -482,8 +531,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets electronicParkBrakeStatus
* @param electronicParkBrakeStatus a VehicleDataResult related to the electronic park brake status
*/
- public void setElectronicParkBrakeStatus(VehicleDataResult electronicParkBrakeStatus){
+ public UnsubscribeVehicleDataResponse setElectronicParkBrakeStatus( VehicleDataResult electronicParkBrakeStatus) {
setParameters(KEY_ELECTRONIC_PARK_BRAKE_STATUS, electronicParkBrakeStatus);
+ return this;
}
/**
@@ -498,8 +548,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* Sets cloudAppVehicleID
* @param cloudAppVehicleID a VehicleDataResult related to the cloud app vehicle ID
*/
- public void setCloudAppVehicleID(VehicleDataResult cloudAppVehicleID){
+ public UnsubscribeVehicleDataResponse setCloudAppVehicleID( VehicleDataResult cloudAppVehicleID) {
setParameters(KEY_CLOUD_APP_VEHICLE_ID, cloudAppVehicleID);
+ return this;
}
/**
@@ -515,8 +566,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* @param vehicleDataName a String value
* @param vehicleDataState a VehicleDataResult value
*/
- public void setOEMCustomVehicleData(String vehicleDataName, VehicleDataResult vehicleDataState){
+ public UnsubscribeVehicleDataResponse setOEMCustomVehicleData( String vehicleDataName, VehicleDataResult vehicleDataState) {
setParameters(vehicleDataName, vehicleDataState);
+ return this;
}
/**
@@ -533,8 +585,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* @param handsOffSteering To indicate whether driver hands are off the steering wheel
* @since SmartDeviceLink 7.0.0
*/
- public void setHandsOffSteering(VehicleDataResult handsOffSteering) {
+ public UnsubscribeVehicleDataResponse setHandsOffSteering( VehicleDataResult handsOffSteering) {
setParameters(KEY_HANDS_OFF_STEERING, handsOffSteering);
+ return this;
}
/**
@@ -553,8 +606,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* @param windowStatus See WindowStatus
* @since SmartDeviceLink 7.0.0
*/
- public void setWindowStatus(VehicleDataResult windowStatus) {
+ public UnsubscribeVehicleDataResponse setWindowStatus( VehicleDataResult windowStatus) {
setParameters(KEY_WINDOW_STATUS, windowStatus);
+ return this;
}
/**
@@ -573,8 +627,9 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
* @param gearStatus See GearStatus
* @since SmartDeviceLink 7.0.0
*/
- public void setGearStatus(VehicleDataResult gearStatus){
+ public UnsubscribeVehicleDataResponse setGearStatus( VehicleDataResult gearStatus) {
setParameters(KEY_GEAR_STATUS, gearStatus);
+ return this;
}
/**
@@ -587,4 +642,25 @@ public class UnsubscribeVehicleDataResponse extends RPCResponse {
public VehicleDataResult getGearStatus(){
return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_GEAR_STATUS);
}
+
+ /**
+ * Gets the stabilityControlsStatus.
+ *
+ * @return VehicleDataResult See StabilityControlsStatus
+ * @since SmartDeviceLink 7.0.0
+ */
+ public VehicleDataResult getStabilityControlsStatus() {
+ return (VehicleDataResult) getObject(VehicleDataResult.class, KEY_STABILITY_CONTROLS_STATUS);
+ }
+
+ /**
+ * Sets the stabilityControlsStatus.
+ *
+ * @param stabilityControlsStatus See StabilityControlsStatus
+ * @since SmartDeviceLink 7.0.0
+ */
+ public UnsubscribeVehicleDataResponse setStabilityControlsStatus( VehicleDataResult stabilityControlsStatus) {
+ setParameters(KEY_STABILITY_CONTROLS_STATUS, stabilityControlsStatus);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/UpdateTurnList.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/UpdateTurnList.java
index cafd04d88..a19a9c2ea 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/UpdateTurnList.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/UpdateTurnList.java
@@ -75,14 +75,15 @@ public class UpdateTurnList extends RPCRequest{
/**
* Sets a list of turns to be shown to the user
- *
+ *
* @param turnList
* a List<Turn> value representing a list of turns to be shown to the user
* <p>
* <b>Notes: </b>Minsize=1; Maxsize=100</p>
*/
- public void setTurnList(List<Turn> turnList){
+ public UpdateTurnList setTurnList( List<Turn> turnList) {
setParameters(KEY_TURN_LIST, turnList);
+ return this;
}
/**
@@ -108,7 +109,7 @@ public class UpdateTurnList extends RPCRequest{
/**
* Sets the SoftButtons
- *
+ *
* @param softButtons
* a List<SoftButton> value
* <p>
@@ -121,8 +122,9 @@ public class UpdateTurnList extends RPCRequest{
* @since SmartDeviceLink 2.0
*/
- public void setSoftButtons(List<SoftButton> softButtons){
+ public UpdateTurnList setSoftButtons( List<SoftButton> softButtons) {
setParameters(KEY_SOFT_BUTTONS, softButtons);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/VehicleDataResult.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/VehicleDataResult.java
index 5e50f18e9..cf22bc11c 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/VehicleDataResult.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/VehicleDataResult.java
@@ -100,25 +100,28 @@ public class VehicleDataResult extends RPCStruct {
setResultCode(resultCode);
}
- public void setResultCode(@NonNull VehicleDataResultCode resultCode) {
- setValue(KEY_RESULT_CODE, resultCode);
- }
+ public VehicleDataResult setResultCode(@NonNull VehicleDataResultCode resultCode) {
+ setValue(KEY_RESULT_CODE, resultCode);
+ return this;
+ }
public VehicleDataResultCode getResultCode() {
return (VehicleDataResultCode) getObject(VehicleDataResultCode.class, KEY_RESULT_CODE);
}
- public void setDataType(@NonNull VehicleDataType dataType) {
- setValue(KEY_DATA_TYPE, dataType);
- }
+ public VehicleDataResult setDataType(@NonNull VehicleDataType dataType) {
+ setValue(KEY_DATA_TYPE, dataType);
+ return this;
+ }
public VehicleDataType getDataType() {
return (VehicleDataType) getObject(VehicleDataType.class, KEY_DATA_TYPE);
}
- public void setOEMCustomVehicleDataType(String oemCustomDataType) {
- setValue(KEY_OEM_CUSTOM_DATA_TYPE, oemCustomDataType);
- }
+ public VehicleDataResult setOEMCustomVehicleDataType( String oemCustomDataType) {
+ setValue(KEY_OEM_CUSTOM_DATA_TYPE, oemCustomDataType);
+ return this;
+ }
public String getOEMCustomVehicleDataType() {
return (String) getObject(String.class, KEY_OEM_CUSTOM_DATA_TYPE);
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/VehicleType.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/VehicleType.java
index 5858ce39e..27b1ff42a 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/VehicleType.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/VehicleType.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import com.smartdevicelink.proxy.RPCStruct;
@@ -119,8 +119,9 @@ public class VehicleType extends RPCStruct {
* set the make of the vehicle
*@param make the make of the vehicle
*/
- public void setMake(String make) {
+ public VehicleType setMake( String make) {
setValue(KEY_MAKE, make);
+ return this;
}
/**
@@ -135,8 +136,9 @@ public class VehicleType extends RPCStruct {
* set the model of the vehicle
* @param model the model of the vehicle
*/
- public void setModel(String model) {
+ public VehicleType setModel( String model) {
setValue(KEY_MODEL, model);
+ return this;
}
/**
@@ -151,8 +153,9 @@ public class VehicleType extends RPCStruct {
* set the model year of the vehicle
* @param modelYear the model year of the vehicle
*/
- public void setModelYear(String modelYear) {
+ public VehicleType setModelYear( String modelYear) {
setValue(KEY_MODEL_YEAR, modelYear);
+ return this;
}
/**
@@ -167,7 +170,8 @@ public class VehicleType extends RPCStruct {
* set the trim of the vehicle
* @param trim the trim of the vehicle
*/
- public void setTrim(String trim) {
+ public VehicleType setTrim( String trim) {
setValue(KEY_TRIM, trim);
+ return this;
}
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/VideoStreamingCapability.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/VideoStreamingCapability.java
index ca13ba74f..872992ba1 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/VideoStreamingCapability.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/VideoStreamingCapability.java
@@ -53,9 +53,10 @@ public class VideoStreamingCapability extends RPCStruct {
public VideoStreamingCapability(){}
public VideoStreamingCapability(Hashtable<String, Object> hash){super(hash);}
- public void setPreferredResolution(ImageResolution res){
- setValue(KEY_PREFERRED_RESOLUTION, res);
- }
+ public VideoStreamingCapability setPreferredResolution( ImageResolution res) {
+ setValue(KEY_PREFERRED_RESOLUTION, res);
+ return this;
+ }
public ImageResolution getPreferredResolution(){
return (ImageResolution) getObject(ImageResolution.class, KEY_PREFERRED_RESOLUTION);
@@ -67,9 +68,10 @@ public class VideoStreamingCapability extends RPCStruct {
* <b>NOTE: </b> Unit is in kbps.
* @param maxBitrate in kbps
*/
- public void setMaxBitrate(Integer maxBitrate){
- setValue(KEY_MAX_BITRATE, maxBitrate);
- }
+ public VideoStreamingCapability setMaxBitrate( Integer maxBitrate) {
+ setValue(KEY_MAX_BITRATE, maxBitrate);
+ return this;
+ }
/**
* Retrieves the max bitrate supported by this module.
@@ -81,9 +83,10 @@ public class VideoStreamingCapability extends RPCStruct {
return getInteger(KEY_MAX_BITRATE);
}
- public void setSupportedFormats(List<VideoStreamingFormat> formats){
- setValue(KEY_SUPPORTED_FORMATS, formats);
- }
+ public VideoStreamingCapability setSupportedFormats( List<VideoStreamingFormat> formats) {
+ setValue(KEY_SUPPORTED_FORMATS, formats);
+ return this;
+ }
public List<VideoStreamingFormat> getSupportedFormats(){
return (List<VideoStreamingFormat>) getObject(VideoStreamingFormat.class, KEY_SUPPORTED_FORMATS);
@@ -93,9 +96,10 @@ public class VideoStreamingCapability extends RPCStruct {
return getBoolean(KEY_HAPTIC_SPATIAL_DATA_SUPPORTED);
}
- public void setIsHapticSpatialDataSupported(Boolean hapticSpatialDataSupported) {
- setValue(KEY_HAPTIC_SPATIAL_DATA_SUPPORTED, hapticSpatialDataSupported);
- }
+ public VideoStreamingCapability setIsHapticSpatialDataSupported( Boolean hapticSpatialDataSupported) {
+ setValue(KEY_HAPTIC_SPATIAL_DATA_SUPPORTED, hapticSpatialDataSupported);
+ return this;
+ }
/**
* @return the diagonal screen size in inches.
@@ -108,9 +112,10 @@ public class VideoStreamingCapability extends RPCStruct {
/**
* @param diagonalScreenSize the diagonal screen size in inches.
*/
- public void setDiagonalScreenSize(Double diagonalScreenSize) {
- setValue(KEY_DIAGONAL_SCREEN_SIZE, diagonalScreenSize);
- }
+ public VideoStreamingCapability setDiagonalScreenSize( Double diagonalScreenSize) {
+ setValue(KEY_DIAGONAL_SCREEN_SIZE, diagonalScreenSize);
+ return this;
+ }
/**
* @return the diagonal resolution in pixels divided by the diagonal screen size in inches.
@@ -123,9 +128,10 @@ public class VideoStreamingCapability extends RPCStruct {
/**
* @param pixelPerInch the diagonal resolution in pixels divided by the diagonal screen size in inches.
*/
- public void setPixelPerInch(Double pixelPerInch) {
- setValue(KEY_PIXEL_PER_INCH, pixelPerInch);
- }
+ public VideoStreamingCapability setPixelPerInch( Double pixelPerInch) {
+ setValue(KEY_PIXEL_PER_INCH, pixelPerInch);
+ return this;
+ }
/**
* @return the scaling factor the app should use to change the size of the projecting view.
@@ -138,7 +144,8 @@ public class VideoStreamingCapability extends RPCStruct {
/**
* @param scale the scaling factor the app should use to change the size of the projecting view.
*/
- public void setScale(Double scale) {
- setValue(KEY_SCALE, scale);
- }
+ public VideoStreamingCapability setScale( Double scale) {
+ setValue(KEY_SCALE, scale);
+ return this;
+ }
}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/VideoStreamingFormat.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/VideoStreamingFormat.java
index 92c16cebc..0fac119f2 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/VideoStreamingFormat.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/VideoStreamingFormat.java
@@ -61,17 +61,19 @@ public class VideoStreamingFormat extends RPCStruct {
setCodec(codec);
}
- public void setProtocol(@NonNull VideoStreamingProtocol protocol){
- setValue(KEY_PROTOCOL, protocol);
- }
+ public VideoStreamingFormat setProtocol(@NonNull VideoStreamingProtocol protocol) {
+ setValue(KEY_PROTOCOL, protocol);
+ return this;
+ }
public VideoStreamingProtocol getProtocol(){
return (VideoStreamingProtocol) getObject(VideoStreamingProtocol.class, KEY_PROTOCOL);
}
- public void setCodec(@NonNull VideoStreamingCodec codec){
- setValue(KEY_CODEC, codec);
- }
+ public VideoStreamingFormat setCodec(@NonNull VideoStreamingCodec codec) {
+ setValue(KEY_CODEC, codec);
+ return this;
+ }
public VideoStreamingCodec getCodec(){
return (VideoStreamingCodec) getObject(VideoStreamingCodec.class, KEY_CODEC);
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/VrHelpItem.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/VrHelpItem.java
index 0acb5b8dd..2ba56c4db 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/VrHelpItem.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/VrHelpItem.java
@@ -1,34 +1,34 @@
-/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
+/*
+ * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
@@ -107,21 +107,24 @@ public class VrHelpItem extends RPCStruct {
setPosition(position);
}
- public void setText(@NonNull String text) {
+ public VrHelpItem setText(@NonNull String text) {
setValue(KEY_TEXT, text);
+ return this;
}
public String getText() {
return getString(KEY_TEXT);
}
- public void setImage(Image image) {
+ public VrHelpItem setImage( Image image) {
setValue(KEY_IMAGE, image);
+ return this;
}
@SuppressWarnings("unchecked")
public Image getImage() {
return (Image) getObject(Image.class, KEY_IMAGE);
}
- public void setPosition(@NonNull Integer position) {
+ public VrHelpItem setPosition(@NonNull Integer position) {
setValue(KEY_POSITION, position);
+ return this;
}
public Integer getPosition() {
return getInteger(KEY_POSITION);
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherAlert.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherAlert.java
index 2d3afdfb4..23f183da5 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherAlert.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherAlert.java
@@ -66,9 +66,10 @@ public class WeatherAlert extends RPCStruct {
/**
* @param title -
*/
- public void setTitle(String title) {
- setValue(KEY_TITLE, title);
- }
+ public WeatherAlert setTitle( String title) {
+ setValue(KEY_TITLE, title);
+ return this;
+ }
/**
* @return title
@@ -80,9 +81,10 @@ public class WeatherAlert extends RPCStruct {
/**
* @param summary -
*/
- public void setSummary(String summary) {
- setValue(KEY_SUMMARY, summary);
- }
+ public WeatherAlert setSummary( String summary) {
+ setValue(KEY_SUMMARY, summary);
+ return this;
+ }
/**
* @return summary
@@ -94,9 +96,10 @@ public class WeatherAlert extends RPCStruct {
/**
* @param severity -
*/
- public void setSeverity(String severity) {
- setValue(KEY_SEVERITY, severity);
- }
+ public WeatherAlert setSeverity( String severity) {
+ setValue(KEY_SEVERITY, severity);
+ return this;
+ }
/**
* @return severity
@@ -109,9 +112,10 @@ public class WeatherAlert extends RPCStruct {
* Min Size: 1, Max Size: 99
* @param regions -
*/
- public void setRegions(@NonNull List<String> regions) {
- setValue(KEY_REGIONS, regions);
- }
+ public WeatherAlert setRegions(@NonNull List<String> regions) {
+ setValue(KEY_REGIONS, regions);
+ return this;
+ }
/**
* @return regions list
@@ -124,9 +128,10 @@ public class WeatherAlert extends RPCStruct {
/**
* @param expires -
*/
- public void setExpires(DateTime expires) {
- setValue(KEY_EXPIRES, expires);
- }
+ public WeatherAlert setExpires( DateTime expires) {
+ setValue(KEY_EXPIRES, expires);
+ return this;
+ }
/**
* @return expires
@@ -138,9 +143,10 @@ public class WeatherAlert extends RPCStruct {
/**
* @param timeIssued -
*/
- public void setTimeIssued(DateTime timeIssued) {
- setValue(KEY_TIME_ISSUED, timeIssued);
- }
+ public WeatherAlert setTimeIssued( DateTime timeIssued) {
+ setValue(KEY_TIME_ISSUED, timeIssued);
+ return this;
+ }
/**
* @return timeIssued
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherData.java
index a3b897acb..c9bbf02f4 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherData.java
@@ -73,9 +73,10 @@ public class WeatherData extends RPCStruct {
/**
* @param currentTemperature -
*/
- public void setCurrentTemperature(Temperature currentTemperature) {
- setValue(KEY_CURRENT_TEMPERATURE, currentTemperature);
- }
+ public WeatherData setCurrentTemperature( Temperature currentTemperature) {
+ setValue(KEY_CURRENT_TEMPERATURE, currentTemperature);
+ return this;
+ }
/**
* @return currentTemperature
@@ -87,9 +88,10 @@ public class WeatherData extends RPCStruct {
/**
* @param temperatureHigh -
*/
- public void setTemperatureHigh(Temperature temperatureHigh) {
- setValue(KEY_TEMPERATURE_HIGH, temperatureHigh);
- }
+ public WeatherData setTemperatureHigh( Temperature temperatureHigh) {
+ setValue(KEY_TEMPERATURE_HIGH, temperatureHigh);
+ return this;
+ }
/**
* @return temperatureHigh
@@ -101,9 +103,10 @@ public class WeatherData extends RPCStruct {
/**
* @param temperatureLow -
*/
- public void setTemperatureLow(Temperature temperatureLow) {
- setValue(KEY_TEMPERATURE_LOW, temperatureLow);
- }
+ public WeatherData setTemperatureLow( Temperature temperatureLow) {
+ setValue(KEY_TEMPERATURE_LOW, temperatureLow);
+ return this;
+ }
/**
* @return temperatureLow
@@ -115,9 +118,10 @@ public class WeatherData extends RPCStruct {
/**
* @param apparentTemperature -
*/
- public void setApparentTemperature(Temperature apparentTemperature) {
- setValue(KEY_APPARENT_TEMPERATURE, apparentTemperature);
- }
+ public WeatherData setApparentTemperature( Temperature apparentTemperature) {
+ setValue(KEY_APPARENT_TEMPERATURE, apparentTemperature);
+ return this;
+ }
/**
* @return apparentTemperature
@@ -129,9 +133,10 @@ public class WeatherData extends RPCStruct {
/**
* @param apparentTemperatureHigh -
*/
- public void setApparentTemperatureHigh(Temperature apparentTemperatureHigh) {
- setValue(KEY_APPARENT_TEMPERATURE_HIGH, apparentTemperatureHigh);
- }
+ public WeatherData setApparentTemperatureHigh( Temperature apparentTemperatureHigh) {
+ setValue(KEY_APPARENT_TEMPERATURE_HIGH, apparentTemperatureHigh);
+ return this;
+ }
/**
* @return apparentTemperatureHigh
@@ -143,9 +148,10 @@ public class WeatherData extends RPCStruct {
/**
* @param apparentTemperatureLow -
*/
- public void setApparentTemperatureLow(Temperature apparentTemperatureLow) {
- setValue(KEY_APPARENT_TEMPERATURE_LOW, apparentTemperatureLow);
- }
+ public WeatherData setApparentTemperatureLow( Temperature apparentTemperatureLow) {
+ setValue(KEY_APPARENT_TEMPERATURE_LOW, apparentTemperatureLow);
+ return this;
+ }
/**
* @return apparentTemperatureLow
@@ -157,9 +163,10 @@ public class WeatherData extends RPCStruct {
/**
* @param weatherSummary -
*/
- public void setWeatherSummary(String weatherSummary) {
- setValue(KEY_WEATHER_SUMMARY, weatherSummary);
- }
+ public WeatherData setWeatherSummary( String weatherSummary) {
+ setValue(KEY_WEATHER_SUMMARY, weatherSummary);
+ return this;
+ }
/**
* @return weatherSummary
@@ -171,9 +178,10 @@ public class WeatherData extends RPCStruct {
/**
* @param time -
*/
- public void setTime(DateTime time) {
- setValue(KEY_TIME, time);
- }
+ public WeatherData setTime( DateTime time) {
+ setValue(KEY_TIME, time);
+ return this;
+ }
/**
* @return time
@@ -186,9 +194,10 @@ public class WeatherData extends RPCStruct {
* minValue: 0, maxValue: 1
* @param humidity - percentage humidity
*/
- public void setHumidity(Float humidity) {
- setValue(KEY_HUMIDITY, humidity);
- }
+ public WeatherData setHumidity( Float humidity) {
+ setValue(KEY_HUMIDITY, humidity);
+ return this;
+ }
/**
* minValue: 0, maxValue: 1
@@ -202,9 +211,10 @@ public class WeatherData extends RPCStruct {
* minValue: 0, maxValue: 1
* @param cloudCover - cloud cover
*/
- public void setCloudCover(Float cloudCover) {
- setValue(KEY_CLOUD_COVER, cloudCover);
- }
+ public WeatherData setCloudCover( Float cloudCover) {
+ setValue(KEY_CLOUD_COVER, cloudCover);
+ return this;
+ }
/**
* minValue: 0, maxValue: 1
@@ -218,9 +228,10 @@ public class WeatherData extends RPCStruct {
* minValue: 0, maxValue: 1
* @param moonPhase - percentage of the moon seen, e.g. 0 = no moon, 0.25 = quarter moon
*/
- public void setMoonPhase(Float moonPhase) {
- setValue(KEY_MOON_PHASE, moonPhase);
- }
+ public WeatherData setMoonPhase( Float moonPhase) {
+ setValue(KEY_MOON_PHASE, moonPhase);
+ return this;
+ }
/**
* minValue: 0, maxValue: 1
@@ -233,9 +244,10 @@ public class WeatherData extends RPCStruct {
/**
* @param windBearing - In degrees, true north at 0 degrees
*/
- public void setWindBearing(Integer windBearing) {
- setValue(KEY_WIND_BEARING, windBearing);
- }
+ public WeatherData setWindBearing( Integer windBearing) {
+ setValue(KEY_WIND_BEARING, windBearing);
+ return this;
+ }
/**
* @return windBearing - In degrees, true north at 0 degrees
@@ -247,9 +259,10 @@ public class WeatherData extends RPCStruct {
/**
* @param windGust - km/hr
*/
- public void setWindGust(Float windGust) {
- setValue(KEY_WIND_GUST, windGust);
- }
+ public WeatherData setWindGust( Float windGust) {
+ setValue(KEY_WIND_GUST, windGust);
+ return this;
+ }
/**
* @return windGust - km/hr
@@ -261,9 +274,10 @@ public class WeatherData extends RPCStruct {
/**
* @param windSpeed - km/hr
*/
- public void setWindSpeed(Float windSpeed) {
- setValue(KEY_WIND_SPEED, windSpeed);
- }
+ public WeatherData setWindSpeed( Float windSpeed) {
+ setValue(KEY_WIND_SPEED, windSpeed);
+ return this;
+ }
/**
* @return windSpeed - km/hr
@@ -275,9 +289,10 @@ public class WeatherData extends RPCStruct {
/**
* @param nearestStormBearing - In degrees, true north at 0 degrees
*/
- public void setNearestStormBearing(Integer nearestStormBearing) {
- setValue(KEY_NEAREST_STORM_BEARING, nearestStormBearing);
- }
+ public WeatherData setNearestStormBearing( Integer nearestStormBearing) {
+ setValue(KEY_NEAREST_STORM_BEARING, nearestStormBearing);
+ return this;
+ }
/**
* @return nearestStormBearing - In degrees, true north at 0 degrees
@@ -289,9 +304,10 @@ public class WeatherData extends RPCStruct {
/**
* @param nearestStormDistance - In km
*/
- public void setNearestStormDistance(Integer nearestStormDistance) {
- setValue(KEY_NEAREST_STORM_DISTANCE, nearestStormDistance);
- }
+ public WeatherData setNearestStormDistance( Integer nearestStormDistance) {
+ setValue(KEY_NEAREST_STORM_DISTANCE, nearestStormDistance);
+ return this;
+ }
/**
* @return nearestStormDistance - In km
@@ -303,9 +319,10 @@ public class WeatherData extends RPCStruct {
/**
* @param precipAccumulation - cm
*/
- public void setPrecipAccumulation(Float precipAccumulation) {
- setValue(KEY_PRECIP_ACCUMULATION, precipAccumulation);
- }
+ public WeatherData setPrecipAccumulation( Float precipAccumulation) {
+ setValue(KEY_PRECIP_ACCUMULATION, precipAccumulation);
+ return this;
+ }
/**
* @return precipAccumulation - cm
@@ -317,9 +334,10 @@ public class WeatherData extends RPCStruct {
/**
* @param precipIntensity - cm of water per hour
*/
- public void setPrecipIntensity(Float precipIntensity) {
- setValue(KEY_PRECIP_INTENSITY, precipIntensity);
- }
+ public WeatherData setPrecipIntensity( Float precipIntensity) {
+ setValue(KEY_PRECIP_INTENSITY, precipIntensity);
+ return this;
+ }
/**
* @return precipIntensity - cm of water per hour
@@ -332,9 +350,10 @@ public class WeatherData extends RPCStruct {
* minValue: 0, maxValue: 1
* @param precipProbability - percentage chance
*/
- public void setPrecipProbability(Float precipProbability) {
- setValue(KEY_PRECIP_PROBABILITY, precipProbability);
- }
+ public WeatherData setPrecipProbability( Float precipProbability) {
+ setValue(KEY_PRECIP_PROBABILITY, precipProbability);
+ return this;
+ }
/**
* minValue: 0, maxValue: 1
@@ -347,9 +366,10 @@ public class WeatherData extends RPCStruct {
/**
* @param precipType - e.g. "rain", "snow", "sleet", "hail"
*/
- public void setPrecipType(String precipType) {
- setValue(KEY_PRECIP_TYPE, precipType);
- }
+ public WeatherData setPrecipType( String precipType) {
+ setValue(KEY_PRECIP_TYPE, precipType);
+ return this;
+ }
/**
* @return precipType - e.g. "rain", "snow", "sleet", "hail"
@@ -361,9 +381,10 @@ public class WeatherData extends RPCStruct {
/**
* @param weatherIcon -
*/
- public void setWeatherIcon(Image weatherIcon) {
- setValue(KEY_WEATHER_ICON, weatherIcon);
- }
+ public WeatherData setWeatherIcon( Image weatherIcon) {
+ setValue(KEY_WEATHER_ICON, weatherIcon);
+ return this;
+ }
/**
* @return weatherIcon
@@ -375,9 +396,10 @@ public class WeatherData extends RPCStruct {
/**
* @param visibility - In km
*/
- public void setVisibility(Float visibility) {
- setValue(KEY_VISIBILITY, visibility);
- }
+ public WeatherData setVisibility( Float visibility) {
+ setValue(KEY_VISIBILITY, visibility);
+ return this;
+ }
/**
* @return visibility - In km
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherServiceData.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherServiceData.java
index 9ae1d4e0d..0d7a26648 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherServiceData.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherServiceData.java
@@ -68,9 +68,10 @@ public class WeatherServiceData extends RPCStruct {
/**
* @param location -
*/
- public void setLocation(@NonNull LocationDetails location) {
- setValue(KEY_LOCATION, location);
- }
+ public WeatherServiceData setLocation(@NonNull LocationDetails location) {
+ setValue(KEY_LOCATION, location);
+ return this;
+ }
/**
* @return location
@@ -82,9 +83,10 @@ public class WeatherServiceData extends RPCStruct {
/**
* @param currentForecast -
*/
- public void setCurrentForecast(WeatherData currentForecast) {
- setValue(KEY_CURRENT_FORECAST, currentForecast);
- }
+ public WeatherServiceData setCurrentForecast( WeatherData currentForecast) {
+ setValue(KEY_CURRENT_FORECAST, currentForecast);
+ return this;
+ }
/**
* @return currentForecast
@@ -97,9 +99,10 @@ public class WeatherServiceData extends RPCStruct {
* minsize: 15, maxsize: 60
* @param minuteForecast -
*/
- public void setMinuteForecast(List<WeatherData> minuteForecast){
- setValue(KEY_MINUTE_FORECAST, minuteForecast);
- }
+ public WeatherServiceData setMinuteForecast( List<WeatherData> minuteForecast) {
+ setValue(KEY_MINUTE_FORECAST, minuteForecast);
+ return this;
+ }
/**
* minsize: 15, maxsize: 60
@@ -114,9 +117,10 @@ public class WeatherServiceData extends RPCStruct {
* minsize: 1, maxsize: 96
* @param hourlyForecast -
*/
- public void setHourlyForecast(List<WeatherData> hourlyForecast){
- setValue(KEY_HOURLY_FORECAST, hourlyForecast);
- }
+ public WeatherServiceData setHourlyForecast( List<WeatherData> hourlyForecast) {
+ setValue(KEY_HOURLY_FORECAST, hourlyForecast);
+ return this;
+ }
/**
* minsize: 1, maxsize: 96
@@ -131,9 +135,10 @@ public class WeatherServiceData extends RPCStruct {
* minsize: 1, maxsize: 30
* @param multidayForecast -
*/
- public void setMultidayForecast(List<WeatherData> multidayForecast){
- setValue(KEY_MULTIDAY_FORECAST, multidayForecast);
- }
+ public WeatherServiceData setMultidayForecast( List<WeatherData> multidayForecast) {
+ setValue(KEY_MULTIDAY_FORECAST, multidayForecast);
+ return this;
+ }
/**
* minsize: 1, maxsize: 30
@@ -148,9 +153,10 @@ public class WeatherServiceData extends RPCStruct {
* minsize: 1, maxsize: 10
* @param alerts -
*/
- public void setAlerts(List<WeatherAlert> alerts){
- setValue(KEY_ALERTS, alerts);
- }
+ public WeatherServiceData setAlerts( List<WeatherAlert> alerts) {
+ setValue(KEY_ALERTS, alerts);
+ return this;
+ }
/**
* minsize: 1, maxsize: 10
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherServiceManifest.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherServiceManifest.java
index 2f6a9f8d3..79a4e5528 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherServiceManifest.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/WeatherServiceManifest.java
@@ -56,9 +56,10 @@ public class WeatherServiceManifest extends RPCStruct {
* Set whether the current forecast is supported
* @param currentForecastSupported -
*/
- public void setCurrentForecastSupported(Boolean currentForecastSupported){
- setValue(KEY_CURRENT_FORECAST_SUPPORTED, currentForecastSupported);
- }
+ public WeatherServiceManifest setCurrentForecastSupported( Boolean currentForecastSupported) {
+ setValue(KEY_CURRENT_FORECAST_SUPPORTED, currentForecastSupported);
+ return this;
+ }
/**
* Get whether the current forecast is supported
@@ -72,9 +73,10 @@ public class WeatherServiceManifest extends RPCStruct {
* Set the max multi day forecast amount
* @param maxMultidayForecastAmount -
*/
- public void setMaxMultidayForecastAmount(Integer maxMultidayForecastAmount){
- setValue(KEY_MAX_MULTIDAY_FORECAST_AMOUNT, maxMultidayForecastAmount);
- }
+ public WeatherServiceManifest setMaxMultidayForecastAmount( Integer maxMultidayForecastAmount) {
+ setValue(KEY_MAX_MULTIDAY_FORECAST_AMOUNT, maxMultidayForecastAmount);
+ return this;
+ }
/**
* Get the max multi day forecast amount
@@ -88,9 +90,10 @@ public class WeatherServiceManifest extends RPCStruct {
* Set the max hourly forecast amount
* @param maxHourlyForecastAmount -
*/
- public void setMaxHourlyForecastAmount(Integer maxHourlyForecastAmount){
- setValue(KEY_MAX_HOURLY_FORECAST_AMOUNT, maxHourlyForecastAmount);
- }
+ public WeatherServiceManifest setMaxHourlyForecastAmount( Integer maxHourlyForecastAmount) {
+ setValue(KEY_MAX_HOURLY_FORECAST_AMOUNT, maxHourlyForecastAmount);
+ return this;
+ }
/**
* Get the max hourly forecast amount
@@ -104,9 +107,10 @@ public class WeatherServiceManifest extends RPCStruct {
* Set the max minutely forecast amount
* @param maxMinutelyForecastAmount -
*/
- public void setMaxMinutelyForecastAmount(Integer maxMinutelyForecastAmount){
- setValue(KEY_MAX_MINUTELY_FORECAST_AMOUNT, maxMinutelyForecastAmount);
- }
+ public WeatherServiceManifest setMaxMinutelyForecastAmount( Integer maxMinutelyForecastAmount) {
+ setValue(KEY_MAX_MINUTELY_FORECAST_AMOUNT, maxMinutelyForecastAmount);
+ return this;
+ }
/**
* Get the max minutely forecast amount
@@ -120,9 +124,10 @@ public class WeatherServiceManifest extends RPCStruct {
* Set whether the weather is supported for the current location
* @param weatherForLocationSupported -
*/
- public void setWeatherForLocationSupported(Boolean weatherForLocationSupported){
- setValue(KEY_WEATHER_FOR_LOCATION_SUPPORTED, weatherForLocationSupported);
- }
+ public WeatherServiceManifest setWeatherForLocationSupported( Boolean weatherForLocationSupported) {
+ setValue(KEY_WEATHER_FOR_LOCATION_SUPPORTED, weatherForLocationSupported);
+ return this;
+ }
/**
* Get whether the weather is supported for the current location
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowCapability.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowCapability.java
index c93cb50ca..dcf05b4c3 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowCapability.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowCapability.java
@@ -34,8 +34,9 @@ public class WindowCapability extends RPCStruct {
*
* @param windowID A unique ID to identify the window. The value of '0' will always be the default main window on the main display and should not be used in this context as it will already be created for the app. See PredefinedWindows enum. Creating a window with an ID that is already in use will be rejected with `INVALID_ID`.
*/
- public void setWindowID(Integer windowID) {
+ public WindowCapability setWindowID( Integer windowID) {
setValue(KEY_WINDOW_ID, windowID);
+ return this;
}
/**
@@ -63,8 +64,9 @@ public class WindowCapability extends RPCStruct {
*
* @param textFields the List of textFields
*/
- public void setTextFields(List<TextField> textFields) {
+ public WindowCapability setTextFields( List<TextField> textFields) {
setValue(KEY_TEXT_FIELDS, textFields);
+ return this;
}
/**
@@ -83,8 +85,9 @@ public class WindowCapability extends RPCStruct {
*
* @param imageFields the List of imageFields
*/
- public void setImageFields(List<ImageField> imageFields) {
+ public WindowCapability setImageFields( List<ImageField> imageFields) {
setValue(KEY_IMAGE_FIELDS, imageFields);
+ return this;
}
/**
@@ -103,8 +106,9 @@ public class WindowCapability extends RPCStruct {
*
* @param imageTypeSupported the List of ImageType
*/
- public void setImageTypeSupported(List<ImageType> imageTypeSupported) {
+ public WindowCapability setImageTypeSupported( List<ImageType> imageTypeSupported) {
setValue(KEY_IMAGE_TYPE_SUPPORTED, imageTypeSupported);
+ return this;
}
/**
@@ -123,8 +127,9 @@ public class WindowCapability extends RPCStruct {
*
* @param templatesAvailable the List of String
*/
- public void setTemplatesAvailable(List<String> templatesAvailable) {
+ public WindowCapability setTemplatesAvailable( List<String> templatesAvailable) {
setValue(KEY_TEMPLATES_AVAILABLE, templatesAvailable);
+ return this;
}
/**
@@ -142,8 +147,9 @@ public class WindowCapability extends RPCStruct {
*
* @param numCustomPresetsAvailable
*/
- public void setNumCustomPresetsAvailable(Integer numCustomPresetsAvailable) {
+ public WindowCapability setNumCustomPresetsAvailable( Integer numCustomPresetsAvailable) {
setValue(KEY_NUM_CUSTOM_PRESETS_AVAILABLE, numCustomPresetsAvailable);
+ return this;
}
/**
@@ -152,8 +158,9 @@ public class WindowCapability extends RPCStruct {
*
* @param buttonCapabilities It refers to number of buttons and the capabilities of each on-window button.
*/
- public void setButtonCapabilities(List<ButtonCapabilities> buttonCapabilities) {
+ public WindowCapability setButtonCapabilities( List<ButtonCapabilities> buttonCapabilities) {
setValue(KEY_BUTTON_CAPABILITIES, buttonCapabilities);
+ return this;
}
/**
@@ -173,8 +180,9 @@ public class WindowCapability extends RPCStruct {
*
* @param softButtonCapabilities It refers to number of soft buttons available on-window and the capabilities for each button.
*/
- public void setSoftButtonCapabilities(List<SoftButtonCapabilities> softButtonCapabilities) {
+ public WindowCapability setSoftButtonCapabilities( List<SoftButtonCapabilities> softButtonCapabilities) {
setValue(KEY_SOFT_BUTTON_CAPABILITIES, softButtonCapabilities);
+ return this;
}
/**
@@ -193,8 +201,9 @@ public class WindowCapability extends RPCStruct {
* is assumed to be available
* @param menuLayout - An array of MenuLayouts
*/
- public void setMenuLayoutsAvailable(List<MenuLayout> menuLayout) {
+ public WindowCapability setMenuLayoutsAvailable( List<MenuLayout> menuLayout) {
setValue(KEY_MENU_LAYOUTS_AVAILABLE, menuLayout);
+ return this;
}
/**
@@ -214,8 +223,9 @@ public class WindowCapability extends RPCStruct {
* module will send dynamic update RPCs.
* @since SmartDeviceLink 7.0.0
*/
- public void setDynamicUpdateCapabilities(DynamicUpdateCapabilities dynamicUpdateCapabilities) {
+ public WindowCapability setDynamicUpdateCapabilities( DynamicUpdateCapabilities dynamicUpdateCapabilities) {
setValue(KEY_DYNAMIC_UPDATE_CAPABILITIES, dynamicUpdateCapabilities);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowState.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowState.java
index e17d9b7d9..9011f3865 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowState.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowState.java
@@ -104,8 +104,9 @@ public class WindowState extends RPCStruct {
* @param approximatePosition The approximate percentage that the window is open - 0 being fully closed, 100 being fully
* open
*/
- public void setApproximatePosition(@NonNull Integer approximatePosition) {
+ public WindowState setApproximatePosition(@NonNull Integer approximatePosition) {
setValue(KEY_APPROXIMATE_POSITION, approximatePosition);
+ return this;
}
/**
@@ -124,8 +125,9 @@ public class WindowState extends RPCStruct {
* @param deviation The percentage deviation of the approximatePosition. e.g. If the approximatePosition is 50
* and the deviation is 10, then the window's location is somewhere between 40 and 60.
*/
- public void setDeviation(@NonNull Integer deviation) {
+ public WindowState setDeviation(@NonNull Integer deviation) {
setValue(KEY_DEVIATION, deviation);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowStatus.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowStatus.java
index 075d5f142..ebae89ea8 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowStatus.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowStatus.java
@@ -103,8 +103,9 @@ public class WindowStatus extends RPCStruct {
*
* @param location
*/
- public void setLocation(@NonNull Grid location) {
+ public WindowStatus setLocation(@NonNull Grid location) {
setValue(KEY_LOCATION, location);
+ return this;
}
/**
@@ -121,8 +122,9 @@ public class WindowStatus extends RPCStruct {
*
* @param state
*/
- public void setState(@NonNull WindowState state) {
+ public WindowStatus setState(@NonNull WindowState state) {
setValue(KEY_STATE, state);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowTypeCapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowTypeCapabilities.java
index 4853a29a2..c145dc455 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowTypeCapabilities.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowTypeCapabilities.java
@@ -47,8 +47,9 @@ public class WindowTypeCapabilities extends RPCStruct {
*
* @param type Type of windows available, to create.
*/
- public void setType(@NonNull WindowType type) {
+ public WindowTypeCapabilities setType(@NonNull WindowType type) {
setValue(KEY_TYPE, type);
+ return this;
}
/**
@@ -65,8 +66,9 @@ public class WindowTypeCapabilities extends RPCStruct {
*
* @param maximumNumberOfWindows Number of windows available, to create.
*/
- public void setMaximumNumberOfWindows(@NonNull Integer maximumNumberOfWindows) {
+ public WindowTypeCapabilities setMaximumNumberOfWindows(@NonNull Integer maximumNumberOfWindows) {
setValue(KEY_MAXIMUM_NUMBER_OF_WINDOWS, maximumNumberOfWindows);
+ return this;
}
/**
diff --git a/base/src/main/java/com/smartdevicelink/proxy/constants/Jingles.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/enums/CapacityUnit.java
index 73f7adeeb..a8b3c4817 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/constants/Jingles.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/enums/CapacityUnit.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
+ * Copyright (c) 2017 - 2020, SmartDeviceLink Consortium, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -13,9 +13,9 @@
* disclaimer in the documentation and/or other materials provided with the
* distribution.
*
- * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
+ * Neither the name of the SmartDeviceLink Consortium Inc. nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
@@ -29,18 +29,29 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
-package com.smartdevicelink.proxy.constants;
-
-@Deprecated
-public class Jingles {
- public static final String POSITIVE_JINGLE = "POSITIVE_JINGLE";
-
- public static final String NEGATIVE_JINGLE = "NEGATIVE_JINGLE";
-
- public static final String INITIAL_JINGLE = "INITIAL_JINGLE";
-
- public static final String LISTEN_JINGLE = "LISTEN_JINGLE";
-
- public static final String HELP_JINGLE = "HELP_JINGLE";
-
-} \ No newline at end of file
+package com.smartdevicelink.proxy.rpc.enums;
+
+/**
+ * @since SmartDeviceLink 7.0.0
+ */
+public enum CapacityUnit {
+ LITERS,
+
+ KILOWATTHOURS,
+
+ KILOGRAMS;
+
+ /**
+ * Convert String to CapacityUnit
+ *
+ * @param value String
+ * @return CapacityUnit
+ */
+ public static CapacityUnit valueForString(String value) {
+ try{
+ return valueOf(value);
+ }catch(Exception e){
+ return null;
+ }
+ }
+}
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/enums/VehicleDataType.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/enums/VehicleDataType.java
index 7682e16f8..294d50f1e 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/enums/VehicleDataType.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/enums/VehicleDataType.java
@@ -50,10 +50,12 @@ public enum VehicleDataType {
VEHICLEDATA_RPM,
/**
* Notifies FUELLEVELData may be subscribed
+ * until Smart Device Link 7.0
*/
VEHICLEDATA_FUELLEVEL,
/**
* Notifies FUELLEVEL_STATEData may be subscribed
+ * until Smart Device Link 7.0
*/
VEHICLEDATA_FUELLEVEL_STATE,
/**
@@ -172,6 +174,11 @@ public enum VehicleDataType {
* @since SmartDeviceLink 7.0.0
*/
VEHICLEDATA_HANDSOFFSTEERING,
+
+ /**
+ * @since SmartDeviceLink 7.0.0
+ */
+ VEHICLEDATA_STABILITYCONTROLSSTATUS,
/**
* @since SmartDeviceLink 7.0.0
*/