summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenigan <rheniga1@MGC12Z921DLVCG.fbpld77.ford.com>2020-12-09 17:03:39 -0500
committerHenigan <rheniga1@MGC12Z921DLVCG.fbpld77.ford.com>2020-12-09 17:03:39 -0500
commitcb808a97ece57e7daab88213f187db4e6487b74e (patch)
treec0fc028b81e4f44af102eb0c6ebb92f6bba1b611
parent746ba9454d3ea5aa0ecd70efb409a5e401a9ae91 (diff)
downloadsdl_android-feature/issue_116_RPC_Requests.tar.gz
add override methods for missed rpc requestfeature/issue_116_RPC_Requests
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataConsent.java23
1 files changed, 23 insertions, 0 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 a2dd2c410..ac69b849d 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataConsent.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/GetInteriorVehicleDataConsent.java
@@ -1,6 +1,7 @@
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
import com.smartdevicelink.protocol.enums.FunctionID;
import com.smartdevicelink.proxy.RPCRequest;
@@ -69,4 +70,26 @@ public class GetInteriorVehicleDataConsent extends RPCRequest {
public List<String> getModuleIds() {
return (List<String>) getObject(String.class, KEY_MODULE_ID);
}
+
+ @Override
+ public int hashCode() {
+ return super.hashCode();
+ }
+
+ @Override
+ public boolean equals(@Nullable Object obj) {
+ if (obj == null) return false;
+ // if this is the same memory address, it's the same
+ if (this == obj) return true;
+ // if this is not an instance of GetInteriorVehicleDataConsent, not the same
+ if (!(obj instanceof GetInteriorVehicleDataConsent)) return false;
+ // return comparison
+ return hashCode() == obj.hashCode();
+ }
+
+ @NonNull
+ @Override
+ protected Object clone() throws CloneNotSupportedException {
+ return super.clone();
+ }
}