diff options
author | Bilal Alsharifi <bilal.alsharifi@gmail.com> | 2019-03-04 13:11:58 -0500 |
---|---|---|
committer | Bilal Alsharifi <bilal.alsharifi@gmail.com> | 2019-03-04 13:11:58 -0500 |
commit | ca82432f267708e5f31c391ec614e92b128b7cc2 (patch) | |
tree | 4423df499f822a660afa98f287955f35643cadd0 /base/src/main/java/com/smartdevicelink/proxy/rpc/HMICapabilities.java | |
parent | 252153e2183184bfce7bfb392c42f2e71eae5a8b (diff) | |
download | sdl_android-ca82432f267708e5f31c391ec614e92b128b7cc2.tar.gz |
Move rpc and enums dirs to base
Diffstat (limited to 'base/src/main/java/com/smartdevicelink/proxy/rpc/HMICapabilities.java')
-rw-r--r-- | base/src/main/java/com/smartdevicelink/proxy/rpc/HMICapabilities.java | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/HMICapabilities.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/HMICapabilities.java new file mode 100644 index 000000000..8f4cdfe66 --- /dev/null +++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/HMICapabilities.java @@ -0,0 +1,68 @@ +package com.smartdevicelink.proxy.rpc; + +import com.smartdevicelink.proxy.RPCStruct; + +import java.util.Hashtable; + +public class HMICapabilities extends RPCStruct{ + public static final String KEY_NAVIGATION = "navigation"; + public static final String KEY_PHONE_CALL = "phoneCall"; + public static final String KEY_VIDEO_STREAMING = "videoStreaming"; + public static final String KEY_REMOTE_CONTROL = "remoteControl"; + + public HMICapabilities() { } + + public HMICapabilities(Hashtable<String, Object> hash) { + super(hash); + } + + public boolean isNavigationAvailable(){ + Object available = getValue(KEY_NAVIGATION); + if(available == null){ + return false; + } + return (Boolean)available; + } + + public void setNavigationAvilable(Boolean available){ + setValue(KEY_NAVIGATION, available); + } + + public boolean isPhoneCallAvailable(){ + Object available = getValue(KEY_PHONE_CALL); + if(available == null){ + return false; + } + return (Boolean)available; + } + + public void setPhoneCallAvilable(Boolean available){ + setValue(KEY_PHONE_CALL, available); + } + + public boolean isVideoStreamingAvailable(){ + Object available = getValue(KEY_VIDEO_STREAMING); + if(available == null){ + return false; + } + return (Boolean)available; + } + + public void setVideoStreamingAvailable(Boolean available){ + setValue(KEY_VIDEO_STREAMING, available); + } + + public boolean isRemoteControlAvailable(){ + Object available = getValue(KEY_REMOTE_CONTROL); + if(available == null){ + return false; + } + return (Boolean)available; + } + + public void setRemoteControlAvailable(Boolean available){ + setValue(KEY_REMOTE_CONTROL, available); + } + + +} |