public void EditSpeedDial(string extension, SpeedDial newspeeddial, SpeedDial exspeeddial, string token)
 {
     log.Debug("Edit speeddial: " + exspeeddial.displayName + " from " + extension);
     if (ValidateToken(token, extension))
     {
         SpeedDialService.EditSpeedDial(extension, newspeeddial, exspeeddial);
     }
 }
 public void RemoveSpeedDial(string extension, SpeedDial speeddial, string token)
 {
     log.Debug("Removing speeddial: " + speeddial.displayName + " from " + extension);
     if (ValidateToken(token, extension))
     {
         SpeedDialService.RemoveSpeedDial(extension, speeddial);
     }
 }
Exemple #3
0
        public async Task GetSpeedDialList_ReturnsExactRecords_Test()
        {
            var speedDialService = new SpeedDialService(new FakeOdorikCredentials());

            var result = await speedDialService.GetSpeedDialsAsync();

            Assert.IsTrue(result.Any());
        }
 public SpeedDial[] GetSpeedDials(string extension, string token)
 {
     log.Debug("Get SpeedDials from " + extension);
     SpeedDial[] sds = null;
     if (ValidateToken(token, extension))
     {
         sds = SpeedDialService.GetSpeedDials(extension);
     }
     return(sds);
 }