blob: 273dc83d37ced67c5d548607e5e3114a2396b121 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
package com.smartdevicelink.proxy.rpc.enums;
/**
* Reflects the reported battery status of the connected device, if reported.
* @since SmartDeviceLink 2.0
*/
public enum DeviceLevelStatus {
/**
* Zero level bars
*/
ZERO_LEVEL_BARS,
/**
* One level bars
*/
ONE_LEVEL_BARS,
/**
* Two level bars
*/
TWO_LEVEL_BARS,
/**
* Three level bars
*/
THREE_LEVEL_BARS,
/**
* Four level bars
*/
FOUR_LEVEL_BARS,
/**
* Not provided
*/
NOT_PROVIDED;
/**
* Convert String to DeviceLevelStatus
* @param value String
* @return DeviceLevelStatus
*/
public static DeviceLevelStatus valueForString(String value) {
try{
return valueOf(value);
}catch(Exception e){
return null;
}
}
}
|