1 package com.smartdevicelink.proxy.rpc;
\r
3 import java.util.Hashtable;
\r
5 import com.smartdevicelink.proxy.RPCRequest;
\r
6 import com.smartdevicelink.proxy.constants.Names;
\r
9 * Removes a command from the Command Menu
\r
11 * <b>HMI Status Requirements:</b><br/>
\r
12 * HMILevel: FULL, LIMITED or BACKGROUND<br/>
\r
13 * AudioStreamingState: N/A<br/>
\r
14 * SystemContext: Should not be attempted when VRSESSION or MENU
\r
17 * @since SmartDeviceLink 1.0
\r
20 * @see DeleteSubMenu
\r
22 public class DeleteCommand extends RPCRequest {
\r
25 * Constructs a new DeleteCommand object
\r
27 public DeleteCommand() {
\r
28 super("DeleteCommand");
\r
31 * Constructs a new DeleteCommand object indicated by the Hashtable
\r
36 * The Hashtable to use
\r
38 public DeleteCommand(Hashtable hash) {
\r
42 * Gets the Command ID that identifies the Command to be deleted from
\r
45 * @return Integer - Integer value representing Command ID that identifies
\r
46 * the Command to be deleted from Command Menu
\r
48 public Integer getCmdID() {
\r
49 return (Integer) parameters.get( Names.cmdID );
\r
52 * Sets the Command ID that identifies the Command to be deleted from Command Menu
\r
55 * an Integer value representing Command ID
\r
57 * <b>Notes: </b>Min Value: 0; Max Value: 2000000000
\r
59 public void setCmdID( Integer cmdID ) {
\r
60 if (cmdID != null) {
\r
61 parameters.put(Names.cmdID, cmdID );
\r