public Protocols.ToolkitResultProtocol ChangeCaseSite(Protocols.Support.ChangeCaseSiteSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); FChoice.Toolkits.Clarify.Support.ChangeCaseSiteSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Support.ChangeCaseSiteSetup(setupParam.CaseIDNum, setupParam.SiteIDNum); break; default: throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue)); } if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) ) { setup.CaseIDNum = setupParam.CaseIDNum; } if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) ) { setup.ContactFirstName = setupParam.ContactFirstName; } if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) ) { setup.ContactLastName = setupParam.ContactLastName; } if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) ) { setup.ContactPhone = setupParam.ContactPhone; } if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) ) { setup.SiteIDNum = setupParam.SiteIDNum; } if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) ) { setup.ChangeDate = setupParam.ChangeDate; } if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) ) { setup.UserName = setupParam.UserName; } if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) ) { setup.GenerateTimeBombs = setupParam.GenerateTimeBombs; } return new Protocols.ToolkitResultProtocol( toolkit.ChangeCaseSite(setup) ); }
public Protocols.ToolkitResultProtocol ChangeCaseSite(System.String caseIDNum, System.String siteIDNum) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.ChangeCaseSite(caseIDNum, siteIDNum) ); }