Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
CTF
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grzegorz
CTF
Commits
17ce4407
Commit
17ce4407
authored
Apr 01, 2016
by
Grzegorz Pietrusza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add timestamp field to solution
parent
9bef56cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
Solution.java
.../java/com/telephoners/krakyournet/ctf/beans/Solution.java
+13
-0
No files found.
service/src/main/java/com/telephoners/krakyournet/ctf/beans/Solution.java
View file @
17ce4407
...
...
@@ -2,6 +2,7 @@ package com.telephoners.krakyournet.ctf.beans;
import
com.telephoners.krakyournet.ctf.beans.tasks.Task
;
import
org.bson.types.ObjectId
;
import
org.joda.time.Instant
;
import
org.mongodb.morphia.annotations.Entity
;
import
org.mongodb.morphia.annotations.Id
;
...
...
@@ -15,12 +16,14 @@ public class Solution
private
Task
task
;
private
Team
team
;
private
Flag
flag
;
private
Instant
submitionTime
;
public
Solution
(
Team
team
,
Task
task
,
Flag
flag
)
{
this
.
team
=
checkNotNull
(
team
);
this
.
task
=
checkNotNull
(
task
);
this
.
flag
=
checkNotNull
(
flag
);
this
.
submitionTime
=
Instant
.
now
();
}
public
Solution
()
...
...
@@ -56,4 +59,14 @@ public class Solution
{
this
.
flag
=
flag
;
}
public
Instant
getSubmitionTime
()
{
return
submitionTime
;
}
public
void
setSubmitionTime
(
Instant
submitionTime
)
{
this
.
submitionTime
=
submitionTime
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment