-
Notifications
You must be signed in to change notification settings - Fork 19
/
mmomasessionstate_string.go
executable file
·49 lines (43 loc) · 1.59 KB
/
mmomasessionstate_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
// Code generated by "stringer -type=MMOmaSessionState -trimprefix=MmOmaSessionState"; 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[MmOmaSessionStateFailed - -1]
_ = x[MmOmaSessionStateUnknown-0]
_ = x[MmOmaSessionStateStarted-1]
_ = x[MmOmaSessionStateRetrying-2]
_ = x[MmOmaSessionStateConnecting-3]
_ = x[MmOmaSessionStateConnected-4]
_ = x[MmOmaSessionStateAuthenticated-5]
_ = x[MmOmaSessionStateMdnDownloaded-10]
_ = x[MmOmaSessionStateMsidDownloaded-11]
_ = x[MmOmaSessionStatePrlDownloaded-12]
_ = x[MmOmaSessionStateMipProfileDownloaded-13]
_ = x[MmOmaSessionStateCompleted-20]
}
const (
_MMOmaSessionState_name_0 = "FailedUnknownStartedRetryingConnectingConnectedAuthenticated"
_MMOmaSessionState_name_1 = "MdnDownloadedMsidDownloadedPrlDownloadedMipProfileDownloaded"
_MMOmaSessionState_name_2 = "Completed"
)
var (
_MMOmaSessionState_index_0 = [...]uint8{0, 6, 13, 20, 28, 38, 47, 60}
_MMOmaSessionState_index_1 = [...]uint8{0, 13, 27, 40, 60}
)
func (i MMOmaSessionState) String() string {
switch {
case -1 <= i && i <= 5:
i -= -1
return _MMOmaSessionState_name_0[_MMOmaSessionState_index_0[i]:_MMOmaSessionState_index_0[i+1]]
case 10 <= i && i <= 13:
i -= 10
return _MMOmaSessionState_name_1[_MMOmaSessionState_index_1[i]:_MMOmaSessionState_index_1[i+1]]
case i == 20:
return _MMOmaSessionState_name_2
default:
return "MMOmaSessionState(" + strconv.FormatInt(int64(i), 10) + ")"
}
}