public StatusDetail(Entity.JudgeTask judgetask, int index) { ID = index; MemoryUsage = judgetask.MemoryUsage; TimeUsage = judgetask.TimeUsage; Result = judgetask.ResultAsInt; Hint = Helpers.HtmlFilter.Instance.SanitizeHtml(judgetask.Hint); }
public JudgeTask(Entity.JudgeTask jt) { ID = jt.ID; Code = jt.Status.Code; CodeLanguage = jt.Status.Language; DataID = jt.TestCaseID; SpecialJudgeCode = jt.Status.Problem.SpecialJudge; SpecialJudgeCodeLanguage = jt.Status.Problem.SpecialJudgeLanguage; TimeLimit = jt.Status.Problem.TimeLimit; MemoryLimit = jt.Status.Problem.MemoryLimit; }