- create classes for models in client
This commit is contained in:
parent
2c4fe3f3b8
commit
23cf2266e4
12
bigbluebutton-client/src/org/bigbluebutton/core/model/MediaAttribute.as
Executable file
12
bigbluebutton-client/src/org/bigbluebutton/core/model/MediaAttribute.as
Executable file
@ -0,0 +1,12 @@
|
||||
package org.bigbluebutton.core.model
|
||||
{
|
||||
public class MediaAttribute
|
||||
{
|
||||
var key: String;
|
||||
var value: String;
|
||||
|
||||
public function MediaAttribute()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
14
bigbluebutton-client/src/org/bigbluebutton/core/model/MediaStream.as
Executable file
14
bigbluebutton-client/src/org/bigbluebutton/core/model/MediaStream.as
Executable file
@ -0,0 +1,14 @@
|
||||
package org.bigbluebutton.core.model
|
||||
{
|
||||
public class MediaStream
|
||||
{
|
||||
var streamId: String;
|
||||
var intId: String;
|
||||
var attributes: ArrayCollection = new ArrayCollection();
|
||||
var viewers:ArrayCollection = new ArrayCollection();
|
||||
|
||||
public function MediaStream()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
23
bigbluebutton-client/src/org/bigbluebutton/core/model/MeetingStatus.as
Executable file
23
bigbluebutton-client/src/org/bigbluebutton/core/model/MeetingStatus.as
Executable file
@ -0,0 +1,23 @@
|
||||
package org.bigbluebutton.core.model
|
||||
{
|
||||
public class MeetingStatus
|
||||
{
|
||||
var recordingVoice: Boolean = false;
|
||||
|
||||
var audioSettingsInited: Boolean = false;
|
||||
var permissionsInited: Boolean = false;
|
||||
var permissions = new Permissions();
|
||||
var recording: Boolean = false;
|
||||
var broadcastingRTMP: Boolean = false;
|
||||
var muted: Boolean = false;
|
||||
var meetingEnded: Boolean = false;
|
||||
var meetingMuted: Boolean = false;
|
||||
var guestPolicy: String = "ASK_MODERATOR";
|
||||
var guestPolicySetBy: String = null;
|
||||
|
||||
|
||||
public function MeetingStatus()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
17
bigbluebutton-client/src/org/bigbluebutton/core/model/Permission.as
Executable file
17
bigbluebutton-client/src/org/bigbluebutton/core/model/Permission.as
Executable file
@ -0,0 +1,17 @@
|
||||
package org.bigbluebutton.core.model
|
||||
{
|
||||
public class Permission
|
||||
{
|
||||
var disableCam: Boolean = false;
|
||||
var disableMic: Boolean = false;
|
||||
var disablePrivChat: Boolean = false;
|
||||
var disablePubChat: Boolean = false;
|
||||
var lockedLayout: Boolean = false;
|
||||
var lockOnJoin: Boolean = false;
|
||||
var lockOnJoinConfigurable: Boolean = false;
|
||||
|
||||
public function Permission()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
60
bigbluebutton-client/src/org/bigbluebutton/core/model/Webcams.as
Executable file
60
bigbluebutton-client/src/org/bigbluebutton/core/model/Webcams.as
Executable file
@ -0,0 +1,60 @@
|
||||
package org.bigbluebutton.core.model
|
||||
{
|
||||
public class Webcams
|
||||
{
|
||||
private var _webcams:ArrayCollection = new ArrayCollection();
|
||||
|
||||
public function add(stream: MediaStream):void {
|
||||
_webcams.addItem(stream);
|
||||
}
|
||||
|
||||
public function remove(streamId: String):MediaStream {
|
||||
var index:int = getIndex(streamId);
|
||||
if (index >= 0) {
|
||||
return _webcams.removeItemAt(index) as MediaStream;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getStreamAndIndex(streamId: String):Object {
|
||||
var stream:MediaStream;
|
||||
for (var i:int = 0; i < _webcams.length; i++) {
|
||||
stream = _webcams.getItemAt(i) as MediaStream;
|
||||
|
||||
if (stream.id == userId) {
|
||||
return {index:i, stream:stream};;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getStream(streamId:String):MediaStream {
|
||||
var stream:MediaStream;
|
||||
|
||||
for (var i:int = 0; i < _webcams.length; i++) {
|
||||
stream = _webcams.getItemAt(i) as MediaStream;
|
||||
|
||||
if (stream.streamId == streamId) {
|
||||
return stream;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getIndex(streamId: String):int {
|
||||
var stream:MediaStream;
|
||||
for (var i:int = 0; i < _webcams.length; i++) {
|
||||
stream = _webcams.getItemAt(i) as MediaStream;
|
||||
|
||||
if (stream.streamId == streamId) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,19 +1,16 @@
|
||||
package org.bigbluebutton.core.model.users
|
||||
{
|
||||
import mx.collections.ArrayCollection;
|
||||
|
||||
import org.bigbluebutton.core.model.Me;
|
||||
|
||||
|
||||
public class Users2x
|
||||
{
|
||||
|
||||
private var _users:ArrayCollection = new ArrayCollection();
|
||||
|
||||
private function add(user: User2x):void {
|
||||
public function add(user: User2x):void {
|
||||
_users.addItem(user);
|
||||
}
|
||||
|
||||
private function remove(userId: String):User2x {
|
||||
public function remove(userId: String):User2x {
|
||||
var index:int = getIndex(userId);
|
||||
if (index >= 0) {
|
||||
return _users.removeItemAt(index) as User2x;
|
||||
@ -22,7 +19,7 @@ package org.bigbluebutton.core.model.users
|
||||
return null;
|
||||
}
|
||||
|
||||
private function getUserAndIndex(userId: String):Object {
|
||||
public function getUserAndIndex(userId: String):Object {
|
||||
var user:User2x;
|
||||
for (var i:int = 0; i < _users.length; i++) {
|
||||
user = _users.getItemAt(i) as User2x;
|
||||
@ -35,7 +32,7 @@ package org.bigbluebutton.core.model.users
|
||||
return null;
|
||||
}
|
||||
|
||||
private function getUser(userId:String):User2x {
|
||||
public function getUser(userId:String):User2x {
|
||||
var user:User2x;
|
||||
|
||||
for (var i:int = 0; i < _users.length; i++) {
|
||||
@ -49,7 +46,7 @@ package org.bigbluebutton.core.model.users
|
||||
return null;
|
||||
}
|
||||
|
||||
private function getIndex(userId: String):int {
|
||||
public function getIndex(userId: String):int {
|
||||
var user:User2x;
|
||||
for (var i:int = 0; i < _users.length; i++) {
|
||||
user = _users.getItemAt(i) as User2x;
|
||||
|
Loading…
Reference in New Issue
Block a user