forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConversationThread.php.txt
More file actions
259 lines (239 loc) · 5.51 KB
/
Copy pathConversationThread.php.txt
File metadata and controls
259 lines (239 loc) · 5.51 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
253
254
255
256
257
258
259
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* ConversationThread File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @author Caitlin Bales <caitbal@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://opensource.org/licenses/MIT MIT License
* @version GIT: 0.1.0
* @link https://graph.microsoft.io/
*/
namespace Microsoft\Graph\Model;
/**
* ConversationThread class
*
* @category Model
* @package Microsoft.Graph
* @author Caitlin Bales <caitbal@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://opensource.org/licenses/MIT MIT License
* @version Release: 0.1.0
* @link https://graph.microsoft.io/
*/
class ConversationThread
{
/**
* The array of properties available
* to the model
*
* @var array(string => string)
*/
private $_propDict;
/**
* Construct a new ConversationThread
*
* @param array $propDict A list of properties to set
*/
function __construct($propDict = array())
{
$this->_propDict = $propDict;
}
/**
* Gets the property dictionary of the ConversationThread
*
* @return array The list of properties
*/
public function getProperties()
{
return $this->_propDict;
}
/**
* Gets the toRecipients
*
* @return ToRecipientsCollectionPage The toRecipients
*/
public function getToRecipients()
{
if (array_key_exists("toRecipients", $this->_propDict)) {
return ToRecipientsCollectionPage($this->_propDict["toRecipients"]);
} else {
return null;
}
}
/**
* Gets the topic
*
* @return string The topic
*/
public function getTopic()
{
if (array_key_exists("topic", $this->_propDict)) {
return $this->_propDict["topic"];
} else {
return null;
}
}
/**
* Sets the topic
*
* @param string $val The topic
*
* @return null
*/
public function setTopic($val)
{
$this->propDict["topic"] = $val;
}
/**
* Gets the hasAttachments
*
* @return bool The hasAttachments
*/
public function getHasAttachments()
{
if (array_key_exists("hasAttachments", $this->_propDict)) {
return $this->_propDict["hasAttachments"];
} else {
return null;
}
}
/**
* Sets the hasAttachments
*
* @param bool $val The hasAttachments
*
* @return null
*/
public function setHasAttachments($val)
{
$this->propDict["hasAttachments"] = boolval($val);
}
/**
* Gets the lastDeliveredDateTime
*
* @return datetime The lastDeliveredDateTime
*/
public function getLastDeliveredDateTime()
{
if (array_key_exists("lastDeliveredDateTime", $this->_propDict)) {
return new \DateTime($this->_propDict["lastDeliveredDateTime"]);
} else {
return null;
}
}
/**
* Sets the lastDeliveredDateTime
*
* @param datetime $val The lastDeliveredDateTime
*
* @return null
*/
public function setLastDeliveredDateTime($val)
{
$this->_propDict["lastDeliveredDateTime"]
= $val->format(\DateTime::ISO8601) . "Z";
}
/**
* Gets the uniqueSenders
*
* @return string The uniqueSenders
*/
public function getUniqueSenders()
{
if (array_key_exists("uniqueSenders", $this->_propDict)) {
return $this->_propDict["uniqueSenders"];
} else {
return null;
}
}
/**
* Sets the uniqueSenders
*
* @param string $val The uniqueSenders
*
* @return null
*/
public function setUniqueSenders($val)
{
$this->propDict["uniqueSenders"] = $val;
}
/**
* Gets the ccRecipients
*
* @return CcRecipientsCollectionPage The ccRecipients
*/
public function getCcRecipients()
{
if (array_key_exists("ccRecipients", $this->_propDict)) {
return CcRecipientsCollectionPage($this->_propDict["ccRecipients"]);
} else {
return null;
}
}
/**
* Gets the preview
*
* @return string The preview
*/
public function getPreview()
{
if (array_key_exists("preview", $this->_propDict)) {
return $this->_propDict["preview"];
} else {
return null;
}
}
/**
* Sets the preview
*
* @param string $val The preview
*
* @return null
*/
public function setPreview($val)
{
$this->propDict["preview"] = $val;
}
/**
* Gets the isLocked
*
* @return bool The isLocked
*/
public function getIsLocked()
{
if (array_key_exists("isLocked", $this->_propDict)) {
return $this->_propDict["isLocked"];
} else {
return null;
}
}
/**
* Sets the isLocked
*
* @param bool $val The isLocked
*
* @return null
*/
public function setIsLocked($val)
{
$this->propDict["isLocked"] = boolval($val);
}
/**
* Gets the posts
*
* @return PostsCollectionPage The posts
*/
public function getPosts()
{
if (array_key_exists("posts", $this->_propDict)) {
return PostsCollectionPage($this->_propDict["posts"]);
} else {
return null;
}
}
}