public launchItem(IVMwareHorizonClientLaunchItemInfo item)
 {
     name = item.name;
     id   = item.id;
     type = (LaunchItemType)item.type;
     supportedProtocols = (SupportedProtocols)item.supportedProtocols;
     defaultProtocol    = item.defaultProtocol;
 }
            public void OnReceivedLaunchItems(uint serverId, Array launchItems)
            {
                List <Helpers.launchItem> items = new List <Helpers.launchItem>();

                foreach (object item in launchItems)
                {
                    IVMwareHorizonClientLaunchItemInfo i = (IVMwareHorizonClientLaunchItemInfo)item;
                    items.Add(new launchItem(i));
                }
                //hasLaunchItems = true;
                Debug.WriteLine("OnReceivedLaunchItems(): {0} - {1}", serverId, Serialise(items));
            }