-
Notifications
You must be signed in to change notification settings - Fork 24
/
user_info.go
90 lines (83 loc) · 2.29 KB
/
user_info.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package mock
import (
"github.com/microsoftgraph/msgraph-sdk-go/models"
"github.com/alcionai/corso/src/pkg/services/m365/api"
)
func UserSettings() models.Userable {
u := models.NewUser()
u.SetAdditionalData(
map[string]any{
"archiveFolder": "archive",
"timeZone": "UTC",
"dateFormat": "MM/dd/yyyy",
"timeFormat": "hh:mm tt",
"userPurpose": "user",
"delegateMeetingMessageDeliveryOptions": "test",
"automaticRepliesSetting": map[string]any{
"status": "foo",
"externalAudience": "bar",
"externalReplyMessage": "baz",
"internalReplyMessage": "qux",
"scheduledStartDateTime": map[string]any{
"dateTime": "2020-01-01T00:00:00Z",
"timeZone": "UTC",
},
"scheduledEndDateTime": map[string]any{
"dateTime": "2020-01-01T00:00:00Z",
"timeZone": "UTC",
},
},
"language": map[string]any{
"displayName": "en-US",
"locale": "US",
},
"workingHours": map[string]any{
"daysOfWeek": []any{"monday"},
"startTime": "08:00:00.0000000",
"endTime": "17:00:00.0000000",
"timeZone": map[string]any{
"name": "UTC",
},
},
})
return u
}
func UserMailboxInfo() api.MailboxInfo {
return api.MailboxInfo{
Purpose: "user",
ArchiveFolder: "archive",
DateFormat: "MM/dd/yyyy",
TimeFormat: "hh:mm tt",
DelegateMeetMsgDeliveryOpt: "test",
Timezone: "UTC",
AutomaticRepliesSetting: api.AutomaticRepliesSettings{
Status: "foo",
ExternalAudience: "bar",
ExternalReplyMessage: "baz",
InternalReplyMessage: "qux",
ScheduledStartDateTime: api.TimeInfo{
DateTime: "2020-01-01T00:00:00Z",
Timezone: "UTC",
},
ScheduledEndDateTime: api.TimeInfo{
DateTime: "2020-01-01T00:00:00Z",
Timezone: "UTC",
},
},
Language: api.Language{
DisplayName: "en-US",
Locale: "US",
},
WorkingHours: api.WorkingHours{
DaysOfWeek: []string{"monday"},
StartTime: "08:00:00.0000000",
EndTime: "17:00:00.0000000",
TimeZone: struct {
Name string
}{
Name: "UTC",
},
},
ErrGetMailBoxSetting: []error{},
}
}