/
model_content.go
50 lines (47 loc) · 2.71 KB
/
model_content.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
/*
* Engage Digital API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 1.0
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package engagedigital
import (
"time"
)
type Content struct {
ApprovalRequired bool `json:"approval_required,omitempty"`
Attachments []ContentAttachment `json:"attachments,omitempty"`
AttachmentsCount int32 `json:"attachments_count,omitempty"`
AuthorId string `json:"author_id,omitempty"`
Body string `json:"body,omitempty"`
BodyFormatted ContentBodyFormatted `json:"body_formatted,omitempty"`
// values can be: text or html.
BodyInputFormat string `json:"body_input_format,omitempty"`
// are content categories if none, they are default to intervention categories or thread categories
CategoryIds []string `json:"category_ids,omitempty"`
// is present only if the content has context_data associated. The context_data hash keys are the custom fields keys.
ContextData map[string]interface{} `json:"context_data,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
CreatedFrom string `json:"created_from,omitempty"`
CreatorId string `json:"creator_id,omitempty"`
ForeignId string `json:"foreign_id,omitempty"`
Id string `json:"id"`
InReplyToAuthorId string `json:"in_reply_to_author_id,omitempty"`
InReplyToId string `json:"in_reply_to_id,omitempty"`
InterventionId string `json:"intervention_id,omitempty"`
Language string `json:"language,omitempty"`
PrivateMessage bool `json:"private_message,omitempty"`
Published bool `json:"published,omitempty"`
RemotelyDeleted bool `json:"remotely_deleted,omitempty"`
SourceId string `json:"source_id,omitempty"`
SourceType string `json:"source_type,omitempty"`
SourceUrl string `json:"source_url,omitempty"`
Status string `json:"status,omitempty"`
SynchronizationStatus string `json:"synchronization_status,omitempty"`
ThreadId string `json:"thread_id,omitempty"`
Title string `json:"title,omitempty"`
Type string `json:"type,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
}