-
Notifications
You must be signed in to change notification settings - Fork 12
/
screenshare.go
78 lines (46 loc) · 2.67 KB
/
screenshare.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
package platformclientv2
import (
"time"
"encoding/json"
"strconv"
"strings"
)
// Screenshare
type Screenshare 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"`
// Context - The room id context (xmpp jid) for the conference session.
Context *string `json:"context,omitempty"`
// Sharing - Indicates whether this participant is sharing their screen.
Sharing *bool `json:"sharing,omitempty"`
// PeerCount - The number of peer participants from the perspective of the participant in the conference.
PeerCount *int `json:"peerCount,omitempty"`
// DisconnectType - System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects.
DisconnectType *string `json:"disconnectType,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 screen share.
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 *Screenshare) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}