| | 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.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Schema of the Data property of an EventGridEvent for a device telemetry |
| | 20 | | /// event (DeviceTelemetry). |
| | 21 | | /// </summary> |
| | 22 | | public partial class DeviceTelemetryEventProperties |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Initializes a new instance of the DeviceTelemetryEventProperties |
| | 26 | | /// class. |
| | 27 | | /// </summary> |
| 1 | 28 | | public DeviceTelemetryEventProperties() |
| | 29 | | { |
| | 30 | | CustomInit(); |
| 1 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <summary> |
| | 34 | | /// Initializes a new instance of the DeviceTelemetryEventProperties |
| | 35 | | /// class. |
| | 36 | | /// </summary> |
| | 37 | | /// <param name="body">The content of the message from the |
| | 38 | | /// device.</param> |
| | 39 | | /// <param name="properties">Application properties are user-defined |
| | 40 | | /// strings that can be added to the message. These fields are |
| | 41 | | /// optional.</param> |
| | 42 | | /// <param name="systemProperties">System properties help identify |
| | 43 | | /// contents and source of the messages.</param> |
| 0 | 44 | | public DeviceTelemetryEventProperties(object body = default(object), IDictionary<string, string> properties = de |
| | 45 | | { |
| 0 | 46 | | Body = body; |
| 0 | 47 | | Properties = properties; |
| 0 | 48 | | SystemProperties = systemProperties; |
| | 49 | | CustomInit(); |
| 0 | 50 | | } |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// An initialization method that performs custom operations like setting defaults |
| | 54 | | /// </summary> |
| | 55 | | partial void CustomInit(); |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// Gets or sets the content of the message from the device. |
| | 59 | | /// </summary> |
| | 60 | | [JsonProperty(PropertyName = "body")] |
| 2 | 61 | | public object Body { get; set; } |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// Gets or sets application properties are user-defined strings that |
| | 65 | | /// can be added to the message. These fields are optional. |
| | 66 | | /// </summary> |
| | 67 | | [JsonProperty(PropertyName = "properties")] |
| 3 | 68 | | public IDictionary<string, string> Properties { get; set; } |
| | 69 | |
|
| | 70 | | /// <summary> |
| | 71 | | /// Gets or sets system properties help identify contents and source of |
| | 72 | | /// the messages. |
| | 73 | | /// </summary> |
| | 74 | | [JsonProperty(PropertyName = "systemProperties")] |
| 2 | 75 | | public IDictionary<string, string> SystemProperties { get; set; } |
| | 76 | |
|
| | 77 | | } |
| | 78 | | } |