public Protocols.ToolkitResultProtocol CreateTimeZone(Protocols.Interfaces.CreateTimeZoneSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session ); FChoice.Toolkits.Clarify.Interfaces.CreateTimeZoneSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Interfaces.CreateTimeZoneSetup(setupParam.TimeZone, setupParam.FullName, setupParam.Country); break; default: throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue)); } if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) ) { setup.TimeZone = setupParam.TimeZone; } if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) ) { setup.FullName = setupParam.FullName; } if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) ) { setup.Country = setupParam.Country; } if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) ) { setup.GMTDifference = setupParam.GMTDifference; } return new Protocols.ToolkitResultProtocol( toolkit.CreateTimeZone(setup) ); }
public Protocols.ToolkitResultProtocol CreateTimeZone(System.String timeZone, System.String fullName, System.String country) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.CreateTimeZone(timeZone, fullName, country) ); }