File: generated-code\Models\WorkItemStatusCounts.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 WorkItemStatusCounts
    {
        public WorkItemStatusCounts(IImmutableList<Models.AnalysisCount> analysis, IImmutableDictionary<string, int> workItemStatus)
        {
            Analysis = analysis;
            WorkItemStatus = workItemStatus;
        }
 
        [JsonProperty("Analysis")]
        public IImmutableList<Models.AnalysisCount> Analysis { get; set; }
 
        [JsonProperty("WorkItemStatus")]
        public IImmutableDictionary<string, int> WorkItemStatus { get; set; }
 
        [JsonIgnore]
        public bool IsValid
        {
            get
            {
                if (Analysis == default(IImmutableList<Models.AnalysisCount>))
                {
                    return false;
                }
                if (WorkItemStatus == default(IImmutableDictionary<string, int>))
                {
                    return false;
                }
                return true;
            }
        }
    }
}