summaryrefslogtreecommitdiff
path: root/SDL_Android/SmartDeviceLinkProxyAndroid/src/com/smartdevicelink/proxy/rpc/OnAppInterfaceUnregistered.java
diff options
context:
space:
mode:
Diffstat (limited to 'SDL_Android/SmartDeviceLinkProxyAndroid/src/com/smartdevicelink/proxy/rpc/OnAppInterfaceUnregistered.java')
-rwxr-xr-xSDL_Android/SmartDeviceLinkProxyAndroid/src/com/smartdevicelink/proxy/rpc/OnAppInterfaceUnregistered.java86
1 files changed, 0 insertions, 86 deletions
diff --git a/SDL_Android/SmartDeviceLinkProxyAndroid/src/com/smartdevicelink/proxy/rpc/OnAppInterfaceUnregistered.java b/SDL_Android/SmartDeviceLinkProxyAndroid/src/com/smartdevicelink/proxy/rpc/OnAppInterfaceUnregistered.java
deleted file mode 100755
index a1cb45d3f..000000000
--- a/SDL_Android/SmartDeviceLinkProxyAndroid/src/com/smartdevicelink/proxy/rpc/OnAppInterfaceUnregistered.java
+++ /dev/null
@@ -1,86 +0,0 @@
-package com.smartdevicelink.proxy.rpc;
-
-import java.util.Hashtable;
-
-import com.smartdevicelink.proxy.RPCNotification;
-import com.smartdevicelink.proxy.constants.Names;
-import com.smartdevicelink.proxy.rpc.enums.AppInterfaceUnregisteredReason;
-import com.smartdevicelink.util.DebugTool;
-
-/**
- * <p>Notifies an application that its interface registration has been terminated. This means that all SMARTDEVICELINK resources
- * associated with the application are discarded, including the Command Menu, Choice Sets, button subscriptions, etc.</p>
- * For more information about SMARTDEVICELINK resources related to an interface registration, see {@linkplain RegisterAppInterface}.
- * <p></p>
- * <b>HMI Status Requirements:</b>
- * <ul>
- * HMILevel:
- * <ul><li>Any</li></ul>
- * AudioStreamingState:
- * <ul><li>Any</li></ul>
- * SystemContext:
- * <ul><li>Any</li></ul>
- * </ul>
- * <p>
- * <b>Parameter List:</b>
- * <table border="1" rules="all">
- * <tr>
- * <th>Name</th>
- * <th>Type</th>
- * <th>Description</th>
- * <th>Applink Ver Available</th>
- * </tr>
- * <tr>
- * <td>reason</td>
- * <td>{@linkplain AppInterfaceUnregisteredReason}</td>
- * <td>The reason the application's interface registration was terminated</td>
- * <td>SmartDeviceLink 1.0</td>
- * </tr>
- * </table>
- * </p>
- * @since SmartDeviceLink 1.0
- * @see RegisterAppInterface
- */
-public class OnAppInterfaceUnregistered extends RPCNotification {
- /**
- *Constructs a newly allocated OnAppInterfaceUnregistered object
- */
- public OnAppInterfaceUnregistered() {
- super("OnAppInterfaceUnregistered");
- }
- /**
- *<p>Constructs a newly allocated OnAppInterfaceUnregistered object indicated by the Hashtable parameter</p>
- *@param hash The Hashtable to use
- */
- public OnAppInterfaceUnregistered(Hashtable hash) {
- super(hash);
- }
- /**
- * <p>Get the reason the registration was terminated</p>
- * @return {@linkplain AppInterfaceUnregisteredReason} the reason the application's interface registration was terminated
- */
- public AppInterfaceUnregisteredReason getReason() {
- Object obj = parameters.get(Names.reason);
- if (obj instanceof AppInterfaceUnregisteredReason) {
- return (AppInterfaceUnregisteredReason) obj;
- } else if (obj instanceof String) {
- AppInterfaceUnregisteredReason theCode = null;
- try {
- theCode = AppInterfaceUnregisteredReason.valueForString((String) obj);
- } catch (Exception e) {
- DebugTool.logError("Failed to parse " + getClass().getSimpleName() + "." + Names.reason, e);
- }
- return theCode;
- }
- return null;
- }
- /**
- * <p>Set the reason application's interface was terminated</p>
- * @param reason The reason application's interface registration was terminated
- */
- public void setReason( AppInterfaceUnregisteredReason reason ) {
- if (reason != null) {
- parameters.put(Names.reason, reason );
- }
- }
-}