File: generated-code\Models\InvestigationGroup.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 InvestigationGroup
    {
        public InvestigationGroup(IImmutableDictionary<string, string> key, IImmutableDictionary<string, IImmutableList<Models.InvestigationAnalysis>> data)
        {
            Key = key;
            Data = data;
        }
 
        [JsonProperty("Key")]
        public IImmutableDictionary<string, string> Key { get; set; }
 
        [JsonProperty("Data")]
        public IImmutableDictionary<string, IImmutableList<Models.InvestigationAnalysis>> Data { get; set; }
 
        [JsonIgnore]
        public bool IsValid
        {
            get
            {
                if (Key == default(IImmutableDictionary<string, string>))
                {
                    return false;
                }
                if (Data == default(IImmutableDictionary<string, IImmutableList<Models.InvestigationAnalysis>>))
                {
                    return false;
                }
                return true;
            }
        }
    }
}