| | | 1 | | // <auto-generated> |
| | | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | | 4 | | // license information. |
| | | 5 | | // |
| | | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | | 8 | | // regenerated. |
| | | 9 | | // </auto-generated> |
| | | 10 | | |
| | | 11 | | namespace Microsoft.Azure.EventGrid.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Linq; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// Ingest track discontinuity detected event data. |
| | | 18 | | /// </summary> |
| | | 19 | | public partial class MediaLiveEventTrackDiscontinuityDetectedEventData |
| | | 20 | | { |
| | | 21 | | /// <summary> |
| | | 22 | | /// Initializes a new instance of the |
| | | 23 | | /// MediaLiveEventTrackDiscontinuityDetectedEventData class. |
| | | 24 | | /// </summary> |
| | 1 | 25 | | public MediaLiveEventTrackDiscontinuityDetectedEventData() |
| | | 26 | | { |
| | | 27 | | CustomInit(); |
| | 1 | 28 | | } |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// Initializes a new instance of the |
| | | 32 | | /// MediaLiveEventTrackDiscontinuityDetectedEventData class. |
| | | 33 | | /// </summary> |
| | | 34 | | /// <param name="trackType">Gets the type of the track (Audio / |
| | | 35 | | /// Video).</param> |
| | | 36 | | /// <param name="trackName">Gets the track name.</param> |
| | | 37 | | /// <param name="bitrate">Gets the bitrate.</param> |
| | | 38 | | /// <param name="previousTimestamp">Gets the timestamp of the previous |
| | | 39 | | /// fragment.</param> |
| | | 40 | | /// <param name="newTimestamp">Gets the timestamp of the current |
| | | 41 | | /// fragment.</param> |
| | | 42 | | /// <param name="timescale">Gets the timescale in which both timestamps |
| | | 43 | | /// and discontinuity gap are represented.</param> |
| | | 44 | | /// <param name="discontinuityGap">Gets the discontinuity gap between |
| | | 45 | | /// PreviousTimestamp and NewTimestamp.</param> |
| | 0 | 46 | | public MediaLiveEventTrackDiscontinuityDetectedEventData(string trackType = default(string), string trackName = |
| | | 47 | | { |
| | 0 | 48 | | TrackType = trackType; |
| | 0 | 49 | | TrackName = trackName; |
| | 0 | 50 | | Bitrate = bitrate; |
| | 0 | 51 | | PreviousTimestamp = previousTimestamp; |
| | 0 | 52 | | NewTimestamp = newTimestamp; |
| | 0 | 53 | | Timescale = timescale; |
| | 0 | 54 | | DiscontinuityGap = discontinuityGap; |
| | | 55 | | CustomInit(); |
| | 0 | 56 | | } |
| | | 57 | | |
| | | 58 | | /// <summary> |
| | | 59 | | /// An initialization method that performs custom operations like setting defaults |
| | | 60 | | /// </summary> |
| | | 61 | | partial void CustomInit(); |
| | | 62 | | |
| | | 63 | | /// <summary> |
| | | 64 | | /// Gets the type of the track (Audio / Video). |
| | | 65 | | /// </summary> |
| | | 66 | | [JsonProperty(PropertyName = "trackType")] |
| | 2 | 67 | | public string TrackType { get; private set; } |
| | | 68 | | |
| | | 69 | | /// <summary> |
| | | 70 | | /// Gets the track name. |
| | | 71 | | /// </summary> |
| | | 72 | | [JsonProperty(PropertyName = "trackName")] |
| | 2 | 73 | | public string TrackName { get; private set; } |
| | | 74 | | |
| | | 75 | | /// <summary> |
| | | 76 | | /// Gets the bitrate. |
| | | 77 | | /// </summary> |
| | | 78 | | [JsonProperty(PropertyName = "bitrate")] |
| | 2 | 79 | | public long? Bitrate { get; private set; } |
| | | 80 | | |
| | | 81 | | /// <summary> |
| | | 82 | | /// Gets the timestamp of the previous fragment. |
| | | 83 | | /// </summary> |
| | | 84 | | [JsonProperty(PropertyName = "previousTimestamp")] |
| | 2 | 85 | | public string PreviousTimestamp { get; private set; } |
| | | 86 | | |
| | | 87 | | /// <summary> |
| | | 88 | | /// Gets the timestamp of the current fragment. |
| | | 89 | | /// </summary> |
| | | 90 | | [JsonProperty(PropertyName = "newTimestamp")] |
| | 2 | 91 | | public string NewTimestamp { get; private set; } |
| | | 92 | | |
| | | 93 | | /// <summary> |
| | | 94 | | /// Gets the timescale in which both timestamps and discontinuity gap |
| | | 95 | | /// are represented. |
| | | 96 | | /// </summary> |
| | | 97 | | [JsonProperty(PropertyName = "timescale")] |
| | 2 | 98 | | public string Timescale { get; private set; } |
| | | 99 | | |
| | | 100 | | /// <summary> |
| | | 101 | | /// Gets the discontinuity gap between PreviousTimestamp and |
| | | 102 | | /// NewTimestamp. |
| | | 103 | | /// </summary> |
| | | 104 | | [JsonProperty(PropertyName = "discontinuityGap")] |
| | 2 | 105 | | public string DiscontinuityGap { get; private set; } |
| | | 106 | | |
| | | 107 | | } |
| | | 108 | | } |