| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System.Collections.Generic; |
| | 5 | | using System.Text.Json.Serialization; |
| | 6 | |
|
| | 7 | | namespace Azure.DigitalTwins.Core.Serialization |
| | 8 | | { |
| | 9 | | /// <summary> |
| | 10 | | /// An optional, helper class for deserializing a digital twin. |
| | 11 | | /// The $metadata class on a <see cref="BasicDigitalTwin"/> and <see cref="ModelProperties"/>. |
| | 12 | | /// </summary> |
| | 13 | | /// <remarks> |
| | 14 | | /// For more samples, see <see href="https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/digitaltwins/Azure.D |
| | 15 | | /// </remarks> |
| | 16 | | public class DigitalTwinMetadata |
| | 17 | | { |
| | 18 | | /// <summary> |
| | 19 | | /// The Id of the model that the digital twin or component is modeled by. |
| | 20 | | /// </summary> |
| | 21 | | [JsonPropertyName("$model")] |
| 0 | 22 | | public string ModelId { get; set; } |
| | 23 | |
|
| | 24 | | /// <summary> |
| | 25 | | /// Model-defined writable properties' request state. |
| | 26 | | /// </summary> |
| | 27 | | /// <remarks>For your convenience, the value of each dictionary object can be turned into an instance of <see cr |
| | 28 | | [JsonExtensionData] |
| 0 | 29 | | public IDictionary<string, object> WriteableProperties { get; } = new Dictionary<string, object>(); |
| | 30 | | } |
| | 31 | | } |