SDL_Android/SmartDeviceLinkAndroidProxy - added the correct version of the proxy
[profile/ivi/smartdevicelink.git] / SDL_Android / SmartDeviceLinkProxyAndroid / src / com / smartdevicelink / proxy / rpc / StartTime.java
1 package com.smartdevicelink.proxy.rpc;\r
2 \r
3 import java.util.Hashtable;\r
4 \r
5 import com.smartdevicelink.proxy.RPCStruct;\r
6 import com.smartdevicelink.proxy.constants.Names;\r
7 \r
8 /**\r
9  * Describes the hour, minute and second values used to set the media clock.\r
10  * <p><b> Parameter List\r
11  * <table border="1" rules="all">\r
12  *              <tr>\r
13  *                      <th>Name</th>\r
14  *                      <th>Type</th>\r
15  *                      <th>Description</th>\r
16  *                      <th>SmartDeviceLink Ver. Available</th>\r
17  *              </tr>\r
18  *              <tr>\r
19  *                      <td>hours</td>\r
20  *                      <td>Int16</td>\r
21  *                      <td>The hour. Minvalue="0", maxvalue="59"\r
22  *                                      <p><b>Note:</b>Some display types only support a max value of 19. If out of range, it will be rejected.\r
23  *                      </td>\r
24  *                      <td>SmartDeviceLink 1.0</td>\r
25  *              </tr>\r
26   *             <tr>\r
27  *                      <td>minutes</td>\r
28  *                      <td>Int16</td>\r
29  *                      <td>The minute. Minvalue="0", maxvalue="59".</td>\r
30  *                      <td>SmartDeviceLink 1.0</td>\r
31  *              </tr>\r
32  *     <tr>\r
33  *                      <td>seconds</td>\r
34  *                      <td>Int16</td>\r
35  *                      <td>The second. Minvalue="0", maxvalue="59".</td>\r
36  *                      <td>SmartDeviceLink 1.0</td>\r
37  *              </tr>\r
38  * </table>\r
39  * @since SmartDeviceLink 1.0\r
40  */\r
41 public class StartTime extends RPCStruct {\r
42 \r
43         /**\r
44          * Constructs a newly allocated StartTime object\r
45          */\r
46         public StartTime() { }\r
47     /**\r
48      * Constructs a newly allocated StartTime object indicated by the Hashtable parameter\r
49      * @param hash The Hashtable to use\r
50      */\r
51     public StartTime(Hashtable hash) {\r
52         super(hash);\r
53     }\r
54     /**\r
55      * Get the hour. Minvalue="0", maxvalue="59"\r
56  *                                      <p><b>Note:</b>Some display types only support a max value of 19. If out of range, it will be rejected.\r
57      * @return hours Minvalue="0", maxvalue="59"\r
58      */    \r
59     public Integer getHours() {\r
60         return (Integer) store.get( Names.hours );\r
61     }\r
62     /**\r
63      * Set the hour. Minvalue="0", maxvalue="59"\r
64  *                                      <p><b>Note:</b>Some display types only support a max value of 19. If out of range, it will be rejected.\r
65      * @param hours min: 0; max: 59\r
66      */    \r
67     public void setHours( Integer hours ) {\r
68         if (hours != null) {\r
69             store.put(Names.hours, hours );\r
70         }\r
71     }\r
72     /**\r
73      * Get the minute. Minvalue="0", maxvalue="59".\r
74      * @return minutes Minvalue="0", maxvalue="59"\r
75      */    \r
76     public Integer getMinutes() {\r
77         return (Integer) store.get( Names.minutes );\r
78     }\r
79     /**\r
80      * Set the minute. Minvalue="0", maxvalue="59".\r
81      * @param minutes min: 0; max: 59\r
82      */    \r
83     public void setMinutes( Integer minutes ) {\r
84         if (minutes != null) {\r
85             store.put(Names.minutes, minutes );\r
86         }\r
87     }\r
88     /**\r
89      * Get the second. Minvalue="0", maxvalue="59".\r
90      * @return seconds. Minvalue="0", maxvalue="59".\r
91      */    \r
92     public Integer getSeconds() {\r
93         return (Integer) store.get( Names.seconds );\r
94     }\r
95     /**\r
96      * Set the second. Minvalue="0", maxvalue="59".\r
97      * @param seconds min: 0 max: 59\r
98      */    \r
99     public void setSeconds( Integer seconds ) {\r
100         if (seconds != null) {\r
101             store.put(Names.seconds, seconds );\r
102         }\r
103     }\r
104 }\r