< Summary

Class:Azure.Iot.Hub.Service.QueryGetTwinsHeaders
Assembly:Azure.Iot.Hub.Service
File(s):C:\Git\azure-sdk-for-net\sdk\iot\Azure.Iot.Hub.Service\src\Generated\QueryGetTwinsHeaders.cs
Covered lines:3
Uncovered lines:2
Coverable lines:5
Total lines:25
Line coverage:60% (3 of 5)
Covered branches:0
Total branches:4
Branch coverage:0% (0 of 4)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
get_XMsItemType()-0%0%
get_XMsContinuation()-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\iot\Azure.Iot.Hub.Service\src\Generated\QueryGetTwinsHeaders.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 Azure;
 9using Azure.Core;
 10
 11namespace Azure.Iot.Hub.Service
 12{
 13    internal class QueryGetTwinsHeaders
 14    {
 15        private readonly Response _response;
 1416        public QueryGetTwinsHeaders(Response response)
 17        {
 1418            _response = response;
 1419        }
 20        /// <summary> The type of list of items. </summary>
 021        public string XMsItemType => _response.Headers.TryGetValue("x-ms-item-type", out string value) ? value : null;
 22        /// <summary> The continuation token used to get the next page of results. </summary>
 023        public string XMsContinuation => _response.Headers.TryGetValue("x-ms-continuation", out string value) ? value : 
 24    }
 25}