1
0
Fork 0
m365-php/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/Presence.php

152 lines
4.7 KiB
PHP

<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* Presence 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 Beta\Microsoft\Graph\Model;
/**
* Presence 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 Presence extends Entity
{
/**
* Gets the activity
* The supplemental information to a user's availability. Possible values are Available, Away, BeRightBack, Busy, DoNotDisturb, InACall, InAConferenceCall, Inactive,InAMeeting, Offline, OffWork,OutOfOffice, PresenceUnknown,Presenting, UrgentInterruptionsOnly.
*
* @return string|null The activity
*/
public function getActivity()
{
if (array_key_exists("activity", $this->_propDict)) {
return $this->_propDict["activity"];
} else {
return null;
}
}
/**
* Sets the activity
* The supplemental information to a user's availability. Possible values are Available, Away, BeRightBack, Busy, DoNotDisturb, InACall, InAConferenceCall, Inactive,InAMeeting, Offline, OffWork,OutOfOffice, PresenceUnknown,Presenting, UrgentInterruptionsOnly.
*
* @param string $val The activity
*
* @return Presence
*/
public function setActivity($val)
{
$this->_propDict["activity"] = $val;
return $this;
}
/**
* Gets the availability
* The base presence information for a user. Possible values are Available, AvailableIdle, Away, BeRightBack, Busy, BusyIdle, DoNotDisturb, Offline, PresenceUnknown
*
* @return string|null The availability
*/
public function getAvailability()
{
if (array_key_exists("availability", $this->_propDict)) {
return $this->_propDict["availability"];
} else {
return null;
}
}
/**
* Sets the availability
* The base presence information for a user. Possible values are Available, AvailableIdle, Away, BeRightBack, Busy, BusyIdle, DoNotDisturb, Offline, PresenceUnknown
*
* @param string $val The availability
*
* @return Presence
*/
public function setAvailability($val)
{
$this->_propDict["availability"] = $val;
return $this;
}
/**
* Gets the outOfOfficeSettings
* The out of office settings for a user.
*
* @return OutOfOfficeSettings|null The outOfOfficeSettings
*/
public function getOutOfOfficeSettings()
{
if (array_key_exists("outOfOfficeSettings", $this->_propDict)) {
if (is_a($this->_propDict["outOfOfficeSettings"], "\Beta\Microsoft\Graph\Model\OutOfOfficeSettings") || is_null($this->_propDict["outOfOfficeSettings"])) {
return $this->_propDict["outOfOfficeSettings"];
} else {
$this->_propDict["outOfOfficeSettings"] = new OutOfOfficeSettings($this->_propDict["outOfOfficeSettings"]);
return $this->_propDict["outOfOfficeSettings"];
}
}
return null;
}
/**
* Sets the outOfOfficeSettings
* The out of office settings for a user.
*
* @param OutOfOfficeSettings $val The outOfOfficeSettings
*
* @return Presence
*/
public function setOutOfOfficeSettings($val)
{
$this->_propDict["outOfOfficeSettings"] = $val;
return $this;
}
/**
* Gets the statusMessage
* The presence status message of a user.
*
* @return PresenceStatusMessage|null The statusMessage
*/
public function getStatusMessage()
{
if (array_key_exists("statusMessage", $this->_propDict)) {
if (is_a($this->_propDict["statusMessage"], "\Beta\Microsoft\Graph\Model\PresenceStatusMessage") || is_null($this->_propDict["statusMessage"])) {
return $this->_propDict["statusMessage"];
} else {
$this->_propDict["statusMessage"] = new PresenceStatusMessage($this->_propDict["statusMessage"]);
return $this->_propDict["statusMessage"];
}
}
return null;
}
/**
* Sets the statusMessage
* The presence status message of a user.
*
* @param PresenceStatusMessage $val The statusMessage
*
* @return Presence
*/
public function setStatusMessage($val)
{
$this->_propDict["statusMessage"] = $val;
return $this;
}
}