Added Polling related functions to the bbb_api_brigde

This commit is contained in:
Oleksandr Zhurbenko 2015-07-28 13:14:03 -07:00
parent a813298e56
commit 83ec5b8892

View File

@ -23,6 +23,16 @@ https://github.com/bigbluebutton/bigbluebutton/blob/master/bigbluebutton-client/
else
res
BBB.isPollGoing = (userId) ->
if userId isnt undefined and Meteor.Polls.findOne({"poll_info.users": userId})
return true
else
return false
BBB.getCurrentPoll = (userId) ->
if userId isnt undefined and Meteor.Polls.findOne({"poll_info.users": userId})
return Meteor.Polls.findOne({"poll_info.users": userId})
BBB.getMeetingId = ->
Meteor.Meetings.findOne()?.meetingId