_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 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"], "\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; } }