Skip to content
Snippets Groups Projects
Commit 0b5208b6 authored by Janis Daniel Dähne's avatar Janis Daniel Dähne
Browse files

- added property to assessmentFullBase so that we can decide if the assessment...

- added property to assessmentFullBase so that we can decide if the assessment is null on the backend or not
parent e20a7a51
Branches to3.1
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ namespace ClientServer.Helpers
/// </summary>
public static class Constants
{
public static string VersionString = "2.5.9";
public static string VersionString = "2.5.10";
/// <summary>
/// this is only set once at program.cs!!
......
......@@ -1679,6 +1679,7 @@ namespace ClientServer.Controllers.Core.Exercises
var assessment = new AssessmentFullBase()
{
HasAssessment = solution.Assessment != null,
Token = participation.User.Token,
FirstName = participation.User.FirstName,
LastName = participation.User.LastName,
......@@ -1876,6 +1877,7 @@ namespace ClientServer.Controllers.Core.Exercises
var assessment = new AssessmentFullBase()
{
HasAssessment = solution.Assessment != null,
Token = participation.User.Token,
FirstName = participation.User.FirstName,
LastName = participation.User.LastName,
......@@ -2190,6 +2192,12 @@ namespace ClientServer.Controllers.Core.Exercises
/// </summary>
public class AssessmentFullBase
{
/// <summary>
/// true: assessment was != null in the backend
/// false: assessment was null e.g. because the automatic assessment hasn't finished yet
/// </summary>
public bool HasAssessment { get; set; }
/// <summary>
/// the token from the user
/// </summary>
......
......@@ -505,6 +505,7 @@ namespace ClientServer.Controllers.Core.Exercises
var assessment = new AssessmentFullBase()
{
HasAssessment = solution.Assessment != null,
Token = userReleaseParticipation.User.Token,
FirstName = userReleaseParticipation.User.FirstName,
LastName = userReleaseParticipation.User.LastName,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment