-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathcoachmark_location_type.go
51 lines (48 loc) · 1.67 KB
/
coachmark_location_type.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 Microsoft Kiota - DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package models
type CoachmarkLocationType int
const (
UNKNOWN_COACHMARKLOCATIONTYPE CoachmarkLocationType = iota
FROMEMAIL_COACHMARKLOCATIONTYPE
SUBJECT_COACHMARKLOCATIONTYPE
EXTERNALTAG_COACHMARKLOCATIONTYPE
DISPLAYNAME_COACHMARKLOCATIONTYPE
MESSAGEBODY_COACHMARKLOCATIONTYPE
UNKNOWNFUTUREVALUE_COACHMARKLOCATIONTYPE
)
func (i CoachmarkLocationType) String() string {
return []string{"unknown", "fromEmail", "subject", "externalTag", "displayName", "messageBody", "unknownFutureValue"}[i]
}
func ParseCoachmarkLocationType(v string) (any, error) {
result := UNKNOWN_COACHMARKLOCATIONTYPE
switch v {
case "unknown":
result = UNKNOWN_COACHMARKLOCATIONTYPE
case "fromEmail":
result = FROMEMAIL_COACHMARKLOCATIONTYPE
case "subject":
result = SUBJECT_COACHMARKLOCATIONTYPE
case "externalTag":
result = EXTERNALTAG_COACHMARKLOCATIONTYPE
case "displayName":
result = DISPLAYNAME_COACHMARKLOCATIONTYPE
case "messageBody":
result = MESSAGEBODY_COACHMARKLOCATIONTYPE
case "unknownFutureValue":
result = UNKNOWNFUTUREVALUE_COACHMARKLOCATIONTYPE
default:
return nil, nil
}
return &result, nil
}
func SerializeCoachmarkLocationType(values []CoachmarkLocationType) []string {
result := make([]string, len(values))
for i, v := range values {
result[i] = v.String()
}
return result
}
func (i CoachmarkLocationType) isMultiValue() bool {
return false
}