forked from open-networks/go-msgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMessage.go
46 lines (44 loc) · 3.61 KB
/
Message.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
package msgraph
import (
"time"
)
// Message represents a single email message.
//
// See https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/Message
type Message struct {
BCCRecipients []Recipient `json:"bccRecipients,omitempty"`
Body *ItemBody `json:"body,omitempty"`
BodyPreview string `json:"bodyPreview,omitempty"`
Categories []string `json:"categories,omitempty"`
CCRecipients []Recipient `json:"ccRecipients,omitempty"`
ChangeKey string `json:"changeKey,omitempty"`
ConversationID string `json:"conversationId,omitempty"`
ConversationIndex string `json:"conversationIndex,omitempty"`
CreatedDateTime time.Time `json:"createdDateTime,omitempty"`
Flag *FollowupFlag `json:"flag,omitempty"`
From *Recipient `json:"from,omitempty"`
HasAttachments *bool `json:"hasAttachments,omitempty"`
ID string `json:"id,omitempty"`
Importance MessageImportance `json:"importance,omitempty"`
InferenceClassification MessageClassification `json:"inferenceClassification,omitempty"`
InternetMessageHeaders []InternetMessageHeader `json:"internetMessageHeaders,omitempty"`
InternetMessageID string `json:"internetMessageId,omitempty"`
IsDeliveryReceiptRequested *bool `json:"isDeliveryReceiptRequested,omitempty"`
IsDraft *bool `json:"isDraft,omitempty"`
IsRead *bool `json:"isRead,omitempty"`
IsReadReceiptRequested *bool `json:"isReadReceiptRequested,omitempty"`
LastModifiedDateTime time.Time `json:"lastModifiedDateTime,omitempty"`
ParentFolderId string `json:"parentFolderId,omitempty"`
ReceivedDateTime time.Time `json:"receivedDateTime,omitempty"`
ReplyTo []Recipient `json:"replyTo,omitempty"`
Sender *Recipient `json:"sender,omitempty"`
SentDateTime time.Time `json:"sentDateTime,omitempty"`
Subject string `json:"subject,omitempty"`
ToRecipients []Recipient `json:"toRecipients,omitempty"`
UniqueBody *ItemBody `json:"uniqueBody,omitempty"`
WebLink string `json:"webLink,omitempty"`
Attachments []Attachment `json:"attachments,omitempty"`
Extensions []Extension `json:"extensions,omitempty"`
MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
}