forked from dotnet/try
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWasmCodeRunnerRequest.cs
More file actions
28 lines (24 loc) · 893 Bytes
/
Copy pathWasmCodeRunnerRequest.cs
File metadata and controls
28 lines (24 loc) · 893 Bytes
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
// 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 WasmCodeRunnerRequest
{
private string _runArgs;
[JsonProperty("requestId")]
public string RequestId { get; set; }
[JsonProperty("succeeded")]
public bool Succeeded { get; set; }
[JsonProperty("base64assembly")]
public string Base64Assembly { get; set; }
[JsonProperty("diagnostics")]
public SerializableDiagnostic[] Diagnostics { get; set; }
[JsonProperty("runArgs", DefaultValueHandling = DefaultValueHandling.Ignore)]
public string RunArgs
{
get => _runArgs ?? string.Empty;
set => _runArgs = value;
}
}
}