예제 #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");
     }
 }
예제 #2
0
 public async Task <object> OnClientStateChange(dynamic kwargs)
 {
     AppController.Instance(false).OnClientStateChange(kwargs.callback);
     return(null);
 }
예제 #3
0
 public async Task <object> OnDisconnect(dynamic kwargs)
 {
     AppController.Instance(false).OnDisconnect(kwargs.callback);
     return(null);
 }
예제 #4
0
 public async Task <object> Mute(dynamic kwargs)
 {
     AppController.Instance().MuteAll(kwargs.state);
     return(null);
 }
예제 #5
0
 public async Task <object> HangupAll(dynamic kwargs)
 {
     AppController.Instance().HangupAll();
     return(null);
 }
예제 #6
0
 public async Task <object> Join(dynamic kwargs)
 {
     AppController.Instance().JoinMeeting(kwargs.url, kwargs.fullscreen, kwargs.display);
     return(null);
 }
예제 #7
0
 public async Task <object> Call(dynamic kwargs)
 {
     AppController.Instance().Call(kwargs.uri, kwargs.fullscreen, kwargs.display);
     return(null);
 }
예제 #8
0
 public async Task <object> SignOut(dynamic kwargs)
 {
     AppController.Instance().SignOut();
     return(null);
 }
예제 #9
0
 public async Task <object> SignIn(dynamic kwargs)
 {
     AppController.Instance(false).SignIn(kwargs.user, kwargs.password);
     return(null);
 }
예제 #10
0
 public async Task <object> GetClientState(dynamic kwargs)
 {
     return(AppController.Instance(false).GetClientState());
 }
예제 #11
0
 public async Task <object> GetActiveUser(dynamic kwargs)
 {
     return(AppController.Instance().GetActiveUser());
 }