< Summary

Class:Microsoft.Azure.EventGrid.Models.DeviceTelemetryEventProperties
Assembly:Microsoft.Azure.EventGrid
File(s):C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Generated\Models\DeviceTelemetryEventProperties.cs
Covered lines:5
Uncovered lines:5
Coverable lines:10
Total lines:78
Line coverage:50% (5 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Body()-100%100%
get_Properties()-100%100%
get_SystemProperties()-100%100%

File(s)

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

#LineLine coverage
 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
 11namespace 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>
 128        public DeviceTelemetryEventProperties()
 29        {
 30            CustomInit();
 131        }
 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>
 044        public DeviceTelemetryEventProperties(object body = default(object), IDictionary<string, string> properties = de
 45        {
 046            Body = body;
 047            Properties = properties;
 048            SystemProperties = systemProperties;
 49            CustomInit();
 050        }
 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")]
 261        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")]
 368        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")]
 275        public IDictionary<string, string> SystemProperties { get; set; }
 76
 77    }
 78}