update
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
12
src/LiquidCode.Tester.Common/Models/ErrorCode.cs
Normal file
12
src/LiquidCode.Tester.Common/Models/ErrorCode.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace LiquidCode.Tester.Common.Models;
|
||||
|
||||
public enum ErrorCode
|
||||
{
|
||||
None,
|
||||
CompileError,
|
||||
RuntimeError,
|
||||
MemoryError,
|
||||
TimeLimitError,
|
||||
IncorrectAnswer,
|
||||
UnknownError
|
||||
}
|
||||
9
src/LiquidCode.Tester.Common/Models/State.cs
Normal file
9
src/LiquidCode.Tester.Common/Models/State.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace LiquidCode.Tester.Common.Models;
|
||||
|
||||
public enum State
|
||||
{
|
||||
Waiting,
|
||||
Compiling,
|
||||
Testing,
|
||||
Done
|
||||
}
|
||||
11
src/LiquidCode.Tester.Common/Models/SubmitForTesterModel.cs
Normal file
11
src/LiquidCode.Tester.Common/Models/SubmitForTesterModel.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace LiquidCode.Tester.Common.Models;
|
||||
|
||||
public record SubmitForTesterModel(
|
||||
long Id,
|
||||
long MissionId,
|
||||
string Language,
|
||||
string LanguageVersion,
|
||||
string SourceCode,
|
||||
string PackageUrl,
|
||||
string CallbackUrl
|
||||
);
|
||||
10
src/LiquidCode.Tester.Common/Models/TesterResponseModel.cs
Normal file
10
src/LiquidCode.Tester.Common/Models/TesterResponseModel.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace LiquidCode.Tester.Common.Models;
|
||||
|
||||
public record TesterResponseModel(
|
||||
long SubmitId,
|
||||
State State,
|
||||
ErrorCode ErrorCode,
|
||||
string Message,
|
||||
int CurrentTest,
|
||||
int AmountOfTests
|
||||
);
|
||||
@@ -1,3 +0,0 @@
|
||||
// See https://aka.ms/new-console-template for more information
|
||||
|
||||
Console.WriteLine("Hello, World!");
|
||||
Reference in New Issue
Block a user