Genesys CTI User Forum > Genesys-related Development

How to get the number of the caller in IW(C#)

<< < (2/3) > >>

Kubig:
Direction -> dev guide, SDK help and at least you can check requested library like a Genesys.Desktop.Modules.Voice. etc.

GnomE:
The fact that possible get the phone from the interface IInteractionVoice I understood from the API. Inherit my class from the interface
[code]class CallerInfoModel : ICallerInfoModel, INotifyPropertyChanged, IInteractionVoice[/code]
I receive an error
[code]The type or namespace name 'IChainRecord' does not exist in the namespace 'Genesyslab.Enterprise.Model.Interaction'[/code]
I can not understand where to find IChainRecord
How to get a phone, I can not understand. Please prompt I'm at an impasse....  :'(
[code]public string PhoneNumber
        {
            get { throw new System.NotImplementedException(); }
        }[/code]
here we need to write the logic to get the caller's number, right? write and what I do not understand
Read about the technologies that you wrote, looked manual .... I can not find an example of receipt.

[i]Read all manual was hard for me, it is in English. some fragments of the examples easier  :-\[/i]

Kubig:
You do not understand DI/IoC principle, which are used within IWS. I really suggest to read dev guide carefully - there you can find description of processes and mechanism using in IWS (page nr.5 for example).

GnomE:
Thanks for another hint!
Tell me please, I can not understand where I need to initialize the variable IInteractionVoice that it was not empty? Or do I need still some event to intercept?
I tried two ways:
[code]        public void Create()
        {
            Model.Case = (Context as IDictionary<string, object>).TryGetValue("Case") as ICase;
            //Model.InteractionVoice = (Context as IDictionary<string, object>).TryGetValue("InteractionVoice") as IInteractionVoice;
            Model.InteractionVoice = container.Resolve<IInteractionVoice>();

            viewEventManager.Subscribe(ActionEventHandler);
        }[/code]
this event IView button to display my module. And tried to model constructor:
[code]        readonly IObjectContainer container;

        public CallerInfoModel(IObjectContainer container)
        {
            this.container = container;
            IInteractionVoice interactionVoice = container.Resolve<IInteractionVoice>();
        }[/code]

Kubig:
I am using the second way - through the constructor.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version