Updating presenter status

This commit is contained in:
Pedro Beschorner Marin 2017-10-10 14:38:27 -03:00
parent 66f8be63d2
commit 5dfd772654
2 changed files with 14 additions and 0 deletions

View File

@ -67,6 +67,10 @@ class ReceivedJsonMsgHdlrActor(val msgFromAkkaAppsEventBus: MsgFromAkkaAppsEvent
route[CheckAlivePongSysMsg](envelope, jsonNode)
case UserEmojiChangedEvtMsg.NAME =>
route[UserEmojiChangedEvtMsg](envelope, jsonNode)
case PresenterUnassignedEvtMsg.NAME =>
route[PresenterUnassignedEvtMsg](envelope, jsonNode)
case PresenterAssignedEvtMsg.NAME =>
route[PresenterAssignedEvtMsg](envelope, jsonNode)
case UserJoinedMeetingEvtMsg.NAME =>
route[UserJoinedMeetingEvtMsg](envelope, jsonNode)
case UserLeftMeetingEvtMsg.NAME =>

View File

@ -26,6 +26,8 @@ class OldMeetingMsgHdlrActor(val olgMsgGW: OldMessageReceivedGW)
case m: MeetingDestroyedEvtMsg => handleMeetingDestroyedEvtMsg(m)
case m: CheckAlivePongSysMsg => handleCheckAlivePongSysMsg(m)
case m: UserEmojiChangedEvtMsg => handleUserEmojiChangedEvtMsg(m)
case m: PresenterUnassignedEvtMsg => handlePresenterUnassignedEvtMsg(m)
case m: PresenterAssignedEvtMsg => handlePresenterAssignedEvtMsg(m)
case m: UserJoinedMeetingEvtMsg => handleUserJoinedMeetingEvtMsg(m)
case m: UserLeftMeetingEvtMsg => handleUserLeftMeetingEvtMsg(m)
case m: UserJoinedVoiceConfToClientEvtMsg => handleUserJoinedVoiceConfToClientEvtMsg(m)
@ -76,6 +78,14 @@ class OldMeetingMsgHdlrActor(val olgMsgGW: OldMessageReceivedGW)
}
def handlePresenterUnassignedEvtMsg(msg: PresenterUnassignedEvtMsg): Unit = {
olgMsgGW.handle(new UserStatusChanged(msg.header.meetingId, msg.body.intId, "presenter", "false"))
}
def handlePresenterAssignedEvtMsg(msg: PresenterAssignedEvtMsg): Unit = {
olgMsgGW.handle(new UserStatusChanged(msg.header.meetingId, msg.body.presenterId, "presenter", "true"))
}
def handleUserEmojiChangedEvtMsg(msg: UserEmojiChangedEvtMsg): Unit = {
//listener.handle(new UserStatusChanged(meetingId, userid, status, value))
}