Пример #1
0
 public static DM.Submission SetSubmitter(this DM.Submission submission, DM.Student submitter)
 {
     submission.Submitter = submitter;
     return(submission);
 }
Пример #2
0
 public static DM.Submission SetProblem(this DM.Submission submission, DM.Problem problem)
 {
     submission.Problem = problem;
     return(submission);
 }
Пример #3
0
 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);
 }
Пример #4
0
 public static DM.Submission SetContest(this DM.Submission submission, DM.Contest contest)
 {
     submission.Contest = contest;
     return(submission);
 }