/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/microsoftgraph/msgraph-sdk-go/models/call_direction.go
36 строк
926 B
Justin Pierce
Add compat_otp package with openshift-tests-private (OTP) util implementations
11 авг 2025, 18:00
11 авг 2025, 18:00
80ac5c1
Код
Авторство
О чём код?
// 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 CallDirection int const ( INCOMING_CALLDIRECTION CallDirection = iota OUTGOING_CALLDIRECTION ) func (i CallDirection) String() string { return []string{"incoming", "outgoing"}[i] } func ParseCallDirection(v string) (any, error) { result := INCOMING_CALLDIRECTION switch v { case "incoming": result = INCOMING_CALLDIRECTION case "outgoing": result = OUTGOING_CALLDIRECTION default: return nil, nil } return &result, nil } func SerializeCallDirection(values []CallDirection) []string { result := make([]string, len(values)) for i, v := range values { result[i] = v.String() } return result } func (i CallDirection) isMultiValue() bool { return false }