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
9d56fcb7
Commit
9d56fcb7
authored
10 years ago
by
Tom Käsler
Browse files
Options
Downloads
Patches
Plain Diff
#14886 couchDB Functions nearly rdy, need to parse the json from db right
parent
a18cacb2
Branches
Branches containing commit
Tags
Tags containing commit
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/SortOrder.java
+131
-0
131 additions, 0 deletions
src/main/java/de/thm/arsnova/entities/SortOrder.java
with
131 additions
and
0 deletions
src/main/java/de/thm/arsnova/entities/SortOrder.java
0 → 100644
+
131
−
0
View file @
9d56fcb7
/*
* This file is part of ARSnova Backend.
* Copyright (C) 2012-2015 The ARSnova Team
*
* ARSnova Backend is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ARSnova Backend is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package
de.thm.arsnova.entities
;
public
class
Statistics
{
private
int
answers
;
private
int
lectureQuestions
;
private
int
preparationQuestions
;
private
int
openSessions
;
private
int
closedSessions
;
private
int
activeUsers
;
private
int
loggedinUsers
;
private
int
interposedQuestions
;
public
int
getAnswers
()
{
return
answers
;
}
public
void
setAnswers
(
final
int
answers
)
{
this
.
answers
=
answers
;
}
public
int
getLectureQuestions
()
{
return
lectureQuestions
;
}
public
void
setLectureQuestions
(
final
int
questions
)
{
this
.
lectureQuestions
=
questions
;
}
public
int
getPreparationQuestions
()
{
return
preparationQuestions
;
}
public
void
setPreparationQuestions
(
final
int
questions
)
{
this
.
preparationQuestions
=
questions
;
}
public
int
getQuestions
()
{
return
getLectureQuestions
()
+
getPreparationQuestions
();
}
public
int
getOpenSessions
()
{
return
openSessions
;
}
public
void
setOpenSessions
(
final
int
openSessions
)
{
this
.
openSessions
=
openSessions
;
}
public
int
getClosedSessions
()
{
return
closedSessions
;
}
public
void
setClosedSessions
(
final
int
closedSessions
)
{
this
.
closedSessions
=
closedSessions
;
}
public
int
getSessions
()
{
return
getOpenSessions
()
+
getClosedSessions
();
}
public
int
getActiveUsers
()
{
return
activeUsers
;
}
public
void
setActiveUsers
(
final
int
activeUsers
)
{
this
.
activeUsers
=
activeUsers
;
}
public
int
getLoggedinUsers
()
{
return
loggedinUsers
;
}
public
void
setLoggedinUsers
(
final
int
loggedinUsers
)
{
this
.
loggedinUsers
=
loggedinUsers
;
}
public
int
getInterposedQuestions
()
{
return
interposedQuestions
;
}
public
void
setInterposedQuestions
(
int
interposedQuestions
)
{
this
.
interposedQuestions
=
interposedQuestions
;
}
@Override
public
int
hashCode
()
{
return
(
this
.
getClass
().
getName
()
+
activeUsers
+
answers
+
closedSessions
+
openSessions
+
lectureQuestions
+
preparationQuestions
+
interposedQuestions
+
loggedinUsers
).
hashCode
();
}
@Override
public
boolean
equals
(
final
Object
obj
)
{
if
(
obj
==
null
)
{
return
false
;
}
if
(
obj
==
this
)
{
return
true
;
}
if
(
obj
instanceof
Statistics
)
{
final
Statistics
other
=
(
Statistics
)
obj
;
return
hashCode
()
==
other
.
hashCode
();
}
return
false
;
}
}
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