send events straight to meeting eventBus

This commit is contained in:
Anton Georgiev 2017-06-16 14:54:38 -04:00
parent 77b78a1ae7
commit b61fe6faaf
3 changed files with 15 additions and 9 deletions

View File

@ -72,43 +72,43 @@ class ReceivedJsonMsgHandlerActor(
for {
m <- deserialize[StartCustomPollReqMsg](jsonNode)
} yield {
send(meetingManagerChannel, envelope, m)
send(m.header.meetingId, envelope, m)
}
case StartPollReqMsg.NAME =>
for {
m <- deserialize[StartPollReqMsg](jsonNode)
} yield {
send(meetingManagerChannel, envelope, m)
send(m.header.meetingId, envelope, m)
}
case StopPollReqMsg.NAME =>
for {
m <- deserialize[StopPollReqMsg](jsonNode)
} yield {
send(meetingManagerChannel, envelope, m)
send(m.header.meetingId, envelope, m)
}
case ShowPollResultReqMsg.NAME =>
for {
m <- deserialize[ShowPollResultReqMsg](jsonNode)
} yield {
send(meetingManagerChannel, envelope, m)
send(m.header.meetingId, envelope, m)
}
case HidePollResultReqMsg.NAME =>
for {
m <- deserialize[HidePollResultReqMsg](jsonNode)
} yield {
send(meetingManagerChannel, envelope, m)
send(m.header.meetingId, envelope, m)
}
case GetCurrentPollReqMsg.NAME =>
for {
m <- deserialize[GetCurrentPollReqMsg](jsonNode)
} yield {
send(meetingManagerChannel, envelope, m)
send(m.header.meetingId, envelope, m)
}
case RespondToPollReqMsg.NAME =>
for {
m <- deserialize[RespondToPollReqMsg](jsonNode)
} yield {
send(meetingManagerChannel, envelope, m)
send(m.header.meetingId, envelope, m)
}
case UserBroadcastCamStartMsg.NAME =>
for {

View File

@ -74,7 +74,6 @@ class MeetingActor(val props: DefaultProps,
// 2x messages
case msg: BbbCommonEnvCoreMsg => handleBbbCommonEnvCoreMsg(msg)
case msg: RegisterUserReqMsg => handleRegisterUserReqMsg(msg)
case msg: StartPollReqMsg => handleStartPollReqMsg(msg)
//======================================
//=======================================
@ -200,6 +199,13 @@ class MeetingActor(val props: DefaultProps,
case m: UserBroadcastCamStopMsg => handleUserBroadcastCamStopMsg(m)
case m: UserJoinedVoiceConfEvtMsg => handle(m)
case m: StartPollReqMsg => handleStartPollReqMsg(m)
case m: StartCustomPollReqMsg => handleStartCustomPollReqMsg(m)
case m: StopPollReqMsg => handleStopPollReqMsg(m)
case m: ShowPollResultReqMsg => handleShowPollResultReqMsg(m)
case m: HidePollResultReqMsg => handleHidePollResultReqMsg(m)
case m: GetCurrentPollReqMsg => handleGetCurrentPollReqMsg(m)
case m: RespondToPollReqMsg => handleRespondToPollReqMsg(m)
case _ => println("***** Cannot handle " + msg.envelope.name)
}
}

View File

@ -12,7 +12,7 @@ trait GetCurrentPollReqMsgHdlr {
val outGW: OutMessageGateway
def handleGetCurrentPollRespMsg(msg: GetCurrentPollReqMsg): Unit = {
def handleGetCurrentPollReqMsg(msg: GetCurrentPollReqMsg): Unit = {
def broadcastEvent(msg: GetCurrentPollReqMsg, hasPoll: Boolean, pvo: PollVO): Unit = {
val routing = Routing.addMsgToClientRouting(MessageTypes.BROADCAST_TO_MEETING, props.meetingProp.intId, msg.header.userId)