< Summary

Class:Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingStreamsOutOfSyncEventData
Assembly:Azure.Messaging.EventGrid
File(s):C:\Git\azure-sdk-for-net\sdk\eventgrid\Azure.Messaging.EventGrid\src\Generated\Models\MediaLiveEventIncomingStreamsOutOfSyncEventData.cs
C:\Git\azure-sdk-for-net\sdk\eventgrid\Azure.Messaging.EventGrid\src\Generated\Models\MediaLiveEventIncomingStreamsOutOfSyncEventData.Serialization.cs
Covered lines:39
Uncovered lines:2
Coverable lines:41
Total lines:107
Line coverage:95.1% (39 of 41)
Covered branches:14
Total branches:14
Branch coverage:100% (14 of 14)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_MinLastTimestamp()-100%100%
get_TypeOfStreamWithMinLastTimestamp()-100%100%
get_MaxLastTimestamp()-100%100%
get_TypeOfStreamWithMaxLastTimestamp()-100%100%
get_TimescaleOfMinLastTimestamp()-100%100%
get_TimescaleOfMaxLastTimestamp()-100%100%
DeserializeMediaLiveEventIncomingStreamsOutOfSyncEventData(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventgrid\Azure.Messaging.EventGrid\src\Generated\Models\MediaLiveEventIncomingStreamsOutOfSyncEventData.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8namespace Azure.Messaging.EventGrid.SystemEvents
 9{
 10    /// <summary> Incoming streams out of sync event data. </summary>
 11    public partial class MediaLiveEventIncomingStreamsOutOfSyncEventData
 12    {
 13        /// <summary> Initializes a new instance of MediaLiveEventIncomingStreamsOutOfSyncEventData. </summary>
 014        internal MediaLiveEventIncomingStreamsOutOfSyncEventData()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of MediaLiveEventIncomingStreamsOutOfSyncEventData. </summary>
 19        /// <param name="minLastTimestamp"> Gets the minimum last timestamp received. </param>
 20        /// <param name="typeOfStreamWithMinLastTimestamp"> Gets the type of stream with minimum last timestamp. </param
 21        /// <param name="maxLastTimestamp"> Gets the maximum timestamp among all the tracks (audio or video). </param>
 22        /// <param name="typeOfStreamWithMaxLastTimestamp"> Gets the type of stream with maximum last timestamp. </param
 23        /// <param name="timescaleOfMinLastTimestamp"> Gets the timescale in which &quot;MinLastTimestamp&quot; is repre
 24        /// <param name="timescaleOfMaxLastTimestamp"> Gets the timescale in which &quot;MaxLastTimestamp&quot; is repre
 225        internal MediaLiveEventIncomingStreamsOutOfSyncEventData(string minLastTimestamp, string typeOfStreamWithMinLast
 26        {
 227            MinLastTimestamp = minLastTimestamp;
 228            TypeOfStreamWithMinLastTimestamp = typeOfStreamWithMinLastTimestamp;
 229            MaxLastTimestamp = maxLastTimestamp;
 230            TypeOfStreamWithMaxLastTimestamp = typeOfStreamWithMaxLastTimestamp;
 231            TimescaleOfMinLastTimestamp = timescaleOfMinLastTimestamp;
 232            TimescaleOfMaxLastTimestamp = timescaleOfMaxLastTimestamp;
 233        }
 34
 35        /// <summary> Gets the minimum last timestamp received. </summary>
 236        public string MinLastTimestamp { get; }
 37        /// <summary> Gets the type of stream with minimum last timestamp. </summary>
 238        public string TypeOfStreamWithMinLastTimestamp { get; }
 39        /// <summary> Gets the maximum timestamp among all the tracks (audio or video). </summary>
 240        public string MaxLastTimestamp { get; }
 41        /// <summary> Gets the type of stream with maximum last timestamp. </summary>
 242        public string TypeOfStreamWithMaxLastTimestamp { get; }
 43        /// <summary> Gets the timescale in which &quot;MinLastTimestamp&quot; is represented. </summary>
 244        public string TimescaleOfMinLastTimestamp { get; }
 45        /// <summary> Gets the timescale in which &quot;MaxLastTimestamp&quot; is represented. </summary>
 246        public string TimescaleOfMaxLastTimestamp { get; }
 47    }
 48}

C:\Git\azure-sdk-for-net\sdk\eventgrid\Azure.Messaging.EventGrid\src\Generated\Models\MediaLiveEventIncomingStreamsOutOfSyncEventData.Serialization.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.Messaging.EventGrid.SystemEvents
 12{
 13    public partial class MediaLiveEventIncomingStreamsOutOfSyncEventData
 14    {
 15        internal static MediaLiveEventIncomingStreamsOutOfSyncEventData DeserializeMediaLiveEventIncomingStreamsOutOfSyn
 16        {
 217            Optional<string> minLastTimestamp = default;
 218            Optional<string> typeOfStreamWithMinLastTimestamp = default;
 219            Optional<string> maxLastTimestamp = default;
 220            Optional<string> typeOfStreamWithMaxLastTimestamp = default;
 221            Optional<string> timescaleOfMinLastTimestamp = default;
 222            Optional<string> timescaleOfMaxLastTimestamp = default;
 2823            foreach (var property in element.EnumerateObject())
 24            {
 1225                if (property.NameEquals("minLastTimestamp"))
 26                {
 227                    minLastTimestamp = property.Value.GetString();
 228                    continue;
 29                }
 1030                if (property.NameEquals("typeOfStreamWithMinLastTimestamp"))
 31                {
 232                    typeOfStreamWithMinLastTimestamp = property.Value.GetString();
 233                    continue;
 34                }
 835                if (property.NameEquals("maxLastTimestamp"))
 36                {
 237                    maxLastTimestamp = property.Value.GetString();
 238                    continue;
 39                }
 640                if (property.NameEquals("typeOfStreamWithMaxLastTimestamp"))
 41                {
 242                    typeOfStreamWithMaxLastTimestamp = property.Value.GetString();
 243                    continue;
 44                }
 445                if (property.NameEquals("timescaleOfMinLastTimestamp"))
 46                {
 247                    timescaleOfMinLastTimestamp = property.Value.GetString();
 248                    continue;
 49                }
 250                if (property.NameEquals("timescaleOfMaxLastTimestamp"))
 51                {
 252                    timescaleOfMaxLastTimestamp = property.Value.GetString();
 53                    continue;
 54                }
 55            }
 256            return new MediaLiveEventIncomingStreamsOutOfSyncEventData(minLastTimestamp.Value, typeOfStreamWithMinLastTi
 57        }
 58    }
 59}