forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChannel.php
More file actions
238 lines (221 loc) · 5.94 KB
/
Copy pathChannel.php
File metadata and controls
238 lines (221 loc) · 5.94 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
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* Channel File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright © Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @version GIT: 1.4.0
* @link https://graph.microsoft.io/
*/
namespace Microsoft\Graph\Model;
/**
* Channel class
*
* @category Model
* @package Microsoft.Graph
* @copyright © Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @version Release: 1.4.0
* @link https://graph.microsoft.io/
*/
class Channel extends Entity
{
/**
* Gets the displayName
* Channel name as it will appear to the user in Microsoft Teams.
*
* @return string The displayName
*/
public function getDisplayName()
{
if (array_key_exists("displayName", $this->_propDict)) {
return $this->_propDict["displayName"];
} else {
return null;
}
}
/**
* Sets the displayName
* Channel name as it will appear to the user in Microsoft Teams.
*
* @param string $val The displayName
*
* @return Channel
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
/**
* Gets the description
* Optional textual description for the channel.
*
* @return string The description
*/
public function getDescription()
{
if (array_key_exists("description", $this->_propDict)) {
return $this->_propDict["description"];
} else {
return null;
}
}
/**
* Sets the description
* Optional textual description for the channel.
*
* @param string $val The description
*
* @return Channel
*/
public function setDescription($val)
{
$this->_propDict["description"] = $val;
return $this;
}
/**
* Gets the email
* The email address for sending messages to the channel. Read-only.
*
* @return string The email
*/
public function getEmail()
{
if (array_key_exists("email", $this->_propDict)) {
return $this->_propDict["email"];
} else {
return null;
}
}
/**
* Sets the email
* The email address for sending messages to the channel. Read-only.
*
* @param string $val The email
*
* @return Channel
*/
public function setEmail($val)
{
$this->_propDict["email"] = $val;
return $this;
}
/**
* Gets the webUrl
* A hyperlink that will navigate to the channel in Microsoft Teams. This is the URL that you get when you right-click a channel in Microsoft Teams and select Get link to channel. This URL should be treated as an opaque blob, and not parsed. Read-only.
*
* @return string The webUrl
*/
public function getWebUrl()
{
if (array_key_exists("webUrl", $this->_propDict)) {
return $this->_propDict["webUrl"];
} else {
return null;
}
}
/**
* Sets the webUrl
* A hyperlink that will navigate to the channel in Microsoft Teams. This is the URL that you get when you right-click a channel in Microsoft Teams and select Get link to channel. This URL should be treated as an opaque blob, and not parsed. Read-only.
*
* @param string $val The webUrl
*
* @return Channel
*/
public function setWebUrl($val)
{
$this->_propDict["webUrl"] = $val;
return $this;
}
/**
* Gets the messages
* A collection of all the messages in the channel. A navigation property. Nullable.
*
* @return array The messages
*/
public function getMessages()
{
if (array_key_exists("messages", $this->_propDict)) {
return $this->_propDict["messages"];
} else {
return null;
}
}
/**
* Sets the messages
* A collection of all the messages in the channel. A navigation property. Nullable.
*
* @param ChatMessage $val The messages
*
* @return Channel
*/
public function setMessages($val)
{
$this->_propDict["messages"] = $val;
return $this;
}
/**
* Gets the tabs
* A collection of all the tabs in the channel. A navigation property.
*
* @return array The tabs
*/
public function getTabs()
{
if (array_key_exists("tabs", $this->_propDict)) {
return $this->_propDict["tabs"];
} else {
return null;
}
}
/**
* Sets the tabs
* A collection of all the tabs in the channel. A navigation property.
*
* @param TeamsTab $val The tabs
*
* @return Channel
*/
public function setTabs($val)
{
$this->_propDict["tabs"] = $val;
return $this;
}
/**
* Gets the filesFolder
* Metadata for the location where the channel's files are stored.
*
* @return DriveItem The filesFolder
*/
public function getFilesFolder()
{
if (array_key_exists("filesFolder", $this->_propDict)) {
if (is_a($this->_propDict["filesFolder"], "Microsoft\Graph\Model\DriveItem")) {
return $this->_propDict["filesFolder"];
} else {
$this->_propDict["filesFolder"] = new DriveItem($this->_propDict["filesFolder"]);
return $this->_propDict["filesFolder"];
}
}
return null;
}
/**
* Sets the filesFolder
* Metadata for the location where the channel's files are stored.
*
* @param DriveItem $val The filesFolder
*
* @return Channel
*/
public function setFilesFolder($val)
{
$this->_propDict["filesFolder"] = $val;
return $this;
}
}