< Summary

Class:Microsoft.Azure.EventGrid.Models.MapsGeofenceEventProperties
Assembly:Microsoft.Azure.EventGrid
File(s):C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Generated\Models\MapsGeofenceEventProperties.cs
Covered lines:4
Uncovered lines:8
Coverable lines:12
Total lines:94
Line coverage:33.3% (4 of 12)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_ExpiredGeofenceGeometryId()-100%100%
get_Geometries()-100%100%
get_InvalidPeriodGeofenceGeometryId()-0%100%
get_IsEventPublished()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Generated\Models\MapsGeofenceEventProperties.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 Geofence event
 20    /// (GeofenceEntered, GeofenceExited, GeofenceResult).
 21    /// </summary>
 22    public partial class MapsGeofenceEventProperties
 23    {
 24        /// <summary>
 25        /// Initializes a new instance of the MapsGeofenceEventProperties
 26        /// class.
 27        /// </summary>
 328        public MapsGeofenceEventProperties()
 29        {
 30            CustomInit();
 331        }
 32
 33        /// <summary>
 34        /// Initializes a new instance of the MapsGeofenceEventProperties
 35        /// class.
 36        /// </summary>
 37        /// <param name="expiredGeofenceGeometryId">Lists of the geometry ID of
 38        /// the geofence which is expired relative to the user time in the
 39        /// request.</param>
 40        /// <param name="geometries">Lists the fence geometries that either
 41        /// fully contain the coordinate position or have an overlap with the
 42        /// searchBuffer around the fence.</param>
 43        /// <param name="invalidPeriodGeofenceGeometryId">Lists of the geometry
 44        /// ID of the geofence which is in invalid period relative to the user
 45        /// time in the request.</param>
 46        /// <param name="isEventPublished">True if at least one event is
 47        /// published to the Azure Maps event subscriber, false if no event is
 48        /// published to the Azure Maps event subscriber.</param>
 049        public MapsGeofenceEventProperties(IList<string> expiredGeofenceGeometryId = default(IList<string>), IList<MapsG
 50        {
 051            ExpiredGeofenceGeometryId = expiredGeofenceGeometryId;
 052            Geometries = geometries;
 053            InvalidPeriodGeofenceGeometryId = invalidPeriodGeofenceGeometryId;
 054            IsEventPublished = isEventPublished;
 55            CustomInit();
 056        }
 57
 58        /// <summary>
 59        /// An initialization method that performs custom operations like setting defaults
 60        /// </summary>
 61        partial void CustomInit();
 62
 63        /// <summary>
 64        /// Gets or sets lists of the geometry ID of the geofence which is
 65        /// expired relative to the user time in the request.
 66        /// </summary>
 67        [JsonProperty(PropertyName = "expiredGeofenceGeometryId")]
 668        public IList<string> ExpiredGeofenceGeometryId { get; set; }
 69
 70        /// <summary>
 71        /// Gets or sets lists the fence geometries that either fully contain
 72        /// the coordinate position or have an overlap with the searchBuffer
 73        /// around the fence.
 74        /// </summary>
 75        [JsonProperty(PropertyName = "geometries")]
 976        public IList<MapsGeofenceGeometry> Geometries { get; set; }
 77
 78        /// <summary>
 79        /// Gets or sets lists of the geometry ID of the geofence which is in
 80        /// invalid period relative to the user time in the request.
 81        /// </summary>
 82        [JsonProperty(PropertyName = "invalidPeriodGeofenceGeometryId")]
 083        public IList<string> InvalidPeriodGeofenceGeometryId { get; set; }
 84
 85        /// <summary>
 86        /// Gets or sets true if at least one event is published to the Azure
 87        /// Maps event subscriber, false if no event is published to the Azure
 88        /// Maps event subscriber.
 89        /// </summary>
 90        [JsonProperty(PropertyName = "isEventPublished")]
 091        public bool? IsEventPublished { get; set; }
 92
 93    }
 94}