forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSession.php
More file actions
252 lines (235 loc) · 7.61 KB
/
Copy pathSession.php
File metadata and controls
252 lines (235 loc) · 7.61 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* Session File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
namespace Microsoft\Graph\CallRecords\Model;
/**
* Session class
*
* @category Model
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
class Session extends \Microsoft\Graph\Model\Entity
{
/**
* Gets the callee
* Endpoint that answered the session.
*
* @return Endpoint|null The callee
*/
public function getCallee()
{
if (array_key_exists("callee", $this->_propDict)) {
if (is_a($this->_propDict["callee"], "\Microsoft\Graph\CallRecords\Model\Endpoint") || is_null($this->_propDict["callee"])) {
return $this->_propDict["callee"];
} else {
$this->_propDict["callee"] = new Endpoint($this->_propDict["callee"]);
return $this->_propDict["callee"];
}
}
return null;
}
/**
* Sets the callee
* Endpoint that answered the session.
*
* @param Endpoint $val The callee
*
* @return Session
*/
public function setCallee($val)
{
$this->_propDict["callee"] = $val;
return $this;
}
/**
* Gets the caller
* Endpoint that initiated the session.
*
* @return Endpoint|null The caller
*/
public function getCaller()
{
if (array_key_exists("caller", $this->_propDict)) {
if (is_a($this->_propDict["caller"], "\Microsoft\Graph\CallRecords\Model\Endpoint") || is_null($this->_propDict["caller"])) {
return $this->_propDict["caller"];
} else {
$this->_propDict["caller"] = new Endpoint($this->_propDict["caller"]);
return $this->_propDict["caller"];
}
}
return null;
}
/**
* Sets the caller
* Endpoint that initiated the session.
*
* @param Endpoint $val The caller
*
* @return Session
*/
public function setCaller($val)
{
$this->_propDict["caller"] = $val;
return $this;
}
/**
* Gets the endDateTime
* UTC time when the last user left the session. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
*
* @return \DateTime|null The endDateTime
*/
public function getEndDateTime()
{
if (array_key_exists("endDateTime", $this->_propDict)) {
if (is_a($this->_propDict["endDateTime"], "\DateTime") || is_null($this->_propDict["endDateTime"])) {
return $this->_propDict["endDateTime"];
} else {
$this->_propDict["endDateTime"] = new \DateTime($this->_propDict["endDateTime"]);
return $this->_propDict["endDateTime"];
}
}
return null;
}
/**
* Sets the endDateTime
* UTC time when the last user left the session. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
*
* @param \DateTime $val The endDateTime
*
* @return Session
*/
public function setEndDateTime($val)
{
$this->_propDict["endDateTime"] = $val;
return $this;
}
/**
* Gets the failureInfo
* Failure information associated with the session if the session failed.
*
* @return FailureInfo|null The failureInfo
*/
public function getFailureInfo()
{
if (array_key_exists("failureInfo", $this->_propDict)) {
if (is_a($this->_propDict["failureInfo"], "\Microsoft\Graph\CallRecords\Model\FailureInfo") || is_null($this->_propDict["failureInfo"])) {
return $this->_propDict["failureInfo"];
} else {
$this->_propDict["failureInfo"] = new FailureInfo($this->_propDict["failureInfo"]);
return $this->_propDict["failureInfo"];
}
}
return null;
}
/**
* Sets the failureInfo
* Failure information associated with the session if the session failed.
*
* @param FailureInfo $val The failureInfo
*
* @return Session
*/
public function setFailureInfo($val)
{
$this->_propDict["failureInfo"] = $val;
return $this;
}
/**
* Gets the modalities
* List of modalities present in the session. Possible values are: unknown, audio, video, videoBasedScreenSharing, data, screenSharing, unknownFutureValue.
*
* @return array|null The modalities
*/
public function getModalities()
{
if (array_key_exists("modalities", $this->_propDict)) {
return $this->_propDict["modalities"];
} else {
return null;
}
}
/**
* Sets the modalities
* List of modalities present in the session. Possible values are: unknown, audio, video, videoBasedScreenSharing, data, screenSharing, unknownFutureValue.
*
* @param Modality $val The modalities
*
* @return Session
*/
public function setModalities($val)
{
$this->_propDict["modalities"] = $val;
return $this;
}
/**
* Gets the startDateTime
* UTC time when the first user joined the session. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
*
* @return \DateTime|null The startDateTime
*/
public function getStartDateTime()
{
if (array_key_exists("startDateTime", $this->_propDict)) {
if (is_a($this->_propDict["startDateTime"], "\DateTime") || is_null($this->_propDict["startDateTime"])) {
return $this->_propDict["startDateTime"];
} else {
$this->_propDict["startDateTime"] = new \DateTime($this->_propDict["startDateTime"]);
return $this->_propDict["startDateTime"];
}
}
return null;
}
/**
* Sets the startDateTime
* UTC time when the first user joined the session. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
*
* @param \DateTime $val The startDateTime
*
* @return Session
*/
public function setStartDateTime($val)
{
$this->_propDict["startDateTime"] = $val;
return $this;
}
/**
* Gets the segments
* The list of segments involved in the session. Read-only. Nullable.
*
* @return array|null The segments
*/
public function getSegments()
{
if (array_key_exists("segments", $this->_propDict)) {
return $this->_propDict["segments"];
} else {
return null;
}
}
/**
* Sets the segments
* The list of segments involved in the session. Read-only. Nullable.
*
* @param Segment $val The segments
*
* @return Session
*/
public function setSegments($val)
{
$this->_propDict["segments"] = $val;
return $this;
}
}