- embed scala lib
This commit is contained in:
parent
aae0fa1d33
commit
e583c3d603
@ -1,3 +1,4 @@
|
|||||||
|
usePlugin 'scala'
|
||||||
usePlugin 'java'
|
usePlugin 'java'
|
||||||
usePlugin 'war'
|
usePlugin 'war'
|
||||||
usePlugin 'eclipse'
|
usePlugin 'eclipse'
|
||||||
@ -98,7 +99,13 @@ dependencies {
|
|||||||
//redis
|
//redis
|
||||||
compile 'redis.clients:jedis:2.0.0'
|
compile 'redis.clients:jedis:2.0.0'
|
||||||
providedCompile 'commons:commons-pool:1.5.6'
|
providedCompile 'commons:commons-pool:1.5.6'
|
||||||
|
|
||||||
|
// Libraries needed to run the scala tools
|
||||||
|
scalaTools 'org.scala-lang:scala-compiler:2.9.2'
|
||||||
|
scalaTools 'org.scala-lang:scala-library:2.9.2'
|
||||||
|
|
||||||
|
// Libraries needed for scala api
|
||||||
|
compile 'org.scala-lang:scala-library:2.9.2'
|
||||||
|
|
||||||
// Freeswitch ESL Client
|
// Freeswitch ESL Client
|
||||||
compile 'org/freeswitch:fs-esl-client:0.8.2@jar'
|
compile 'org/freeswitch:fs-esl-client:0.8.2@jar'
|
||||||
|
28
bigbluebutton-apps/src/main/scala/org/bigbluebutton/webconf/Meeting.scala
Executable file
28
bigbluebutton-apps/src/main/scala/org/bigbluebutton/webconf/Meeting.scala
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
package org.bigbluebutton.webconf
|
||||||
|
|
||||||
|
import scala.actors.Actor
|
||||||
|
import scala.actors.Actor._
|
||||||
|
import scala.collection.immutable.HashMap
|
||||||
|
|
||||||
|
case class UserJoin(id: String, name: String)
|
||||||
|
case class UserLeft(id: String)
|
||||||
|
|
||||||
|
|
||||||
|
class Meeting extends Actor {
|
||||||
|
|
||||||
|
private val users = new HashMap[String, User]
|
||||||
|
|
||||||
|
def act() = {
|
||||||
|
loop {
|
||||||
|
react {
|
||||||
|
case userJoin: UserJoin => {
|
||||||
|
handleUserJoin(userJoin)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private def handleUserJoin(user: UserJoin) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
5
bigbluebutton-apps/src/main/scala/org/bigbluebutton/webconf/User.scala
Executable file
5
bigbluebutton-apps/src/main/scala/org/bigbluebutton/webconf/User.scala
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
package org.bigbluebutton.webconf
|
||||||
|
|
||||||
|
class User {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user