-
Notifications
You must be signed in to change notification settings - Fork 19
/
mmmodemcapability_string.go
executable file
·51 lines (45 loc) · 1.39 KB
/
mmmodemcapability_string.go
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
46
47
48
49
50
51
// Code generated by "stringer -type=MMModemCapability -trimprefix=MmModemCapability"; DO NOT EDIT.
package modemmanager
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[MmModemCapabilityNone-0]
_ = x[MmModemCapabilityPots-1]
_ = x[MmModemCapabilityCdmaEvdo-2]
_ = x[MmModemCapabilityGsmUmts-4]
_ = x[MmModemCapabilityLte-8]
_ = x[MmModemCapabilityLteAdvanced-16]
_ = x[MmModemCapabilityIridium-32]
_ = x[MmModemCapabilityAny-4294967295]
}
const (
_MMModemCapability_name_0 = "NonePotsCdmaEvdo"
_MMModemCapability_name_1 = "GsmUmts"
_MMModemCapability_name_2 = "Lte"
_MMModemCapability_name_3 = "LteAdvanced"
_MMModemCapability_name_4 = "Iridium"
_MMModemCapability_name_5 = "Any"
)
var (
_MMModemCapability_index_0 = [...]uint8{0, 4, 8, 16}
)
func (i MMModemCapability) String() string {
switch {
case i <= 2:
return _MMModemCapability_name_0[_MMModemCapability_index_0[i]:_MMModemCapability_index_0[i+1]]
case i == 4:
return _MMModemCapability_name_1
case i == 8:
return _MMModemCapability_name_2
case i == 16:
return _MMModemCapability_name_3
case i == 32:
return _MMModemCapability_name_4
case i == 4294967295:
return _MMModemCapability_name_5
default:
return "MMModemCapability(" + strconv.FormatInt(int64(i), 10) + ")"
}
}