WebPubSubChatModelFactory.WebPubSubChatMessage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a chat message.
public static Azure.Messaging.WebPubSub.Chat.WebPubSubChatMessage WebPubSubChatMessage(string id = default, string createdBy = default, Azure.Messaging.WebPubSub.Chat.WebPubSubChatMessageContent content = default, DateTimeOffset createdOn = default, Azure.ETag etag = default);
static member WebPubSubChatMessage : string * string * Azure.Messaging.WebPubSub.Chat.WebPubSubChatMessageContent * DateTimeOffset * Azure.ETag -> Azure.Messaging.WebPubSub.Chat.WebPubSubChatMessage
Public Shared Function WebPubSubChatMessage (Optional id As String = Nothing, Optional createdBy As String = Nothing, Optional content As WebPubSubChatMessageContent = Nothing, Optional createdOn As DateTimeOffset = Nothing, Optional etag As ETag = Nothing) As WebPubSubChatMessage
Parameters
- id
- String
Message identifier.
- createdBy
- String
User who created the message.
- content
- WebPubSubChatMessageContent
Message content.
- createdOn
- DateTimeOffset
Timestamp when the message was created.
- etag
- ETag
The entity tag for this resource.
Returns
A new WebPubSubChatMessage instance for mocking.