// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Linq; using Newtonsoft.Json.Linq; namespace Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest.Autobahn { public class AutobahnResult { public IEnumerable Servers { get; } public AutobahnResult(IEnumerable servers) { Servers = servers; } public static AutobahnResult FromReportJson(JObject indexJson) { // Load the report return new AutobahnResult(indexJson.Properties().Select(AutobahnServerResult.FromJson)); } } }