C# and AXL 8.0

Version 1
    This document was generated from CDN thread

    Created by: Erick Wellnitz on 08-04-2011 02:46:52 PM
    Could someone please explain or show an exampleof how to use the XfkType class?  I have a good handle on everything except how to use and implement this.  Many 'elements', such as DevicePoolName, in adding a new phone are of this type and I can't quite get how to use this class in this manner.
     
    Any help is greatly appreciated.

    Subject: RE: C# and AXL 8.0
    Replied by: Erick Wellnitz on 08-04-2011 04:23:06 PM
    Okay.  I figured it out.  Not quite as hard as I was making it out to be.

    Here's my code for anyone else with questions.

    ////ADD PHONE
                //////Name, Product, Class, Protocol, Device Pool ARE REQUIRED
                Console.WriteLine("Starting Phone Process /n");
                AddPhoneReq newPhone = new AddPhoneReq();
                XPhone phone = new XPhone();
                ////Assign device pool name to XFkType class
                XFkType devPool = new XFkType();
                devPool.Value = "XXX_DP_Dev";
                ////Begin assigning values to phone fields
                phone.name = "SEP000000142243";
                phone.description = "test";
                phone.product = "Cisco 7975";
                phone.@class = "Phone";
                phone.protocol = "SCCP";
                phone.devicePoolName = devPool;
                Console.WriteLine("Ending Phone Process /n");
                newPhone.phone = phone;
                axl.addPhone(newPhone);
                Console.WriteLine("Phone Added /n");