forked from MyPureCloud/platform-client-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
video.go
90 lines (52 loc) · 2.99 KB
/
video.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"
)
// Video
type Video 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"`
// AudioMuted - Indicates whether this participant has muted their outgoing audio.
AudioMuted *bool `json:"audioMuted,omitempty"`
// VideoMuted - Indicates whether this participant has muted/paused their outgoing video.
VideoMuted *bool `json:"videoMuted,omitempty"`
// SharingScreen - Indicates whether this participant is sharing their screen to the session.
SharingScreen *bool `json:"sharingScreen,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 video.
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"`
// Msids - List of media stream ids
Msids *[]string `json:"msids,omitempty"`
// Self - Address and name data for a call endpoint.
Self *Address `json:"self,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 *Video) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}