-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78d3c46
commit c3aa137
Showing
3 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
sdk/communication/Azure.Communication.JobRouter/src/Models/UnassignJobOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
#nullable enable | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Security.Cryptography; | ||
using System.Text; | ||
using Azure.Core; | ||
|
||
namespace Azure.Communication.JobRouter | ||
{ | ||
/// <summary> | ||
/// Options for unassigning a job. | ||
/// </summary> | ||
public class UnassignJobOptions | ||
{ | ||
/// <summary> | ||
/// Public constructor. | ||
/// </summary> | ||
/// <param name="jobId"> Id of the job. </param> | ||
/// <param name="assignmentId"> Id of the assignment. </param> | ||
/// <exception cref="ArgumentNullException"> <paramref name="jobId"/> is null. </exception> | ||
/// <exception cref="ArgumentNullException"> <paramref name="assignmentId"/> is null. </exception> | ||
public UnassignJobOptions(string jobId, string assignmentId) | ||
{ | ||
Argument.AssertNotNullOrWhiteSpace(jobId, nameof(jobId)); | ||
Argument.AssertNotNullOrWhiteSpace(assignmentId, nameof(assignmentId)); | ||
|
||
JobId = jobId; | ||
AssignmentId = assignmentId; | ||
} | ||
|
||
/// <summary> | ||
/// Unique key that identifies this job. | ||
/// </summary> | ||
public string JobId { get; } | ||
|
||
/// <summary> | ||
/// Unique key that identifies this job assignment. | ||
/// </summary> | ||
public string AssignmentId { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters