Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Plan
Issues
27
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
ARSnova Backend
Commits
7c6660d7
Commit
7c6660d7
authored
10 years ago
by
Felix Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Added sessionType to SessionInfo Entity to evaluate public pool sessions in frontend.
parent
767d7545
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/entities/SessionInfo.java
+12
-2
12 additions, 2 deletions
src/main/java/de/thm/arsnova/entities/SessionInfo.java
with
12 additions
and
2 deletions
src/main/java/de/thm/arsnova/entities/SessionInfo.java
+
12
−
2
View file @
7c6660d7
...
@@ -28,13 +28,14 @@ public class SessionInfo {
...
@@ -28,13 +28,14 @@ public class SessionInfo {
private
boolean
active
;
private
boolean
active
;
private
String
courseType
;
private
String
courseType
;
private
long
creationTime
;
private
long
creationTime
;
private
String
sessionType
;
private
int
numQuestions
;
private
int
numQuestions
;
private
int
numAnswers
;
private
int
numAnswers
;
private
int
numInterposed
;
private
int
numInterposed
;
private
int
numUnredInterposed
;
private
int
numUnredInterposed
;
private
int
numUnanswered
;
private
int
numUnanswered
;
public
SessionInfo
(
Session
session
)
{
public
SessionInfo
(
Session
session
)
{
this
.
name
=
session
.
getName
();
this
.
name
=
session
.
getName
();
this
.
shortName
=
session
.
getShortName
();
this
.
shortName
=
session
.
getShortName
();
...
@@ -42,6 +43,7 @@ public class SessionInfo {
...
@@ -42,6 +43,7 @@ public class SessionInfo {
this
.
active
=
session
.
isActive
();
this
.
active
=
session
.
isActive
();
this
.
courseType
=
session
.
getCourseType
();
this
.
courseType
=
session
.
getCourseType
();
this
.
creationTime
=
session
.
getCreationTime
();
this
.
creationTime
=
session
.
getCreationTime
();
this
.
sessionType
=
session
.
getSessionType
();
}
}
public
static
List
<
SessionInfo
>
fromSessionList
(
List
<
Session
>
sessions
)
{
public
static
List
<
SessionInfo
>
fromSessionList
(
List
<
Session
>
sessions
)
{
...
@@ -91,6 +93,14 @@ public class SessionInfo {
...
@@ -91,6 +93,14 @@ public class SessionInfo {
public
void
setCourseType
(
String
courseType
)
{
public
void
setCourseType
(
String
courseType
)
{
this
.
courseType
=
courseType
;
this
.
courseType
=
courseType
;
}
}
public
String
getSessionType
()
{
return
sessionType
;
}
public
void
setSessionType
(
String
sessionType
)
{
this
.
sessionType
=
sessionType
;
}
public
int
getNumQuestions
()
{
public
int
getNumQuestions
()
{
return
numQuestions
;
return
numQuestions
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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