Share via


JobRouterModelFactory.RouterJobAssignment Method

Definition

Initializes a new instance of RouterJobAssignment.

public static Azure.Communication.JobRouter.RouterJobAssignment RouterJobAssignment (string assignmentId = default, string workerId = default, DateTimeOffset assignedAt = default, DateTimeOffset? completedAt = default, DateTimeOffset? closedAt = default);
static member RouterJobAssignment : string * string * DateTimeOffset * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Azure.Communication.JobRouter.RouterJobAssignment
Public Shared Function RouterJobAssignment (Optional assignmentId As String = Nothing, Optional workerId As String = Nothing, Optional assignedAt As DateTimeOffset = Nothing, Optional completedAt As Nullable(Of DateTimeOffset) = Nothing, Optional closedAt As Nullable(Of DateTimeOffset) = Nothing) As RouterJobAssignment

Parameters

assignmentId
String

Id of a job assignment.

workerId
String

Id of the Worker assigned to the job.

assignedAt
DateTimeOffset

Timestamp when the job was assigned to a worker in UTC.

completedAt
Nullable<DateTimeOffset>

Timestamp when the job was marked as completed after being assigned in UTC.

closedAt
Nullable<DateTimeOffset>

Timestamp when the job was marked as closed after being completed in UTC.

Returns

A new RouterJobAssignment instance for mocking.

Applies to