public AppModel() { AccountVisible = Visibility.Collapsed; SessionVisible = Visibility.Visible; CallVisible = Visibility.Collapsed; Account = new AccountModel(); Session = new SessionModel(); }
public void Connect(AccountModel account) { _session = String.IsNullOrEmpty(ID) ? TywiSession.Create(account.GetTywiAccount()) : TywiSession.ConnectTo(ID, account.GetTywiAccount()); _session.SessionConnected += OnSessionConnect; InitialiseText(); InitialiseMicrophone(); InitialiseAudio(); _session.Connect(); }
public void Disconnect(AccountModel account) { _session.Disconnect(); }