SDL_Android/SmartDeviceLinkAndroidProxy - added the correct version of the proxy
[profile/ivi/smartdevicelink.git] / SDL_Android / SmartDeviceLinkProxyAndroid / src / com / smartdevicelink / proxy / rpc / OnAudioPassThru.java
1 package com.smartdevicelink.proxy.rpc;\r
2 \r
3 import java.util.Hashtable;\r
4 \r
5 import com.smartdevicelink.proxy.RPCNotification;\r
6 import com.smartdevicelink.proxy.constants.Names;\r
7 \r
8 /**\r
9  * Binary data is in binary part of hybrid msg.\r
10  *  <p>\r
11  * </p>\r
12  * <b>HMI Status Requirements:</b>\r
13  * <ul>\r
14  * HMILevel:\r
15  * <ul>\r
16  * <li>BACKGROUND, FULL, LIMITED</li>\r
17  * </ul>\r
18  * AudioStreamingState:\r
19  * <ul>\r
20  * <li>TBD</li>\r
21  * </ul>\r
22  * SystemContext:\r
23  * <ul>\r
24  * <li>TBD</li>\r
25  * </ul>\r
26  * </ul>\r
27  * <p>\r
28  * <b>Parameter List:</b>\r
29  * <table border="1" rules="all">\r
30  * <tr>\r
31  * <th>Name</th>\r
32  * <th>Type</th>\r
33  * <th>Description</th>\r
34  * <th>Req</th>\r
35  * <th>Notes</th>\r
36  * <th>Applink Ver Available</th>\r
37  * </tr>\r
38 \r
39  * </table>\r
40  * </p>\r
41  *\r
42  */\r
43 public class OnAudioPassThru extends RPCNotification {\r
44         /**\r
45         *Constructs a newly allocated OnCommand object\r
46         */    \r
47     public OnAudioPassThru() {\r
48         super("OnAudioPassThru");\r
49     }\r
50     /**\r
51      *<p>Constructs a newly allocated OnAudioPassThru object indicated by the Hashtable parameter</p>\r
52      *@param hash The Hashtable to use\r
53      */ \r
54     public OnAudioPassThru(Hashtable hash) {\r
55         super(hash);\r
56     }\r
57     public void setAPTData(byte[] aptData) {\r
58         if (aptData != null) {\r
59             store.put(Names.bulkData, aptData);\r
60         } else {\r
61                 store.remove(Names.bulkData);\r
62         }\r
63     }\r
64     public byte[] getAPTData() {\r
65         return (byte[]) store.get(Names.bulkData);\r
66     }\r
67 }\r