次の方法で共有


JobRouterModelFactory.RouterJobOffer Method

Definition

Initializes a new instance of RouterJobOffer.

public static Azure.Communication.JobRouter.RouterJobOffer RouterJobOffer (string offerId = default, string jobId = default, int capacityCost = 0, DateTimeOffset? offeredAt = default, DateTimeOffset? expiresAt = default);
static member RouterJobOffer : string * string * int * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Azure.Communication.JobRouter.RouterJobOffer
Public Shared Function RouterJobOffer (Optional offerId As String = Nothing, Optional jobId As String = Nothing, Optional capacityCost As Integer = 0, Optional offeredAt As Nullable(Of DateTimeOffset) = Nothing, Optional expiresAt As Nullable(Of DateTimeOffset) = Nothing) As RouterJobOffer

Parameters

offerId
String

Id of an offer.

jobId
String

Id of the job.

capacityCost
Int32

The capacity cost consumed by the job offer.

offeredAt
Nullable<DateTimeOffset>

Timestamp when the offer was created in UTC.

expiresAt
Nullable<DateTimeOffset>

Timestamp when the offer will expire in UTC.

Returns

A new RouterJobOffer instance for mocking.

Applies to