예제 #1
0
 public void Refresh(CredentialManager cm, EventLog eventLog, ref int eventId)
 {
     eventLog.WriteEntry("Requesting Agent Data via UCCX API.", EventLogEntryType.Information, ++eventId);
     ResourcesData = ApiWebRequestHelper.GetXmlRequest <Resources>("/resource", cm);
     eventLog.WriteEntry("Requesting Skill Data via UCCX API.", EventLogEntryType.Information, ++eventId);
     SkillsData = ApiWebRequestHelper.GetXmlRequest <Skills>("/skill", cm);
 }
예제 #2
0
 public APIData(CredentialManager cm)
 {
     // Deserialize Agent Data from API
     //UpdateConsoleStep("Fetching Resource Data from UCCX API...");
     ResourcesData = ApiWebRequestHelper.GetXmlRequest <Resources>("/resource", cm);
     // Deserialize Skills Data from API
     //UpdateConsoleStep("Fetching Skill Data from UCCX API...");
     SkillsData = ApiWebRequestHelper.GetXmlRequest <Skills>("/skill", cm);
 }