SDL_Android/SmartDeviceLinkAndroidProxy - added the correct version of the proxy
[profile/ivi/smartdevicelink.git] / SDL_Android / SmartDeviceLinkProxyAndroid / src / com / smartdevicelink / proxy / rpc / AlertResponse.java
1 package com.smartdevicelink.proxy.rpc;\r
2 \r
3 import java.util.Hashtable;\r
4 \r
5 import com.smartdevicelink.proxy.RPCResponse;\r
6 import com.smartdevicelink.proxy.constants.Names;\r
7 \r
8 /**\r
9  * Alert Response is sent, when Alert has been called\r
10  * \r
11  * @since SmartDeviceLink 1.0\r
12  */\r
13 public class AlertResponse extends RPCResponse {\r
14 \r
15         /**\r
16          * Constructs a new AlertResponse object\r
17          */\r
18     public AlertResponse() {\r
19         super("Alert");\r
20     }\r
21 \r
22         /**\r
23          * Constructs a new AlertResponse object indicated by the Hashtable\r
24          * parameter\r
25          * <p>\r
26          * \r
27          * @param hash\r
28          *            The Hashtable to use\r
29          */\r
30     public AlertResponse(Hashtable hash) {\r
31         super(hash);\r
32     }\r
33     public Integer getTryAgainTime() {\r
34         return (Integer) parameters.get(Names.tryAgainTime);\r
35     }\r
36     public void setTryAgainTime(Integer tryAgainTime) {\r
37         if (tryAgainTime != null) {\r
38             parameters.put(Names.tryAgainTime, tryAgainTime);\r
39         } else {\r
40                 parameters.remove(Names.tryAgainTime);\r
41         }\r
42     }\r
43 }