Audio.php
| 1 | <?php |
| 2 | /** |
| 3 | * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. |
| 4 | * |
| 5 | * Audio File |
| 6 | * PHP version 7 |
| 7 | * |
| 8 | * @category Library |
| 9 | * @package Microsoft.Graph |
| 10 | * @copyright (c) Microsoft Corporation. All rights reserved. |
| 11 | * @license https://opensource.org/licenses/MIT MIT License |
| 12 | * @link https://graph.microsoft.com |
| 13 | */ |
| 14 | namespace Microsoft\Graph\Model; |
| 15 | /** |
| 16 | * Audio class |
| 17 | * |
| 18 | * @category Model |
| 19 | * @package Microsoft.Graph |
| 20 | * @copyright (c) Microsoft Corporation. All rights reserved. |
| 21 | * @license https://opensource.org/licenses/MIT MIT License |
| 22 | * @link https://graph.microsoft.com |
| 23 | */ |
| 24 | class Audio extends Entity |
| 25 | { |
| 26 | /** |
| 27 | * Gets the album |
| 28 | * The title of the album for this audio file. |
| 29 | * |
| 30 | * @return string|null The album |
| 31 | */ |
| 32 | public function getAlbum() |
| 33 | { |
| 34 | if (array_key_exists("album", $this->_propDict)) { |
| 35 | return $this->_propDict["album"]; |
| 36 | } else { |
| 37 | return null; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Sets the album |
| 43 | * The title of the album for this audio file. |
| 44 | * |
| 45 | * @param string $val The value of the album |
| 46 | * |
| 47 | * @return Audio |
| 48 | */ |
| 49 | public function setAlbum($val) |
| 50 | { |
| 51 | $this->_propDict["album"] = $val; |
| 52 | return $this; |
| 53 | } |
| 54 | /** |
| 55 | * Gets the albumArtist |
| 56 | * The artist named on the album for the audio file. |
| 57 | * |
| 58 | * @return string|null The albumArtist |
| 59 | */ |
| 60 | public function getAlbumArtist() |
| 61 | { |
| 62 | if (array_key_exists("albumArtist", $this->_propDict)) { |
| 63 | return $this->_propDict["albumArtist"]; |
| 64 | } else { |
| 65 | return null; |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * Sets the albumArtist |
| 71 | * The artist named on the album for the audio file. |
| 72 | * |
| 73 | * @param string $val The value of the albumArtist |
| 74 | * |
| 75 | * @return Audio |
| 76 | */ |
| 77 | public function setAlbumArtist($val) |
| 78 | { |
| 79 | $this->_propDict["albumArtist"] = $val; |
| 80 | return $this; |
| 81 | } |
| 82 | /** |
| 83 | * Gets the artist |
| 84 | * The performing artist for the audio file. |
| 85 | * |
| 86 | * @return string|null The artist |
| 87 | */ |
| 88 | public function getArtist() |
| 89 | { |
| 90 | if (array_key_exists("artist", $this->_propDict)) { |
| 91 | return $this->_propDict["artist"]; |
| 92 | } else { |
| 93 | return null; |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * Sets the artist |
| 99 | * The performing artist for the audio file. |
| 100 | * |
| 101 | * @param string $val The value of the artist |
| 102 | * |
| 103 | * @return Audio |
| 104 | */ |
| 105 | public function setArtist($val) |
| 106 | { |
| 107 | $this->_propDict["artist"] = $val; |
| 108 | return $this; |
| 109 | } |
| 110 | /** |
| 111 | * Gets the bitrate |
| 112 | * Bitrate expressed in kbps. |
| 113 | * |
| 114 | * @return int|null The bitrate |
| 115 | */ |
| 116 | public function getBitrate() |
| 117 | { |
| 118 | if (array_key_exists("bitrate", $this->_propDict)) { |
| 119 | return $this->_propDict["bitrate"]; |
| 120 | } else { |
| 121 | return null; |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * Sets the bitrate |
| 127 | * Bitrate expressed in kbps. |
| 128 | * |
| 129 | * @param int $val The value of the bitrate |
| 130 | * |
| 131 | * @return Audio |
| 132 | */ |
| 133 | public function setBitrate($val) |
| 134 | { |
| 135 | $this->_propDict["bitrate"] = $val; |
| 136 | return $this; |
| 137 | } |
| 138 | /** |
| 139 | * Gets the composers |
| 140 | * The name of the composer of the audio file. |
| 141 | * |
| 142 | * @return string|null The composers |
| 143 | */ |
| 144 | public function getComposers() |
| 145 | { |
| 146 | if (array_key_exists("composers", $this->_propDict)) { |
| 147 | return $this->_propDict["composers"]; |
| 148 | } else { |
| 149 | return null; |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | /** |
| 154 | * Sets the composers |
| 155 | * The name of the composer of the audio file. |
| 156 | * |
| 157 | * @param string $val The value of the composers |
| 158 | * |
| 159 | * @return Audio |
| 160 | */ |
| 161 | public function setComposers($val) |
| 162 | { |
| 163 | $this->_propDict["composers"] = $val; |
| 164 | return $this; |
| 165 | } |
| 166 | /** |
| 167 | * Gets the copyright |
| 168 | * Copyright information for the audio file. |
| 169 | * |
| 170 | * @return string|null The copyright |
| 171 | */ |
| 172 | public function getCopyright() |
| 173 | { |
| 174 | if (array_key_exists("copyright", $this->_propDict)) { |
| 175 | return $this->_propDict["copyright"]; |
| 176 | } else { |
| 177 | return null; |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | /** |
| 182 | * Sets the copyright |
| 183 | * Copyright information for the audio file. |
| 184 | * |
| 185 | * @param string $val The value of the copyright |
| 186 | * |
| 187 | * @return Audio |
| 188 | */ |
| 189 | public function setCopyright($val) |
| 190 | { |
| 191 | $this->_propDict["copyright"] = $val; |
| 192 | return $this; |
| 193 | } |
| 194 | /** |
| 195 | * Gets the disc |
| 196 | * The number of the disc this audio file came from. |
| 197 | * |
| 198 | * @return int|null The disc |
| 199 | */ |
| 200 | public function getDisc() |
| 201 | { |
| 202 | if (array_key_exists("disc", $this->_propDict)) { |
| 203 | return $this->_propDict["disc"]; |
| 204 | } else { |
| 205 | return null; |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | * Sets the disc |
| 211 | * The number of the disc this audio file came from. |
| 212 | * |
| 213 | * @param int $val The value of the disc |
| 214 | * |
| 215 | * @return Audio |
| 216 | */ |
| 217 | public function setDisc($val) |
| 218 | { |
| 219 | $this->_propDict["disc"] = $val; |
| 220 | return $this; |
| 221 | } |
| 222 | /** |
| 223 | * Gets the discCount |
| 224 | * The total number of discs in this album. |
| 225 | * |
| 226 | * @return int|null The discCount |
| 227 | */ |
| 228 | public function getDiscCount() |
| 229 | { |
| 230 | if (array_key_exists("discCount", $this->_propDict)) { |
| 231 | return $this->_propDict["discCount"]; |
| 232 | } else { |
| 233 | return null; |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | /** |
| 238 | * Sets the discCount |
| 239 | * The total number of discs in this album. |
| 240 | * |
| 241 | * @param int $val The value of the discCount |
| 242 | * |
| 243 | * @return Audio |
| 244 | */ |
| 245 | public function setDiscCount($val) |
| 246 | { |
| 247 | $this->_propDict["discCount"] = $val; |
| 248 | return $this; |
| 249 | } |
| 250 | /** |
| 251 | * Gets the duration |
| 252 | * Duration of the audio file, expressed in milliseconds |
| 253 | * |
| 254 | * @return int|null The duration |
| 255 | */ |
| 256 | public function getDuration() |
| 257 | { |
| 258 | if (array_key_exists("duration", $this->_propDict)) { |
| 259 | return $this->_propDict["duration"]; |
| 260 | } else { |
| 261 | return null; |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | /** |
| 266 | * Sets the duration |
| 267 | * Duration of the audio file, expressed in milliseconds |
| 268 | * |
| 269 | * @param int $val The value of the duration |
| 270 | * |
| 271 | * @return Audio |
| 272 | */ |
| 273 | public function setDuration($val) |
| 274 | { |
| 275 | $this->_propDict["duration"] = $val; |
| 276 | return $this; |
| 277 | } |
| 278 | /** |
| 279 | * Gets the genre |
| 280 | * The genre of this audio file. |
| 281 | * |
| 282 | * @return string|null The genre |
| 283 | */ |
| 284 | public function getGenre() |
| 285 | { |
| 286 | if (array_key_exists("genre", $this->_propDict)) { |
| 287 | return $this->_propDict["genre"]; |
| 288 | } else { |
| 289 | return null; |
| 290 | } |
| 291 | } |
| 292 | |
| 293 | /** |
| 294 | * Sets the genre |
| 295 | * The genre of this audio file. |
| 296 | * |
| 297 | * @param string $val The value of the genre |
| 298 | * |
| 299 | * @return Audio |
| 300 | */ |
| 301 | public function setGenre($val) |
| 302 | { |
| 303 | $this->_propDict["genre"] = $val; |
| 304 | return $this; |
| 305 | } |
| 306 | /** |
| 307 | * Gets the hasDrm |
| 308 | * Indicates if the file is protected with digital rights management. |
| 309 | * |
| 310 | * @return bool|null The hasDrm |
| 311 | */ |
| 312 | public function getHasDrm() |
| 313 | { |
| 314 | if (array_key_exists("hasDrm", $this->_propDict)) { |
| 315 | return $this->_propDict["hasDrm"]; |
| 316 | } else { |
| 317 | return null; |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | /** |
| 322 | * Sets the hasDrm |
| 323 | * Indicates if the file is protected with digital rights management. |
| 324 | * |
| 325 | * @param bool $val The value of the hasDrm |
| 326 | * |
| 327 | * @return Audio |
| 328 | */ |
| 329 | public function setHasDrm($val) |
| 330 | { |
| 331 | $this->_propDict["hasDrm"] = $val; |
| 332 | return $this; |
| 333 | } |
| 334 | /** |
| 335 | * Gets the isVariableBitrate |
| 336 | * Indicates if the file is encoded with a variable bitrate. |
| 337 | * |
| 338 | * @return bool|null The isVariableBitrate |
| 339 | */ |
| 340 | public function getIsVariableBitrate() |
| 341 | { |
| 342 | if (array_key_exists("isVariableBitrate", $this->_propDict)) { |
| 343 | return $this->_propDict["isVariableBitrate"]; |
| 344 | } else { |
| 345 | return null; |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | /** |
| 350 | * Sets the isVariableBitrate |
| 351 | * Indicates if the file is encoded with a variable bitrate. |
| 352 | * |
| 353 | * @param bool $val The value of the isVariableBitrate |
| 354 | * |
| 355 | * @return Audio |
| 356 | */ |
| 357 | public function setIsVariableBitrate($val) |
| 358 | { |
| 359 | $this->_propDict["isVariableBitrate"] = $val; |
| 360 | return $this; |
| 361 | } |
| 362 | /** |
| 363 | * Gets the title |
| 364 | * The title of the audio file. |
| 365 | * |
| 366 | * @return string|null The title |
| 367 | */ |
| 368 | public function getTitle() |
| 369 | { |
| 370 | if (array_key_exists("title", $this->_propDict)) { |
| 371 | return $this->_propDict["title"]; |
| 372 | } else { |
| 373 | return null; |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | /** |
| 378 | * Sets the title |
| 379 | * The title of the audio file. |
| 380 | * |
| 381 | * @param string $val The value of the title |
| 382 | * |
| 383 | * @return Audio |
| 384 | */ |
| 385 | public function setTitle($val) |
| 386 | { |
| 387 | $this->_propDict["title"] = $val; |
| 388 | return $this; |
| 389 | } |
| 390 | /** |
| 391 | * Gets the track |
| 392 | * The number of the track on the original disc for this audio file. |
| 393 | * |
| 394 | * @return int|null The track |
| 395 | */ |
| 396 | public function getTrack() |
| 397 | { |
| 398 | if (array_key_exists("track", $this->_propDict)) { |
| 399 | return $this->_propDict["track"]; |
| 400 | } else { |
| 401 | return null; |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | /** |
| 406 | * Sets the track |
| 407 | * The number of the track on the original disc for this audio file. |
| 408 | * |
| 409 | * @param int $val The value of the track |
| 410 | * |
| 411 | * @return Audio |
| 412 | */ |
| 413 | public function setTrack($val) |
| 414 | { |
| 415 | $this->_propDict["track"] = $val; |
| 416 | return $this; |
| 417 | } |
| 418 | /** |
| 419 | * Gets the trackCount |
| 420 | * The total number of tracks on the original disc for this audio file. |
| 421 | * |
| 422 | * @return int|null The trackCount |
| 423 | */ |
| 424 | public function getTrackCount() |
| 425 | { |
| 426 | if (array_key_exists("trackCount", $this->_propDict)) { |
| 427 | return $this->_propDict["trackCount"]; |
| 428 | } else { |
| 429 | return null; |
| 430 | } |
| 431 | } |
| 432 | |
| 433 | /** |
| 434 | * Sets the trackCount |
| 435 | * The total number of tracks on the original disc for this audio file. |
| 436 | * |
| 437 | * @param int $val The value of the trackCount |
| 438 | * |
| 439 | * @return Audio |
| 440 | */ |
| 441 | public function setTrackCount($val) |
| 442 | { |
| 443 | $this->_propDict["trackCount"] = $val; |
| 444 | return $this; |
| 445 | } |
| 446 | /** |
| 447 | * Gets the year |
| 448 | * The year the audio file was recorded. |
| 449 | * |
| 450 | * @return int|null The year |
| 451 | */ |
| 452 | public function getYear() |
| 453 | { |
| 454 | if (array_key_exists("year", $this->_propDict)) { |
| 455 | return $this->_propDict["year"]; |
| 456 | } else { |
| 457 | return null; |
| 458 | } |
| 459 | } |
| 460 | |
| 461 | /** |
| 462 | * Sets the year |
| 463 | * The year the audio file was recorded. |
| 464 | * |
| 465 | * @param int $val The value of the year |
| 466 | * |
| 467 | * @return Audio |
| 468 | */ |
| 469 | public function setYear($val) |
| 470 | { |
| 471 | $this->_propDict["year"] = $val; |
| 472 | return $this; |
| 473 | } |
| 474 | } |
| 475 |