public Protocols.ToolkitResultProtocol CreateQueue(Protocols.Interfaces.CreateQueueSetupProtocol setupParam)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session );
            FChoice.Toolkits.Clarify.Interfaces.CreateQueueSetup setup;

            switch( setupParam.ConstructorCue )
            {
                case 0:
                    setup = new FChoice.Toolkits.Clarify.Interfaces.CreateQueueSetup(setupParam.Title, setupParam.AllowCR, setupParam.AllowCase, setupParam.AllowContract, setupParam.AllowDialogue, setupParam.AllowDemandDetail, setupParam.AllowJob, setupParam.AllowOpportunity, setupParam.AllowSolution, setupParam.AllowSubcase, setupParam.AllowActionItem);
                    break;
                default:
                    throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
            }

            if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) )
            {
                setup.Title = setupParam.Title;
            }

            if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) )
            {
                setup.IsPersonal = setupParam.IsPersonal;
            }

            if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) )
            {
                setup.Description = setupParam.Description;
            }

            if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) )
            {
                setup.AllowCR = setupParam.AllowCR;
            }

            if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) )
            {
                setup.AllowCase = setupParam.AllowCase;
            }

            if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) )
            {
                setup.AllowContract = setupParam.AllowContract;
            }

            if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) )
            {
                setup.AllowDialogue = setupParam.AllowDialogue;
            }

            if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) )
            {
                setup.AllowDemandDetail = setupParam.AllowDemandDetail;
            }

            if( Global.IsPropertyDirty(256, setupParam.DirtyFieldFlags) )
            {
                setup.AllowJob = setupParam.AllowJob;
            }

            if( Global.IsPropertyDirty(512, setupParam.DirtyFieldFlags) )
            {
                setup.AllowOpportunity = setupParam.AllowOpportunity;
            }

            if( Global.IsPropertyDirty(1024, setupParam.DirtyFieldFlags) )
            {
                setup.AllowSolution = setupParam.AllowSolution;
            }

            if( Global.IsPropertyDirty(2048, setupParam.DirtyFieldFlags) )
            {
                setup.AllowSubcase = setupParam.AllowSubcase;
            }

            if( Global.IsPropertyDirty(4096, setupParam.DirtyFieldFlags) )
            {
                setup.AllowActionItem = setupParam.AllowActionItem;
            }

            if( Global.IsPropertyDirty(8192, setupParam.DirtyFieldFlags) )
            {
                setup.Supervisor = setupParam.Supervisor;
            }

            return new Protocols.ToolkitResultProtocol( toolkit.CreateQueue(setup) );
        }
        public Protocols.ToolkitResultProtocol CreateQueue(System.String title, System.Boolean allowCR, System.Boolean allowCase, System.Boolean allowContract, System.Boolean allowDialogue, System.Boolean allowDemandDetail, System.Boolean allowJob, System.Boolean allowOpportunity, System.Boolean allowSolution, System.Boolean allowSubcase, System.Boolean allowActionItem)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session );

            return new Protocols.ToolkitResultProtocol( toolkit.CreateQueue(title, allowCR, allowCase, allowContract, allowDialogue, allowDemandDetail, allowJob, allowOpportunity, allowSolution, allowSubcase, allowActionItem) );
        }