-
Notifications
You must be signed in to change notification settings - Fork 20
/
mmsmspdutype_string.go
executable file
·43 lines (37 loc) · 1.34 KB
/
mmsmspdutype_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
// Code generated by "stringer -type=MMSmsPduType -trimprefix=MmSmsPduType"; 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[MmSmsPduTypeUnknown-0]
_ = x[MmSmsPduTypeDeliver-1]
_ = x[MmSmsPduTypeSubmit-2]
_ = x[MmSmsPduTypeStatusReport-3]
_ = x[MmSmsPduTypeCdmaDeliver-32]
_ = x[MmSmsPduTypeCdmaSubmit-33]
_ = x[MmSmsPduTypeCdmaCancellation-34]
_ = x[MmSmsPduTypeCdmaDeliveryAcknowledgement-35]
_ = x[MmSmsPduTypeCdmaUserAcknowledgement-36]
_ = x[MmSmsPduTypeCdmaReadAcknowledgement-37]
}
const (
_MMSmsPduType_name_0 = "UnknownDeliverSubmitStatusReport"
_MMSmsPduType_name_1 = "CdmaDeliverCdmaSubmitCdmaCancellationCdmaDeliveryAcknowledgementCdmaUserAcknowledgementCdmaReadAcknowledgement"
)
var (
_MMSmsPduType_index_0 = [...]uint8{0, 7, 14, 20, 32}
_MMSmsPduType_index_1 = [...]uint8{0, 11, 21, 37, 64, 87, 110}
)
func (i MMSmsPduType) String() string {
switch {
case i <= 3:
return _MMSmsPduType_name_0[_MMSmsPduType_index_0[i]:_MMSmsPduType_index_0[i+1]]
case 32 <= i && i <= 37:
i -= 32
return _MMSmsPduType_name_1[_MMSmsPduType_index_1[i]:_MMSmsPduType_index_1[i+1]]
default:
return "MMSmsPduType(" + strconv.FormatInt(int64(i), 10) + ")"
}
}