public ContactList(ININ.IceLib.Configuration.Dialer.ContactListConfiguration ic_contactlist) { id = ic_contactlist.ConfigurationId.Id; DisplayName = ic_contactlist.ConfigurationId.DisplayName; configuration = ic_contactlist; AffectedRecords = -1; }
private void OnConnectionStateChanged(object sender, ININ.IceLib.Connection.ConnectionStateChangedEventArgs e) { if (e.State == ININ.IceLib.Connection.ConnectionState.Up || e.State == ININ.IceLib.Connection.ConnectionState.Down) { if (UpChanged != null) { UpChanged(this, EventArgs.Empty); } } }
public PolicySet(ININ.IceLib.Configuration.Dialer.PolicySetConfiguration ic_policyset) { id = ic_policyset.ConfigurationId.Id; DisplayName = ic_policyset.ConfigurationId.DisplayName; configuration = ic_policyset; }
public Connection(ININ.IceLib.Connection.Session icelibSession) { _icelibSession = icelibSession; _icelibSession.ConnectionStateChanged += OnConnectionStateChanged; }
/// <summary> /// When a call is added to the user's queue, add it to the drop down. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnInteractionAdded(object sender, ININ.InteractionClient.AddIn.InteractionEventArgs e) { SyncContext.Post((o) => { CallIds.Add(e.Interaction.InteractionId); }, null); }
private void InitializeWorkgroups(ININ.IceLib.Connection.Session session) { try { var configurations = new WorkgroupConfigurationList(new DialerConfigurationManager(session).ConfigurationManager); var query_settings = configurations.CreateQuerySettings(); query_settings.SetPropertiesToRetrieve(new[] { WorkgroupConfiguration.Property.Id, WorkgroupConfiguration.Property.DisplayName, WorkgroupConfiguration.Property.Members }); configurations.StartCaching(query_settings); WorkgroupConfigurations = configurations.GetConfigurationList(); } catch(Exception e) { HttpContext.Current.Trace.Warn("Dialer", "Unable to retrieve campaigns", e); } }
private void InitializePolicySets(ININ.IceLib.Connection.Session session) { try { var configurations = new PolicySetConfigurationList(new DialerConfigurationManager(session).ConfigurationManager); var query_settings = configurations.CreateQuerySettings(); query_settings.SetPropertiesToRetrieve(new[] { PolicySetConfiguration.Property.Id, PolicySetConfiguration.Property.DisplayName, PolicySetConfiguration.Property.RevisionLevel }); configurations.StartCaching(query_settings); //configurations.StartCachingAsync(query_settings, OnCampaignCached, this); PolicySetConfigurations = configurations.GetConfigurationList(); } catch(Exception e) { HttpContext.Current.Trace.Warn("Dialer", "Unable to retrieve campaigns", e); } }
private void InitializeCampaigns(ININ.IceLib.Connection.Session session) { try { var configurations = new CampaignConfigurationList(new DialerConfigurationManager(session).ConfigurationManager); var query_settings = configurations.CreateQuerySettings(); query_settings.SetPropertiesToRetrieve(new[] { CampaignConfiguration.Property.Id, CampaignConfiguration.Property.DisplayName, CampaignConfiguration.Property.RevisionLevel, CampaignConfiguration.Property.AcdWorkgroup, CampaignConfiguration.Property.ContactList, CampaignConfiguration.Property.PolicySets, CampaignConfiguration.Property.SkillSets }); configurations.ConfigurationObjectsAdded += configurations_ConfigurationObjectsAdded; configurations.ConfigurationObjectsRemoved += configurations_ConfigurationObjectsRemoved; configurations.StartCaching(query_settings); lock (updating) { CampaignConfigurations = configurations.GetConfigurationList(); } } catch(Exception e) { HttpContext.Current.Trace.Warn("Dialer", "Unable to retrieve campaigns", e); } }
public void ShutDown(ININ.Interop.IDTypeLib.II3ID Designer) { //throw new NotImplementedException(); }
public void InitializeTypes(ININ.Interop.IDTypeLib.II3ID Designer) { //throw new NotImplementedException(); }
public void InitializeTools(ININ.Interop.IDTypeLib.II3ID Designer) { var IntegerTypeSpecifier = "::" + Designer.QueryNativeTypeName(ININ.Interop.IDTypeLib.I3IDNativeDataType.ID_INTEGER); var StringTypeSpecifier = "::" + Designer.QueryNativeTypeName(ININ.Interop.IDTypeLib.I3IDNativeDataType.ID_STRING); ININ.Interop.IDTypeLib.II3IDTool AddValues; AddValues = Designer.Tools.RegisterTool( null, //event sink - it gets called when it is created? see API guide "TSD - Add Values", //Label "ToolStepDemo", //ToolModuleName "TSD_Add", //Toolname - this should probably be unique "Implements adding a string to an integer", //Description "Tool Step Demo", //Tool Category "ToolStepDemo", //DLL Name "AddValues", //Function name (in above DLL) 3 //number of parameters ); AddValues.ParameterDefinitions.Item(0).SetAsInputComboBox(IntegerTypeSpecifier, "Operand 1", true); AddValues.ParameterDefinitions.Item(1).SetAsInputComboBox(StringTypeSpecifier, "Operand 2", true); AddValues.ParameterDefinitions.Item(2).SetAsOutput(IntegerTypeSpecifier, "Result", true); AddValues.ExitPaths.Add("Success", 3, false); AddValues.ExitPaths.Add("Convert Error", 1, true); AddValues.ExitPaths.Add("Failure", 2, true); AddValues.Commit(); ININ.Interop.IDTypeLib.II3IDTool UpdateLog; UpdateLog = Designer.Tools.RegisterTool( null, //event sink - it gets called when it is created? see API guide "TSD - Update Log", //Label "ToolStepDemo", //ToolModuleName "TSD_UpdateLog", //Toolname - this should probably be unique "Implements adding a log message with date/timestamp", //Description "Tool Step Demo", //Tool Category "ToolStepDemo", //DLL Name "updateLog", //Function name (in above DLL) 2 //number of parameters ); UpdateLog.ParameterDefinitions.Item(0).SetAsOutput(StringTypeSpecifier, "Log", true); UpdateLog.ParameterDefinitions.Item(1).SetAsInputComboBox(StringTypeSpecifier, "Message", true); UpdateLog.ExitPaths.Add("Next", 1, false); UpdateLog.Commit(); ININ.Interop.IDTypeLib.II3IDTool StockQuote; StockQuote = Designer.Tools.RegisterTool( null, //event sink - it gets called when it is created? see API guide "TSD - Stock Quote", //Label "ToolStepDemo", //ToolModuleName "TSD_StockQuote", //Toolname - this should probably be unique "Implements getting a stock quote via a web service", //Description "Tool Step Demo", //Tool Category "ToolStepDemo", //DLL Name "getStockQuote", //Function name (in above DLL) 2 //number of parameters ); StockQuote.ParameterDefinitions.Item(0).SetAsInputComboBox(StringTypeSpecifier, "Stock Symbol", true); StockQuote.ParameterDefinitions.Item(1).SetAsOutput(StringTypeSpecifier, "Stock Quote", true); StockQuote.ExitPaths.Add("Next", 1, false); StockQuote.Commit(); }