< Summary

Class:Azure.DigitalTwins.Core.Serialization.ModelProperties
Assembly:Azure.DigitalTwins.Core
File(s):C:\Git\azure-sdk-for-net\sdk\digitaltwins\Azure.DigitalTwins.Core\src\Serialization\ModelProperties.cs
Covered lines:0
Uncovered lines:2
Coverable lines:2
Total lines:29
Line coverage:0% (0 of 2)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_Metadata()-0%100%
get_CustomProperties()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\digitaltwins\Azure.DigitalTwins.Core\src\Serialization\ModelProperties.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.Collections.Generic;
 5using System.Text.Json.Serialization;
 6
 7namespace Azure.DigitalTwins.Core.Serialization
 8{
 9    /// <summary>
 10    /// Properties on a component that adhere to a specific model.
 11    /// </summary>
 12    /// <remarks>
 13    /// For more samples, see <see href="https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/digitaltwins/Azure.D
 14    /// </remarks>
 15    public class ModelProperties
 16    {
 17        /// <summary>
 18        /// Information about the model a component conforms to. This field is present on every digital twin.
 19        /// </summary>
 20        [JsonPropertyName("$metadata")]
 021        public ComponentMetadata Metadata { get; internal set; } = new ComponentMetadata();
 22
 23        /// <summary>
 24        /// Additional properties of the digital twin. This field will contain any properties of the digital twin that a
 25        /// </summary>
 26        [JsonExtensionData]
 027        public IDictionary<string, object> CustomProperties { get; } = new Dictionary<string, object>();
 28    }
 29}