forked from dotnet/try
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWasmCodeRunnerResponse.cs
More file actions
34 lines (29 loc) · 1.14 KB
/
Copy pathWasmCodeRunnerResponse.cs
File metadata and controls
34 lines (29 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Newtonsoft.Json;
namespace MLS.WasmCodeRunner
{
public class WasmCodeRunnerResponse
{
public WasmCodeRunnerResponse(bool succeeded, string exception, string[] output, SerializableDiagnostic[] diagnostics, string runnerException)
{
Exception = exception;
Output = output;
Succeeded = succeeded;
Diagnostics = diagnostics;
RunnerException = runnerException;
}
[JsonProperty("exception")]
public string Exception { get; }
[JsonProperty("output")]
public string[] Output { get; }
[JsonProperty("succeeded")]
public bool Succeeded { get; }
[JsonProperty("diagnostics")]
public SerializableDiagnostic[] Diagnostics { get; }
[JsonProperty("runnerException")]
public string RunnerException { get; }
[JsonProperty("codeRunnerVersion")]
public string CodeRunnerVersion => "VersionPlaceholder";
}
}