public Protocols.ToolkitResultProtocol UpdateProductBin(Protocols.Interfaces.UpdateProductBinSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session ); FChoice.Toolkits.Clarify.Interfaces.UpdateProductBinSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Interfaces.UpdateProductBinSetup(setupParam.BinObjid); break; default: throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue)); } if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) ) { setup.BinObjid = setupParam.BinObjid; } if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) ) { setup.BinName = setupParam.BinName; } if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) ) { setup.Description = setupParam.Description; } if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) ) { setup.PrimarySupportEmployeeObjid = setupParam.PrimarySupportEmployeeObjid; } if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) ) { setup.SecondarySupportEmployeeObjid = setupParam.SecondarySupportEmployeeObjid; } if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) ) { setup.UserName = setupParam.UserName; } if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) ) { setup.UpdateDate = setupParam.UpdateDate; } return new Protocols.ToolkitResultProtocol( toolkit.UpdateProductBin(setup) ); }