_propDict)) { return $this->_propDict["allowNewMessageFromBots"]; } else { return null; } } /** * Sets the allowNewMessageFromBots * Indicates whether bots are allowed to post messages. * * @param bool $val The value of the allowNewMessageFromBots * * @return ChannelModerationSettings */ public function setAllowNewMessageFromBots($val) { $this->_propDict["allowNewMessageFromBots"] = $val; return $this; } /** * Gets the allowNewMessageFromConnectors * Indicates whether connectors are allowed to post messages. * * @return bool|null The allowNewMessageFromConnectors */ public function getAllowNewMessageFromConnectors() { if (array_key_exists("allowNewMessageFromConnectors", $this->_propDict)) { return $this->_propDict["allowNewMessageFromConnectors"]; } else { return null; } } /** * Sets the allowNewMessageFromConnectors * Indicates whether connectors are allowed to post messages. * * @param bool $val The value of the allowNewMessageFromConnectors * * @return ChannelModerationSettings */ public function setAllowNewMessageFromConnectors($val) { $this->_propDict["allowNewMessageFromConnectors"] = $val; return $this; } /** * Gets the replyRestriction * Indicates who is allowed to reply to the teams channel. Possible values are: everyone, authorAndModerators, unknownFutureValue. * * @return ReplyRestriction|null The replyRestriction */ public function getReplyRestriction() { if (array_key_exists("replyRestriction", $this->_propDict)) { if (is_a($this->_propDict["replyRestriction"], "\Beta\Microsoft\Graph\Model\ReplyRestriction") || is_null($this->_propDict["replyRestriction"])) { return $this->_propDict["replyRestriction"]; } else { $this->_propDict["replyRestriction"] = new ReplyRestriction($this->_propDict["replyRestriction"]); return $this->_propDict["replyRestriction"]; } } return null; } /** * Sets the replyRestriction * Indicates who is allowed to reply to the teams channel. Possible values are: everyone, authorAndModerators, unknownFutureValue. * * @param ReplyRestriction $val The value to assign to the replyRestriction * * @return ChannelModerationSettings The ChannelModerationSettings */ public function setReplyRestriction($val) { $this->_propDict["replyRestriction"] = $val; return $this; } /** * Gets the userNewMessageRestriction * Indicates who is allowed to post messages to teams channel. Possible values are: everyone, everyoneExceptGuests, moderators, unknownFutureValue. * * @return UserNewMessageRestriction|null The userNewMessageRestriction */ public function getUserNewMessageRestriction() { if (array_key_exists("userNewMessageRestriction", $this->_propDict)) { if (is_a($this->_propDict["userNewMessageRestriction"], "\Beta\Microsoft\Graph\Model\UserNewMessageRestriction") || is_null($this->_propDict["userNewMessageRestriction"])) { return $this->_propDict["userNewMessageRestriction"]; } else { $this->_propDict["userNewMessageRestriction"] = new UserNewMessageRestriction($this->_propDict["userNewMessageRestriction"]); return $this->_propDict["userNewMessageRestriction"]; } } return null; } /** * Sets the userNewMessageRestriction * Indicates who is allowed to post messages to teams channel. Possible values are: everyone, everyoneExceptGuests, moderators, unknownFutureValue. * * @param UserNewMessageRestriction $val The value to assign to the userNewMessageRestriction * * @return ChannelModerationSettings The ChannelModerationSettings */ public function setUserNewMessageRestriction($val) { $this->_propDict["userNewMessageRestriction"] = $val; return $this; } }