record extra SharePresentationEvent when conversion complete and current

This commit is contained in:
Chad Pilkey 2017-08-02 17:26:02 -04:00
parent 43e6359029
commit 4d16c73bde

View File

@ -120,6 +120,10 @@ class RedisRecorderActor(val system: ActorSystem)
ev.setOriginalFilename(msg.body.presentation.name)
record(msg.header.meetingId, ev.toMap)
if (msg.body.presentation.current) {
recordSharePresentationEvent(msg.header.meetingId, msg.body.presentation.id)
}
}
private def handleSetCurrentPageEvtMsg(msg: SetCurrentPageEvtMsg) {
@ -152,12 +156,16 @@ class RedisRecorderActor(val system: ActorSystem)
}
private def handleSetCurrentPresentationEvtMsg(msg: SetCurrentPresentationEvtMsg) {
recordSharePresentationEvent(msg.header.meetingId, msg.body.presentationId)
}
private def recordSharePresentationEvent(meetingId: String, presentationId: String) {
val ev = new SharePresentationRecordEvent()
ev.setMeetingId(msg.header.meetingId)
ev.setPresentationName(msg.body.presentationId)
ev.setMeetingId(meetingId)
ev.setPresentationName(presentationId)
ev.setShare(true)
record(msg.header.meetingId, ev.toMap)
record(meetingId, ev.toMap)
}
private def getPageNum(id: String): Integer = {