Udostępnij za pośrednictwem


RoomsModelFactory.CommunicationRoom Method

Definition

Overloads

CommunicationRoom(String, DateTimeOffset, DateTimeOffset, DateTimeOffset)

Initializes a new instance of CommunicationRoom.

CommunicationRoom(String, DateTimeOffset, DateTimeOffset, DateTimeOffset, Boolean)

Initializes a new instance of CommunicationRoom.

CommunicationRoom(String, DateTimeOffset, DateTimeOffset, DateTimeOffset)

Source:
RoomsModelFactory.cs
Source:
RoomsModelFactory.cs

Initializes a new instance of CommunicationRoom.

public static Azure.Communication.Rooms.CommunicationRoom CommunicationRoom (string id = default, DateTimeOffset createdAt = default, DateTimeOffset validFrom = default, DateTimeOffset validUntil = default);
static member CommunicationRoom : string * DateTimeOffset * DateTimeOffset * DateTimeOffset -> Azure.Communication.Rooms.CommunicationRoom
Public Shared Function CommunicationRoom (Optional id As String = Nothing, Optional createdAt As DateTimeOffset = Nothing, Optional validFrom As DateTimeOffset = Nothing, Optional validUntil As DateTimeOffset = Nothing) As CommunicationRoom

Parameters

id
String

Unique identifier of a room. This id is server generated.

createdAt
DateTimeOffset

The timestamp when the room was created at the server. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

validFrom
DateTimeOffset

The timestamp from when the room is open for joining. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

validUntil
DateTimeOffset

The timestamp from when the room can no longer be joined. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

Returns

A new CommunicationRoom instance for mocking.

Exceptions

id is null.

Applies to

CommunicationRoom(String, DateTimeOffset, DateTimeOffset, DateTimeOffset, Boolean)

Source:
RoomsModelFactory.cs
Source:
RoomsModelFactory.cs

Initializes a new instance of CommunicationRoom.

public static Azure.Communication.Rooms.CommunicationRoom CommunicationRoom (string id = default, DateTimeOffset createdAt = default, DateTimeOffset validFrom = default, DateTimeOffset validUntil = default, bool pstnDialOutEnabled = false);
static member CommunicationRoom : string * DateTimeOffset * DateTimeOffset * DateTimeOffset * bool -> Azure.Communication.Rooms.CommunicationRoom
Public Shared Function CommunicationRoom (Optional id As String = Nothing, Optional createdAt As DateTimeOffset = Nothing, Optional validFrom As DateTimeOffset = Nothing, Optional validUntil As DateTimeOffset = Nothing, Optional pstnDialOutEnabled As Boolean = false) As CommunicationRoom

Parameters

id
String

Unique identifier of a room. This id is server generated.

createdAt
DateTimeOffset

The timestamp when the room was created at the server. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

validFrom
DateTimeOffset

The timestamp from when the room is open for joining. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

validUntil
DateTimeOffset

The timestamp from when the room can no longer be joined. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

pstnDialOutEnabled
Boolean

Set this flag to true if, at the time of the call, dial out to a PSTN number is enabled in a particular room. By default, this flag is set to false.

Returns

A new CommunicationRoom instance for mocking.

Exceptions

id is null.

Applies to