/
socialexpression.go
98 lines (56 loc) · 3.4 KB
/
socialexpression.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
91
92
93
94
95
96
97
98
package platformclientv2
import (
"time"
"encoding/json"
"strconv"
"strings"
)
// Socialexpression
type Socialexpression struct {
// State - The connection state of this communication.
State *string `json:"state,omitempty"`
// Id - A globally unique identifier for this communication.
Id *string `json:"id,omitempty"`
// SocialMediaId - A globally unique identifier for the social media.
SocialMediaId *string `json:"socialMediaId,omitempty"`
// SocialMediaHub - The social network of the communication
SocialMediaHub *string `json:"socialMediaHub,omitempty"`
// SocialUserName - The user name for the communication.
SocialUserName *string `json:"socialUserName,omitempty"`
// PreviewText - The text preview of the communication contents
PreviewText *string `json:"previewText,omitempty"`
// RecordingId - A globally unique identifier for the recording associated with this chat.
RecordingId *string `json:"recordingId,omitempty"`
// Segments - The time line of the participant's chat, divided into activity segments.
Segments *[]Segment `json:"segments,omitempty"`
// Held - True if this call is held and the person on this side hears silence.
Held *bool `json:"held,omitempty"`
// DisconnectType - System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects.
DisconnectType *string `json:"disconnectType,omitempty"`
// StartHoldTime - The timestamp the chat was placed on hold in the cloud clock if the chat is currently on hold. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
StartHoldTime *time.Time `json:"startHoldTime,omitempty"`
// StartAlertingTime - The timestamp the communication has when it is first put into an alerting state. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
StartAlertingTime *time.Time `json:"startAlertingTime,omitempty"`
// ConnectedTime - The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
ConnectedTime *time.Time `json:"connectedTime,omitempty"`
// DisconnectedTime - The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
DisconnectedTime *time.Time `json:"disconnectedTime,omitempty"`
// Provider - The source provider for the social expression.
Provider *string `json:"provider,omitempty"`
// ScriptId - The UUID of the script to use.
ScriptId *string `json:"scriptId,omitempty"`
// PeerId - The id of the peer communication corresponding to a matching leg for this communication.
PeerId *string `json:"peerId,omitempty"`
// Wrapup - Call wrap up or disposition data.
Wrapup *Wrapup `json:"wrapup,omitempty"`
// AfterCallWork - After-call work for the communication.
AfterCallWork *Aftercallwork `json:"afterCallWork,omitempty"`
// AfterCallWorkRequired - Indicates if after-call work is required for a communication. Only used when the ACW Setting is Agent Requested.
AfterCallWorkRequired *bool `json:"afterCallWorkRequired,omitempty"`
}
// String returns a JSON representation of the model
func (o *Socialexpression) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}