Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Progark gruppe 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Ingebrigt Ørstad
Progark gruppe 3
Commits
c95b25f2
Commit
c95b25f2
authored
5 years ago
by
ivarnm
Browse files
Options
Downloads
Patches
Plain Diff
#69
Add doRoundCheck
parent
1257efc9
No related branches found
No related tags found
1 merge request
!64
Resolve "Add round check method in QI"
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/core/src/com/gameware/game/QueryIntermediate.java
+5
-3
5 additions, 3 deletions
frontend/core/src/com/gameware/game/QueryIntermediate.java
frontend/core/src/com/gameware/game/models/RoundCheck.java
+33
-0
33 additions, 0 deletions
frontend/core/src/com/gameware/game/models/RoundCheck.java
with
38 additions
and
3 deletions
frontend/core/src/com/gameware/game/QueryIntermediate.java
+
5
−
3
View file @
c95b25f2
...
@@ -14,6 +14,7 @@ import com.gameware.game.models.Highscore;
...
@@ -14,6 +14,7 @@ import com.gameware.game.models.Highscore;
import
com.gameware.game.models.Player
;
import
com.gameware.game.models.Player
;
import
com.gameware.game.models.Point
;
import
com.gameware.game.models.Point
;
import
com.gameware.game.models.Round
;
import
com.gameware.game.models.Round
;
import
com.gameware.game.models.RoundCheck
;
import
com.gameware.game.models.Tournament
;
import
com.gameware.game.models.Tournament
;
import
java.io.IOException
;
import
java.io.IOException
;
...
@@ -209,12 +210,13 @@ public class QueryIntermediate {
...
@@ -209,12 +210,13 @@ public class QueryIntermediate {
return
points
;
return
points
;
}
}
public
static
T
ou
rnament
doRoundCheck
(
String
tournamentId
)
throws
IOException
,
NoSuchElementException
{
public
static
R
ou
ndCheck
doRoundCheck
(
String
tournamentId
)
throws
IOException
,
NoSuchElementException
{
String
route
=
"tournament/roundcheck/"
+
tournamentId
;
String
route
=
"tournament/roundcheck/"
+
tournamentId
;
String
[]
response
=
sendPutRequest
(
route
,
null
);
String
[]
response
=
sendPutRequest
(
route
,
null
);
checkStatusCode
(
response
);
checkStatusCode
(
response
);
System
.
out
.
println
(
response
);
RoundCheck
roundCheck
=
json
.
fromJson
(
RoundCheck
.
class
,
response
[
1
]);
return
null
;
checkObjectNotNull
(
roundCheck
);
return
roundCheck
;
}
}
// ---------------- Highscore methods ----------------
// ---------------- Highscore methods ----------------
...
...
This diff is collapsed.
Click to expand it.
frontend/core/src/com/gameware/game/models/RoundCheck.java
0 → 100644
+
33
−
0
View file @
c95b25f2
package
com.gameware.game.models
;
import
com.badlogic.gdx.utils.Json
;
public
class
RoundCheck
implements
ModelInterface
{
private
boolean
active
;
private
boolean
nextRound
;
public
RoundCheck
()
{
}
public
boolean
isActive
()
{
return
active
;
}
public
boolean
isNextRound
()
{
return
nextRound
;
}
@Override
public
void
reset
()
{
active
=
false
;
nextRound
=
false
;
}
@Override
public
String
report
()
{
return
new
Json
().
toJson
(
this
);}
@Override
public
String
toString
()
{
return
report
();
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment