-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
MediaJobStateChangeEventData.cs
40 lines (34 loc) · 1.61 KB
/
MediaJobStateChangeEventData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.Messaging.EventGrid.SystemEvents
{
/// <summary> Schema of the Data property of an EventGridEvent for a Microsoft.Media.JobStateChange event. </summary>
public partial class MediaJobStateChangeEventData
{
/// <summary> Initializes a new instance of MediaJobStateChangeEventData. </summary>
internal MediaJobStateChangeEventData()
{
CorrelationData = new ChangeTrackingDictionary<string, string>();
}
/// <summary> Initializes a new instance of MediaJobStateChangeEventData. </summary>
/// <param name="previousState"> The previous state of the Job. </param>
/// <param name="state"> The new state of the Job. </param>
/// <param name="correlationData"> Gets the Job correlation data. </param>
internal MediaJobStateChangeEventData(MediaJobState? previousState, MediaJobState? state, IReadOnlyDictionary<string, string> correlationData)
{
PreviousState = previousState;
State = state;
CorrelationData = correlationData;
}
/// <summary> The previous state of the Job. </summary>
public MediaJobState? PreviousState { get; }
/// <summary> The new state of the Job. </summary>
public MediaJobState? State { get; }
/// <summary> Gets the Job correlation data. </summary>
public IReadOnlyDictionary<string, string> CorrelationData { get; }
}
}