1 package com.smartdevicelink.proxy.rpc;
\r
3 import java.util.Hashtable;
\r
5 import com.smartdevicelink.proxy.RPCStruct;
\r
6 import com.smartdevicelink.proxy.constants.Names;
\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
15 * <th>Description</th>
\r
16 * <th>SmartDeviceLink Ver. Available</th>
\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
24 * <td>SmartDeviceLink 1.0</td>
\r
29 * <td>The minute. Minvalue="0", maxvalue="59".</td>
\r
30 * <td>SmartDeviceLink 1.0</td>
\r
35 * <td>The second. Minvalue="0", maxvalue="59".</td>
\r
36 * <td>SmartDeviceLink 1.0</td>
\r
39 * @since SmartDeviceLink 1.0
\r
41 public class StartTime extends RPCStruct {
\r
44 * Constructs a newly allocated StartTime object
\r
46 public StartTime() { }
\r
48 * Constructs a newly allocated StartTime object indicated by the Hashtable parameter
\r
49 * @param hash The Hashtable to use
\r
51 public StartTime(Hashtable hash) {
\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
59 public Integer getHours() {
\r
60 return (Integer) store.get( Names.hours );
\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
67 public void setHours( Integer hours ) {
\r
68 if (hours != null) {
\r
69 store.put(Names.hours, hours );
\r
73 * Get the minute. Minvalue="0", maxvalue="59".
\r
74 * @return minutes Minvalue="0", maxvalue="59"
\r
76 public Integer getMinutes() {
\r
77 return (Integer) store.get( Names.minutes );
\r
80 * Set the minute. Minvalue="0", maxvalue="59".
\r
81 * @param minutes min: 0; max: 59
\r
83 public void setMinutes( Integer minutes ) {
\r
84 if (minutes != null) {
\r
85 store.put(Names.minutes, minutes );
\r
89 * Get the second. Minvalue="0", maxvalue="59".
\r
90 * @return seconds. Minvalue="0", maxvalue="59".
\r
92 public Integer getSeconds() {
\r
93 return (Integer) store.get( Names.seconds );
\r
96 * Set the second. Minvalue="0", maxvalue="59".
\r
97 * @param seconds min: 0 max: 59
\r
99 public void setSeconds( Integer seconds ) {
\r
100 if (seconds != null) {
\r
101 store.put(Names.seconds, seconds );
\r