1
0
Fork 0
m365-php/vendor/microsoft/microsoft-graph/src/Model/ChatViewpoint.php

88 lines
2.6 KiB
PHP

<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* ChatViewpoint 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 Microsoft\Graph\Model;
/**
* ChatViewpoint 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 ChatViewpoint extends Entity
{
/**
* Gets the isHidden
* Indicates whether the chat is hidden for the current user.
*
* @return bool|null The isHidden
*/
public function getIsHidden()
{
if (array_key_exists("isHidden", $this->_propDict)) {
return $this->_propDict["isHidden"];
} else {
return null;
}
}
/**
* Sets the isHidden
* Indicates whether the chat is hidden for the current user.
*
* @param bool $val The value of the isHidden
*
* @return ChatViewpoint
*/
public function setIsHidden($val)
{
$this->_propDict["isHidden"] = $val;
return $this;
}
/**
* Gets the lastMessageReadDateTime
* Represents the dateTime up until which the current user has read chatMessages in a specific chat.
*
* @return \DateTime|null The lastMessageReadDateTime
*/
public function getLastMessageReadDateTime()
{
if (array_key_exists("lastMessageReadDateTime", $this->_propDict)) {
if (is_a($this->_propDict["lastMessageReadDateTime"], "\DateTime") || is_null($this->_propDict["lastMessageReadDateTime"])) {
return $this->_propDict["lastMessageReadDateTime"];
} else {
$this->_propDict["lastMessageReadDateTime"] = new \DateTime($this->_propDict["lastMessageReadDateTime"]);
return $this->_propDict["lastMessageReadDateTime"];
}
}
return null;
}
/**
* Sets the lastMessageReadDateTime
* Represents the dateTime up until which the current user has read chatMessages in a specific chat.
*
* @param \DateTime $val The value to assign to the lastMessageReadDateTime
*
* @return ChatViewpoint The ChatViewpoint
*/
public function setLastMessageReadDateTime($val)
{
$this->_propDict["lastMessageReadDateTime"] = $val;
return $this;
}
}