This commit is contained in:
prixod
2025-10-24 23:29:56 +04:00
parent 8af94da831
commit 3d854c3470
18 changed files with 330 additions and 45 deletions

View File

@@ -0,0 +1,12 @@
namespace LiquidCode.Tester.Common.Models;
public enum ErrorCode
{
None,
CompileError,
RuntimeError,
MemoryError,
TimeLimitError,
IncorrectAnswer,
UnknownError
}

View File

@@ -0,0 +1,9 @@
namespace LiquidCode.Tester.Common.Models;
public enum State
{
Waiting,
Compiling,
Testing,
Done
}

View 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
);

View 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
);