File: generated-code\Models\AggregateAnalysisSummaryKeyedData.cs
Web Access
Project: src\src\Microsoft.DotNet.Helix\Client\CSharp\Microsoft.DotNet.Helix.Client.csproj (Microsoft.DotNet.Helix.Client)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System;
using System.Collections.Immutable;
using Newtonsoft.Json;
 
namespace Microsoft.DotNet.Helix.Client.Models
{
    public partial class AggregateAnalysisSummaryKeyedData
    {
        public AggregateAnalysisSummaryKeyedData(IImmutableDictionary<string, string> key, Models.AggregateAnalysisSummary data)
        {
            Key = key;
            Data = data;
        }
 
        [JsonProperty("Key")]
        public IImmutableDictionary<string, string> Key { get; set; }
 
        [JsonProperty("Data")]
        public Models.AggregateAnalysisSummary Data { get; set; }
 
        [JsonIgnore]
        public bool IsValid
        {
            get
            {
                if (Key == default(IImmutableDictionary<string, string>))
                {
                    return false;
                }
                if (Data == default(Models.AggregateAnalysisSummary))
                {
                    return false;
                }
                return true;
            }
        }
    }
}