_propDict)) { return $this->_propDict["id"]; } else { return null; } } /** * Sets the id * Read-only. Unique id of the attachment. * * @param string $val The value of the id * * @return ChatMessageAttachment */ public function setId($val) { $this->_propDict["id"] = $val; return $this; } /** * Gets the contentType * The media type of the content attachment. It can have the following values: reference: Attachment is a link to another file. Populate the contentURL with the link to the object.file: Raw file attachment. Populate the contenturl field with the base64 encoding of the file in data: format.image/: Image type with the type of the image specified ex: image/png, image/jpeg, image/gif. Populate the contentUrl field with the base64 encoding of the file in data: format.video/: Video type with the format specified. Ex: video/mp4. Populate the contentUrl field with the base64 encoding of the file in data: format.audio/: Audio type with the format specified. Ex: audio/wmw. Populate the contentUrl field with the base64 encoding of the file in data: format.application/card type: Rich card attachment type with the card type specifying the exact card format to use. Set content with the json format of the card. Supported values for card type include:application/vnd.microsoft.card.adaptive: A rich card that can contain any combination of text, speech, images,,buttons, and input fields. Set the content property to,an AdaptiveCard object.application/vnd.microsoft.card.animation: A rich card that plays animation. Set the content property,to an AnimationCardobject.application/vnd.microsoft.card.audio: A rich card that plays audio files. Set the content property,to an AudioCard object.application/vnd.microsoft.card.video: A rich card that plays videos. Set the content property,to a VideoCard object.application/vnd.microsoft.card.hero: A Hero card. Set the content property to a HeroCard object.application/vnd.microsoft.card.thumbnail: A Thumbnail card. Set the content property to a ThumbnailCard object.application/vnd.microsoft.com.card.receipt: A Receipt card. Set the content property to a ReceiptCard object.application/vnd.microsoft.com.card.signin: A user Sign In card. Set the content property to a SignInCard object. * * @return string The contentType */ public function getContentType() { if (array_key_exists("contentType", $this->_propDict)) { return $this->_propDict["contentType"]; } else { return null; } } /** * Sets the contentType * The media type of the content attachment. It can have the following values: reference: Attachment is a link to another file. Populate the contentURL with the link to the object.file: Raw file attachment. Populate the contenturl field with the base64 encoding of the file in data: format.image/: Image type with the type of the image specified ex: image/png, image/jpeg, image/gif. Populate the contentUrl field with the base64 encoding of the file in data: format.video/: Video type with the format specified. Ex: video/mp4. Populate the contentUrl field with the base64 encoding of the file in data: format.audio/: Audio type with the format specified. Ex: audio/wmw. Populate the contentUrl field with the base64 encoding of the file in data: format.application/card type: Rich card attachment type with the card type specifying the exact card format to use. Set content with the json format of the card. Supported values for card type include:application/vnd.microsoft.card.adaptive: A rich card that can contain any combination of text, speech, images,,buttons, and input fields. Set the content property to,an AdaptiveCard object.application/vnd.microsoft.card.animation: A rich card that plays animation. Set the content property,to an AnimationCardobject.application/vnd.microsoft.card.audio: A rich card that plays audio files. Set the content property,to an AudioCard object.application/vnd.microsoft.card.video: A rich card that plays videos. Set the content property,to a VideoCard object.application/vnd.microsoft.card.hero: A Hero card. Set the content property to a HeroCard object.application/vnd.microsoft.card.thumbnail: A Thumbnail card. Set the content property to a ThumbnailCard object.application/vnd.microsoft.com.card.receipt: A Receipt card. Set the content property to a ReceiptCard object.application/vnd.microsoft.com.card.signin: A user Sign In card. Set the content property to a SignInCard object. * * @param string $val The value of the contentType * * @return ChatMessageAttachment */ public function setContentType($val) { $this->_propDict["contentType"] = $val; return $this; } /** * Gets the contentUrl * URL for the content of the attachment. Supported protocols: http, https, file and data. * * @return string The contentUrl */ public function getContentUrl() { if (array_key_exists("contentUrl", $this->_propDict)) { return $this->_propDict["contentUrl"]; } else { return null; } } /** * Sets the contentUrl * URL for the content of the attachment. Supported protocols: http, https, file and data. * * @param string $val The value of the contentUrl * * @return ChatMessageAttachment */ public function setContentUrl($val) { $this->_propDict["contentUrl"] = $val; return $this; } /** * Gets the content * The content of the attachment. If the attachment is a rich card, set the property to the rich card object. This property and contentUrl are mutually exclusive. * * @return string The content */ public function getContent() { if (array_key_exists("content", $this->_propDict)) { return $this->_propDict["content"]; } else { return null; } } /** * Sets the content * The content of the attachment. If the attachment is a rich card, set the property to the rich card object. This property and contentUrl are mutually exclusive. * * @param string $val The value of the content * * @return ChatMessageAttachment */ public function setContent($val) { $this->_propDict["content"] = $val; return $this; } /** * Gets the name * Name of the attachment. * * @return string The name */ public function getName() { if (array_key_exists("name", $this->_propDict)) { return $this->_propDict["name"]; } else { return null; } } /** * Sets the name * Name of the attachment. * * @param string $val The value of the name * * @return ChatMessageAttachment */ public function setName($val) { $this->_propDict["name"] = $val; return $this; } /** * Gets the thumbnailUrl * URL to a thumbnail image that the channel can use if it supports using an alternative, smaller form of content or contentUrl. For example, if you set contentType to application/word and set contentUrl to the location of the Word document, you might include a thumbnail image that represents the document. The channel could display the thumbnail image instead of the document. When the user clicks the image, the channel would open the document. * * @return string The thumbnailUrl */ public function getThumbnailUrl() { if (array_key_exists("thumbnailUrl", $this->_propDict)) { return $this->_propDict["thumbnailUrl"]; } else { return null; } } /** * Sets the thumbnailUrl * URL to a thumbnail image that the channel can use if it supports using an alternative, smaller form of content or contentUrl. For example, if you set contentType to application/word and set contentUrl to the location of the Word document, you might include a thumbnail image that represents the document. The channel could display the thumbnail image instead of the document. When the user clicks the image, the channel would open the document. * * @param string $val The value of the thumbnailUrl * * @return ChatMessageAttachment */ public function setThumbnailUrl($val) { $this->_propDict["thumbnailUrl"] = $val; return $this; } }