From cb808a97ece57e7daab88213f187db4e6487b74e Mon Sep 17 00:00:00 2001 From: Henigan Date: Wed, 9 Dec 2020 17:03:39 -0500 Subject: add override methods for missed rpc request --- .../proxy/rpc/GetInteriorVehicleDataConsent.java | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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 getModuleIds() { return (List) 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(); + } } -- cgit v1.2.1