Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
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
Paul-Christian Volkmer
ARSnova Backend
Commits
6ed1d666
There was an error fetching the commit references. Please try again later.
Commit
6ed1d666
authored
10 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Removed keyword parameter for feedback in Socket.IO implementation
parent
240f562f
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/thm/arsnova/socket/ARSnovaSocketIOServer.java
+4
-7
4 additions, 7 deletions
...ain/java/de/thm/arsnova/socket/ARSnovaSocketIOServer.java
src/main/java/de/thm/arsnova/socket/message/Feedback.java
+1
-10
1 addition, 10 deletions
src/main/java/de/thm/arsnova/socket/message/Feedback.java
with
5 additions
and
17 deletions
src/main/java/de/thm/arsnova/socket/ARSnovaSocketIOServer.java
+
4
−
7
View file @
6ed1d666
...
...
@@ -100,15 +100,12 @@ public class ARSnovaSocketIOServer {
server
.
addEventListener
(
"setFeedback"
,
Feedback
.
class
,
new
DataListener
<
Feedback
>()
{
@Override
public
void
onData
(
SocketIOClient
client
,
Feedback
data
,
AckRequest
ackSender
)
{
/**
* do a check if user is in the session, for which he would give
* a feedback
*/
User
u
=
userService
.
getUser2SocketId
(
client
.
getSessionId
());
if
(
u
==
null
||
!
userService
.
isUserInSession
(
u
,
data
.
getSessionkey
()))
{
return
;
String
sessionKey
=
userService
.
getSessionForUser
(
u
.
getUsername
());
LOGGER
.
debug
(
"Feedback recieved: {}"
,
new
Object
[]
{
u
,
sessionKey
,
data
.
getValue
()});
if
(
null
!=
sessionKey
)
{
feedbackService
.
saveFeedback
(
sessionKey
,
data
.
getValue
(),
u
);
}
feedbackService
.
saveFeedback
(
data
.
getSessionkey
(),
data
.
getValue
(),
u
);
}
});
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/thm/arsnova/socket/message/Feedback.java
+
1
−
10
View file @
6ed1d666
...
...
@@ -3,15 +3,6 @@ package de.thm.arsnova.socket.message;
public
class
Feedback
{
private
int
value
;
private
String
sessionkey
;
public
String
getSessionkey
()
{
return
sessionkey
;
}
public
void
setSessionkey
(
String
keyword
)
{
this
.
sessionkey
=
keyword
;
}
public
int
getValue
()
{
return
value
;
...
...
@@ -23,6 +14,6 @@ public class Feedback {
@Override
public
String
toString
()
{
return
"Feedback,
sessionkey: "
+
sessionkey
+
",
value: "
+
value
;
return
"Feedback, value: "
+
value
;
}
}
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