summaryrefslogtreecommitdiff
path: root/base/src/main/java/com/smartdevicelink/proxy/rpc/MyKey.java
blob: 3eba829fe8c3e8299385e6c303a1617c9afb5e66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package com.smartdevicelink.proxy.rpc;

import android.support.annotation.NonNull;

import com.smartdevicelink.proxy.RPCStruct;
import com.smartdevicelink.proxy.rpc.enums.VehicleDataStatus;

import java.util.Hashtable;
/** Information related to the MyKey feature.
 * <p><b>Parameter List</b></p>
 * <table border="1" rules="all">
 * 		<tr>
 * 			<th>Param Name</th>
 * 			<th>Type</th>
 * 			<th>Mandatory</th>
 * 			<th>Description</th>
 * 		</tr>
 * 		<tr>
 * 			<td>e911Override</td>
 * 			<td>VehicleDataStatus</td>
 * 			<td>true</td>
 *			<td>Indicates whether e911 override is on.</td>
 * 		</tr>
 *  </table>
 *
 *@since SmartDeviceLink 2.0
 *
 *@see GetVehicleData
 *@see OnVehicleData
 *@see VehicleDataStatus
 * 
 *
 */

public class MyKey extends RPCStruct {
    public static final String KEY_E_911_OVERRIDE = "e911Override";
	/**
	* Constructs a new MyKey object indicated
	*/
    public MyKey() { }
    /**
     * <p>Constructs a new MyKey object indicated by the Hashtable
     * parameter</p>
     * @param hash The Hashtable to use
     */
    public MyKey(Hashtable<String, Object> hash) {
        super(hash);
    }
    /**
     * Constructs a new MyKey object indicated
     */
    public MyKey(@NonNull VehicleDataStatus e911Override) {
        this();
        setE911Override(e911Override);
    }
    public void setE911Override(@NonNull VehicleDataStatus e911Override) {
        setValue(KEY_E_911_OVERRIDE, e911Override);
    }
    public VehicleDataStatus getE911Override() {
        return (VehicleDataStatus) getObject(VehicleDataStatus.class, KEY_E_911_OVERRIDE);
    }
}