forked from mattermost/mattermost-plugin-mscalendar
/
event.go
62 lines (54 loc) · 2.66 KB
/
event.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
// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved.
// See License for license information.
package remote
type Event struct {
Start *DateTime `json:"start,omitempty"`
Location *Location `json:"location,omitempty"`
End *DateTime `json:"end,omitempty"`
Organizer *Attendee `json:"organizer,omitempty"`
Body *ItemBody `json:"Body,omitempty"`
ResponseStatus *EventResponseStatus `json:"responseStatus,omitempty"`
Importance string `json:"importance,omitempty"`
ICalUID string `json:"iCalUId,omitempty"`
Subject string `json:"subject,omitempty"`
BodyPreview string `json:"bodyPreview,omitempty"`
ShowAs string `json:"showAs,omitempty"`
Weblink string `json:"weblink,omitempty"`
ID string `json:"id,omitempty"`
Attendees []*Attendee `json:"attendees,omitempty"`
ReminderMinutesBeforeStart int `json:"reminderMinutesBeforeStart,omitempty"`
IsOrganizer bool `json:"isOrganizer,omitempty"`
IsCancelled bool `json:"isCancelled,omitempty"`
IsAllDay bool `json:"isAllDay,omitempty"`
ResponseRequested bool `json:"responseRequested,omitempty"`
}
type ItemBody struct {
Content string `json:"content,omitempty"`
ContentType string `json:"contentType,omitempty"`
}
type EventResponseStatus struct {
Response string `json:"response,omitempty"`
Time string `json:"time,omitempty"`
}
type Location struct {
DisplayName string `json:"displayName,omitempty"`
Address *Address `json:"address"`
Coordinates *Coordinates `json:"coordinates"`
LocationType string `json:"locationType"`
}
type Address struct {
Street string `json:"street,omitempty"`
City string `json:"city,omitempty"`
State string `json:"state,omitempty"`
CountryOrRegion string `json:"countryOrRegion,omitempty"`
PostalCode string `json:"postalCode,omitempty"`
}
type Coordinates struct {
Latitude float32 `json:"latitude,omitempty"`
Longitude float32 `json:"longitude,omitempty"`
}
type Attendee struct {
Status *EventResponseStatus `json:"status,omitempty"`
EmailAddress *EmailAddress `json:"emailAddress,omitempty"`
Type string `json:"type,omitempty"`
}