public Protocols.ToolkitResultProtocol LogLeadPhone(Protocols.Sales.LogLeadPhoneSetupProtocol setupParam)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.Sales.SalesToolkit toolkit = new FChoice.Toolkits.Clarify.Sales.SalesToolkit( session );
            FChoice.Toolkits.Clarify.Sales.LogLeadPhoneSetup setup;

            switch( setupParam.ConstructorCue )
            {
                case 0:
                    setup = new FChoice.Toolkits.Clarify.Sales.LogLeadPhoneSetup(setupParam.LeadObjid, setupParam.ContactFirstName, setupParam.ContactLastName, setupParam.ContactPhone, TimeSpan.FromSeconds(setupParam.Duration));
                    break;
                default:
                    throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
            }

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

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

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

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

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

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

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

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

            if( Global.IsPropertyDirty(256, setupParam.DirtyFieldFlags) )
            {
                setup.Duration = TimeSpan.FromSeconds(setupParam.Duration);
            }

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

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

            return new Protocols.ToolkitResultProtocol( toolkit.LogLeadPhone(setup) );
        }
        public Protocols.ToolkitResultProtocol LogLeadPhone(System.Int32 leadObjid, System.String contactFirstName, System.String contactLastName, System.String contactPhone, System.Int32 duration)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.Sales.SalesToolkit toolkit = new FChoice.Toolkits.Clarify.Sales.SalesToolkit( session );

            return new Protocols.ToolkitResultProtocol( toolkit.LogLeadPhone(leadObjid, contactFirstName, contactLastName, contactPhone, TimeSpan.FromSeconds(duration)) );
        }