WebPubSubChatModelFactory.ChatUserRoom(String, String, String, ETag) 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 read-only room projection used to list rooms associated with a user.
This model enables the standard resource operation to derive the
/api/hubs/{hub}/chat/users/{userId}/rooms collection path because
ChatRoom is a child of Hub, not ChatUser.
This model does not define an independent room lifecycle.
public static Azure.Messaging.WebPubSub.Chat.ChatUserRoom ChatUserRoom(string id = default, string title = default, string defaultConversation = default, Azure.ETag etag = default);
static member ChatUserRoom : string * string * string * Azure.ETag -> Azure.Messaging.WebPubSub.Chat.ChatUserRoom
Public Shared Function ChatUserRoom (Optional id As String = Nothing, Optional title As String = Nothing, Optional defaultConversation As String = Nothing, Optional etag As ETag = Nothing) As ChatUserRoom
Parameters
- id
- String
Room identifier.
- title
- String
Room title.
- defaultConversation
- String
Default conversation ID for this room.
- etag
- ETag
The entity tag for this resource.
Returns
A new ChatUserRoom instance for mocking.