-
Notifications
You must be signed in to change notification settings - Fork 19
/
mmmodem3gppregistrationstate_string.go
executable file
·33 lines (27 loc) · 1.47 KB
/
mmmodem3gppregistrationstate_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
// Code generated by "stringer -type=MMModem3gppRegistrationState -trimprefix=MmModem3gppRegistrationState"; 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[MmModem3gppRegistrationStateIdle-0]
_ = x[MmModem3gppRegistrationStateHome-1]
_ = x[MmModem3gppRegistrationStateSearching-2]
_ = x[MmModem3gppRegistrationStateDenied-3]
_ = x[MmModem3gppRegistrationStateUnknown-4]
_ = x[MmModem3gppRegistrationStateRoaming-5]
_ = x[MmModem3gppRegistrationStateHomeSmsOnly-6]
_ = x[MmModem3gppRegistrationStateRoamingSmsOnly-7]
_ = x[MmModem3gppRegistrationStateEmergencyOnly-8]
_ = x[MmModem3gppRegistrationStateHomeCsfbNotPreferred-9]
_ = x[MmModem3gppRegistrationStateRoamingCsfbNotPreferred-10]
}
const _MMModem3gppRegistrationState_name = "IdleHomeSearchingDeniedUnknownRoamingHomeSmsOnlyRoamingSmsOnlyEmergencyOnlyHomeCsfbNotPreferredRoamingCsfbNotPreferred"
var _MMModem3gppRegistrationState_index = [...]uint8{0, 4, 8, 17, 23, 30, 37, 48, 62, 75, 95, 118}
func (i MMModem3gppRegistrationState) String() string {
if i >= MMModem3gppRegistrationState(len(_MMModem3gppRegistrationState_index)-1) {
return "MMModem3gppRegistrationState(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _MMModem3gppRegistrationState_name[_MMModem3gppRegistrationState_index[i]:_MMModem3gppRegistrationState_index[i+1]]
}