-
Notifications
You must be signed in to change notification settings - Fork 4
/
itemaction_string.go
49 lines (38 loc) · 1.27 KB
/
itemaction_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 ItemAction,TaskStatus,TaskSchedule"; DO NOT EDIT.
package thingscloud
import "fmt"
const _ItemAction_name = "ItemActionCreatedItemActionModifiedItemActionDeleted"
var _ItemAction_index = [...]uint8{0, 17, 35, 52}
func (i ItemAction) String() string {
if i < 0 || i >= ItemAction(len(_ItemAction_index)-1) {
return fmt.Sprintf("ItemAction(%d)", i)
}
return _ItemAction_name[_ItemAction_index[i]:_ItemAction_index[i+1]]
}
const (
_TaskStatus_name_0 = "TaskStatusPending"
_TaskStatus_name_1 = "TaskStatusCanceledTaskStatusCompleted"
)
var (
_TaskStatus_index_0 = [...]uint8{0, 17}
_TaskStatus_index_1 = [...]uint8{0, 18, 37}
)
func (i TaskStatus) String() string {
switch {
case i == 0:
return _TaskStatus_name_0
case 2 <= i && i <= 3:
i -= 2
return _TaskStatus_name_1[_TaskStatus_index_1[i]:_TaskStatus_index_1[i+1]]
default:
return fmt.Sprintf("TaskStatus(%d)", i)
}
}
const _TaskSchedule_name = "TaskScheduleTodayTaskScheduleAnytimeTaskScheduleSomeday"
var _TaskSchedule_index = [...]uint8{0, 17, 36, 55}
func (i TaskSchedule) String() string {
if i < 0 || i >= TaskSchedule(len(_TaskSchedule_index)-1) {
return fmt.Sprintf("TaskSchedule(%d)", i)
}
return _TaskSchedule_name[_TaskSchedule_index[i]:_TaskSchedule_index[i+1]]
}