public Protocols.ToolkitResultProtocol ChangeCaseContact(Protocols.Support.ChangeCaseContactSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); FChoice.Toolkits.Clarify.Support.ChangeCaseContactSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Support.ChangeCaseContactSetup(setupParam.CaseIDNum, setupParam.ContactFirstName, setupParam.ContactLastName, setupParam.ContactPhone); 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(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.ChangeCaseContact(setup) ); }
public Protocols.ToolkitResultProtocol ChangeCaseContact(System.String caseIDNum, System.String contactFirstName, System.String contactLastName, System.String contactPhone) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.ChangeCaseContact(caseIDNum, contactFirstName, contactLastName, contactPhone) ); }