package com.smartdevicelink.proxy.rpc.enums;
/**
* Indicates the format of the time displayed on the connected SDL unit.Format
* description follows the following nomenclature:
Sp = Space
| = or
c =
* character
*
* @since SmartDeviceLink 1.0
*/
public enum MediaClockFormat {
/**
*
*
*
* - maxHours = 19
* - maxMinutes = 59
* - maxSeconds = 59
*
*
* @since SmartDeviceLink 1.0
*
*/
CLOCK1,
/**
*
*
*
* - maxHours = 59
* - maxMinutes = 59
* - maxSeconds = 59
*
*
* @since SmartDeviceLink 1.0
*
*/
CLOCK2,
/**
*
*
*
* - maxHours = 9
* - maxMinutes = 59
* - maxSeconds = 59
*
*
* @since SmartDeviceLink 2.0
*
*/
CLOCK3,
/**
*
*
*
* - 5 characters possible
* - Format: 1|sp c :|sp c c
* - 1|sp : digit "1" or space
* - c : character out of following character set: sp|0-9|[letters, see
* TypeII column in XLS.
* - :|sp : colon or space
* - used for Type II headunit
*
*
* @since SmartDeviceLink 1.0
*/
CLOCKTEXT1,
/**
*
*
*
* - 5 characters possible
* - Format: 1|sp c :|sp c c
* - 1|sp : digit "1" or space
* - c : character out of following character set: sp|0-9|[letters, see
* CID column in XLS.
* - :|sp : colon or space
* - used for CID headunit
*
* difference between CLOCKTEXT1 and CLOCKTEXT2 is the supported character
* set
*
* @since SmartDeviceLink 1.0
*/
CLOCKTEXT2,
/**
*
*
*
* - 6 chars possible
* - Format: 1|sp c c :|sp c c
* - 1|sp : digit "1" or space
* - c : character out of following character set: sp|0-9|[letters, see
* Type 5 column in XLS].
* - :|sp : colon or space
* - used for Type V headunit
*
* difference between CLOCKTEXT1 and CLOCKTEXT2 is the supported character
* set
*
*
* @since SmartDeviceLink 1.0
*/
CLOCKTEXT3,
/**
*
*
*
* - 6 chars possible
* - Format: c :|sp c c : c c
* - :|sp : colon or space
* - c : character out of following character set: sp|0-9|[letters]
* - used for MFD3/4/5 headunits
*
*
*
* @since SmartDeviceLink 2.0
*/
CLOCKTEXT4;
public static MediaClockFormat valueForString(String value) {
try{
return valueOf(value);
}catch(Exception e){
return null;
}
}
}