Beispiel #1
0
 private static void BindNewInstance()
 {
     try
     {
         var client     = LyncClient.GetClient();
         var automation = LyncClient.GetAutomation();
         instance = new AppController(client, automation);
     }
     catch (ClientNotFoundException)
     {
         throw new InvalidStateException("No Skype / Lync app running");
     }
 }
Beispiel #2
0
 public async Task <object> OnClientStateChange(dynamic kwargs)
 {
     AppController.Instance(false).OnClientStateChange(kwargs.callback);
     return(null);
 }
Beispiel #3
0
 public async Task <object> OnDisconnect(dynamic kwargs)
 {
     AppController.Instance(false).OnDisconnect(kwargs.callback);
     return(null);
 }
Beispiel #4
0
 public async Task <object> Mute(dynamic kwargs)
 {
     AppController.Instance().MuteAll(kwargs.state);
     return(null);
 }
Beispiel #5
0
 public async Task <object> HangupAll(dynamic kwargs)
 {
     AppController.Instance().HangupAll();
     return(null);
 }
Beispiel #6
0
 public async Task <object> Join(dynamic kwargs)
 {
     AppController.Instance().JoinMeeting(kwargs.url, kwargs.fullscreen, kwargs.display);
     return(null);
 }
Beispiel #7
0
 public async Task <object> Call(dynamic kwargs)
 {
     AppController.Instance().Call(kwargs.uri, kwargs.fullscreen, kwargs.display);
     return(null);
 }
Beispiel #8
0
 public async Task <object> SignOut(dynamic kwargs)
 {
     AppController.Instance().SignOut();
     return(null);
 }
Beispiel #9
0
 public async Task <object> SignIn(dynamic kwargs)
 {
     AppController.Instance(false).SignIn(kwargs.user, kwargs.password);
     return(null);
 }
Beispiel #10
0
 public async Task <object> GetClientState(dynamic kwargs)
 {
     return(AppController.Instance(false).GetClientState());
 }
Beispiel #11
0
 public async Task <object> GetActiveUser(dynamic kwargs)
 {
     return(AppController.Instance().GetActiveUser());
 }