diff options
author | BrettyWhite <geekman3454@protonmail.com> | 2019-09-16 10:44:21 -0400 |
---|---|---|
committer | BrettyWhite <geekman3454@protonmail.com> | 2019-09-16 10:44:21 -0400 |
commit | 9b7943a711fccc839f272a07d11b0c12e8385da7 (patch) | |
tree | 9a95ae749d2a27ccdf9edcf3ccbc590eec8449e8 | |
parent | c5d2e936780f6b9a2e2fa237931dd8f99dd46b5f (diff) | |
download | sdl_android-9b7943a711fccc839f272a07d11b0c12e8385da7.tar.gz |
add in missing helper constructors
5 files changed, 32 insertions, 1 deletions
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 459aeaf05..c7b16ba8d 100644 --- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataConsent.java +++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataConsent.java @@ -1,5 +1,7 @@ package com.smartdevicelink.proxy.rpc; +import android.support.annotation.NonNull; + import com.smartdevicelink.protocol.enums.FunctionID; import com.smartdevicelink.proxy.RPCRequest; import com.smartdevicelink.proxy.rpc.enums.ModuleType; @@ -19,6 +21,12 @@ public class GetInteriorVehicleDataConsent extends RPCRequest { super(hash); } + public GetInteriorVehicleDataConsent(@NonNull ModuleType moduleType, @NonNull List<String> moduleIds){ + this(); + setModuleType(moduleType); + setModuleIds(moduleIds); + } + /** * Sets the Module Type for this class * @param type the Module Type to be set 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 ee610aa1e..7a77be967 100644 --- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataConsentResponse.java +++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataConsentResponse.java @@ -21,10 +21,11 @@ public class GetInteriorVehicleDataConsentResponse extends RPCResponse { super(hash); } - public GetInteriorVehicleDataConsentResponse(@NonNull Boolean success, @NonNull Result resultCode) { + public GetInteriorVehicleDataConsentResponse(@NonNull Boolean success, @NonNull Result resultCode, @NonNull List<Boolean> allowed) { this(); setSuccess(success); setResultCode(resultCode); + setAllowances(allowed); } /** 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 80e8fac2c..67db3ed4a 100644 --- a/base/src/main/java/com/smartdevicelink/proxy/rpc/Grid.java +++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/Grid.java @@ -1,5 +1,7 @@ package com.smartdevicelink.proxy.rpc; +import android.support.annotation.NonNull; + import com.smartdevicelink.proxy.RPCStruct; import java.util.Hashtable; @@ -22,6 +24,12 @@ public class Grid extends RPCStruct { super(hash); } + public Grid(@NonNull Integer row, @NonNull Integer column){ + this(); + setRow(row); + setColumn(column); + } + /** * Sets the column of this Grid * @param col the column to be set 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 eef2fb5f0..c5c2c689d 100644 --- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ModuleInfo.java +++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ModuleInfo.java @@ -1,5 +1,7 @@ package com.smartdevicelink.proxy.rpc; +import android.support.annotation.NonNull; + import com.smartdevicelink.proxy.RPCStruct; import java.util.Hashtable; @@ -19,6 +21,11 @@ public class ModuleInfo extends RPCStruct { super(hash); } + public ModuleInfo(@NonNull String moduleId){ + this(); + setModuleId(moduleId); + } + /** * Sets the Module ID for this Module * @param id the id to be set 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 81bee2551..0c44fa5b6 100644 --- a/base/src/main/java/com/smartdevicelink/proxy/rpc/ReleaseInteriorVehicleDataModule.java +++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/ReleaseInteriorVehicleDataModule.java @@ -1,5 +1,7 @@ package com.smartdevicelink.proxy.rpc; +import android.support.annotation.NonNull; + import com.smartdevicelink.protocol.enums.FunctionID; import com.smartdevicelink.proxy.RPCRequest; import com.smartdevicelink.proxy.rpc.enums.ModuleType; @@ -18,6 +20,11 @@ public class ReleaseInteriorVehicleDataModule extends RPCRequest { super(hash); } + public ReleaseInteriorVehicleDataModule(@NonNull ModuleType moduleType){ + this(); + setModuleType(moduleType); + } + /** * Sets the Module Type for this class * @param type the Module Type to be set |