/
cobrowsesession.go
90 lines (52 loc) · 3.38 KB
/
cobrowsesession.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 platformclientv2
import (
"time"
"encoding/json"
"strconv"
"strings"
)
// Cobrowsesession
type Cobrowsesession 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"`
// DisconnectType - System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects.
DisconnectType *string `json:"disconnectType,omitempty"`
// Self - Address and name data for a call endpoint.
Self *Address `json:"self,omitempty"`
// CobrowseSessionId - The co-browse session ID.
CobrowseSessionId *string `json:"cobrowseSessionId,omitempty"`
// CobrowseRole - This value identifies the role of the co-browse client within the co-browse session (a client is a sharer or a viewer).
CobrowseRole *string `json:"cobrowseRole,omitempty"`
// Controlling - ID of co-browse participants for which this client has been granted control (list is empty if this client cannot control any shared pages).
Controlling *[]string `json:"controlling,omitempty"`
// ViewerUrl - The URL that can be used to open co-browse session in web browser.
ViewerUrl *string `json:"viewerUrl,omitempty"`
// ProviderEventTime - The time when the provider event which triggered this conversation update happened in the corrected provider clock (milliseconds since 1970-01-01 00:00:00 UTC). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
ProviderEventTime *time.Time `json:"providerEventTime,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 co-browse session.
Provider *string `json:"provider,omitempty"`
// PeerId - The id of the peer communication corresponding to a matching leg for this communication.
PeerId *string `json:"peerId,omitempty"`
// Segments - The time line of the participant's call, divided into activity segments.
Segments *[]Segment `json:"segments,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 *Cobrowsesession) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}