Last active
August 7, 2017 05:25
-
-
Save jumbo-in-Jap/29abf2cefcf0848700915f7b6ace37f8 to your computer and use it in GitHub Desktop.
RxLessonViewModel.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LessonViewModel { | |
// MARK: SkyWay Connection Property | |
fileprivate var _peer:SKWPeer? | |
fileprivate var _mediaConnection:SKWMediaConnection? | |
fileprivate var _dataConnection:SKWDataConnection? | |
var remoteStream = Variable<SKWMediaStream?>(nil) | |
var localStream = Variable<SKWMediaStream?>(nil) | |
var chatMessages = Variable<[JSQMessage]>([]) | |
let disposeBag = DisposeBag() | |
// controls | |
var controlMuteON = Variable<Bool>(false) | |
var controlVideoMuteOn = Variable<Bool>(false) | |
// authorized Property | |
var audioAuthorized = Variable<Bool>(false) | |
var videoAuthorized = Variable<Bool>(false) | |
// status | |
var connectionStatus = Variable<ConnectionStatus>(.none) | |
enum ConnectionStatus:String{ | |
case none | |
case loading | |
case connectedWithTutor | |
case disConnectedWithTutor | |
case leaveTutor | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment