public Protocols.ToolkitResultProtocol MoveSitePartToSite(Protocols.Interfaces.MoveSitePartToSiteSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session ); FChoice.Toolkits.Clarify.Interfaces.MoveSitePartToSiteSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Interfaces.MoveSitePartToSiteSetup(setupParam.SitePartObjid, setupParam.ParentSiteIDNum); break; default: throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue)); } if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) ) { setup.SitePartObjid = setupParam.SitePartObjid; } if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) ) { setup.MoveDate = setupParam.MoveDate; } if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) ) { setup.ParentSiteIDNum = setupParam.ParentSiteIDNum; } if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) ) { setup.AddActivityLog = setupParam.AddActivityLog; } if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) ) { setup.UserName = setupParam.UserName; } if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) ) { setup.InstallAndMove = setupParam.InstallAndMove; } return new Protocols.ToolkitResultProtocol( toolkit.MoveSitePartToSite(setup) ); }
public Protocols.ToolkitResultProtocol MoveSitePartToSite(System.Int32 sitePartObjid, System.String parentSiteIDNum) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.MoveSitePartToSite(sitePartObjid, parentSiteIDNum) ); }