public static DM.Submission SetSubmitter(this DM.Submission submission, DM.Student submitter) { submission.Submitter = submitter; return(submission); }
public static DM.Submission SetProblem(this DM.Submission submission, DM.Problem problem) { submission.Problem = problem; return(submission); }
public static DM.Submission SetFromRun(this DM.Submission submission, XmlModels.Run run) { submission.IsAccepted = run.Accepted == "yes"; submission.Time = (long.Parse(run.Time) + Program.Configuration.GetValue <long>("Parsing:ContestStartTime")); return(submission); }
public static DM.Submission SetContest(this DM.Submission submission, DM.Contest contest) { submission.Contest = contest; return(submission); }