public void Name_defaultValue_and_description() { var param = new StringParameter("name") .With(with => with.DefaultValue("default-value") .Description("The description")); Assert.AreEqual("name", param.Name); Assert.AreEqual("default-value", param.Extra.DefaultValue); Assert.AreEqual("The description", param.Description); }
public void ChangeValues() { IConfigParameter<int> param1 = new Int32Parameter("int32"); Assert.AreEqual(0, param1.Value); param1.SetValue(2); Assert.AreEqual(2, param1.Value); IConfigParameter<string> param2 = new StringParameter("string"); Assert.AreEqual(null, param2.Value); param2.SetValue("yyy"); Assert.AreEqual("yyy", param2.Value); IConfigParameter<TimeSpan> param3 = new TimeSpanParameter("timespan"); Assert.AreEqual(TimeSpan.Zero, param3.Value); param3.SetValue(TimeSpan.FromDays(1.5)); Assert.AreEqual(TimeSpan.FromDays(1.5), param3.Value); }
public override void LogosSplusInitialize() { _SplusNVRAM = new SplusNVRAM(this); GSNC = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this); INITIALIZE = new Crestron.Logos.SplusObjects.DigitalInput(INITIALIZE__DigitalInput__, this); m_DigitalInputList.Add(INITIALIZE__DigitalInput__, INITIALIZE); POLL_ENABLE = new Crestron.Logos.SplusObjects.DigitalInput(POLL_ENABLE__DigitalInput__, this); m_DigitalInputList.Add(POLL_ENABLE__DigitalInput__, POLL_ENABLE); TRIGGER = new Crestron.Logos.SplusObjects.DigitalInput(TRIGGER__DigitalInput__, this); m_DigitalInputList.Add(TRIGGER__DigitalInput__, TRIGGER); VALUE_IN = new Crestron.Logos.SplusObjects.AnalogInput(VALUE_IN__AnalogSerialInput__, this); m_AnalogInputList.Add(VALUE_IN__AnalogSerialInput__, VALUE_IN); VALUE_IN_RAMPED = new Crestron.Logos.SplusObjects.AnalogInput(VALUE_IN_RAMPED__AnalogSerialInput__, this); m_AnalogInputList.Add(VALUE_IN_RAMPED__AnalogSerialInput__, VALUE_IN_RAMPED); RELATIVE_IN = new Crestron.Logos.SplusObjects.AnalogInput(RELATIVE_IN__AnalogSerialInput__, this); m_AnalogInputList.Add(RELATIVE_IN__AnalogSerialInput__, RELATIVE_IN); RELATIVE_IN_RAMPED = new Crestron.Logos.SplusObjects.AnalogInput(RELATIVE_IN_RAMPED__AnalogSerialInput__, this); m_AnalogInputList.Add(RELATIVE_IN_RAMPED__AnalogSerialInput__, RELATIVE_IN_RAMPED); RAW_IN = new Crestron.Logos.SplusObjects.AnalogInput(RAW_IN__AnalogSerialInput__, this); m_AnalogInputList.Add(RAW_IN__AnalogSerialInput__, RAW_IN); RAMP_TIME = new Crestron.Logos.SplusObjects.AnalogInput(RAMP_TIME__AnalogSerialInput__, this); m_AnalogInputList.Add(RAMP_TIME__AnalogSerialInput__, RAMP_TIME); VALUE_OUT = new Crestron.Logos.SplusObjects.AnalogOutput(VALUE_OUT__AnalogSerialOutput__, this); m_AnalogOutputList.Add(VALUE_OUT__AnalogSerialOutput__, VALUE_OUT); RELATIVE_OUT = new Crestron.Logos.SplusObjects.AnalogOutput(RELATIVE_OUT__AnalogSerialOutput__, this); m_AnalogOutputList.Add(RELATIVE_OUT__AnalogSerialOutput__, RELATIVE_OUT); RAW_OUT = new Crestron.Logos.SplusObjects.AnalogOutput(RAW_OUT__AnalogSerialOutput__, this); m_AnalogOutputList.Add(RAW_OUT__AnalogSerialOutput__, RAW_OUT); STRING_IN = new Crestron.Logos.SplusObjects.StringInput(STRING_IN__AnalogSerialInput__, 200, this); m_StringInputList.Add(STRING_IN__AnalogSerialInput__, STRING_IN); STRING_OUT = new Crestron.Logos.SplusObjects.StringOutput(STRING_OUT__AnalogSerialOutput__, this); m_StringOutputList.Add(STRING_OUT__AnalogSerialOutput__, STRING_OUT); CORE_ID = new UShortParameter(CORE_ID__Parameter__, this); m_ParameterList.Add(CORE_ID__Parameter__, CORE_ID); NAMED_CONTROL = new StringParameter(NAMED_CONTROL__Parameter__, this); m_ParameterList.Add(NAMED_CONTROL__Parameter__, NAMED_CONTROL); RAMP_TIME.OnAnalogChange.Add(new InputChangeHandlerWrapper(RAMP_TIME_OnChange_0, false)); POLL_ENABLE.OnDigitalPush.Add(new InputChangeHandlerWrapper(POLL_ENABLE_OnPush_1, false)); POLL_ENABLE.OnDigitalRelease.Add(new InputChangeHandlerWrapper(POLL_ENABLE_OnRelease_2, false)); VALUE_IN.OnAnalogChange.Add(new InputChangeHandlerWrapper(VALUE_IN_OnChange_3, false)); VALUE_IN_RAMPED.OnAnalogChange.Add(new InputChangeHandlerWrapper(VALUE_IN_RAMPED_OnChange_4, false)); RELATIVE_IN.OnAnalogChange.Add(new InputChangeHandlerWrapper(RELATIVE_IN_OnChange_5, false)); RELATIVE_IN_RAMPED.OnAnalogChange.Add(new InputChangeHandlerWrapper(RELATIVE_IN_RAMPED_OnChange_6, false)); RAW_IN.OnAnalogChange.Add(new InputChangeHandlerWrapper(RAW_IN_OnChange_7, false)); STRING_IN.OnSerialChange.Add(new InputChangeHandlerWrapper(STRING_IN_OnChange_8, false)); TRIGGER.OnDigitalPush.Add(new InputChangeHandlerWrapper(TRIGGER_OnPush_9, false)); INITIALIZE.OnDigitalPush.Add(new InputChangeHandlerWrapper(INITIALIZE_OnPush_10, false)); _SplusNVRAM.PopulateCustomAttributeList(true); NVRAM = _SplusNVRAM; }
public IList <AParameter> ConvertParameters( IList <ParameterNode> parameters, string resourcePrefix = "" ) { var resultList = new List <AParameter>(); if ((parameters == null) || !parameters.Any()) { return(resultList); } // convert all parameters var index = 0; foreach (var parameter in parameters) { ++index; var parameterName = parameter.Name ?? $"[{index}]"; AParameter result = null; var parameterFullName = resourcePrefix + parameter.Name; AtLocation(parameterName, () => { if (parameter.Secret != null) { // encrypted value AtLocation("Secret", () => { result = new SecretParameter { Name = parameter.Name, Description = parameter.Description, Secret = parameter.Secret, Export = parameter.Export, EncryptionContext = parameter.EncryptionContext }; }); } else if (parameter.Values != null) { // list of values AtLocation("Values", () => { result = new StringListParameter { Name = parameter.Name, Description = parameter.Description, Values = parameter.Values, Export = parameter.Export }; }); // TODO (2018-08-19, bjorg): this implementation creates unnecessary parameters if (parameter.Resource != null) { AtLocation("Resource", () => { // enumerate individual values with resource definition for each parameter.Parameters = new List <ParameterNode>(); for (var i = 1; i <= parameter.Values.Count; ++i) { parameter.Parameters.Add(new ParameterNode { Name = $"Index{i}", Value = parameter.Values[i - 1], Resource = parameter.Resource }); } }); } } else if (parameter.Package != null) { // package value result = new PackageParameter { Name = parameter.Name, Description = parameter.Description, DestinationBucketParameterName = parameter.Package.Bucket, DestinationKeyPrefix = parameter.Package.Prefix ?? "", PackagePath = parameter.Package.PackagePath }; } else if (parameter.Value != null) { if (parameter.Resource != null) { AtLocation("Resource", () => { // existing resource var resource = ConvertResource((string)parameter.Value, parameter.Resource); result = new ReferencedResourceParameter { Name = parameter.Name, Description = parameter.Description, Resource = resource }; }); } else if (parameter.Value is string text) { // plaintext value result = new StringParameter { Name = parameter.Name, Description = parameter.Description, Value = text }; } else { // plaintext value result = new ExpressionParameter { Name = parameter.Name, Description = parameter.Description, Expression = parameter.Value }; } } else if (parameter.Resource != null) { // managed resource AtLocation("Resource", () => { result = new CloudFormationResourceParameter { Name = parameter.Name, Description = parameter.Description, Resource = ConvertResource(null, parameter.Resource) }; }); } }); // check if there are nested parameters if (parameter.Parameters != null) { AtLocation("Parameters", () => { var nestedParameters = ConvertParameters( parameter.Parameters, parameterFullName ); // keep nested parameters only if they have values if (nestedParameters.Any()) { // create empty string parameter if collection has no value result = result ?? new StringParameter { Name = parameter.Name, Value = "", Description = parameter.Description, Export = parameter.Export }; result.Parameters = nestedParameters; } }); } // add parameter if (result != null) { result.FullName = parameterFullName; result.Export = parameter.Export; resultList.Add(result); } } return(resultList); }
public override void LogosSplusInitialize() { _SplusNVRAM = new SplusNVRAM(this); GSNAMEDCONTROL = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 500, this); INITIALIZE_NAMED_CONTROL = new Crestron.Logos.SplusObjects.DigitalInput(INITIALIZE_NAMED_CONTROL__DigitalInput__, this); m_DigitalInputList.Add(INITIALIZE_NAMED_CONTROL__DigitalInput__, INITIALIZE_NAMED_CONTROL); ENABLE_POLL = new Crestron.Logos.SplusObjects.DigitalInput(ENABLE_POLL__DigitalInput__, this); m_DigitalInputList.Add(ENABLE_POLL__DigitalInput__, ENABLE_POLL); TRIGGER = new Crestron.Logos.SplusObjects.DigitalInput(TRIGGER__DigitalInput__, this); m_DigitalInputList.Add(TRIGGER__DigitalInput__, TRIGGER); VERIFY_VALUE = new InOutArray <DigitalInput>(2, this); for (uint i = 0; i < 2; i++) { VERIFY_VALUE[i + 1] = new Crestron.Logos.SplusObjects.DigitalInput(VERIFY_VALUE__DigitalInput__ + i, VERIFY_VALUE__DigitalInput__, this); m_DigitalInputList.Add(VERIFY_VALUE__DigitalInput__ + i, VERIFY_VALUE[i + 1]); } ERROR = new Crestron.Logos.SplusObjects.DigitalOutput(ERROR__DigitalOutput__, this); m_DigitalOutputList.Add(ERROR__DigitalOutput__, ERROR); DIR_VALUE_IN = new Crestron.Logos.SplusObjects.AnalogInput(DIR_VALUE_IN__AnalogSerialInput__, this); m_AnalogInputList.Add(DIR_VALUE_IN__AnalogSerialInput__, DIR_VALUE_IN); REL_VALUE_IN = new Crestron.Logos.SplusObjects.AnalogInput(REL_VALUE_IN__AnalogSerialInput__, this); m_AnalogInputList.Add(REL_VALUE_IN__AnalogSerialInput__, REL_VALUE_IN); REL_VALUE_IN_RAMP = new Crestron.Logos.SplusObjects.AnalogInput(REL_VALUE_IN_RAMP__AnalogSerialInput__, this); m_AnalogInputList.Add(REL_VALUE_IN_RAMP__AnalogSerialInput__, REL_VALUE_IN_RAMP); DB_VALUE_IN = new Crestron.Logos.SplusObjects.AnalogInput(DB_VALUE_IN__AnalogSerialInput__, this); m_AnalogInputList.Add(DB_VALUE_IN__AnalogSerialInput__, DB_VALUE_IN); DB_VALUE_IN_RAMP = new Crestron.Logos.SplusObjects.AnalogInput(DB_VALUE_IN_RAMP__AnalogSerialInput__, this); m_AnalogInputList.Add(DB_VALUE_IN_RAMP__AnalogSerialInput__, DB_VALUE_IN_RAMP); SNAPSHOT_SAVE = new Crestron.Logos.SplusObjects.AnalogInput(SNAPSHOT_SAVE__AnalogSerialInput__, this); m_AnalogInputList.Add(SNAPSHOT_SAVE__AnalogSerialInput__, SNAPSHOT_SAVE); SNAPSHOT_RECALL = new Crestron.Logos.SplusObjects.AnalogInput(SNAPSHOT_RECALL__AnalogSerialInput__, this); m_AnalogInputList.Add(SNAPSHOT_RECALL__AnalogSerialInput__, SNAPSHOT_RECALL); DIR_VALUE_OUT = new Crestron.Logos.SplusObjects.AnalogOutput(DIR_VALUE_OUT__AnalogSerialOutput__, this); m_AnalogOutputList.Add(DIR_VALUE_OUT__AnalogSerialOutput__, DIR_VALUE_OUT); REL_VALUE_OUT = new Crestron.Logos.SplusObjects.AnalogOutput(REL_VALUE_OUT__AnalogSerialOutput__, this); m_AnalogOutputList.Add(REL_VALUE_OUT__AnalogSerialOutput__, REL_VALUE_OUT); DB_VALUE_OUT = new Crestron.Logos.SplusObjects.AnalogOutput(DB_VALUE_OUT__AnalogSerialOutput__, this); m_AnalogOutputList.Add(DB_VALUE_OUT__AnalogSerialOutput__, DB_VALUE_OUT); STRING_IN = new Crestron.Logos.SplusObjects.StringInput(STRING_IN__AnalogSerialInput__, 500, this); m_StringInputList.Add(STRING_IN__AnalogSerialInput__, STRING_IN); STRING_OUT_FB = new Crestron.Logos.SplusObjects.StringOutput(STRING_OUT_FB__AnalogSerialOutput__, this); m_StringOutputList.Add(STRING_OUT_FB__AnalogSerialOutput__, STRING_OUT_FB); CORE_ID = new UShortParameter(CORE_ID__Parameter__, this); m_ParameterList.Add(CORE_ID__Parameter__, CORE_ID); RAMP_TIME = new UShortParameter(RAMP_TIME__Parameter__, this); m_ParameterList.Add(RAMP_TIME__Parameter__, RAMP_TIME); NAMEDCONTROL = new StringParameter(NAMEDCONTROL__Parameter__, this); m_ParameterList.Add(NAMEDCONTROL__Parameter__, NAMEDCONTROL); for (uint i = 0; i < 2; i++) { VERIFY_VALUE[i + 1].OnDigitalRelease.Add(new InputChangeHandlerWrapper(VERIFY_VALUE_OnRelease_0, false)); } INITIALIZE_NAMED_CONTROL.OnDigitalPush.Add(new InputChangeHandlerWrapper(INITIALIZE_NAMED_CONTROL_OnPush_1, false)); REL_VALUE_IN.OnAnalogChange.Add(new InputChangeHandlerWrapper(REL_VALUE_IN_OnChange_2, true)); REL_VALUE_IN_RAMP.OnAnalogChange.Add(new InputChangeHandlerWrapper(REL_VALUE_IN_RAMP_OnChange_3, true)); DB_VALUE_IN.OnAnalogChange.Add(new InputChangeHandlerWrapper(DB_VALUE_IN_OnChange_4, true)); DB_VALUE_IN_RAMP.OnAnalogChange.Add(new InputChangeHandlerWrapper(DB_VALUE_IN_RAMP_OnChange_5, true)); STRING_IN.OnSerialChange.Add(new InputChangeHandlerWrapper(STRING_IN_OnChange_6, true)); DIR_VALUE_IN.OnAnalogChange.Add(new InputChangeHandlerWrapper(DIR_VALUE_IN_OnChange_7, true)); SNAPSHOT_SAVE.OnAnalogChange.Add(new InputChangeHandlerWrapper(SNAPSHOT_SAVE_OnChange_8, true)); SNAPSHOT_RECALL.OnAnalogChange.Add(new InputChangeHandlerWrapper(SNAPSHOT_RECALL_OnChange_9, true)); ENABLE_POLL.OnDigitalChange.Add(new InputChangeHandlerWrapper(ENABLE_POLL_OnChange_10, false)); TRIGGER.OnDigitalPush.Add(new InputChangeHandlerWrapper(TRIGGER_OnPush_11, false)); _SplusNVRAM.PopulateCustomAttributeList(true); NVRAM = _SplusNVRAM; }
public override void LogosSplusInitialize() { SocketInfo __socketinfo__ = new SocketInfo( 1, this ); InitialParametersClass.ResolveHostName = __socketinfo__.ResolveHostName; _SplusNVRAM = new SplusNVRAM( this ); _SplusNVRAM.TEMPSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 40, this ); SUBSCRIBE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( SUBSCRIBE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( SUBSCRIBE__DOLLAR____DigitalInput__, SUBSCRIBE__DOLLAR__ ); UNSUBSCRIBE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( UNSUBSCRIBE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( UNSUBSCRIBE__DOLLAR____DigitalInput__, UNSUBSCRIBE__DOLLAR__ ); INPUTFOROUTPUT__DOLLAR__ = new InOutArray<AnalogInput>( 96, this ); for( uint i = 0; i < 96; i++ ) { INPUTFOROUTPUT__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.AnalogInput( INPUTFOROUTPUT__DOLLAR____AnalogSerialInput__ + i, INPUTFOROUTPUT__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( INPUTFOROUTPUT__DOLLAR____AnalogSerialInput__ + i, INPUTFOROUTPUT__DOLLAR__[i+1] ); } INPUTFOROUTPUT_FB__DOLLAR__ = new InOutArray<AnalogOutput>( 96, this ); for( uint i = 0; i < 96; i++ ) { INPUTFOROUTPUT_FB__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.AnalogOutput( INPUTFOROUTPUT_FB__DOLLAR____AnalogSerialOutput__ + i, this ); m_AnalogOutputList.Add( INPUTFOROUTPUT_FB__DOLLAR____AnalogSerialOutput__ + i, INPUTFOROUTPUT_FB__DOLLAR__[i+1] ); } TX__DOLLAR__ = new Crestron.Logos.SplusObjects.StringOutput( TX__DOLLAR____AnalogSerialOutput__, this ); m_StringOutputList.Add( TX__DOLLAR____AnalogSerialOutput__, TX__DOLLAR__ ); RX__DOLLAR__ = new Crestron.Logos.SplusObjects.BufferInput( RX__DOLLAR____AnalogSerialInput__, 400, this ); m_StringInputList.Add( RX__DOLLAR____AnalogSerialInput__, RX__DOLLAR__ ); IMAXOUTPUT = new UShortParameter( IMAXOUTPUT__Parameter__, this ); m_ParameterList.Add( IMAXOUTPUT__Parameter__, IMAXOUTPUT ); OBJECTID__DOLLAR__ = new StringParameter( OBJECTID__DOLLAR____Parameter__, this ); m_ParameterList.Add( OBJECTID__DOLLAR____Parameter__, OBJECTID__DOLLAR__ ); __SPLS_TMPVAR__WAITLABEL_0___Callback = new WaitFunction( __SPLS_TMPVAR__WAITLABEL_0___CallbackFn ); for( uint i = 0; i < 96; i++ ) INPUTFOROUTPUT__DOLLAR__[i+1].OnAnalogChange.Add( new InputChangeHandlerWrapper( INPUTFOROUTPUT__DOLLAR___OnChange_0, false ) ); SUBSCRIBE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( SUBSCRIBE__DOLLAR___OnPush_1, false ) ); UNSUBSCRIBE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( UNSUBSCRIBE__DOLLAR___OnPush_2, false ) ); RX__DOLLAR__.OnSerialChange.Add( new InputChangeHandlerWrapper( RX__DOLLAR___OnChange_3, false ) ); _SplusNVRAM.PopulateCustomAttributeList( true ); NVRAM = _SplusNVRAM; }
public override void LogosSplusInitialize() { _SplusNVRAM = new SplusNVRAM(this); INIT = new Crestron.Logos.SplusObjects.DigitalInput(INIT__DigitalInput__, this); m_DigitalInputList.Add(INIT__DigitalInput__, INIT); GETINFO = new Crestron.Logos.SplusObjects.DigitalInput(GETINFO__DigitalInput__, this); m_DigitalInputList.Add(GETINFO__DigitalInput__, GETINFO); LIGHTON = new Crestron.Logos.SplusObjects.DigitalInput(LIGHTON__DigitalInput__, this); m_DigitalInputList.Add(LIGHTON__DigitalInput__, LIGHTON); LIGHTOFF = new Crestron.Logos.SplusObjects.DigitalInput(LIGHTOFF__DigitalInput__, this); m_DigitalInputList.Add(LIGHTOFF__DigitalInput__, LIGHTOFF); LOADONLINE = new Crestron.Logos.SplusObjects.DigitalOutput(LOADONLINE__DigitalOutput__, this); m_DigitalOutputList.Add(LOADONLINE__DigitalOutput__, LOADONLINE); LOADISON = new Crestron.Logos.SplusObjects.DigitalOutput(LOADISON__DigitalOutput__, this); m_DigitalOutputList.Add(LOADISON__DigitalOutput__, LOADISON); LOADREACHABLE = new Crestron.Logos.SplusObjects.DigitalOutput(LOADREACHABLE__DigitalOutput__, this); m_DigitalOutputList.Add(LOADREACHABLE__DigitalOutput__, LOADREACHABLE); LOADISCOLOR = new Crestron.Logos.SplusObjects.DigitalOutput(LOADISCOLOR__DigitalOutput__, this); m_DigitalOutputList.Add(LOADISCOLOR__DigitalOutput__, LOADISCOLOR); BRIIN = new Crestron.Logos.SplusObjects.AnalogInput(BRIIN__AnalogSerialInput__, this); m_AnalogInputList.Add(BRIIN__AnalogSerialInput__, BRIIN); HUEIN = new Crestron.Logos.SplusObjects.AnalogInput(HUEIN__AnalogSerialInput__, this); m_AnalogInputList.Add(HUEIN__AnalogSerialInput__, HUEIN); SATIN = new Crestron.Logos.SplusObjects.AnalogInput(SATIN__AnalogSerialInput__, this); m_AnalogInputList.Add(SATIN__AnalogSerialInput__, SATIN); BRIOUT = new Crestron.Logos.SplusObjects.AnalogOutput(BRIOUT__AnalogSerialOutput__, this); m_AnalogOutputList.Add(BRIOUT__AnalogSerialOutput__, BRIOUT); HUEOUT = new Crestron.Logos.SplusObjects.AnalogOutput(HUEOUT__AnalogSerialOutput__, this); m_AnalogOutputList.Add(HUEOUT__AnalogSerialOutput__, HUEOUT); SATOUT = new Crestron.Logos.SplusObjects.AnalogOutput(SATOUT__AnalogSerialOutput__, this); m_AnalogOutputList.Add(SATOUT__AnalogSerialOutput__, SATOUT); LIGHTNAMELISTITEM = new Crestron.Logos.SplusObjects.StringInput(LIGHTNAMELISTITEM__AnalogSerialInput__, 50, this); m_StringInputList.Add(LIGHTNAMELISTITEM__AnalogSerialInput__, LIGHTNAMELISTITEM); LIGHTTYPE = new Crestron.Logos.SplusObjects.StringOutput(LIGHTTYPE__AnalogSerialOutput__, this); m_StringOutputList.Add(LIGHTTYPE__AnalogSerialOutput__, LIGHTTYPE); LIGHTNAME = new StringParameter(LIGHTNAME__Parameter__, this); m_ParameterList.Add(LIGHTNAME__Parameter__, LIGHTNAME); GETINFO.OnDigitalPush.Add(new InputChangeHandlerWrapper(GETINFO_OnPush_0, false)); INIT.OnDigitalPush.Add(new InputChangeHandlerWrapper(INIT_OnPush_1, false)); LIGHTON.OnDigitalPush.Add(new InputChangeHandlerWrapper(LIGHTON_OnPush_2, false)); LIGHTOFF.OnDigitalPush.Add(new InputChangeHandlerWrapper(LIGHTOFF_OnPush_3, false)); BRIIN.OnAnalogChange.Add(new InputChangeHandlerWrapper(BRIIN_OnChange_4, true)); HUEIN.OnAnalogChange.Add(new InputChangeHandlerWrapper(HUEIN_OnChange_5, true)); SATIN.OnAnalogChange.Add(new InputChangeHandlerWrapper(SATIN_OnChange_6, true)); _SplusNVRAM.PopulateCustomAttributeList(true); NVRAM = _SplusNVRAM; }
public void TryParse_Null() { var sp = new StringParameter("name", false); Assert.Throws <ArgumentException>(() => sp.TryParse(null, out object result)); }
public static void GetParameterType(StringParameter obj, MethodReturnEventArgs<Type> e) { e.Result = typeof(string); BaseParameterActions.DecorateParameterType(obj, e, false); }
/// <summary> /// /// </summary> /// <returns></returns> private IParameter GetStreetParameter() { IParameter p = this.GeneralGroup.Parameters[PN_STREET]; if (p == null) { p = new StringParameter(PN_STREET, string.Empty, PO_STREET); p.Text = strings.Street; this.GeneralGroup.Parameters.Add(p); } return p; }
public override void LogosSplusInitialize() { _SplusNVRAM = new SplusNVRAM(this); INIT = new Crestron.Logos.SplusObjects.DigitalInput(INIT__DigitalInput__, this); m_DigitalInputList.Add(INIT__DigitalInput__, INIT); READ = new Crestron.Logos.SplusObjects.DigitalInput(READ__DigitalInput__, this); m_DigitalInputList.Add(READ__DigitalInput__, READ); WRITE = new Crestron.Logos.SplusObjects.DigitalInput(WRITE__DigitalInput__, this); m_DigitalInputList.Add(WRITE__DigitalInput__, WRITE); IN_USE = new Crestron.Logos.SplusObjects.DigitalOutput(IN_USE__DigitalOutput__, this); m_DigitalOutputList.Add(IN_USE__DigitalOutput__, IN_USE); QUICK_CONTROL = new InOutArray <DigitalOutput>(50, this); for (uint i = 0; i < 50; i++) { QUICK_CONTROL[i + 1] = new Crestron.Logos.SplusObjects.DigitalOutput(QUICK_CONTROL__DigitalOutput__ + i, this); m_DigitalOutputList.Add(QUICK_CONTROL__DigitalOutput__ + i, QUICK_CONTROL[i + 1]); } LIST_DIGITAL = new InOutArray <DigitalOutput>(50, this); for (uint i = 0; i < 50; i++) { LIST_DIGITAL[i + 1] = new Crestron.Logos.SplusObjects.DigitalOutput(LIST_DIGITAL__DigitalOutput__ + i, this); m_DigitalOutputList.Add(LIST_DIGITAL__DigitalOutput__ + i, LIST_DIGITAL[i + 1]); } D_OUT = new InOutArray <DigitalOutput>(300, this); for (uint i = 0; i < 300; i++) { D_OUT[i + 1] = new Crestron.Logos.SplusObjects.DigitalOutput(D_OUT__DigitalOutput__ + i, this); m_DigitalOutputList.Add(D_OUT__DigitalOutput__ + i, D_OUT[i + 1]); } QUICK_SERIAL_FB = new InOutArray <StringInput>(50, this); for (uint i = 0; i < 50; i++) { QUICK_SERIAL_FB[i + 1] = new Crestron.Logos.SplusObjects.StringInput(QUICK_SERIAL_FB__AnalogSerialInput__ + i, QUICK_SERIAL_FB__AnalogSerialInput__, 255, this); m_StringInputList.Add(QUICK_SERIAL_FB__AnalogSerialInput__ + i, QUICK_SERIAL_FB[i + 1]); } LIST_SERIAL_FB = new InOutArray <StringInput>(50, this); for (uint i = 0; i < 50; i++) { LIST_SERIAL_FB[i + 1] = new Crestron.Logos.SplusObjects.StringInput(LIST_SERIAL_FB__AnalogSerialInput__ + i, LIST_SERIAL_FB__AnalogSerialInput__, 255, this); m_StringInputList.Add(LIST_SERIAL_FB__AnalogSerialInput__ + i, LIST_SERIAL_FB[i + 1]); } S_IN = new InOutArray <StringInput>(100, this); for (uint i = 0; i < 100; i++) { S_IN[i + 1] = new Crestron.Logos.SplusObjects.StringInput(S_IN__AnalogSerialInput__ + i, S_IN__AnalogSerialInput__, 255, this); m_StringInputList.Add(S_IN__AnalogSerialInput__ + i, S_IN[i + 1]); } SOURCE_ID = new UShortParameter(SOURCE_ID__Parameter__, this); m_ParameterList.Add(SOURCE_ID__Parameter__, SOURCE_ID); ACCESS_LEVEL = new UShortParameter(ACCESS_LEVEL__Parameter__, this); m_ParameterList.Add(ACCESS_LEVEL__Parameter__, ACCESS_LEVEL); AUDIO_SWITCHER = new UShortParameter(AUDIO_SWITCHER__Parameter__, this); m_ParameterList.Add(AUDIO_SWITCHER__Parameter__, AUDIO_SWITCHER); AUDIO_INPUT = new UShortParameter(AUDIO_INPUT__Parameter__, this); m_ParameterList.Add(AUDIO_INPUT__Parameter__, AUDIO_INPUT); VIDEO_SWITCHER = new UShortParameter(VIDEO_SWITCHER__Parameter__, this); m_ParameterList.Add(VIDEO_SWITCHER__Parameter__, VIDEO_SWITCHER); VIDEO_INPUT = new UShortParameter(VIDEO_INPUT__Parameter__, this); m_ParameterList.Add(VIDEO_INPUT__Parameter__, VIDEO_INPUT); SOURCE_NAME = new StringParameter(SOURCE_NAME__Parameter__, this); m_ParameterList.Add(SOURCE_NAME__Parameter__, SOURCE_NAME); FILE_NAME__DOLLAR__ = new StringParameter(FILE_NAME__DOLLAR____Parameter__, this); m_ParameterList.Add(FILE_NAME__DOLLAR____Parameter__, FILE_NAME__DOLLAR__); READ_AT_BOOTUP = new StringParameter(READ_AT_BOOTUP__Parameter__, this); m_ParameterList.Add(READ_AT_BOOTUP__Parameter__, READ_AT_BOOTUP); INIT.OnDigitalPush.Add(new InputChangeHandlerWrapper(INIT_OnPush_0, true)); READ.OnDigitalPush.Add(new InputChangeHandlerWrapper(READ_OnPush_1, true)); WRITE.OnDigitalPush.Add(new InputChangeHandlerWrapper(WRITE_OnPush_2, true)); for (uint i = 0; i < 100; i++) { S_IN[i + 1].OnSerialChange.Add(new InputChangeHandlerWrapper(S_IN_OnChange_3, false)); } for (uint i = 0; i < 50; i++) { QUICK_SERIAL_FB[i + 1].OnSerialChange.Add(new InputChangeHandlerWrapper(QUICK_SERIAL_FB_OnChange_4, false)); } for (uint i = 0; i < 50; i++) { LIST_SERIAL_FB[i + 1].OnSerialChange.Add(new InputChangeHandlerWrapper(LIST_SERIAL_FB_OnChange_5, false)); } _SplusNVRAM.PopulateCustomAttributeList(true); NVRAM = _SplusNVRAM; }
public override void LogosSplusInitialize() { SocketInfo __socketinfo__ = new SocketInfo( 1, this ); InitialParametersClass.ResolveHostName = __socketinfo__.ResolveHostName; _SplusNVRAM = new SplusNVRAM( this ); _SplusNVRAM.RETURNSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 4, this ); _SplusNVRAM.TEMPSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 40, this ); SUBSCRIBE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( SUBSCRIBE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( SUBSCRIBE__DOLLAR____DigitalInput__, SUBSCRIBE__DOLLAR__ ); UNSUBSCRIBE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( UNSUBSCRIBE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( UNSUBSCRIBE__DOLLAR____DigitalInput__, UNSUBSCRIBE__DOLLAR__ ); MUTE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( MUTE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( MUTE__DOLLAR____DigitalInput__, MUTE__DOLLAR__ ); UNMUTE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( UNMUTE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( UNMUTE__DOLLAR____DigitalInput__, UNMUTE__DOLLAR__ ); POLARITYON__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( POLARITYON__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( POLARITYON__DOLLAR____DigitalInput__, POLARITYON__DOLLAR__ ); POLARITYOFF__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( POLARITYOFF__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( POLARITYOFF__DOLLAR____DigitalInput__, POLARITYOFF__DOLLAR__ ); MUTE_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( MUTE_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( MUTE_FB__DOLLAR____DigitalOutput__, MUTE_FB__DOLLAR__ ); POLARITY_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( POLARITY_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( POLARITY_FB__DOLLAR____DigitalOutput__, POLARITY_FB__DOLLAR__ ); GAIN__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( GAIN__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( GAIN__DOLLAR____AnalogSerialInput__, GAIN__DOLLAR__ ); INPUT__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( INPUT__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( INPUT__DOLLAR____AnalogSerialInput__, INPUT__DOLLAR__ ); GAIN_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( GAIN_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( GAIN_FB__DOLLAR____AnalogSerialOutput__, GAIN_FB__DOLLAR__ ); TX__DOLLAR__ = new Crestron.Logos.SplusObjects.StringOutput( TX__DOLLAR____AnalogSerialOutput__, this ); m_StringOutputList.Add( TX__DOLLAR____AnalogSerialOutput__, TX__DOLLAR__ ); RX__DOLLAR__ = new Crestron.Logos.SplusObjects.BufferInput( RX__DOLLAR____AnalogSerialInput__, 400, this ); m_StringInputList.Add( RX__DOLLAR____AnalogSerialInput__, RX__DOLLAR__ ); OBJECTID__DOLLAR__ = new StringParameter( OBJECTID__DOLLAR____Parameter__, this ); m_ParameterList.Add( OBJECTID__DOLLAR____Parameter__, OBJECTID__DOLLAR__ ); __SPLS_TMPVAR__WAITLABEL_0___Callback = new WaitFunction( __SPLS_TMPVAR__WAITLABEL_0___CallbackFn ); MUTE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( MUTE__DOLLAR___OnPush_0, false ) ); UNMUTE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( UNMUTE__DOLLAR___OnPush_1, false ) ); POLARITYON__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( POLARITYON__DOLLAR___OnPush_2, false ) ); POLARITYOFF__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( POLARITYOFF__DOLLAR___OnPush_3, false ) ); GAIN__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( GAIN__DOLLAR___OnChange_4, false ) ); SUBSCRIBE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( SUBSCRIBE__DOLLAR___OnPush_5, false ) ); UNSUBSCRIBE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( UNSUBSCRIBE__DOLLAR___OnPush_6, false ) ); INPUT__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( INPUT__DOLLAR___OnChange_7, false ) ); RX__DOLLAR__.OnSerialChange.Add( new InputChangeHandlerWrapper( RX__DOLLAR___OnChange_8, false ) ); _SplusNVRAM.PopulateCustomAttributeList( true ); NVRAM = _SplusNVRAM; }
/// <summary> /// /// </summary> /// <returns></returns> private IParameter GetNameParameter() { IParameter p = this.GeneralGroup.Parameters[PN_NAME]; if (p == null) { p = new StringParameter(PN_NAME, "unknown name", PO_NAME); p.Text = strings.StationName; this.GeneralGroup.Parameters.Add(p); } return p; }
/// <summary> /// /// </summary> /// <returns></returns> private IParameter GetNameParameter() { IParameter p = this.GeneralGroup.Parameters[PN_NAME]; if (p == null) { p = new StringParameter(PN_NAME, string.Empty, PO_NAME); p.Text = strings.DeviceName; this.GeneralGroup.Parameters.Add(p); } return p; }
public override void LogosSplusInitialize() { SocketInfo __socketinfo__ = new SocketInfo( 1, this ); InitialParametersClass.ResolveHostName = __socketinfo__.ResolveHostName; _SplusNVRAM = new SplusNVRAM( this ); _SplusNVRAM.RETURNSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 4, this ); _SplusNVRAM.TEMPSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 40, this ); ENABLE_FEEDBACK__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( ENABLE_FEEDBACK__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( ENABLE_FEEDBACK__DOLLAR____DigitalInput__, ENABLE_FEEDBACK__DOLLAR__ ); DISABLE_FEEDBACK__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( DISABLE_FEEDBACK__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( DISABLE_FEEDBACK__DOLLAR____DigitalInput__, DISABLE_FEEDBACK__DOLLAR__ ); CHAN1_MUTE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( CHAN1_MUTE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( CHAN1_MUTE__DOLLAR____DigitalInput__, CHAN1_MUTE__DOLLAR__ ); CHAN2_MUTE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( CHAN2_MUTE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( CHAN2_MUTE__DOLLAR____DigitalInput__, CHAN2_MUTE__DOLLAR__ ); CHAN3_MUTE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( CHAN3_MUTE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( CHAN3_MUTE__DOLLAR____DigitalInput__, CHAN3_MUTE__DOLLAR__ ); CHAN4_MUTE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( CHAN4_MUTE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( CHAN4_MUTE__DOLLAR____DigitalInput__, CHAN4_MUTE__DOLLAR__ ); CHAN5_MUTE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( CHAN5_MUTE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( CHAN5_MUTE__DOLLAR____DigitalInput__, CHAN5_MUTE__DOLLAR__ ); CHAN6_MUTE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( CHAN6_MUTE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( CHAN6_MUTE__DOLLAR____DigitalInput__, CHAN6_MUTE__DOLLAR__ ); CHAN7_MUTE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( CHAN7_MUTE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( CHAN7_MUTE__DOLLAR____DigitalInput__, CHAN7_MUTE__DOLLAR__ ); CHAN8_MUTE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( CHAN8_MUTE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( CHAN8_MUTE__DOLLAR____DigitalInput__, CHAN8_MUTE__DOLLAR__ ); MASTEROUT_MUTE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( MASTEROUT_MUTE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( MASTEROUT_MUTE__DOLLAR____DigitalInput__, MASTEROUT_MUTE__DOLLAR__ ); CHAN1_MUTE_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( CHAN1_MUTE_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( CHAN1_MUTE_FB__DOLLAR____DigitalOutput__, CHAN1_MUTE_FB__DOLLAR__ ); CHAN2_MUTE_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( CHAN2_MUTE_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( CHAN2_MUTE_FB__DOLLAR____DigitalOutput__, CHAN2_MUTE_FB__DOLLAR__ ); CHAN3_MUTE_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( CHAN3_MUTE_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( CHAN3_MUTE_FB__DOLLAR____DigitalOutput__, CHAN3_MUTE_FB__DOLLAR__ ); CHAN4_MUTE_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( CHAN4_MUTE_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( CHAN4_MUTE_FB__DOLLAR____DigitalOutput__, CHAN4_MUTE_FB__DOLLAR__ ); CHAN5_MUTE_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( CHAN5_MUTE_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( CHAN5_MUTE_FB__DOLLAR____DigitalOutput__, CHAN5_MUTE_FB__DOLLAR__ ); CHAN6_MUTE_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( CHAN6_MUTE_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( CHAN6_MUTE_FB__DOLLAR____DigitalOutput__, CHAN6_MUTE_FB__DOLLAR__ ); CHAN7_MUTE_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( CHAN7_MUTE_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( CHAN7_MUTE_FB__DOLLAR____DigitalOutput__, CHAN7_MUTE_FB__DOLLAR__ ); CHAN8_MUTE_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( CHAN8_MUTE_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( CHAN8_MUTE_FB__DOLLAR____DigitalOutput__, CHAN8_MUTE_FB__DOLLAR__ ); MASTEROUT_MUTE_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( MASTEROUT_MUTE_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( MASTEROUT_MUTE_FB__DOLLAR____DigitalOutput__, MASTEROUT_MUTE_FB__DOLLAR__ ); CHAN_OFFSET__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( CHAN_OFFSET__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( CHAN_OFFSET__DOLLAR____AnalogSerialInput__, CHAN_OFFSET__DOLLAR__ ); CHAN1_VOL__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( CHAN1_VOL__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( CHAN1_VOL__DOLLAR____AnalogSerialInput__, CHAN1_VOL__DOLLAR__ ); CHAN2_VOL__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( CHAN2_VOL__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( CHAN2_VOL__DOLLAR____AnalogSerialInput__, CHAN2_VOL__DOLLAR__ ); CHAN3_VOL__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( CHAN3_VOL__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( CHAN3_VOL__DOLLAR____AnalogSerialInput__, CHAN3_VOL__DOLLAR__ ); CHAN4_VOL__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( CHAN4_VOL__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( CHAN4_VOL__DOLLAR____AnalogSerialInput__, CHAN4_VOL__DOLLAR__ ); CHAN5_VOL__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( CHAN5_VOL__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( CHAN5_VOL__DOLLAR____AnalogSerialInput__, CHAN5_VOL__DOLLAR__ ); CHAN6_VOL__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( CHAN6_VOL__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( CHAN6_VOL__DOLLAR____AnalogSerialInput__, CHAN6_VOL__DOLLAR__ ); CHAN7_VOL__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( CHAN7_VOL__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( CHAN7_VOL__DOLLAR____AnalogSerialInput__, CHAN7_VOL__DOLLAR__ ); CHAN8_VOL__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( CHAN8_VOL__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( CHAN8_VOL__DOLLAR____AnalogSerialInput__, CHAN8_VOL__DOLLAR__ ); MASTERVOL__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( MASTERVOL__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( MASTERVOL__DOLLAR____AnalogSerialInput__, MASTERVOL__DOLLAR__ ); CHAN1_VOL_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( CHAN1_VOL_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( CHAN1_VOL_FB__DOLLAR____AnalogSerialOutput__, CHAN1_VOL_FB__DOLLAR__ ); CHAN2_VOL_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( CHAN2_VOL_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( CHAN2_VOL_FB__DOLLAR____AnalogSerialOutput__, CHAN2_VOL_FB__DOLLAR__ ); CHAN3_VOL_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( CHAN3_VOL_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( CHAN3_VOL_FB__DOLLAR____AnalogSerialOutput__, CHAN3_VOL_FB__DOLLAR__ ); CHAN4_VOL_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( CHAN4_VOL_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( CHAN4_VOL_FB__DOLLAR____AnalogSerialOutput__, CHAN4_VOL_FB__DOLLAR__ ); CHAN5_VOL_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( CHAN5_VOL_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( CHAN5_VOL_FB__DOLLAR____AnalogSerialOutput__, CHAN5_VOL_FB__DOLLAR__ ); CHAN6_VOL_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( CHAN6_VOL_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( CHAN6_VOL_FB__DOLLAR____AnalogSerialOutput__, CHAN6_VOL_FB__DOLLAR__ ); CHAN7_VOL_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( CHAN7_VOL_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( CHAN7_VOL_FB__DOLLAR____AnalogSerialOutput__, CHAN7_VOL_FB__DOLLAR__ ); CHAN8_VOL_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( CHAN8_VOL_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( CHAN8_VOL_FB__DOLLAR____AnalogSerialOutput__, CHAN8_VOL_FB__DOLLAR__ ); MASTERVOL_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( MASTERVOL_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( MASTERVOL_FB__DOLLAR____AnalogSerialOutput__, MASTERVOL_FB__DOLLAR__ ); RX__DOLLAR__ = new Crestron.Logos.SplusObjects.StringInput( RX__DOLLAR____AnalogSerialInput__, 400, this ); m_StringInputList.Add( RX__DOLLAR____AnalogSerialInput__, RX__DOLLAR__ ); TX__DOLLAR__ = new Crestron.Logos.SplusObjects.StringOutput( TX__DOLLAR____AnalogSerialOutput__, this ); m_StringOutputList.Add( TX__DOLLAR____AnalogSerialOutput__, TX__DOLLAR__ ); OBJECTID__DOLLAR__ = new StringParameter( OBJECTID__DOLLAR____Parameter__, this ); m_ParameterList.Add( OBJECTID__DOLLAR____Parameter__, OBJECTID__DOLLAR__ ); __SPLS_TMPVAR__WAITLABEL_0___Callback = new WaitFunction( __SPLS_TMPVAR__WAITLABEL_0___CallbackFn ); CHAN_OFFSET__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( CHAN_OFFSET__DOLLAR___OnChange_0, false ) ); ENABLE_FEEDBACK__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( ENABLE_FEEDBACK__DOLLAR___OnPush_1, false ) ); DISABLE_FEEDBACK__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( DISABLE_FEEDBACK__DOLLAR___OnPush_2, false ) ); CHAN1_MUTE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( CHAN1_MUTE__DOLLAR___OnPush_3, false ) ); CHAN1_MUTE__DOLLAR__.OnDigitalRelease.Add( new InputChangeHandlerWrapper( CHAN1_MUTE__DOLLAR___OnRelease_4, false ) ); CHAN2_MUTE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( CHAN2_MUTE__DOLLAR___OnPush_5, false ) ); CHAN2_MUTE__DOLLAR__.OnDigitalRelease.Add( new InputChangeHandlerWrapper( CHAN2_MUTE__DOLLAR___OnRelease_6, false ) ); CHAN3_MUTE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( CHAN3_MUTE__DOLLAR___OnPush_7, false ) ); CHAN3_MUTE__DOLLAR__.OnDigitalRelease.Add( new InputChangeHandlerWrapper( CHAN3_MUTE__DOLLAR___OnRelease_8, false ) ); CHAN4_MUTE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( CHAN4_MUTE__DOLLAR___OnPush_9, false ) ); CHAN4_MUTE__DOLLAR__.OnDigitalRelease.Add( new InputChangeHandlerWrapper( CHAN4_MUTE__DOLLAR___OnRelease_10, false ) ); CHAN5_MUTE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( CHAN5_MUTE__DOLLAR___OnPush_11, false ) ); CHAN5_MUTE__DOLLAR__.OnDigitalRelease.Add( new InputChangeHandlerWrapper( CHAN5_MUTE__DOLLAR___OnRelease_12, false ) ); CHAN6_MUTE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( CHAN6_MUTE__DOLLAR___OnPush_13, false ) ); CHAN6_MUTE__DOLLAR__.OnDigitalRelease.Add( new InputChangeHandlerWrapper( CHAN6_MUTE__DOLLAR___OnRelease_14, false ) ); CHAN7_MUTE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( CHAN7_MUTE__DOLLAR___OnPush_15, false ) ); CHAN7_MUTE__DOLLAR__.OnDigitalRelease.Add( new InputChangeHandlerWrapper( CHAN7_MUTE__DOLLAR___OnRelease_16, false ) ); CHAN8_MUTE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( CHAN8_MUTE__DOLLAR___OnPush_17, false ) ); CHAN8_MUTE__DOLLAR__.OnDigitalRelease.Add( new InputChangeHandlerWrapper( CHAN8_MUTE__DOLLAR___OnRelease_18, false ) ); MASTEROUT_MUTE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( MASTEROUT_MUTE__DOLLAR___OnPush_19, false ) ); MASTEROUT_MUTE__DOLLAR__.OnDigitalRelease.Add( new InputChangeHandlerWrapper( MASTEROUT_MUTE__DOLLAR___OnRelease_20, false ) ); CHAN1_VOL__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( CHAN1_VOL__DOLLAR___OnChange_21, false ) ); CHAN2_VOL__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( CHAN2_VOL__DOLLAR___OnChange_22, false ) ); CHAN3_VOL__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( CHAN3_VOL__DOLLAR___OnChange_23, false ) ); CHAN4_VOL__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( CHAN4_VOL__DOLLAR___OnChange_24, false ) ); CHAN5_VOL__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( CHAN5_VOL__DOLLAR___OnChange_25, false ) ); CHAN6_VOL__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( CHAN6_VOL__DOLLAR___OnChange_26, false ) ); CHAN7_VOL__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( CHAN7_VOL__DOLLAR___OnChange_27, false ) ); CHAN8_VOL__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( CHAN8_VOL__DOLLAR___OnChange_28, false ) ); MASTERVOL__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( MASTERVOL__DOLLAR___OnChange_29, false ) ); RX__DOLLAR__.OnSerialChange.Add( new InputChangeHandlerWrapper( RX__DOLLAR___OnChange_30, false ) ); _SplusNVRAM.PopulateCustomAttributeList( true ); NVRAM = _SplusNVRAM; }
public static void GetParameterTypeString(StringParameter obj, MethodReturnEventArgs<string> e) { e.Result = "string"; BaseParameterActions.DecorateParameterType(obj, e, false); }
public override void LogosSplusInitialize() { _SplusNVRAM = new SplusNVRAM(this); POLL_LEVEL = new Crestron.Logos.SplusObjects.DigitalInput(POLL_LEVEL__DigitalInput__, this); m_DigitalInputList.Add(POLL_LEVEL__DigitalInput__, POLL_LEVEL); LEVEL_UP = new Crestron.Logos.SplusObjects.DigitalInput(LEVEL_UP__DigitalInput__, this); m_DigitalInputList.Add(LEVEL_UP__DigitalInput__, LEVEL_UP); LEVEL_DOWN = new Crestron.Logos.SplusObjects.DigitalInput(LEVEL_DOWN__DigitalInput__, this); m_DigitalInputList.Add(LEVEL_DOWN__DigitalInput__, LEVEL_DOWN); SEND_NEW_LEVEL_DB = new Crestron.Logos.SplusObjects.DigitalInput(SEND_NEW_LEVEL_DB__DigitalInput__, this); m_DigitalInputList.Add(SEND_NEW_LEVEL_DB__DigitalInput__, SEND_NEW_LEVEL_DB); SEND_NEW_LEVEL_PERCENT = new Crestron.Logos.SplusObjects.DigitalInput(SEND_NEW_LEVEL_PERCENT__DigitalInput__, this); m_DigitalInputList.Add(SEND_NEW_LEVEL_PERCENT__DigitalInput__, SEND_NEW_LEVEL_PERCENT); ENABLE = new Crestron.Logos.SplusObjects.DigitalInput(ENABLE__DigitalInput__, this); m_DigitalInputList.Add(ENABLE__DigitalInput__, ENABLE); IS_INITIALIZED = new Crestron.Logos.SplusObjects.DigitalOutput(IS_INITIALIZED__DigitalOutput__, this); m_DigitalOutputList.Add(IS_INITIALIZED__DigitalOutput__, IS_INITIALIZED); NEW_LEVEL_DB = new Crestron.Logos.SplusObjects.AnalogInput(NEW_LEVEL_DB__AnalogSerialInput__, this); m_AnalogInputList.Add(NEW_LEVEL_DB__AnalogSerialInput__, NEW_LEVEL_DB); NEW_LEVEL_PERCENT = new Crestron.Logos.SplusObjects.AnalogInput(NEW_LEVEL_PERCENT__AnalogSerialInput__, this); m_AnalogInputList.Add(NEW_LEVEL_PERCENT__AnalogSerialInput__, NEW_LEVEL_PERCENT); VOLUME_LEVEL_DB = new Crestron.Logos.SplusObjects.AnalogOutput(VOLUME_LEVEL_DB__AnalogSerialOutput__, this); m_AnalogOutputList.Add(VOLUME_LEVEL_DB__AnalogSerialOutput__, VOLUME_LEVEL_DB); VOLUME_LEVEL_PERCENT = new Crestron.Logos.SplusObjects.AnalogOutput(VOLUME_LEVEL_PERCENT__AnalogSerialOutput__, this); m_AnalogOutputList.Add(VOLUME_LEVEL_PERCENT__AnalogSerialOutput__, VOLUME_LEVEL_PERCENT); VOLUME_LEVEL_TEXT = new Crestron.Logos.SplusObjects.StringOutput(VOLUME_LEVEL_TEXT__AnalogSerialOutput__, this); m_StringOutputList.Add(VOLUME_LEVEL_TEXT__AnalogSerialOutput__, VOLUME_LEVEL_TEXT); INDEX_1 = new UShortParameter(INDEX_1__Parameter__, this); m_ParameterList.Add(INDEX_1__Parameter__, INDEX_1); INDEX_2 = new UShortParameter(INDEX_2__Parameter__, this); m_ParameterList.Add(INDEX_2__Parameter__, INDEX_2); LEVEL_STEP = new UShortParameter(LEVEL_STEP__Parameter__, this); m_ParameterList.Add(LEVEL_STEP__Parameter__, LEVEL_STEP); COMMAND_PROCESSOR_ID = new UShortParameter(COMMAND_PROCESSOR_ID__Parameter__, this); m_ParameterList.Add(COMMAND_PROCESSOR_ID__Parameter__, COMMAND_PROCESSOR_ID); INSTANCE_TAG = new StringParameter(INSTANCE_TAG__Parameter__, this); m_ParameterList.Add(INSTANCE_TAG__Parameter__, INSTANCE_TAG); LEVEL_TYPE = new StringParameter(LEVEL_TYPE__Parameter__, this); m_ParameterList.Add(LEVEL_TYPE__Parameter__, LEVEL_TYPE); LEVEL_UP.OnDigitalPush.Add(new InputChangeHandlerWrapper(LEVEL_UP_OnPush_0, true)); LEVEL_DOWN.OnDigitalPush.Add(new InputChangeHandlerWrapper(LEVEL_DOWN_OnPush_1, true)); LEVEL_UP.OnDigitalRelease.Add(new InputChangeHandlerWrapper(LEVEL_UP_OnRelease_2, true)); LEVEL_DOWN.OnDigitalRelease.Add(new InputChangeHandlerWrapper(LEVEL_UP_OnRelease_2, true)); NEW_LEVEL_DB.OnAnalogChange.Add(new InputChangeHandlerWrapper(NEW_LEVEL_DB_OnChange_3, true)); SEND_NEW_LEVEL_DB.OnDigitalRelease.Add(new InputChangeHandlerWrapper(SEND_NEW_LEVEL_DB_OnRelease_4, true)); NEW_LEVEL_PERCENT.OnAnalogChange.Add(new InputChangeHandlerWrapper(NEW_LEVEL_PERCENT_OnChange_5, true)); SEND_NEW_LEVEL_PERCENT.OnDigitalRelease.Add(new InputChangeHandlerWrapper(SEND_NEW_LEVEL_PERCENT_OnRelease_6, true)); POLL_LEVEL.OnDigitalPush.Add(new InputChangeHandlerWrapper(POLL_LEVEL_OnPush_7, true)); ENABLE.OnDigitalPush.Add(new InputChangeHandlerWrapper(ENABLE_OnPush_8, true)); ENABLE.OnDigitalRelease.Add(new InputChangeHandlerWrapper(ENABLE_OnRelease_9, true)); _SplusNVRAM.PopulateCustomAttributeList(true); NVRAM = _SplusNVRAM; }
public override void LogosSplusInitialize() { _SplusNVRAM = new SplusNVRAM(this); INIT = new Crestron.Logos.SplusObjects.DigitalInput(INIT__DigitalInput__, this); m_DigitalInputList.Add(INIT__DigitalInput__, INIT); D_FB_IN = new InOutArray <DigitalInput>(10, this); for (uint i = 0; i < 10; i++) { D_FB_IN[i + 1] = new Crestron.Logos.SplusObjects.DigitalInput(D_FB_IN__DigitalInput__ + i, D_FB_IN__DigitalInput__, this); m_DigitalInputList.Add(D_FB_IN__DigitalInput__ + i, D_FB_IN[i + 1]); } D_OUT = new InOutArray <DigitalOutput>(10, this); for (uint i = 0; i < 10; i++) { D_OUT[i + 1] = new Crestron.Logos.SplusObjects.DigitalOutput(D_OUT__DigitalOutput__ + i, this); m_DigitalOutputList.Add(D_OUT__DigitalOutput__ + i, D_OUT[i + 1]); } SOURCE_FB = new Crestron.Logos.SplusObjects.AnalogInput(SOURCE_FB__AnalogSerialInput__, this); m_AnalogInputList.Add(SOURCE_FB__AnalogSerialInput__, SOURCE_FB); A_FB_IN = new InOutArray <AnalogInput>(10, this); for (uint i = 0; i < 10; i++) { A_FB_IN[i + 1] = new Crestron.Logos.SplusObjects.AnalogInput(A_FB_IN__AnalogSerialInput__ + i, A_FB_IN__AnalogSerialInput__, this); m_AnalogInputList.Add(A_FB_IN__AnalogSerialInput__ + i, A_FB_IN[i + 1]); } VIDEO_SOURCE = new Crestron.Logos.SplusObjects.AnalogOutput(VIDEO_SOURCE__AnalogSerialOutput__, this); m_AnalogOutputList.Add(VIDEO_SOURCE__AnalogSerialOutput__, VIDEO_SOURCE); AUDIO_SOURCE = new Crestron.Logos.SplusObjects.AnalogOutput(AUDIO_SOURCE__AnalogSerialOutput__, this); m_AnalogOutputList.Add(AUDIO_SOURCE__AnalogSerialOutput__, AUDIO_SOURCE); A_OUT = new InOutArray <AnalogOutput>(10, this); for (uint i = 0; i < 10; i++) { A_OUT[i + 1] = new Crestron.Logos.SplusObjects.AnalogOutput(A_OUT__AnalogSerialOutput__ + i, this); m_AnalogOutputList.Add(A_OUT__AnalogSerialOutput__ + i, A_OUT[i + 1]); } OUTPUT_NUMBER = new UShortParameter(OUTPUT_NUMBER__Parameter__, this); m_ParameterList.Add(OUTPUT_NUMBER__Parameter__, OUTPUT_NUMBER); SWITCHER_NUMBER = new UShortParameter(SWITCHER_NUMBER__Parameter__, this); m_ParameterList.Add(SWITCHER_NUMBER__Parameter__, SWITCHER_NUMBER); SWITCHER_TYPE = new UShortParameter(SWITCHER_TYPE__Parameter__, this); m_ParameterList.Add(SWITCHER_TYPE__Parameter__, SWITCHER_TYPE); ACCESS_LEVEL = new UShortParameter(ACCESS_LEVEL__Parameter__, this); m_ParameterList.Add(ACCESS_LEVEL__Parameter__, ACCESS_LEVEL); OUTPUT_NAME = new StringParameter(OUTPUT_NAME__Parameter__, this); m_ParameterList.Add(OUTPUT_NAME__Parameter__, OUTPUT_NAME); FILE_NAME = new StringParameter(FILE_NAME__Parameter__, this); m_ParameterList.Add(FILE_NAME__Parameter__, FILE_NAME); READ_AT_BOOTUP = new StringParameter(READ_AT_BOOTUP__Parameter__, this); m_ParameterList.Add(READ_AT_BOOTUP__Parameter__, READ_AT_BOOTUP); INIT.OnDigitalPush.Add(new InputChangeHandlerWrapper(INIT_OnPush_0, true)); SOURCE_FB.OnAnalogChange.Add(new InputChangeHandlerWrapper(SOURCE_FB_OnChange_1, false)); for (uint i = 0; i < 10; i++) { D_FB_IN[i + 1].OnDigitalChange.Add(new InputChangeHandlerWrapper(D_FB_IN_OnChange_2, false)); } for (uint i = 0; i < 10; i++) { A_FB_IN[i + 1].OnAnalogChange.Add(new InputChangeHandlerWrapper(A_FB_IN_OnChange_3, false)); } _SplusNVRAM.PopulateCustomAttributeList(true); NVRAM = _SplusNVRAM; }
public void StringParameter_Mandatory() { var sp = new StringParameter("name", true); Assert.True(sp.IsMandatory); }
public override void LogosSplusInitialize() { _SplusNVRAM = new SplusNVRAM(this); INIT = new Crestron.Logos.SplusObjects.DigitalInput(INIT__DigitalInput__, this); m_DigitalInputList.Add(INIT__DigitalInput__, INIT); READ = new Crestron.Logos.SplusObjects.DigitalInput(READ__DigitalInput__, this); m_DigitalInputList.Add(READ__DigitalInput__, READ); WRITE = new Crestron.Logos.SplusObjects.DigitalInput(WRITE__DigitalInput__, this); m_DigitalInputList.Add(WRITE__DigitalInput__, WRITE); POWER_ON_FB = new Crestron.Logos.SplusObjects.DigitalInput(POWER_ON_FB__DigitalInput__, this); m_DigitalInputList.Add(POWER_ON_FB__DigitalInput__, POWER_ON_FB); MUTE_ON_FB = new Crestron.Logos.SplusObjects.DigitalInput(MUTE_ON_FB__DigitalInput__, this); m_DigitalInputList.Add(MUTE_ON_FB__DigitalInput__, MUTE_ON_FB); USE_LOGIC_FEEDBACK = new Crestron.Logos.SplusObjects.DigitalInput(USE_LOGIC_FEEDBACK__DigitalInput__, this); m_DigitalInputList.Add(USE_LOGIC_FEEDBACK__DigitalInput__, USE_LOGIC_FEEDBACK); D_FB_IN = new InOutArray <DigitalInput>(32, this); for (uint i = 0; i < 32; i++) { D_FB_IN[i + 1] = new Crestron.Logos.SplusObjects.DigitalInput(D_FB_IN__DigitalInput__ + i, D_FB_IN__DigitalInput__, this); m_DigitalInputList.Add(D_FB_IN__DigitalInput__ + i, D_FB_IN[i + 1]); } BUSY = new Crestron.Logos.SplusObjects.DigitalOutput(BUSY__DigitalOutput__, this); m_DigitalOutputList.Add(BUSY__DigitalOutput__, BUSY); POWER_ON = new Crestron.Logos.SplusObjects.DigitalOutput(POWER_ON__DigitalOutput__, this); m_DigitalOutputList.Add(POWER_ON__DigitalOutput__, POWER_ON); POWER_OFF = new Crestron.Logos.SplusObjects.DigitalOutput(POWER_OFF__DigitalOutput__, this); m_DigitalOutputList.Add(POWER_OFF__DigitalOutput__, POWER_OFF); POWER_TOGGLE = new Crestron.Logos.SplusObjects.DigitalOutput(POWER_TOGGLE__DigitalOutput__, this); m_DigitalOutputList.Add(POWER_TOGGLE__DigitalOutput__, POWER_TOGGLE); MUTE_ON = new Crestron.Logos.SplusObjects.DigitalOutput(MUTE_ON__DigitalOutput__, this); m_DigitalOutputList.Add(MUTE_ON__DigitalOutput__, MUTE_ON); MUTE_OFF = new Crestron.Logos.SplusObjects.DigitalOutput(MUTE_OFF__DigitalOutput__, this); m_DigitalOutputList.Add(MUTE_OFF__DigitalOutput__, MUTE_OFF); MUTE_TOGGLE = new Crestron.Logos.SplusObjects.DigitalOutput(MUTE_TOGGLE__DigitalOutput__, this); m_DigitalOutputList.Add(MUTE_TOGGLE__DigitalOutput__, MUTE_TOGGLE); VOLUME_UP = new Crestron.Logos.SplusObjects.DigitalOutput(VOLUME_UP__DigitalOutput__, this); m_DigitalOutputList.Add(VOLUME_UP__DigitalOutput__, VOLUME_UP); VOLUME_DOWN = new Crestron.Logos.SplusObjects.DigitalOutput(VOLUME_DOWN__DigitalOutput__, this); m_DigitalOutputList.Add(VOLUME_DOWN__DigitalOutput__, VOLUME_DOWN); D_OUT = new InOutArray <DigitalOutput>(32, this); for (uint i = 0; i < 32; i++) { D_OUT[i + 1] = new Crestron.Logos.SplusObjects.DigitalOutput(D_OUT__DigitalOutput__ + i, this); m_DigitalOutputList.Add(D_OUT__DigitalOutput__ + i, D_OUT[i + 1]); } INPUT_FB = new Crestron.Logos.SplusObjects.AnalogInput(INPUT_FB__AnalogSerialInput__, this); m_AnalogInputList.Add(INPUT_FB__AnalogSerialInput__, INPUT_FB); VOLUME_FB = new Crestron.Logos.SplusObjects.AnalogInput(VOLUME_FB__AnalogSerialInput__, this); m_AnalogInputList.Add(VOLUME_FB__AnalogSerialInput__, VOLUME_FB); A_FB_IN = new InOutArray <AnalogInput>(32, this); for (uint i = 0; i < 32; i++) { A_FB_IN[i + 1] = new Crestron.Logos.SplusObjects.AnalogInput(A_FB_IN__AnalogSerialInput__ + i, A_FB_IN__AnalogSerialInput__, this); m_AnalogInputList.Add(A_FB_IN__AnalogSerialInput__ + i, A_FB_IN[i + 1]); } INPUT = new Crestron.Logos.SplusObjects.AnalogOutput(INPUT__AnalogSerialOutput__, this); m_AnalogOutputList.Add(INPUT__AnalogSerialOutput__, INPUT); VOLUME = new Crestron.Logos.SplusObjects.AnalogOutput(VOLUME__AnalogSerialOutput__, this); m_AnalogOutputList.Add(VOLUME__AnalogSerialOutput__, VOLUME); A_OUT = new InOutArray <AnalogOutput>(32, this); for (uint i = 0; i < 32; i++) { A_OUT[i + 1] = new Crestron.Logos.SplusObjects.AnalogOutput(A_OUT__AnalogSerialOutput__ + i, this); m_AnalogOutputList.Add(A_OUT__AnalogSerialOutput__ + i, A_OUT[i + 1]); } COMMAND_TX = new Crestron.Logos.SplusObjects.StringOutput(COMMAND_TX__AnalogSerialOutput__, this); m_StringOutputList.Add(COMMAND_TX__AnalogSerialOutput__, COMMAND_TX); PACKET_TX = new Crestron.Logos.SplusObjects.StringOutput(PACKET_TX__AnalogSerialOutput__, this); m_StringOutputList.Add(PACKET_TX__AnalogSerialOutput__, PACKET_TX); DISPLAY_NUMBER = new UShortParameter(DISPLAY_NUMBER__Parameter__, this); m_ParameterList.Add(DISPLAY_NUMBER__Parameter__, DISPLAY_NUMBER); NUMBER_OF_INPUTS = new UShortParameter(NUMBER_OF_INPUTS__Parameter__, this); m_ParameterList.Add(NUMBER_OF_INPUTS__Parameter__, NUMBER_OF_INPUTS); ACCESS_LEVEL = new UShortParameter(ACCESS_LEVEL__Parameter__, this); m_ParameterList.Add(ACCESS_LEVEL__Parameter__, ACCESS_LEVEL); DISPLAY_NAME = new StringParameter(DISPLAY_NAME__Parameter__, this); m_ParameterList.Add(DISPLAY_NAME__Parameter__, DISPLAY_NAME); FILE_NAME = new StringParameter(FILE_NAME__Parameter__, this); m_ParameterList.Add(FILE_NAME__Parameter__, FILE_NAME); READ_AT_BOOTUP = new StringParameter(READ_AT_BOOTUP__Parameter__, this); m_ParameterList.Add(READ_AT_BOOTUP__Parameter__, READ_AT_BOOTUP); INIT.OnDigitalPush.Add(new InputChangeHandlerWrapper(INIT_OnPush_0, true)); READ.OnDigitalChange.Add(new InputChangeHandlerWrapper(READ_OnChange_1, true)); WRITE.OnDigitalChange.Add(new InputChangeHandlerWrapper(WRITE_OnChange_2, true)); POWER_ON_FB.OnDigitalChange.Add(new InputChangeHandlerWrapper(POWER_ON_FB_OnChange_3, false)); MUTE_ON_FB.OnDigitalChange.Add(new InputChangeHandlerWrapper(MUTE_ON_FB_OnChange_4, false)); VOLUME_FB.OnAnalogChange.Add(new InputChangeHandlerWrapper(VOLUME_FB_OnChange_5, false)); INPUT_FB.OnAnalogChange.Add(new InputChangeHandlerWrapper(INPUT_FB_OnChange_6, false)); for (uint i = 0; i < 32; i++) { D_FB_IN[i + 1].OnDigitalChange.Add(new InputChangeHandlerWrapper(D_FB_IN_OnChange_7, false)); } for (uint i = 0; i < 32; i++) { A_FB_IN[i + 1].OnAnalogChange.Add(new InputChangeHandlerWrapper(A_FB_IN_OnChange_8, false)); } USE_LOGIC_FEEDBACK.OnDigitalChange.Add(new InputChangeHandlerWrapper(USE_LOGIC_FEEDBACK_OnChange_9, false)); _SplusNVRAM.PopulateCustomAttributeList(true); NVRAM = _SplusNVRAM; }
public void SendAnswer( RawLineId id, StringParameter parameter, Stream rawData = null, Action <ParsedLineEventArgs> onAnswer = null, bool disposeStream = false, long dataLengthToSend = -1) { this.SendCommandAsyncPrivate(id, "_", parameter, rawData, onAnswer, disposeStream, dataLengthToSend); }
public void AdaptProxyNonProxyTest() { // Arrange var proxyTemplate = _proxyFactory.GetProxyTemplate<Action<int>>(new[] {typeof (IStringParameter)}); var proxy = new StringParameter(); // Act // Assert Assert.Throws<InvalidOperationException>(() => proxyTemplate.AdaptProxy<IStringParameter>(proxy)); }
public Signal(int number, StringParameter labelParameter) { Number = number; LabelParameter = labelParameter; }
public override void LogosSplusInitialize() { _SplusNVRAM = new SplusNVRAM(this); INIT = new Crestron.Logos.SplusObjects.DigitalInput(INIT__DigitalInput__, this); m_DigitalInputList.Add(INIT__DigitalInput__, INIT); READ = new Crestron.Logos.SplusObjects.DigitalInput(READ__DigitalInput__, this); m_DigitalInputList.Add(READ__DigitalInput__, READ); WRITE = new Crestron.Logos.SplusObjects.DigitalInput(WRITE__DigitalInput__, this); m_DigitalInputList.Add(WRITE__DigitalInput__, WRITE); LIST_DIGITAL_FB = new InOutArray <DigitalInput>(50, this); for (uint i = 0; i < 50; i++) { LIST_DIGITAL_FB[i + 1] = new Crestron.Logos.SplusObjects.DigitalInput(LIST_DIGITAL_FB__DigitalInput__ + i, LIST_DIGITAL_FB__DigitalInput__, this); m_DigitalInputList.Add(LIST_DIGITAL_FB__DigitalInput__ + i, LIST_DIGITAL_FB[i + 1]); } D_IN = new InOutArray <DigitalInput>(300, this); for (uint i = 0; i < 300; i++) { D_IN[i + 1] = new Crestron.Logos.SplusObjects.DigitalInput(D_IN__DigitalInput__ + i, D_IN__DigitalInput__, this); m_DigitalInputList.Add(D_IN__DigitalInput__ + i, D_IN[i + 1]); } IN_USE = new Crestron.Logos.SplusObjects.DigitalOutput(IN_USE__DigitalOutput__, this); m_DigitalOutputList.Add(IN_USE__DigitalOutput__, IN_USE); LIST_DIGITAL = new InOutArray <DigitalOutput>(50, this); for (uint i = 0; i < 50; i++) { LIST_DIGITAL[i + 1] = new Crestron.Logos.SplusObjects.DigitalOutput(LIST_DIGITAL__DigitalOutput__ + i, this); m_DigitalOutputList.Add(LIST_DIGITAL__DigitalOutput__ + i, LIST_DIGITAL[i + 1]); } D_OUT = new InOutArray <DigitalOutput>(300, this); for (uint i = 0; i < 300; i++) { D_OUT[i + 1] = new Crestron.Logos.SplusObjects.DigitalOutput(D_OUT__DigitalOutput__ + i, this); m_DigitalOutputList.Add(D_OUT__DigitalOutput__ + i, D_OUT[i + 1]); } LIST_ANALOG_FB = new InOutArray <AnalogInput>(50, this); for (uint i = 0; i < 50; i++) { LIST_ANALOG_FB[i + 1] = new Crestron.Logos.SplusObjects.AnalogInput(LIST_ANALOG_FB__AnalogSerialInput__ + i, LIST_ANALOG_FB__AnalogSerialInput__, this); m_AnalogInputList.Add(LIST_ANALOG_FB__AnalogSerialInput__ + i, LIST_ANALOG_FB[i + 1]); } A_IN = new InOutArray <AnalogInput>(100, this); for (uint i = 0; i < 100; i++) { A_IN[i + 1] = new Crestron.Logos.SplusObjects.AnalogInput(A_IN__AnalogSerialInput__ + i, A_IN__AnalogSerialInput__, this); m_AnalogInputList.Add(A_IN__AnalogSerialInput__ + i, A_IN[i + 1]); } A_OUT = new InOutArray <AnalogOutput>(100, this); for (uint i = 0; i < 100; i++) { A_OUT[i + 1] = new Crestron.Logos.SplusObjects.AnalogOutput(A_OUT__AnalogSerialOutput__ + i, this); m_AnalogOutputList.Add(A_OUT__AnalogSerialOutput__ + i, A_OUT[i + 1]); } LIST_SERIAL_FB = new InOutArray <StringInput>(50, this); for (uint i = 0; i < 50; i++) { LIST_SERIAL_FB[i + 1] = new Crestron.Logos.SplusObjects.StringInput(LIST_SERIAL_FB__AnalogSerialInput__ + i, LIST_SERIAL_FB__AnalogSerialInput__, 255, this); m_StringInputList.Add(LIST_SERIAL_FB__AnalogSerialInput__ + i, LIST_SERIAL_FB[i + 1]); } S_IN = new InOutArray <StringInput>(100, this); for (uint i = 0; i < 100; i++) { S_IN[i + 1] = new Crestron.Logos.SplusObjects.StringInput(S_IN__AnalogSerialInput__ + i, S_IN__AnalogSerialInput__, 255, this); m_StringInputList.Add(S_IN__AnalogSerialInput__ + i, S_IN[i + 1]); } S_OUT = new InOutArray <StringOutput>(100, this); for (uint i = 0; i < 100; i++) { S_OUT[i + 1] = new Crestron.Logos.SplusObjects.StringOutput(S_OUT__AnalogSerialOutput__ + i, this); m_StringOutputList.Add(S_OUT__AnalogSerialOutput__ + i, S_OUT[i + 1]); } SYSTEM_ID = new UShortParameter(SYSTEM_ID__Parameter__, this); m_ParameterList.Add(SYSTEM_ID__Parameter__, SYSTEM_ID); NUMBER_OF_ZONES = new UShortParameter(NUMBER_OF_ZONES__Parameter__, this); m_ParameterList.Add(NUMBER_OF_ZONES__Parameter__, NUMBER_OF_ZONES); ACCESS_LEVEL = new UShortParameter(ACCESS_LEVEL__Parameter__, this); m_ParameterList.Add(ACCESS_LEVEL__Parameter__, ACCESS_LEVEL); SYSTEM_NAME = new StringParameter(SYSTEM_NAME__Parameter__, this); m_ParameterList.Add(SYSTEM_NAME__Parameter__, SYSTEM_NAME); FILE_NAME__DOLLAR__ = new StringParameter(FILE_NAME__DOLLAR____Parameter__, this); m_ParameterList.Add(FILE_NAME__DOLLAR____Parameter__, FILE_NAME__DOLLAR__); READ_AT_BOOTUP = new StringParameter(READ_AT_BOOTUP__Parameter__, this); m_ParameterList.Add(READ_AT_BOOTUP__Parameter__, READ_AT_BOOTUP); INIT.OnDigitalPush.Add(new InputChangeHandlerWrapper(INIT_OnPush_0, true)); READ.OnDigitalPush.Add(new InputChangeHandlerWrapper(READ_OnPush_1, true)); WRITE.OnDigitalPush.Add(new InputChangeHandlerWrapper(WRITE_OnPush_2, true)); for (uint i = 0; i < 300; i++) { D_IN[i + 1].OnDigitalChange.Add(new InputChangeHandlerWrapper(D_IN_OnChange_3, false)); } for (uint i = 0; i < 100; i++) { A_IN[i + 1].OnAnalogChange.Add(new InputChangeHandlerWrapper(A_IN_OnChange_4, false)); } for (uint i = 0; i < 100; i++) { S_IN[i + 1].OnSerialChange.Add(new InputChangeHandlerWrapper(S_IN_OnChange_5, false)); } for (uint i = 0; i < 50; i++) { LIST_DIGITAL_FB[i + 1].OnDigitalChange.Add(new InputChangeHandlerWrapper(LIST_DIGITAL_FB_OnChange_6, false)); } for (uint i = 0; i < 50; i++) { LIST_ANALOG_FB[i + 1].OnAnalogChange.Add(new InputChangeHandlerWrapper(LIST_ANALOG_FB_OnChange_7, false)); } for (uint i = 0; i < 50; i++) { LIST_SERIAL_FB[i + 1].OnSerialChange.Add(new InputChangeHandlerWrapper(LIST_SERIAL_FB_OnChange_8, false)); } _SplusNVRAM.PopulateCustomAttributeList(true); NVRAM = _SplusNVRAM; }
public override void LogosSplusInitialize() { _SplusNVRAM = new SplusNVRAM( this ); ROOM_ON = new InOutArray<DigitalInput>( 25, this ); for( uint i = 0; i < 25; i++ ) { ROOM_ON[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( ROOM_ON__DigitalInput__ + i, ROOM_ON__DigitalInput__, this ); m_DigitalInputList.Add( ROOM_ON__DigitalInput__ + i, ROOM_ON[i+1] ); } ROOM = new InOutArray<StringInput>( 25, this ); for( uint i = 0; i < 25; i++ ) { ROOM[i+1] = new Crestron.Logos.SplusObjects.StringInput( ROOM__AnalogSerialInput__ + i, ROOM__AnalogSerialInput__, 100, this ); m_StringInputList.Add( ROOM__AnalogSerialInput__ + i, ROOM[i+1] ); } OUTPUT = new InOutArray<StringOutput>( 25, this ); for( uint i = 0; i < 25; i++ ) { OUTPUT[i+1] = new Crestron.Logos.SplusObjects.StringOutput( OUTPUT__AnalogSerialOutput__ + i, this ); m_StringOutputList.Add( OUTPUT__AnalogSerialOutput__ + i, OUTPUT[i+1] ); } FONTSIZE = new UShortParameter( FONTSIZE__Parameter__, this ); m_ParameterList.Add( FONTSIZE__Parameter__, FONTSIZE ); ON_COLOR = new StringParameter( ON_COLOR__Parameter__, this ); m_ParameterList.Add( ON_COLOR__Parameter__, ON_COLOR ); OFF_COLOR = new StringParameter( OFF_COLOR__Parameter__, this ); m_ParameterList.Add( OFF_COLOR__Parameter__, OFF_COLOR ); for( uint i = 0; i < 25; i++ ) ROOM_ON[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( ROOM_ON_OnPush_0, false ) ); for( uint i = 0; i < 25; i++ ) ROOM_ON[i+1].OnDigitalRelease.Add( new InputChangeHandlerWrapper( ROOM_ON_OnRelease_1, false ) ); for( uint i = 0; i < 25; i++ ) ROOM[i+1].OnSerialChange.Add( new InputChangeHandlerWrapper( ROOM_OnChange_2, false ) ); _SplusNVRAM.PopulateCustomAttributeList( true ); NVRAM = _SplusNVRAM; }
public override void LogosSplusInitialize() { SocketInfo __socketinfo__ = new SocketInfo(1, this); InitialParametersClass.ResolveHostName = __socketinfo__.ResolveHostName; _SplusNVRAM = new SplusNVRAM(this); _SplusNVRAM.CMD_QUE = new CrestronString[151]; for (uint i = 0; i < 151; i++) { _SplusNVRAM.CMD_QUE [i] = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 50, this); } _SplusNVRAM.GSPOLLCMD = new CrestronString[6]; for (uint i = 0; i < 6; i++) { _SplusNVRAM.GSPOLLCMD [i] = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 50, this); } _SplusNVRAM.GSPOLL_PICTURE = new CrestronString[5]; for (uint i = 0; i < 5; i++) { _SplusNVRAM.GSPOLL_PICTURE [i] = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 50, this); } POLL = new Crestron.Logos.SplusObjects.DigitalInput(POLL__DigitalInput__, this); m_DigitalInputList.Add(POLL__DigitalInput__, POLL); POLL_PICTURE = new Crestron.Logos.SplusObjects.DigitalInput(POLL_PICTURE__DigitalInput__, this); m_DigitalInputList.Add(POLL_PICTURE__DigitalInput__, POLL_PICTURE); INPUT_VALUE = new Crestron.Logos.SplusObjects.AnalogInput(INPUT_VALUE__AnalogSerialInput__, this); m_AnalogInputList.Add(INPUT_VALUE__AnalogSerialInput__, INPUT_VALUE); ASPECT_VALUE = new Crestron.Logos.SplusObjects.AnalogInput(ASPECT_VALUE__AnalogSerialInput__, this); m_AnalogInputList.Add(ASPECT_VALUE__AnalogSerialInput__, ASPECT_VALUE); GAMMA_VALUE = new Crestron.Logos.SplusObjects.AnalogInput(GAMMA_VALUE__AnalogSerialInput__, this); m_AnalogInputList.Add(GAMMA_VALUE__AnalogSerialInput__, GAMMA_VALUE); CONTRAST_IN = new Crestron.Logos.SplusObjects.AnalogInput(CONTRAST_IN__AnalogSerialInput__, this); m_AnalogInputList.Add(CONTRAST_IN__AnalogSerialInput__, CONTRAST_IN); BRIGHTNESS_IN = new Crestron.Logos.SplusObjects.AnalogInput(BRIGHTNESS_IN__AnalogSerialInput__, this); m_AnalogInputList.Add(BRIGHTNESS_IN__AnalogSerialInput__, BRIGHTNESS_IN); SATURATION_IN = new Crestron.Logos.SplusObjects.AnalogInput(SATURATION_IN__AnalogSerialInput__, this); m_AnalogInputList.Add(SATURATION_IN__AnalogSerialInput__, SATURATION_IN); POWER_STATUS = new Crestron.Logos.SplusObjects.AnalogOutput(POWER_STATUS__AnalogSerialOutput__, this); m_AnalogOutputList.Add(POWER_STATUS__AnalogSerialOutput__, POWER_STATUS); INPUT_STATUS = new Crestron.Logos.SplusObjects.AnalogOutput(INPUT_STATUS__AnalogSerialOutput__, this); m_AnalogOutputList.Add(INPUT_STATUS__AnalogSerialOutput__, INPUT_STATUS); PICTUREMUTE_STATUS = new Crestron.Logos.SplusObjects.AnalogOutput(PICTUREMUTE_STATUS__AnalogSerialOutput__, this); m_AnalogOutputList.Add(PICTUREMUTE_STATUS__AnalogSerialOutput__, PICTUREMUTE_STATUS); FREEZE_STATUS = new Crestron.Logos.SplusObjects.AnalogOutput(FREEZE_STATUS__AnalogSerialOutput__, this); m_AnalogOutputList.Add(FREEZE_STATUS__AnalogSerialOutput__, FREEZE_STATUS); ASPECT_STATUS = new Crestron.Logos.SplusObjects.AnalogOutput(ASPECT_STATUS__AnalogSerialOutput__, this); m_AnalogOutputList.Add(ASPECT_STATUS__AnalogSerialOutput__, ASPECT_STATUS); GAMMA_STATUS = new Crestron.Logos.SplusObjects.AnalogOutput(GAMMA_STATUS__AnalogSerialOutput__, this); m_AnalogOutputList.Add(GAMMA_STATUS__AnalogSerialOutput__, GAMMA_STATUS); BRIGHTNESS_LEVEL = new Crestron.Logos.SplusObjects.AnalogOutput(BRIGHTNESS_LEVEL__AnalogSerialOutput__, this); m_AnalogOutputList.Add(BRIGHTNESS_LEVEL__AnalogSerialOutput__, BRIGHTNESS_LEVEL); SATURATION_LEVEL = new Crestron.Logos.SplusObjects.AnalogOutput(SATURATION_LEVEL__AnalogSerialOutput__, this); m_AnalogOutputList.Add(SATURATION_LEVEL__AnalogSerialOutput__, SATURATION_LEVEL); CONTRAST_LEVEL = new Crestron.Logos.SplusObjects.AnalogOutput(CONTRAST_LEVEL__AnalogSerialOutput__, this); m_AnalogOutputList.Add(CONTRAST_LEVEL__AnalogSerialOutput__, CONTRAST_LEVEL); LAMP_HOURS = new Crestron.Logos.SplusObjects.AnalogOutput(LAMP_HOURS__AnalogSerialOutput__, this); m_AnalogOutputList.Add(LAMP_HOURS__AnalogSerialOutput__, LAMP_HOURS); TO_DEVICE__DOLLAR__ = new Crestron.Logos.SplusObjects.StringOutput(TO_DEVICE__DOLLAR____AnalogSerialOutput__, this); m_StringOutputList.Add(TO_DEVICE__DOLLAR____AnalogSerialOutput__, TO_DEVICE__DOLLAR__); QUEUE__DOLLAR__ = new Crestron.Logos.SplusObjects.BufferInput(QUEUE__DOLLAR____AnalogSerialInput__, 150, this); m_StringInputList.Add(QUEUE__DOLLAR____AnalogSerialInput__, QUEUE__DOLLAR__); FROM_DEVICE__DOLLAR__ = new Crestron.Logos.SplusObjects.BufferInput(FROM_DEVICE__DOLLAR____AnalogSerialInput__, 150, this); m_StringInputList.Add(FROM_DEVICE__DOLLAR____AnalogSerialInput__, FROM_DEVICE__DOLLAR__); ADDRESS = new StringParameter(ADDRESS__Parameter__, this); m_ParameterList.Add(ADDRESS__Parameter__, ADDRESS); POLL.OnDigitalPush.Add(new InputChangeHandlerWrapper(POLL_OnPush_0, false)); INPUT_VALUE.OnAnalogChange.Add(new InputChangeHandlerWrapper(INPUT_VALUE_OnChange_1, false)); ASPECT_VALUE.OnAnalogChange.Add(new InputChangeHandlerWrapper(ASPECT_VALUE_OnChange_2, false)); GAMMA_VALUE.OnAnalogChange.Add(new InputChangeHandlerWrapper(GAMMA_VALUE_OnChange_3, false)); CONTRAST_IN.OnAnalogChange.Add(new InputChangeHandlerWrapper(CONTRAST_IN_OnChange_4, false)); BRIGHTNESS_IN.OnAnalogChange.Add(new InputChangeHandlerWrapper(BRIGHTNESS_IN_OnChange_5, false)); SATURATION_IN.OnAnalogChange.Add(new InputChangeHandlerWrapper(SATURATION_IN_OnChange_6, false)); QUEUE__DOLLAR__.OnSerialChange.Add(new InputChangeHandlerWrapper(QUEUE__DOLLAR___OnChange_7, false)); FROM_DEVICE__DOLLAR__.OnSerialChange.Add(new InputChangeHandlerWrapper(FROM_DEVICE__DOLLAR___OnChange_8, false)); _SplusNVRAM.PopulateCustomAttributeList(true); NVRAM = _SplusNVRAM; }
public override void LogosSplusInitialize() { _SplusNVRAM = new SplusNVRAM(this); DIAL = new Crestron.Logos.SplusObjects.DigitalInput(DIAL__DigitalInput__, this); m_DigitalInputList.Add(DIAL__DigitalInput__, DIAL); REDIAL = new Crestron.Logos.SplusObjects.DigitalInput(REDIAL__DigitalInput__, this); m_DigitalInputList.Add(REDIAL__DigitalInput__, REDIAL); CONNECT = new Crestron.Logos.SplusObjects.DigitalInput(CONNECT__DigitalInput__, this); m_DigitalInputList.Add(CONNECT__DigitalInput__, CONNECT); DISCONNECT = new Crestron.Logos.SplusObjects.DigitalInput(DISCONNECT__DigitalInput__, this); m_DigitalInputList.Add(DISCONNECT__DigitalInput__, DISCONNECT); AUTOANSWERTOGGLE = new Crestron.Logos.SplusObjects.DigitalInput(AUTOANSWERTOGGLE__DigitalInput__, this); m_DigitalInputList.Add(AUTOANSWERTOGGLE__DigitalInput__, AUTOANSWERTOGGLE); DNDTOGGLE = new Crestron.Logos.SplusObjects.DigitalInput(DNDTOGGLE__DigitalInput__, this); m_DigitalInputList.Add(DNDTOGGLE__DigitalInput__, DNDTOGGLE); KEYPADDELETE = new Crestron.Logos.SplusObjects.DigitalInput(KEYPADDELETE__DigitalInput__, this); m_DigitalInputList.Add(KEYPADDELETE__DigitalInput__, KEYPADDELETE); KEYPADCLEAR = new Crestron.Logos.SplusObjects.DigitalInput(KEYPADCLEAR__DigitalInput__, this); m_DigitalInputList.Add(KEYPADCLEAR__DigitalInput__, KEYPADCLEAR); KEYPADSTAR = new Crestron.Logos.SplusObjects.DigitalInput(KEYPADSTAR__DigitalInput__, this); m_DigitalInputList.Add(KEYPADSTAR__DigitalInput__, KEYPADSTAR); KEYPADPOUND = new Crestron.Logos.SplusObjects.DigitalInput(KEYPADPOUND__DigitalInput__, this); m_DigitalInputList.Add(KEYPADPOUND__DigitalInput__, KEYPADPOUND); KEYPAD = new InOutArray <DigitalInput>(10, this); for (uint i = 0; i < 10; i++) { KEYPAD[i + 1] = new Crestron.Logos.SplusObjects.DigitalInput(KEYPAD__DigitalInput__ + i, KEYPAD__DigitalInput__, this); m_DigitalInputList.Add(KEYPAD__DigitalInput__ + i, KEYPAD[i + 1]); } SELECTRECENTCALL = new InOutArray <DigitalInput>(5, this); for (uint i = 0; i < 5; i++) { SELECTRECENTCALL[i + 1] = new Crestron.Logos.SplusObjects.DigitalInput(SELECTRECENTCALL__DigitalInput__ + i, SELECTRECENTCALL__DigitalInput__, this); m_DigitalInputList.Add(SELECTRECENTCALL__DigitalInput__ + i, SELECTRECENTCALL[i + 1]); } CONNECTED = new Crestron.Logos.SplusObjects.DigitalOutput(CONNECTED__DigitalOutput__, this); m_DigitalOutputList.Add(CONNECTED__DigitalOutput__, CONNECTED); RINGING = new Crestron.Logos.SplusObjects.DigitalOutput(RINGING__DigitalOutput__, this); m_DigitalOutputList.Add(RINGING__DigitalOutput__, RINGING); DIALING = new Crestron.Logos.SplusObjects.DigitalOutput(DIALING__DigitalOutput__, this); m_DigitalOutputList.Add(DIALING__DigitalOutput__, DIALING); INCOMINGCALL = new Crestron.Logos.SplusObjects.DigitalOutput(INCOMINGCALL__DigitalOutput__, this); m_DigitalOutputList.Add(INCOMINGCALL__DigitalOutput__, INCOMINGCALL); AUTOANSWERSTATUS = new Crestron.Logos.SplusObjects.DigitalOutput(AUTOANSWERSTATUS__DigitalOutput__, this); m_DigitalOutputList.Add(AUTOANSWERSTATUS__DigitalOutput__, AUTOANSWERSTATUS); DNDSTATUS = new Crestron.Logos.SplusObjects.DigitalOutput(DNDSTATUS__DigitalOutput__, this); m_DigitalOutputList.Add(DNDSTATUS__DigitalOutput__, DNDSTATUS); SELECTRECENTCALLINDEX = new Crestron.Logos.SplusObjects.AnalogInput(SELECTRECENTCALLINDEX__AnalogSerialInput__, this); m_AnalogInputList.Add(SELECTRECENTCALLINDEX__AnalogSerialInput__, SELECTRECENTCALLINDEX); CURRENTLYCALLING = new Crestron.Logos.SplusObjects.StringOutput(CURRENTLYCALLING__AnalogSerialOutput__, this); m_StringOutputList.Add(CURRENTLYCALLING__AnalogSerialOutput__, CURRENTLYCALLING); CALLSTATUS = new Crestron.Logos.SplusObjects.StringOutput(CALLSTATUS__AnalogSerialOutput__, this); m_StringOutputList.Add(CALLSTATUS__AnalogSerialOutput__, CALLSTATUS); DIALSTRINGOUT = new Crestron.Logos.SplusObjects.StringOutput(DIALSTRINGOUT__AnalogSerialOutput__, this); m_StringOutputList.Add(DIALSTRINGOUT__AnalogSerialOutput__, DIALSTRINGOUT); RECENTCALLXSIG = new Crestron.Logos.SplusObjects.StringOutput(RECENTCALLXSIG__AnalogSerialOutput__, this); m_StringOutputList.Add(RECENTCALLXSIG__AnalogSerialOutput__, RECENTCALLXSIG); RECENTCALLS = new InOutArray <StringOutput>(5, this); for (uint i = 0; i < 5; i++) { RECENTCALLS[i + 1] = new Crestron.Logos.SplusObjects.StringOutput(RECENTCALLS__AnalogSerialOutput__ + i, this); m_StringOutputList.Add(RECENTCALLS__AnalogSerialOutput__ + i, RECENTCALLS[i + 1]); } COMPONENTNAME = new StringParameter(COMPONENTNAME__Parameter__, this); m_ParameterList.Add(COMPONENTNAME__Parameter__, COMPONENTNAME); DIAL.OnDigitalPush.Add(new InputChangeHandlerWrapper(DIAL_OnPush_0, false)); REDIAL.OnDigitalPush.Add(new InputChangeHandlerWrapper(REDIAL_OnPush_1, false)); CONNECT.OnDigitalPush.Add(new InputChangeHandlerWrapper(CONNECT_OnPush_2, false)); DISCONNECT.OnDigitalPush.Add(new InputChangeHandlerWrapper(DISCONNECT_OnPush_3, false)); AUTOANSWERTOGGLE.OnDigitalPush.Add(new InputChangeHandlerWrapper(AUTOANSWERTOGGLE_OnPush_4, false)); DNDTOGGLE.OnDigitalPush.Add(new InputChangeHandlerWrapper(DNDTOGGLE_OnPush_5, false)); for (uint i = 0; i < 10; i++) { KEYPAD[i + 1].OnDigitalPush.Add(new InputChangeHandlerWrapper(KEYPAD_OnPush_6, true)); } KEYPADDELETE.OnDigitalPush.Add(new InputChangeHandlerWrapper(KEYPADDELETE_OnPush_7, false)); KEYPADCLEAR.OnDigitalPush.Add(new InputChangeHandlerWrapper(KEYPADCLEAR_OnPush_8, false)); KEYPADSTAR.OnDigitalPush.Add(new InputChangeHandlerWrapper(KEYPADSTAR_OnPush_9, false)); KEYPADPOUND.OnDigitalPush.Add(new InputChangeHandlerWrapper(KEYPADPOUND_OnPush_10, false)); for (uint i = 0; i < 5; i++) { SELECTRECENTCALL[i + 1].OnDigitalPush.Add(new InputChangeHandlerWrapper(SELECTRECENTCALL_OnPush_11, true)); } SELECTRECENTCALLINDEX.OnAnalogChange.Add(new InputChangeHandlerWrapper(SELECTRECENTCALLINDEX_OnChange_12, true)); _SplusNVRAM.PopulateCustomAttributeList(true); NVRAM = _SplusNVRAM; }
/// <summary> /// Copy constructor. /// </summary> /// <param name="stringParameter">Serializable parameter to copy.</param> public StringParameter(StringParameter stringParameter) : base(stringParameter) { }
object IElementVisitor <object, object> .Visit(StringParameter element, object state) { _onParameter?.Invoke(element); return(null); }
public override void LogosSplusInitialize() { SocketInfo __socketinfo__ = new SocketInfo( 1, this ); InitialParametersClass.ResolveHostName = __socketinfo__.ResolveHostName; _SplusNVRAM = new SplusNVRAM( this ); _SplusNVRAM.TEMPSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 40, this ); _SplusNVRAM.DELAYSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 5, this ); _SplusNVRAM.DELAYSENDSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 4, this ); SUBSCRIBE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( SUBSCRIBE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( SUBSCRIBE__DOLLAR____DigitalInput__, SUBSCRIBE__DOLLAR__ ); UNSUBSCRIBE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( UNSUBSCRIBE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( UNSUBSCRIBE__DOLLAR____DigitalInput__, UNSUBSCRIBE__DOLLAR__ ); DELAY__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( DELAY__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( DELAY__DOLLAR____AnalogSerialInput__, DELAY__DOLLAR__ ); DELAY_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( DELAY_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( DELAY_FB__DOLLAR____AnalogSerialOutput__, DELAY_FB__DOLLAR__ ); TX__DOLLAR__ = new Crestron.Logos.SplusObjects.StringOutput( TX__DOLLAR____AnalogSerialOutput__, this ); m_StringOutputList.Add( TX__DOLLAR____AnalogSerialOutput__, TX__DOLLAR__ ); RX__DOLLAR__ = new Crestron.Logos.SplusObjects.BufferInput( RX__DOLLAR____AnalogSerialInput__, 400, this ); m_StringInputList.Add( RX__DOLLAR____AnalogSerialInput__, RX__DOLLAR__ ); OBJECTID__DOLLAR__ = new StringParameter( OBJECTID__DOLLAR____Parameter__, this ); m_ParameterList.Add( OBJECTID__DOLLAR____Parameter__, OBJECTID__DOLLAR__ ); DELAY__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( DELAY__DOLLAR___OnChange_0, false ) ); SUBSCRIBE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( SUBSCRIBE__DOLLAR___OnPush_1, false ) ); UNSUBSCRIBE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( UNSUBSCRIBE__DOLLAR___OnPush_2, false ) ); RX__DOLLAR__.OnSerialChange.Add( new InputChangeHandlerWrapper( RX__DOLLAR___OnChange_3, false ) ); _SplusNVRAM.PopulateCustomAttributeList( true ); NVRAM = _SplusNVRAM; }
public override void LogosSplusInitialize() { _SplusNVRAM = new SplusNVRAM(this); _SPACEID = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 50, this); _SPACENAME = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this); REGISTERSPACE = new Crestron.Logos.SplusObjects.DigitalInput(REGISTERSPACE__DigitalInput__, this); m_DigitalInputList.Add(REGISTERSPACE__DigitalInput__, REGISTERSPACE); SUPPORTSKEYPADACTIONS = new Crestron.Logos.SplusObjects.DigitalInput(SUPPORTSKEYPADACTIONS__DigitalInput__, this); m_DigitalInputList.Add(SUPPORTSKEYPADACTIONS__DigitalInput__, SUPPORTSKEYPADACTIONS); SUPPORTSOCCUPANCYACTIONS = new Crestron.Logos.SplusObjects.DigitalInput(SUPPORTSOCCUPANCYACTIONS__DigitalInput__, this); m_DigitalInputList.Add(SUPPORTSOCCUPANCYACTIONS__DigitalInput__, SUPPORTSOCCUPANCYACTIONS); SUPPORTSPHOTOCELLACTIONS = new Crestron.Logos.SplusObjects.DigitalInput(SUPPORTSPHOTOCELLACTIONS__DigitalInput__, this); m_DigitalInputList.Add(SUPPORTSPHOTOCELLACTIONS__DigitalInput__, SUPPORTSPHOTOCELLACTIONS); KEYPAD_ENABLE = new Crestron.Logos.SplusObjects.DigitalOutput(KEYPAD_ENABLE__DigitalOutput__, this); m_DigitalOutputList.Add(KEYPAD_ENABLE__DigitalOutput__, KEYPAD_ENABLE); KEYPAD_DISABLE = new Crestron.Logos.SplusObjects.DigitalOutput(KEYPAD_DISABLE__DigitalOutput__, this); m_DigitalOutputList.Add(KEYPAD_DISABLE__DigitalOutput__, KEYPAD_DISABLE); OCCUPANCY_SETOCCUPANCY = new Crestron.Logos.SplusObjects.DigitalOutput(OCCUPANCY_SETOCCUPANCY__DigitalOutput__, this); m_DigitalOutputList.Add(OCCUPANCY_SETOCCUPANCY__DigitalOutput__, OCCUPANCY_SETOCCUPANCY); OCCUPANCY_SETVACANCY = new Crestron.Logos.SplusObjects.DigitalOutput(OCCUPANCY_SETVACANCY__DigitalOutput__, this); m_DigitalOutputList.Add(OCCUPANCY_SETVACANCY__DigitalOutput__, OCCUPANCY_SETVACANCY); OCCUPANCY_SETDISABLED = new Crestron.Logos.SplusObjects.DigitalOutput(OCCUPANCY_SETDISABLED__DigitalOutput__, this); m_DigitalOutputList.Add(OCCUPANCY_SETDISABLED__DigitalOutput__, OCCUPANCY_SETDISABLED); PHOTOCELL_ENABLE = new Crestron.Logos.SplusObjects.DigitalOutput(PHOTOCELL_ENABLE__DigitalOutput__, this); m_DigitalOutputList.Add(PHOTOCELL_ENABLE__DigitalOutput__, PHOTOCELL_ENABLE); PHOTOCELL_DISABLE = new Crestron.Logos.SplusObjects.DigitalOutput(PHOTOCELL_DISABLE__DigitalOutput__, this); m_DigitalOutputList.Add(PHOTOCELL_DISABLE__DigitalOutput__, PHOTOCELL_DISABLE); LOCALACTION = new InOutArray <DigitalOutput>(50, this); for (uint i = 0; i < 50; i++) { LOCALACTION[i + 1] = new Crestron.Logos.SplusObjects.DigitalOutput(LOCALACTION__DigitalOutput__ + i, this); m_DigitalOutputList.Add(LOCALACTION__DigitalOutput__ + i, LOCALACTION[i + 1]); } RECALLSCENE__POUND__ = new Crestron.Logos.SplusObjects.AnalogOutput(RECALLSCENE__POUND____AnalogSerialOutput__, this); m_AnalogOutputList.Add(RECALLSCENE__POUND____AnalogSerialOutput__, RECALLSCENE__POUND__); SPACEID_OVERRIDE = new Crestron.Logos.SplusObjects.StringInput(SPACEID_OVERRIDE__AnalogSerialInput__, 50, this); m_StringInputList.Add(SPACEID_OVERRIDE__AnalogSerialInput__, SPACEID_OVERRIDE); SPACENAME_OVERRIDE = new Crestron.Logos.SplusObjects.StringInput(SPACENAME_OVERRIDE__AnalogSerialInput__, 100, this); m_StringInputList.Add(SPACENAME_OVERRIDE__AnalogSerialInput__, SPACENAME_OVERRIDE); SCENENAME0_OVERRIDE = new Crestron.Logos.SplusObjects.StringInput(SCENENAME0_OVERRIDE__AnalogSerialInput__, 50, this); m_StringInputList.Add(SCENENAME0_OVERRIDE__AnalogSerialInput__, SCENENAME0_OVERRIDE); SCENENAME_OVERRIDE = new InOutArray <StringInput>(10, this); for (uint i = 0; i < 10; i++) { SCENENAME_OVERRIDE[i + 1] = new Crestron.Logos.SplusObjects.StringInput(SCENENAME_OVERRIDE__AnalogSerialInput__ + i, SCENENAME_OVERRIDE__AnalogSerialInput__, 50, this); m_StringInputList.Add(SCENENAME_OVERRIDE__AnalogSerialInput__ + i, SCENENAME_OVERRIDE[i + 1]); } SPACEID = new StringParameter(SPACEID__Parameter__, this); m_ParameterList.Add(SPACEID__Parameter__, SPACEID); SPACENAME = new StringParameter(SPACENAME__Parameter__, this); m_ParameterList.Add(SPACENAME__Parameter__, SPACENAME); SCENENAME0 = new StringParameter(SCENENAME0__Parameter__, this); m_ParameterList.Add(SCENENAME0__Parameter__, SCENENAME0); SCENENAME = new InOutArray <StringParameter>(10, this); for (uint i = 0; i < 10; i++) { SCENENAME[i + 1] = new StringParameter(SCENENAME__Parameter__ + i, SCENENAME__Parameter__, this); m_ParameterList.Add(SCENENAME__Parameter__ + i, SCENENAME[i + 1]); } LOCALACTIONNAME = new InOutArray <StringParameter>(50, this); for (uint i = 0; i < 50; i++) { LOCALACTIONNAME[i + 1] = new StringParameter(LOCALACTIONNAME__Parameter__ + i, LOCALACTIONNAME__Parameter__, this); m_ParameterList.Add(LOCALACTIONNAME__Parameter__ + i, LOCALACTIONNAME[i + 1]); } REGISTERSPACE.OnDigitalPush.Add(new InputChangeHandlerWrapper(REGISTERSPACE_OnPush_0, false)); SPACEID_OVERRIDE.OnSerialChange.Add(new InputChangeHandlerWrapper(SPACEID_OVERRIDE_OnChange_1, false)); SPACENAME_OVERRIDE.OnSerialChange.Add(new InputChangeHandlerWrapper(SPACENAME_OVERRIDE_OnChange_2, false)); SCENENAME0_OVERRIDE.OnSerialChange.Add(new InputChangeHandlerWrapper(SCENENAME0_OVERRIDE_OnChange_3, false)); for (uint i = 0; i < 10; i++) { SCENENAME_OVERRIDE[i + 1].OnSerialChange.Add(new InputChangeHandlerWrapper(SCENENAME_OVERRIDE_OnChange_4, false)); } _SplusNVRAM.PopulateCustomAttributeList(true); NVRAM = _SplusNVRAM; }
public override void LogosSplusInitialize() { SocketInfo __socketinfo__ = new SocketInfo( 1, this ); InitialParametersClass.ResolveHostName = __socketinfo__.ResolveHostName; _SplusNVRAM = new SplusNVRAM( this ); _SplusNVRAM.RETURNSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 4, this ); _SplusNVRAM.TEMPSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 40, this ); MUTE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( MUTE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( MUTE__DOLLAR____DigitalInput__, MUTE__DOLLAR__ ); UNMUTE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( UNMUTE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( UNMUTE__DOLLAR____DigitalInput__, UNMUTE__DOLLAR__ ); POLARITYON__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( POLARITYON__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( POLARITYON__DOLLAR____DigitalInput__, POLARITYON__DOLLAR__ ); POLARITYOFF__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( POLARITYOFF__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( POLARITYOFF__DOLLAR____DigitalInput__, POLARITYOFF__DOLLAR__ ); ROUTETOGROUP1ON__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( ROUTETOGROUP1ON__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( ROUTETOGROUP1ON__DOLLAR____DigitalInput__, ROUTETOGROUP1ON__DOLLAR__ ); ROUTETOGROUP2ON__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( ROUTETOGROUP2ON__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( ROUTETOGROUP2ON__DOLLAR____DigitalInput__, ROUTETOGROUP2ON__DOLLAR__ ); ROUTETOGROUP3ON__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( ROUTETOGROUP3ON__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( ROUTETOGROUP3ON__DOLLAR____DigitalInput__, ROUTETOGROUP3ON__DOLLAR__ ); ROUTETOGROUP4ON__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( ROUTETOGROUP4ON__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( ROUTETOGROUP4ON__DOLLAR____DigitalInput__, ROUTETOGROUP4ON__DOLLAR__ ); ROUTETOGROUP1OFF__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( ROUTETOGROUP1OFF__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( ROUTETOGROUP1OFF__DOLLAR____DigitalInput__, ROUTETOGROUP1OFF__DOLLAR__ ); ROUTETOGROUP2OFF__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( ROUTETOGROUP2OFF__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( ROUTETOGROUP2OFF__DOLLAR____DigitalInput__, ROUTETOGROUP2OFF__DOLLAR__ ); ROUTETOGROUP3OFF__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( ROUTETOGROUP3OFF__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( ROUTETOGROUP3OFF__DOLLAR____DigitalInput__, ROUTETOGROUP3OFF__DOLLAR__ ); ROUTETOGROUP4OFF__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( ROUTETOGROUP4OFF__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( ROUTETOGROUP4OFF__DOLLAR____DigitalInput__, ROUTETOGROUP4OFF__DOLLAR__ ); SOLOON__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( SOLOON__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( SOLOON__DOLLAR____DigitalInput__, SOLOON__DOLLAR__ ); SOLOOFF__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( SOLOOFF__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( SOLOOFF__DOLLAR____DigitalInput__, SOLOOFF__DOLLAR__ ); SUBSCRIBE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( SUBSCRIBE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( SUBSCRIBE__DOLLAR____DigitalInput__, SUBSCRIBE__DOLLAR__ ); UNSUBSCRIBE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( UNSUBSCRIBE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( UNSUBSCRIBE__DOLLAR____DigitalInput__, UNSUBSCRIBE__DOLLAR__ ); MUTE_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( MUTE_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( MUTE_FB__DOLLAR____DigitalOutput__, MUTE_FB__DOLLAR__ ); POLARITY_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( POLARITY_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( POLARITY_FB__DOLLAR____DigitalOutput__, POLARITY_FB__DOLLAR__ ); ROUTETOGROUP1_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( ROUTETOGROUP1_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( ROUTETOGROUP1_FB__DOLLAR____DigitalOutput__, ROUTETOGROUP1_FB__DOLLAR__ ); ROUTETOGROUP2_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( ROUTETOGROUP2_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( ROUTETOGROUP2_FB__DOLLAR____DigitalOutput__, ROUTETOGROUP2_FB__DOLLAR__ ); ROUTETOGROUP3_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( ROUTETOGROUP3_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( ROUTETOGROUP3_FB__DOLLAR____DigitalOutput__, ROUTETOGROUP3_FB__DOLLAR__ ); ROUTETOGROUP4_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( ROUTETOGROUP4_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( ROUTETOGROUP4_FB__DOLLAR____DigitalOutput__, ROUTETOGROUP4_FB__DOLLAR__ ); SOLO_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( SOLO_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( SOLO_FB__DOLLAR____DigitalOutput__, SOLO_FB__DOLLAR__ ); GAIN__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( GAIN__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( GAIN__DOLLAR____AnalogSerialInput__, GAIN__DOLLAR__ ); PAN__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( PAN__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( PAN__DOLLAR____AnalogSerialInput__, PAN__DOLLAR__ ); INPUT__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( INPUT__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( INPUT__DOLLAR____AnalogSerialInput__, INPUT__DOLLAR__ ); AUX__DOLLAR__ = new InOutArray<AnalogInput>( 4, this ); for( uint i = 0; i < 4; i++ ) { AUX__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.AnalogInput( AUX__DOLLAR____AnalogSerialInput__ + i, AUX__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( AUX__DOLLAR____AnalogSerialInput__ + i, AUX__DOLLAR__[i+1] ); } GAIN_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( GAIN_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( GAIN_FB__DOLLAR____AnalogSerialOutput__, GAIN_FB__DOLLAR__ ); PAN_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( PAN_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( PAN_FB__DOLLAR____AnalogSerialOutput__, PAN_FB__DOLLAR__ ); AUX_FB__DOLLAR__ = new InOutArray<AnalogOutput>( 4, this ); for( uint i = 0; i < 4; i++ ) { AUX_FB__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.AnalogOutput( AUX_FB__DOLLAR____AnalogSerialOutput__ + i, this ); m_AnalogOutputList.Add( AUX_FB__DOLLAR____AnalogSerialOutput__ + i, AUX_FB__DOLLAR__[i+1] ); } TX__DOLLAR__ = new Crestron.Logos.SplusObjects.StringOutput( TX__DOLLAR____AnalogSerialOutput__, this ); m_StringOutputList.Add( TX__DOLLAR____AnalogSerialOutput__, TX__DOLLAR__ ); RX__DOLLAR__ = new Crestron.Logos.SplusObjects.BufferInput( RX__DOLLAR____AnalogSerialInput__, 400, this ); m_StringInputList.Add( RX__DOLLAR____AnalogSerialInput__, RX__DOLLAR__ ); OBJECTID__DOLLAR__ = new StringParameter( OBJECTID__DOLLAR____Parameter__, this ); m_ParameterList.Add( OBJECTID__DOLLAR____Parameter__, OBJECTID__DOLLAR__ ); __SPLS_TMPVAR__WAITLABEL_0___Callback = new WaitFunction( __SPLS_TMPVAR__WAITLABEL_0___CallbackFn ); MUTE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( MUTE__DOLLAR___OnPush_0, false ) ); UNMUTE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( UNMUTE__DOLLAR___OnPush_1, false ) ); POLARITYON__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( POLARITYON__DOLLAR___OnPush_2, false ) ); POLARITYOFF__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( POLARITYOFF__DOLLAR___OnPush_3, false ) ); SOLOON__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( SOLOON__DOLLAR___OnPush_4, false ) ); SOLOOFF__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( SOLOOFF__DOLLAR___OnPush_5, false ) ); ROUTETOGROUP1ON__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( ROUTETOGROUP1ON__DOLLAR___OnPush_6, false ) ); ROUTETOGROUP2ON__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( ROUTETOGROUP2ON__DOLLAR___OnPush_7, false ) ); ROUTETOGROUP3ON__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( ROUTETOGROUP3ON__DOLLAR___OnPush_8, false ) ); ROUTETOGROUP4ON__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( ROUTETOGROUP4ON__DOLLAR___OnPush_9, false ) ); ROUTETOGROUP1OFF__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( ROUTETOGROUP1OFF__DOLLAR___OnPush_10, false ) ); ROUTETOGROUP2OFF__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( ROUTETOGROUP2OFF__DOLLAR___OnPush_11, false ) ); ROUTETOGROUP3OFF__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( ROUTETOGROUP3OFF__DOLLAR___OnPush_12, false ) ); ROUTETOGROUP4OFF__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( ROUTETOGROUP4OFF__DOLLAR___OnPush_13, false ) ); GAIN__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( GAIN__DOLLAR___OnChange_14, false ) ); PAN__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( PAN__DOLLAR___OnChange_15, false ) ); for( uint i = 0; i < 4; i++ ) AUX__DOLLAR__[i+1].OnAnalogChange.Add( new InputChangeHandlerWrapper( AUX__DOLLAR___OnChange_16, false ) ); SUBSCRIBE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( SUBSCRIBE__DOLLAR___OnPush_17, false ) ); UNSUBSCRIBE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( UNSUBSCRIBE__DOLLAR___OnPush_18, false ) ); INPUT__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( INPUT__DOLLAR___OnChange_19, false ) ); RX__DOLLAR__.OnSerialChange.Add( new InputChangeHandlerWrapper( RX__DOLLAR___OnChange_20, false ) ); _SplusNVRAM.PopulateCustomAttributeList( true ); NVRAM = _SplusNVRAM; }
private void CreateDeviceParameterCollection() { //ParameterCollection p = this.Parameters;//new ParameterCollection(); //p.Add(i); var g = new Group("name", "Text"); IParameter i = new StringParameter("name", "value", 0); //i.ParameterUI = new StringParameterUI(); g.Parameters.Add(i); //i = new StringParameter ("ADE", ypeof(Xdgk.Common.ADEStatus),Xdgk.Common.ADEStatus.Add, -1); //i.ParameterUI = new EnumParameterUI(); //g.Parameters.Add(i); g.Parameters.Sort(); Groups.Add(g); /* * i.Name = "ppp"; * i.Value = 123; * i.Description = "deeded"; * i.OrderNumber = 1; * i.Unit = Unit.FindByName(Unit.M3PerHour); * i.ValueType = typeof(int); * p.Add(i); * * i = new Parameter(); * i.Name = "ppp2"; * i.Value = 123.345; * i.Description = "deeded"; * i.OrderNumber = 2; * i.Unit = Unit.FindByName(Unit.M3PerHour); * i.ValueType = typeof(float); * p.Add(i); * * i = new Parameter(); * i.Name = "ppp3"; * i.Value = Xdgk.Common.ADEStatus.Add; * i.Description = "deeded"; * i.OrderNumber = 3; * i.Unit = Unit.FindByName(Unit.M3PerHour); * i.ValueType = typeof(Xdgk.Common.ADEStatus); * p.Add(i); * * i = new Parameter(); * i.Name = "ppp3"; * i.Value = Xdgk.Common.ADEStatus.Edit; * i.Description = "deeded"; * i.OrderNumber = 3; * i.Unit = Unit.FindByName(Unit.M3PerHour); * i.ValueType = typeof(Xdgk.Common.ADEStatus); * p.Add(i); * * i = new Parameter(); * i.Name = "ppp3"; * i.Value = Xdgk.Common.ADEStatus.Add; * i.Description = "deeded"; * i.OrderNumber = 3; * i.Unit = Unit.FindByName(Unit.Hour); * i.ValueType = typeof(Xdgk.Common.ADEStatus); * p.Add(i); */ //return p; }
public override void LogosSplusInitialize() { _SplusNVRAM = new SplusNVRAM(this); __ITEM_DEVICE__ = new ushort[49]; __DEVICE_ITEM__ = new ushort[100]; __DEVICES__ = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 99, this); INITIALIZE = new Crestron.Logos.SplusObjects.DigitalInput(INITIALIZE__DigitalInput__, this); m_DigitalInputList.Add(INITIALIZE__DigitalInput__, INITIALIZE); DEVICE_DEFAULT_SELECT = new Crestron.Logos.SplusObjects.DigitalInput(DEVICE_DEFAULT_SELECT__DigitalInput__, this); m_DigitalInputList.Add(DEVICE_DEFAULT_SELECT__DigitalInput__, DEVICE_DEFAULT_SELECT); ITEM_SELECT = new InOutArray <DigitalInput>(48, this); for (uint i = 0; i < 48; i++) { ITEM_SELECT[i + 1] = new Crestron.Logos.SplusObjects.DigitalInput(ITEM_SELECT__DigitalInput__ + i, ITEM_SELECT__DigitalInput__, this); m_DigitalInputList.Add(ITEM_SELECT__DigitalInput__ + i, ITEM_SELECT[i + 1]); } ITEM_MATCHES = new InOutArray <DigitalOutput>(48, this); for (uint i = 0; i < 48; i++) { ITEM_MATCHES[i + 1] = new Crestron.Logos.SplusObjects.DigitalOutput(ITEM_MATCHES__DigitalOutput__ + i, this); m_DigitalOutputList.Add(ITEM_MATCHES__DigitalOutput__ + i, ITEM_MATCHES[i + 1]); } DEVICE_IS = new Crestron.Logos.SplusObjects.AnalogInput(DEVICE_IS__AnalogSerialInput__, this); m_AnalogInputList.Add(DEVICE_IS__AnalogSerialInput__, DEVICE_IS); DEVICE_DEFAULT = new Crestron.Logos.SplusObjects.AnalogInput(DEVICE_DEFAULT__AnalogSerialInput__, this); m_AnalogInputList.Add(DEVICE_DEFAULT__AnalogSerialInput__, DEVICE_DEFAULT); DEVICE_ICON_IS = new InOutArray <AnalogInput>(99, this); for (uint i = 0; i < 99; i++) { DEVICE_ICON_IS[i + 1] = new Crestron.Logos.SplusObjects.AnalogInput(DEVICE_ICON_IS__AnalogSerialInput__ + i, DEVICE_ICON_IS__AnalogSerialInput__, this); m_AnalogInputList.Add(DEVICE_ICON_IS__AnalogSerialInput__ + i, DEVICE_ICON_IS[i + 1]); } ITEMS_SIZE = new Crestron.Logos.SplusObjects.AnalogOutput(ITEMS_SIZE__AnalogSerialOutput__, this); m_AnalogOutputList.Add(ITEMS_SIZE__AnalogSerialOutput__, ITEMS_SIZE); ITEM_ICON_IS = new InOutArray <AnalogOutput>(48, this); for (uint i = 0; i < 48; i++) { ITEM_ICON_IS[i + 1] = new Crestron.Logos.SplusObjects.AnalogOutput(ITEM_ICON_IS__AnalogSerialOutput__ + i, this); m_AnalogOutputList.Add(ITEM_ICON_IS__AnalogSerialOutput__ + i, ITEM_ICON_IS[i + 1]); } DEFAULT_AVAILABLE_DEVICES = new Crestron.Logos.SplusObjects.StringInput(DEFAULT_AVAILABLE_DEVICES__AnalogSerialInput__, 99, this); m_StringInputList.Add(DEFAULT_AVAILABLE_DEVICES__AnalogSerialInput__, DEFAULT_AVAILABLE_DEVICES); DEVICE_NAME_IS = new InOutArray <StringInput>(99, this); for (uint i = 0; i < 99; i++) { DEVICE_NAME_IS[i + 1] = new Crestron.Logos.SplusObjects.StringInput(DEVICE_NAME_IS__AnalogSerialInput__ + i, DEVICE_NAME_IS__AnalogSerialInput__, 48, this); m_StringInputList.Add(DEVICE_NAME_IS__AnalogSerialInput__ + i, DEVICE_NAME_IS[i + 1]); } DEVICE_DESCRIPTION_IS = new InOutArray <StringInput>(99, this); for (uint i = 0; i < 99; i++) { DEVICE_DESCRIPTION_IS[i + 1] = new Crestron.Logos.SplusObjects.StringInput(DEVICE_DESCRIPTION_IS__AnalogSerialInput__ + i, DEVICE_DESCRIPTION_IS__AnalogSerialInput__, 48, this); m_StringInputList.Add(DEVICE_DESCRIPTION_IS__AnalogSerialInput__ + i, DEVICE_DESCRIPTION_IS[i + 1]); } DEVICE_SET = new Crestron.Logos.SplusObjects.StringOutput(DEVICE_SET__AnalogSerialOutput__, this); m_StringOutputList.Add(DEVICE_SET__AnalogSerialOutput__, DEVICE_SET); ITEM_NAME_IS = new InOutArray <StringOutput>(48, this); for (uint i = 0; i < 48; i++) { ITEM_NAME_IS[i + 1] = new Crestron.Logos.SplusObjects.StringOutput(ITEM_NAME_IS__AnalogSerialOutput__ + i, this); m_StringOutputList.Add(ITEM_NAME_IS__AnalogSerialOutput__ + i, ITEM_NAME_IS[i + 1]); } ITEM_DESCRIPTION_IS = new InOutArray <StringOutput>(48, this); for (uint i = 0; i < 48; i++) { ITEM_DESCRIPTION_IS[i + 1] = new Crestron.Logos.SplusObjects.StringOutput(ITEM_DESCRIPTION_IS__AnalogSerialOutput__ + i, this); m_StringOutputList.Add(ITEM_DESCRIPTION_IS__AnalogSerialOutput__ + i, ITEM_DESCRIPTION_IS[i + 1]); } DEVICE_TYPE = new UShortParameter(DEVICE_TYPE__Parameter__, this); m_ParameterList.Add(DEVICE_TYPE__Parameter__, DEVICE_TYPE); DEVICES = new StringParameter(DEVICES__Parameter__, this); m_ParameterList.Add(DEVICES__Parameter__, DEVICES); for (uint i = 0; i < 48; i++) { ITEM_SELECT[i + 1].OnDigitalPush.Add(new InputChangeHandlerWrapper(ITEM_SELECT_OnPush_0, false)); } DEVICE_DEFAULT_SELECT.OnDigitalPush.Add(new InputChangeHandlerWrapper(DEVICE_DEFAULT_SELECT_OnPush_1, false)); DEVICE_IS.OnAnalogChange.Add(new InputChangeHandlerWrapper(DEVICE_IS_OnChange_2, false)); DEVICE_DEFAULT.OnAnalogChange.Add(new InputChangeHandlerWrapper(DEVICE_DEFAULT_OnChange_3, false)); for (uint i = 0; i < 99; i++) { DEVICE_ICON_IS[i + 1].OnAnalogChange.Add(new InputChangeHandlerWrapper(DEVICE_ICON_IS_OnChange_4, false)); } for (uint i = 0; i < 99; i++) { DEVICE_DESCRIPTION_IS[i + 1].OnSerialChange.Add(new InputChangeHandlerWrapper(DEVICE_DESCRIPTION_IS_OnChange_5, false)); } INITIALIZE.OnDigitalPush.Add(new InputChangeHandlerWrapper(INITIALIZE_OnPush_6, false)); _SplusNVRAM.PopulateCustomAttributeList(true); NVRAM = _SplusNVRAM; }
public void NegativeProbabilities() { var parameter = new StringParameter(); var optionsArray = new [] { ("option1", 1f), ("option1", -1f) };
public void ImplicitConversion() { var intp = new Int32Parameter("intp").With(p => p.DefaultValue(22)); var intValue = intp * 4; Assert.AreEqual(88, intValue); var stringp = new StringParameter("stringp").With(p => p.DefaultValue("Hello world")); var stringValue = stringp + "!"; Assert.AreEqual("Hello world!", stringValue); }
public void StringParameter_NotMandatory() { var sp = new StringParameter("name", false); Assert.False(sp.IsMandatory); }
public async Task <ActionResult <IEnumerable <Operation> > > GetOperations( [Required][Address] string address, string type, AccountParameter initiator, AccountParameter sender, AccountParameter target, AccountParameter prevDelegate, AccountParameter newDelegate, AccountParameter contractManager, AccountParameter contractDelegate, AccountParameter originatedContract, AccountParameter accuser, AccountParameter offender, AccountParameter baker, Int32Parameter level, DateTimeParameter timestamp, StringParameter entrypoint, JsonParameter parameter, StringParameter parameters, BoolParameter hasInternals, OperationStatusParameter status, SortMode sort = SortMode.Descending, int?lastId = null, [Range(0, 1000)] int limit = 100, MichelineFormat micheline = MichelineFormat.Json, Symbols quote = Symbols.None, DateTimeOffset?from = null, DateTimeOffset?to = null) { #region validate if (initiator != null) { if (initiator.Eqx != null) { return(new BadRequest($"{nameof(initiator)}.eqx", "This parameter doesn't support .eqx mode.")); } if (initiator.Nex != null) { return(new BadRequest($"{nameof(initiator)}.eqx", "This parameter doesn't support .eqx mode.")); } } if (sender != null) { if (sender.Eqx != null) { return(new BadRequest($"{nameof(sender)}.eqx", "This parameter doesn't support .eqx mode.")); } if (sender.Nex != null) { return(new BadRequest($"{nameof(sender)}.eqx", "This parameter doesn't support .eqx mode.")); } } if (target != null) { if (target.Eqx != null) { return(new BadRequest($"{nameof(target)}.eqx", "This parameter doesn't support .eqx mode.")); } if (target.Nex != null) { return(new BadRequest($"{nameof(target)}.eqx", "This parameter doesn't support .eqx mode.")); } } if (prevDelegate != null) { if (prevDelegate.Eqx != null) { return(new BadRequest($"{nameof(prevDelegate)}.eqx", "This parameter doesn't support .eqx mode.")); } if (prevDelegate.Nex != null) { return(new BadRequest($"{nameof(prevDelegate)}.nex", "This parameter doesn't support .nex mode.")); } } if (newDelegate != null) { if (newDelegate.Eqx != null) { return(new BadRequest($"{nameof(newDelegate)}.eqx", "This parameter doesn't support .eqx mode.")); } if (newDelegate.Nex != null) { return(new BadRequest($"{nameof(newDelegate)}.nex", "This parameter doesn't support .nex mode.")); } } if (contractManager != null) { if (contractManager.Eqx != null) { return(new BadRequest($"{nameof(contractManager)}.eqx", "This parameter doesn't support .eqx mode.")); } if (contractManager.Nex != null) { return(new BadRequest($"{nameof(contractManager)}.nex", "This parameter doesn't support .nex mode.")); } } if (contractDelegate != null) { if (contractDelegate.Eqx != null) { return(new BadRequest($"{nameof(contractDelegate)}.eqx", "This parameter doesn't support .eqx mode.")); } if (contractDelegate.Nex != null) { return(new BadRequest($"{nameof(contractDelegate)}.nex", "This parameter doesn't support .nex mode.")); } } if (originatedContract != null) { if (originatedContract.Eqx != null) { return(new BadRequest($"{nameof(originatedContract)}.eqx", "This parameter doesn't support .eqx mode.")); } if (originatedContract.Nex != null) { return(new BadRequest($"{nameof(originatedContract)}.nex", "This parameter doesn't support .nex mode.")); } } if (accuser != null) { if (accuser.Eqx != null) { return(new BadRequest($"{nameof(accuser)}.eqx", "This parameter doesn't support .eqx mode.")); } if (accuser.Nex != null) { return(new BadRequest($"{nameof(accuser)}.nex", "This parameter doesn't support .nex mode.")); } } if (offender != null) { if (offender.Eqx != null) { return(new BadRequest($"{nameof(offender)}.eqx", "This parameter doesn't support .eqx mode.")); } if (offender.Nex != null) { return(new BadRequest($"{nameof(offender)}.nex", "This parameter doesn't support .nex mode.")); } } if (baker != null) { if (baker.Eqx != null) { return(new BadRequest($"{nameof(baker)}.eqx", "This parameter doesn't support .eqx mode.")); } if (baker.Nex != null) { return(new BadRequest($"{nameof(baker)}.nex", "This parameter doesn't support .nex mode.")); } } #endregion var types = type != null ? new HashSet <string>(type.Split(',')) : OpTypes.DefaultSet; var _sort = sort == SortMode.Ascending ? new SortParameter { Asc = "Id" } : new SortParameter { Desc = "Id" }; var _offset = lastId != null ? new OffsetParameter { Cr = lastId } : null; #region legacy if (timestamp == null && (from != null || to != null)) { timestamp = new DateTimeParameter(); } if (from != null) { timestamp.Ge = from.Value.DateTime; } if (to != null) { timestamp.Lt = to.Value.DateTime; } #endregion return(Ok(await Accounts.GetOperations(address, types, initiator, sender, target, prevDelegate, newDelegate, contractManager, contractDelegate, originatedContract, accuser, offender, baker, level, timestamp, entrypoint, parameter, parameters, hasInternals, status, _sort, _offset, limit, micheline, quote))); }
public override void LogosSplusInitialize() { SocketInfo __socketinfo__ = new SocketInfo( 1, this ); InitialParametersClass.ResolveHostName = __socketinfo__.ResolveHostName; _SplusNVRAM = new SplusNVRAM( this ); _SplusNVRAM.SOURCEGAIN = new ushort[ 9 ]; _SplusNVRAM.BGM_GAIN = new ushort[ 9 ]; _SplusNVRAM.MASTERGAIN = new ushort[ 9 ]; _SplusNVRAM.XOKSOURCEGAIN = new ushort[ 9 ]; _SplusNVRAM.XOKBGM_GAIN = new ushort[ 9 ]; _SplusNVRAM.XOKMASTERGAIN = new ushort[ 9 ]; _SplusNVRAM.RETURNSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 4, this ); _SplusNVRAM.TEMPSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 40, this ); ENABLE_FEEDBACK__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( ENABLE_FEEDBACK__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( ENABLE_FEEDBACK__DOLLAR____DigitalInput__, ENABLE_FEEDBACK__DOLLAR__ ); DISABLE_FEEDBACK__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( DISABLE_FEEDBACK__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( DISABLE_FEEDBACK__DOLLAR____DigitalInput__, DISABLE_FEEDBACK__DOLLAR__ ); SOURCEMUTE_RM__DOLLAR__ = new InOutArray<DigitalInput>( 8, this ); for( uint i = 0; i < 8; i++ ) { SOURCEMUTE_RM__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( SOURCEMUTE_RM__DOLLAR____DigitalInput__ + i, SOURCEMUTE_RM__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( SOURCEMUTE_RM__DOLLAR____DigitalInput__ + i, SOURCEMUTE_RM__DOLLAR__[i+1] ); } BGM_MUTE_RM__DOLLAR__ = new InOutArray<DigitalInput>( 8, this ); for( uint i = 0; i < 8; i++ ) { BGM_MUTE_RM__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( BGM_MUTE_RM__DOLLAR____DigitalInput__ + i, BGM_MUTE_RM__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BGM_MUTE_RM__DOLLAR____DigitalInput__ + i, BGM_MUTE_RM__DOLLAR__[i+1] ); } MASTERMUTE_RM__DOLLAR__ = new InOutArray<DigitalInput>( 8, this ); for( uint i = 0; i < 8; i++ ) { MASTERMUTE_RM__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( MASTERMUTE_RM__DOLLAR____DigitalInput__ + i, MASTERMUTE_RM__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( MASTERMUTE_RM__DOLLAR____DigitalInput__ + i, MASTERMUTE_RM__DOLLAR__[i+1] ); } PARTITION__DOLLAR__ = new InOutArray<DigitalInput>( 8, this ); for( uint i = 0; i < 8; i++ ) { PARTITION__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( PARTITION__DOLLAR____DigitalInput__ + i, PARTITION__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( PARTITION__DOLLAR____DigitalInput__ + i, PARTITION__DOLLAR__[i+1] ); } SOURCEMUTE_RM_FB__DOLLAR__ = new InOutArray<DigitalOutput>( 8, this ); for( uint i = 0; i < 8; i++ ) { SOURCEMUTE_RM_FB__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( SOURCEMUTE_RM_FB__DOLLAR____DigitalOutput__ + i, this ); m_DigitalOutputList.Add( SOURCEMUTE_RM_FB__DOLLAR____DigitalOutput__ + i, SOURCEMUTE_RM_FB__DOLLAR__[i+1] ); } BGM_MUTE_RM_FB__DOLLAR__ = new InOutArray<DigitalOutput>( 8, this ); for( uint i = 0; i < 8; i++ ) { BGM_MUTE_RM_FB__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( BGM_MUTE_RM_FB__DOLLAR____DigitalOutput__ + i, this ); m_DigitalOutputList.Add( BGM_MUTE_RM_FB__DOLLAR____DigitalOutput__ + i, BGM_MUTE_RM_FB__DOLLAR__[i+1] ); } MASTERMUTE_RM_FB__DOLLAR__ = new InOutArray<DigitalOutput>( 8, this ); for( uint i = 0; i < 8; i++ ) { MASTERMUTE_RM_FB__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( MASTERMUTE_RM_FB__DOLLAR____DigitalOutput__ + i, this ); m_DigitalOutputList.Add( MASTERMUTE_RM_FB__DOLLAR____DigitalOutput__ + i, MASTERMUTE_RM_FB__DOLLAR__[i+1] ); } PARTITION_FB__DOLLAR__ = new InOutArray<DigitalOutput>( 8, this ); for( uint i = 0; i < 8; i++ ) { PARTITION_FB__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( PARTITION_FB__DOLLAR____DigitalOutput__ + i, this ); m_DigitalOutputList.Add( PARTITION_FB__DOLLAR____DigitalOutput__ + i, PARTITION_FB__DOLLAR__[i+1] ); } CHAN_OFFSET__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( CHAN_OFFSET__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( CHAN_OFFSET__DOLLAR____AnalogSerialInput__, CHAN_OFFSET__DOLLAR__ ); SOURCEGAIN_RM__DOLLAR__ = new InOutArray<AnalogInput>( 8, this ); for( uint i = 0; i < 8; i++ ) { SOURCEGAIN_RM__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.AnalogInput( SOURCEGAIN_RM__DOLLAR____AnalogSerialInput__ + i, SOURCEGAIN_RM__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( SOURCEGAIN_RM__DOLLAR____AnalogSerialInput__ + i, SOURCEGAIN_RM__DOLLAR__[i+1] ); } BGM_GAIN_RM__DOLLAR__ = new InOutArray<AnalogInput>( 8, this ); for( uint i = 0; i < 8; i++ ) { BGM_GAIN_RM__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.AnalogInput( BGM_GAIN_RM__DOLLAR____AnalogSerialInput__ + i, BGM_GAIN_RM__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( BGM_GAIN_RM__DOLLAR____AnalogSerialInput__ + i, BGM_GAIN_RM__DOLLAR__[i+1] ); } MASTERGAIN_RM__DOLLAR__ = new InOutArray<AnalogInput>( 8, this ); for( uint i = 0; i < 8; i++ ) { MASTERGAIN_RM__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.AnalogInput( MASTERGAIN_RM__DOLLAR____AnalogSerialInput__ + i, MASTERGAIN_RM__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( MASTERGAIN_RM__DOLLAR____AnalogSerialInput__ + i, MASTERGAIN_RM__DOLLAR__[i+1] ); } BGM_INPUT_RM__DOLLAR__ = new InOutArray<AnalogInput>( 8, this ); for( uint i = 0; i < 8; i++ ) { BGM_INPUT_RM__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.AnalogInput( BGM_INPUT_RM__DOLLAR____AnalogSerialInput__ + i, BGM_INPUT_RM__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( BGM_INPUT_RM__DOLLAR____AnalogSerialInput__ + i, BGM_INPUT_RM__DOLLAR__[i+1] ); } GROUP_RM__DOLLAR__ = new InOutArray<AnalogInput>( 8, this ); for( uint i = 0; i < 8; i++ ) { GROUP_RM__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.AnalogInput( GROUP_RM__DOLLAR____AnalogSerialInput__ + i, GROUP_RM__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( GROUP_RM__DOLLAR____AnalogSerialInput__ + i, GROUP_RM__DOLLAR__[i+1] ); } SOURCEGAIN_RM_FB__DOLLAR__ = new InOutArray<AnalogOutput>( 8, this ); for( uint i = 0; i < 8; i++ ) { SOURCEGAIN_RM_FB__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.AnalogOutput( SOURCEGAIN_RM_FB__DOLLAR____AnalogSerialOutput__ + i, this ); m_AnalogOutputList.Add( SOURCEGAIN_RM_FB__DOLLAR____AnalogSerialOutput__ + i, SOURCEGAIN_RM_FB__DOLLAR__[i+1] ); } BGM_GAIN_RM_FB__DOLLAR__ = new InOutArray<AnalogOutput>( 8, this ); for( uint i = 0; i < 8; i++ ) { BGM_GAIN_RM_FB__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.AnalogOutput( BGM_GAIN_RM_FB__DOLLAR____AnalogSerialOutput__ + i, this ); m_AnalogOutputList.Add( BGM_GAIN_RM_FB__DOLLAR____AnalogSerialOutput__ + i, BGM_GAIN_RM_FB__DOLLAR__[i+1] ); } MASTERGAIN_RM_FB__DOLLAR__ = new InOutArray<AnalogOutput>( 8, this ); for( uint i = 0; i < 8; i++ ) { MASTERGAIN_RM_FB__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.AnalogOutput( MASTERGAIN_RM_FB__DOLLAR____AnalogSerialOutput__ + i, this ); m_AnalogOutputList.Add( MASTERGAIN_RM_FB__DOLLAR____AnalogSerialOutput__ + i, MASTERGAIN_RM_FB__DOLLAR__[i+1] ); } BGM_INPUT_RM_FB__DOLLAR__ = new InOutArray<AnalogOutput>( 8, this ); for( uint i = 0; i < 8; i++ ) { BGM_INPUT_RM_FB__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.AnalogOutput( BGM_INPUT_RM_FB__DOLLAR____AnalogSerialOutput__ + i, this ); m_AnalogOutputList.Add( BGM_INPUT_RM_FB__DOLLAR____AnalogSerialOutput__ + i, BGM_INPUT_RM_FB__DOLLAR__[i+1] ); } GROUP_RM_FB__DOLLAR__ = new InOutArray<AnalogOutput>( 8, this ); for( uint i = 0; i < 8; i++ ) { GROUP_RM_FB__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.AnalogOutput( GROUP_RM_FB__DOLLAR____AnalogSerialOutput__ + i, this ); m_AnalogOutputList.Add( GROUP_RM_FB__DOLLAR____AnalogSerialOutput__ + i, GROUP_RM_FB__DOLLAR__[i+1] ); } TX__DOLLAR__ = new Crestron.Logos.SplusObjects.StringOutput( TX__DOLLAR____AnalogSerialOutput__, this ); m_StringOutputList.Add( TX__DOLLAR____AnalogSerialOutput__, TX__DOLLAR__ ); RX__DOLLAR__ = new Crestron.Logos.SplusObjects.BufferInput( RX__DOLLAR____AnalogSerialInput__, 400, this ); m_StringInputList.Add( RX__DOLLAR____AnalogSerialInput__, RX__DOLLAR__ ); MAX_ROOMS__DOLLAR__ = new UShortParameter( MAX_ROOMS__DOLLAR____Parameter__, this ); m_ParameterList.Add( MAX_ROOMS__DOLLAR____Parameter__, MAX_ROOMS__DOLLAR__ ); OBJECTID__DOLLAR__ = new StringParameter( OBJECTID__DOLLAR____Parameter__, this ); m_ParameterList.Add( OBJECTID__DOLLAR____Parameter__, OBJECTID__DOLLAR__ ); __SPLS_TMPVAR__WAITLABEL_0___Callback = new WaitFunction( __SPLS_TMPVAR__WAITLABEL_0___CallbackFn ); CHAN_OFFSET__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( CHAN_OFFSET__DOLLAR___OnChange_0, false ) ); ENABLE_FEEDBACK__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( ENABLE_FEEDBACK__DOLLAR___OnPush_1, false ) ); DISABLE_FEEDBACK__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( DISABLE_FEEDBACK__DOLLAR___OnPush_2, false ) ); for( uint i = 0; i < 8; i++ ) SOURCEMUTE_RM__DOLLAR__[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( SOURCEMUTE_RM__DOLLAR___OnPush_3, false ) ); for( uint i = 0; i < 8; i++ ) BGM_MUTE_RM__DOLLAR__[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( BGM_MUTE_RM__DOLLAR___OnPush_4, false ) ); for( uint i = 0; i < 8; i++ ) MASTERMUTE_RM__DOLLAR__[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( MASTERMUTE_RM__DOLLAR___OnPush_5, false ) ); for( uint i = 0; i < 8; i++ ) SOURCEGAIN_RM__DOLLAR__[i+1].OnAnalogChange.Add( new InputChangeHandlerWrapper( SOURCEGAIN_RM__DOLLAR___OnChange_6, false ) ); for( uint i = 0; i < 8; i++ ) BGM_GAIN_RM__DOLLAR__[i+1].OnAnalogChange.Add( new InputChangeHandlerWrapper( BGM_GAIN_RM__DOLLAR___OnChange_7, false ) ); for( uint i = 0; i < 8; i++ ) MASTERGAIN_RM__DOLLAR__[i+1].OnAnalogChange.Add( new InputChangeHandlerWrapper( MASTERGAIN_RM__DOLLAR___OnChange_8, false ) ); for( uint i = 0; i < 8; i++ ) BGM_INPUT_RM__DOLLAR__[i+1].OnAnalogChange.Add( new InputChangeHandlerWrapper( BGM_INPUT_RM__DOLLAR___OnChange_9, false ) ); for( uint i = 0; i < 8; i++ ) PARTITION__DOLLAR__[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( PARTITION__DOLLAR___OnPush_10, false ) ); for( uint i = 0; i < 8; i++ ) GROUP_RM__DOLLAR__[i+1].OnAnalogChange.Add( new InputChangeHandlerWrapper( GROUP_RM__DOLLAR___OnChange_11, false ) ); RX__DOLLAR__.OnSerialChange.Add( new InputChangeHandlerWrapper( RX__DOLLAR___OnChange_12, false ) ); _SplusNVRAM.PopulateCustomAttributeList( true ); NVRAM = _SplusNVRAM; }
public TemplateParameter(string appName) { AppName = new StringParameter(appName); }
public override void LogosSplusInitialize() { SocketInfo __socketinfo__ = new SocketInfo( 1, this ); InitialParametersClass.ResolveHostName = __socketinfo__.ResolveHostName; _SplusNVRAM = new SplusNVRAM( this ); _SplusNVRAM.WIDTH = new ushort[ 102 ]; _SplusNVRAM.FREQUENCY = new ushort[ 102 ]; _SplusNVRAM.RETURNSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 4, this ); _SplusNVRAM.TEMPSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 40, this ); _SplusNVRAM.NOTCH = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 2, this ); _SplusNVRAM.NEGATIVE = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 2, this ); _SplusNVRAM.BOOSTSTRING = new CrestronString[ 102 ]; for( uint i = 0; i < 102; i++ ) _SplusNVRAM.BOOSTSTRING [i] = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 20, this ); _SplusNVRAM.WIDTHSTRING = new CrestronString[ 102 ]; for( uint i = 0; i < 102; i++ ) _SplusNVRAM.WIDTHSTRING [i] = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 20, this ); _SplusNVRAM.FREQUENCYSTRING = new CrestronString[ 102 ]; for( uint i = 0; i < 102; i++ ) _SplusNVRAM.FREQUENCYSTRING [i] = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 20, this ); SUBSCRIBE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( SUBSCRIBE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( SUBSCRIBE__DOLLAR____DigitalInput__, SUBSCRIBE__DOLLAR__ ); UNSUBSCRIBE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( UNSUBSCRIBE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( UNSUBSCRIBE__DOLLAR____DigitalInput__, UNSUBSCRIBE__DOLLAR__ ); BYPASS_ON__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BYPASS_ON__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BYPASS_ON__DOLLAR____DigitalInput__, BYPASS_ON__DOLLAR__ ); BYPASS_OFF__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BYPASS_OFF__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BYPASS_OFF__DOLLAR____DigitalInput__, BYPASS_OFF__DOLLAR__ ); BYPASS_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( BYPASS_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( BYPASS_FB__DOLLAR____DigitalOutput__, BYPASS_FB__DOLLAR__ ); INPUT__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( INPUT__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( INPUT__DOLLAR____AnalogSerialInput__, INPUT__DOLLAR__ ); BOOSTPERCENT__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( BOOSTPERCENT__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( BOOSTPERCENT__DOLLAR____AnalogSerialInput__, BOOSTPERCENT__DOLLAR__ ); WIDTH__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( WIDTH__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( WIDTH__DOLLAR____AnalogSerialInput__, WIDTH__DOLLAR__ ); FREQUENCY__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( FREQUENCY__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( FREQUENCY__DOLLAR____AnalogSerialInput__, FREQUENCY__DOLLAR__ ); TYPE__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( TYPE__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( TYPE__DOLLAR____AnalogSerialInput__, TYPE__DOLLAR__ ); SLOPE__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( SLOPE__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( SLOPE__DOLLAR____AnalogSerialInput__, SLOPE__DOLLAR__ ); BOOSTPERCENT_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( BOOSTPERCENT_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( BOOSTPERCENT_FB__DOLLAR____AnalogSerialOutput__, BOOSTPERCENT_FB__DOLLAR__ ); WIDTH_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( WIDTH_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( WIDTH_FB__DOLLAR____AnalogSerialOutput__, WIDTH_FB__DOLLAR__ ); FREQUENCY_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( FREQUENCY_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( FREQUENCY_FB__DOLLAR____AnalogSerialOutput__, FREQUENCY_FB__DOLLAR__ ); TYPE_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( TYPE_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( TYPE_FB__DOLLAR____AnalogSerialOutput__, TYPE_FB__DOLLAR__ ); SLOPE_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( SLOPE_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( SLOPE_FB__DOLLAR____AnalogSerialOutput__, SLOPE_FB__DOLLAR__ ); TX__DOLLAR__ = new Crestron.Logos.SplusObjects.StringOutput( TX__DOLLAR____AnalogSerialOutput__, this ); m_StringOutputList.Add( TX__DOLLAR____AnalogSerialOutput__, TX__DOLLAR__ ); BOOSTSTRING_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.StringOutput( BOOSTSTRING_FB__DOLLAR____AnalogSerialOutput__, this ); m_StringOutputList.Add( BOOSTSTRING_FB__DOLLAR____AnalogSerialOutput__, BOOSTSTRING_FB__DOLLAR__ ); WIDTHSTRING_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.StringOutput( WIDTHSTRING_FB__DOLLAR____AnalogSerialOutput__, this ); m_StringOutputList.Add( WIDTHSTRING_FB__DOLLAR____AnalogSerialOutput__, WIDTHSTRING_FB__DOLLAR__ ); FREQUENCYSTRING_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.StringOutput( FREQUENCYSTRING_FB__DOLLAR____AnalogSerialOutput__, this ); m_StringOutputList.Add( FREQUENCYSTRING_FB__DOLLAR____AnalogSerialOutput__, FREQUENCYSTRING_FB__DOLLAR__ ); TYPESTRING_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.StringOutput( TYPESTRING_FB__DOLLAR____AnalogSerialOutput__, this ); m_StringOutputList.Add( TYPESTRING_FB__DOLLAR____AnalogSerialOutput__, TYPESTRING_FB__DOLLAR__ ); SLOPESTRING_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.StringOutput( SLOPESTRING_FB__DOLLAR____AnalogSerialOutput__, this ); m_StringOutputList.Add( SLOPESTRING_FB__DOLLAR____AnalogSerialOutput__, SLOPESTRING_FB__DOLLAR__ ); RX__DOLLAR__ = new Crestron.Logos.SplusObjects.BufferInput( RX__DOLLAR____AnalogSerialInput__, 400, this ); m_StringInputList.Add( RX__DOLLAR____AnalogSerialInput__, RX__DOLLAR__ ); OBJECTID__DOLLAR__ = new StringParameter( OBJECTID__DOLLAR____Parameter__, this ); m_ParameterList.Add( OBJECTID__DOLLAR____Parameter__, OBJECTID__DOLLAR__ ); __SPLS_TMPVAR__WAITLABEL_0___Callback = new WaitFunction( __SPLS_TMPVAR__WAITLABEL_0___CallbackFn ); BOOSTPERCENT__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( BOOSTPERCENT__DOLLAR___OnChange_0, false ) ); WIDTH__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( WIDTH__DOLLAR___OnChange_1, false ) ); FREQUENCY__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( FREQUENCY__DOLLAR___OnChange_2, false ) ); TYPE__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( TYPE__DOLLAR___OnChange_3, false ) ); SLOPE__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( SLOPE__DOLLAR___OnChange_4, false ) ); BYPASS_ON__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BYPASS_ON__DOLLAR___OnPush_5, false ) ); BYPASS_OFF__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BYPASS_OFF__DOLLAR___OnPush_6, false ) ); SUBSCRIBE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( SUBSCRIBE__DOLLAR___OnPush_7, false ) ); UNSUBSCRIBE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( UNSUBSCRIBE__DOLLAR___OnPush_8, false ) ); INPUT__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( INPUT__DOLLAR___OnChange_9, false ) ); RX__DOLLAR__.OnSerialChange.Add( new InputChangeHandlerWrapper( RX__DOLLAR___OnChange_10, false ) ); _SplusNVRAM.PopulateCustomAttributeList( true ); NVRAM = _SplusNVRAM; }
public override void LogosSplusInitialize() { SocketInfo __socketinfo__ = new SocketInfo( 1, this ); InitialParametersClass.ResolveHostName = __socketinfo__.ResolveHostName; _SplusNVRAM = new SplusNVRAM( this ); _SplusNVRAM.TEMPSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 40, this ); _SplusNVRAM.RETURNSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 4, this ); _SplusNVRAM.MAINSTR1 = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 32, this ); _SplusNVRAM.MAINSTR2 = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 32, this ); _SplusNVRAM.MAINSTR3 = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 32, this ); SUBSCRIBE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( SUBSCRIBE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( SUBSCRIBE__DOLLAR____DigitalInput__, SUBSCRIBE__DOLLAR__ ); UNSUBSCRIBE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( UNSUBSCRIBE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( UNSUBSCRIBE__DOLLAR____DigitalInput__, UNSUBSCRIBE__DOLLAR__ ); METER_SUBSCRIBE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( METER_SUBSCRIBE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( METER_SUBSCRIBE__DOLLAR____DigitalInput__, METER_SUBSCRIBE__DOLLAR__ ); BUTTON_1__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON_1__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON_1__DOLLAR____DigitalInput__, BUTTON_1__DOLLAR__ ); BUTTON_2__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON_2__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON_2__DOLLAR____DigitalInput__, BUTTON_2__DOLLAR__ ); BUTTON_3__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON_3__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON_3__DOLLAR____DigitalInput__, BUTTON_3__DOLLAR__ ); BUTTON_4__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON_4__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON_4__DOLLAR____DigitalInput__, BUTTON_4__DOLLAR__ ); BUTTON_5__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON_5__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON_5__DOLLAR____DigitalInput__, BUTTON_5__DOLLAR__ ); BUTTON_6__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON_6__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON_6__DOLLAR____DigitalInput__, BUTTON_6__DOLLAR__ ); BUTTON_7__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON_7__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON_7__DOLLAR____DigitalInput__, BUTTON_7__DOLLAR__ ); BUTTON_8__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON_8__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON_8__DOLLAR____DigitalInput__, BUTTON_8__DOLLAR__ ); BUTTON_9__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON_9__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON_9__DOLLAR____DigitalInput__, BUTTON_9__DOLLAR__ ); BUTTON_0__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON_0__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON_0__DOLLAR____DigitalInput__, BUTTON_0__DOLLAR__ ); BUTTON_PAUSE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON_PAUSE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON_PAUSE__DOLLAR____DigitalInput__, BUTTON_PAUSE__DOLLAR__ ); BUTTON_DELETE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON_DELETE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON_DELETE__DOLLAR____DigitalInput__, BUTTON_DELETE__DOLLAR__ ); BUTTON_REDIAL__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON_REDIAL__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON_REDIAL__DOLLAR____DigitalInput__, BUTTON_REDIAL__DOLLAR__ ); BUTTON_INTERNATIONAL_PLUS__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON_INTERNATIONAL_PLUS__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON_INTERNATIONAL_PLUS__DOLLAR____DigitalInput__, BUTTON_INTERNATIONAL_PLUS__DOLLAR__ ); BUTTON_BACKSPACE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON_BACKSPACE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON_BACKSPACE__DOLLAR____DigitalInput__, BUTTON_BACKSPACE__DOLLAR__ ); BUTTON_FLASH__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON_FLASH__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON_FLASH__DOLLAR____DigitalInput__, BUTTON_FLASH__DOLLAR__ ); BUTTON___POUND____DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON___POUND____DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON___POUND____DOLLAR____DigitalInput__, BUTTON___POUND____DOLLAR__ ); BUTTON_ASTERISK__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( BUTTON_ASTERISK__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( BUTTON_ASTERISK__DOLLAR____DigitalInput__, BUTTON_ASTERISK__DOLLAR__ ); HANG_UP__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( HANG_UP__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( HANG_UP__DOLLAR____DigitalInput__, HANG_UP__DOLLAR__ ); DIAL__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( DIAL__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( DIAL__DOLLAR____DigitalInput__, DIAL__DOLLAR__ ); TOGGLE_DIAL_HANG_UP__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( TOGGLE_DIAL_HANG_UP__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( TOGGLE_DIAL_HANG_UP__DOLLAR____DigitalInput__, TOGGLE_DIAL_HANG_UP__DOLLAR__ ); TX_MUTEON__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( TX_MUTEON__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( TX_MUTEON__DOLLAR____DigitalInput__, TX_MUTEON__DOLLAR__ ); TX_MUTEOFF__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( TX_MUTEOFF__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( TX_MUTEOFF__DOLLAR____DigitalInput__, TX_MUTEOFF__DOLLAR__ ); TX_MUTETOGGLE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( TX_MUTETOGGLE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( TX_MUTETOGGLE__DOLLAR____DigitalInput__, TX_MUTETOGGLE__DOLLAR__ ); RX_MUTEON__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( RX_MUTEON__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( RX_MUTEON__DOLLAR____DigitalInput__, RX_MUTEON__DOLLAR__ ); RX_MUTEOFF__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( RX_MUTEOFF__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( RX_MUTEOFF__DOLLAR____DigitalInput__, RX_MUTEOFF__DOLLAR__ ); RX_MUTETOGGLE__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalInput( RX_MUTETOGGLE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( RX_MUTETOGGLE__DOLLAR____DigitalInput__, RX_MUTETOGGLE__DOLLAR__ ); SPEED_STORE__DOLLAR__ = new InOutArray<DigitalInput>( 16, this ); for( uint i = 0; i < 16; i++ ) { SPEED_STORE__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( SPEED_STORE__DOLLAR____DigitalInput__ + i, SPEED_STORE__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( SPEED_STORE__DOLLAR____DigitalInput__ + i, SPEED_STORE__DOLLAR__[i+1] ); } SPEED_DIAL__DOLLAR__ = new InOutArray<DigitalInput>( 16, this ); for( uint i = 0; i < 16; i++ ) { SPEED_DIAL__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( SPEED_DIAL__DOLLAR____DigitalInput__ + i, SPEED_DIAL__DOLLAR____DigitalInput__, this ); m_DigitalInputList.Add( SPEED_DIAL__DOLLAR____DigitalInput__ + i, SPEED_DIAL__DOLLAR__[i+1] ); } INCOMING_CALL_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( INCOMING_CALL_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( INCOMING_CALL_FB__DOLLAR____DigitalOutput__, INCOMING_CALL_FB__DOLLAR__ ); HOOK_STATUS_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( HOOK_STATUS_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( HOOK_STATUS_FB__DOLLAR____DigitalOutput__, HOOK_STATUS_FB__DOLLAR__ ); TX_MUTE_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( TX_MUTE_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( TX_MUTE_FB__DOLLAR____DigitalOutput__, TX_MUTE_FB__DOLLAR__ ); RX_MUTE_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.DigitalOutput( RX_MUTE_FB__DOLLAR____DigitalOutput__, this ); m_DigitalOutputList.Add( RX_MUTE_FB__DOLLAR____DigitalOutput__, RX_MUTE_FB__DOLLAR__ ); SPEED_DIAL_FB__DOLLAR__ = new InOutArray<DigitalOutput>( 16, this ); for( uint i = 0; i < 16; i++ ) { SPEED_DIAL_FB__DOLLAR__[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( SPEED_DIAL_FB__DOLLAR____DigitalOutput__ + i, this ); m_DigitalOutputList.Add( SPEED_DIAL_FB__DOLLAR____DigitalOutput__ + i, SPEED_DIAL_FB__DOLLAR__[i+1] ); } AUTO_ANSWER__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( AUTO_ANSWER__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( AUTO_ANSWER__DOLLAR____AnalogSerialInput__, AUTO_ANSWER__DOLLAR__ ); TX_GAIN__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( TX_GAIN__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( TX_GAIN__DOLLAR____AnalogSerialInput__, TX_GAIN__DOLLAR__ ); RX_GAIN__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( RX_GAIN__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( RX_GAIN__DOLLAR____AnalogSerialInput__, RX_GAIN__DOLLAR__ ); DTMF_GAIN__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( DTMF_GAIN__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( DTMF_GAIN__DOLLAR____AnalogSerialInput__, DTMF_GAIN__DOLLAR__ ); DIAL_TONE_GAIN__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( DIAL_TONE_GAIN__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( DIAL_TONE_GAIN__DOLLAR____AnalogSerialInput__, DIAL_TONE_GAIN__DOLLAR__ ); RING_GAIN__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogInput( RING_GAIN__DOLLAR____AnalogSerialInput__, this ); m_AnalogInputList.Add( RING_GAIN__DOLLAR____AnalogSerialInput__, RING_GAIN__DOLLAR__ ); AUTO_ANSWER_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( AUTO_ANSWER_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( AUTO_ANSWER_FB__DOLLAR____AnalogSerialOutput__, AUTO_ANSWER_FB__DOLLAR__ ); TX_GAIN_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( TX_GAIN_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( TX_GAIN_FB__DOLLAR____AnalogSerialOutput__, TX_GAIN_FB__DOLLAR__ ); TX_METER_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( TX_METER_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( TX_METER_FB__DOLLAR____AnalogSerialOutput__, TX_METER_FB__DOLLAR__ ); RX_GAIN_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( RX_GAIN_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( RX_GAIN_FB__DOLLAR____AnalogSerialOutput__, RX_GAIN_FB__DOLLAR__ ); RX_METER_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( RX_METER_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( RX_METER_FB__DOLLAR____AnalogSerialOutput__, RX_METER_FB__DOLLAR__ ); DTMF_GAIN_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( DTMF_GAIN_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( DTMF_GAIN_FB__DOLLAR____AnalogSerialOutput__, DTMF_GAIN_FB__DOLLAR__ ); DIAL_TONE_GAIN_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( DIAL_TONE_GAIN_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( DIAL_TONE_GAIN_FB__DOLLAR____AnalogSerialOutput__, DIAL_TONE_GAIN_FB__DOLLAR__ ); RING_GAIN_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.AnalogOutput( RING_GAIN_FB__DOLLAR____AnalogSerialOutput__, this ); m_AnalogOutputList.Add( RING_GAIN_FB__DOLLAR____AnalogSerialOutput__, RING_GAIN_FB__DOLLAR__ ); TX__DOLLAR__ = new Crestron.Logos.SplusObjects.StringOutput( TX__DOLLAR____AnalogSerialOutput__, this ); m_StringOutputList.Add( TX__DOLLAR____AnalogSerialOutput__, TX__DOLLAR__ ); PHONE_NUMBER_FB__DOLLAR__ = new Crestron.Logos.SplusObjects.StringOutput( PHONE_NUMBER_FB__DOLLAR____AnalogSerialOutput__, this ); m_StringOutputList.Add( PHONE_NUMBER_FB__DOLLAR____AnalogSerialOutput__, PHONE_NUMBER_FB__DOLLAR__ ); RX__DOLLAR__ = new Crestron.Logos.SplusObjects.BufferInput( RX__DOLLAR____AnalogSerialInput__, 400, this ); m_StringInputList.Add( RX__DOLLAR____AnalogSerialInput__, RX__DOLLAR__ ); METER_RATE__DOLLAR__ = new UShortParameter( METER_RATE__DOLLAR____Parameter__, this ); m_ParameterList.Add( METER_RATE__DOLLAR____Parameter__, METER_RATE__DOLLAR__ ); CARD__DOLLAR__ = new StringParameter( CARD__DOLLAR____Parameter__, this ); m_ParameterList.Add( CARD__DOLLAR____Parameter__, CARD__DOLLAR__ ); __SPLS_TMPVAR__WAITLABEL_0___Callback = new WaitFunction( __SPLS_TMPVAR__WAITLABEL_0___CallbackFn ); __SPLS_TMPVAR__WAITLABEL_1___Callback = new WaitFunction( __SPLS_TMPVAR__WAITLABEL_1___CallbackFn ); SUBSCRIBE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( SUBSCRIBE__DOLLAR___OnPush_0, false ) ); UNSUBSCRIBE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( UNSUBSCRIBE__DOLLAR___OnPush_1, false ) ); METER_SUBSCRIBE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( METER_SUBSCRIBE__DOLLAR___OnPush_2, false ) ); METER_SUBSCRIBE__DOLLAR__.OnDigitalRelease.Add( new InputChangeHandlerWrapper( METER_SUBSCRIBE__DOLLAR___OnRelease_3, false ) ); AUTO_ANSWER__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( AUTO_ANSWER__DOLLAR___OnChange_4, false ) ); TX_GAIN__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( TX_GAIN__DOLLAR___OnChange_5, false ) ); RX_GAIN__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( RX_GAIN__DOLLAR___OnChange_6, false ) ); DTMF_GAIN__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( DTMF_GAIN__DOLLAR___OnChange_7, false ) ); DIAL_TONE_GAIN__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( DIAL_TONE_GAIN__DOLLAR___OnChange_8, false ) ); RING_GAIN__DOLLAR__.OnAnalogChange.Add( new InputChangeHandlerWrapper( RING_GAIN__DOLLAR___OnChange_9, false ) ); BUTTON_1__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON_1__DOLLAR___OnPush_10, false ) ); BUTTON_2__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON_2__DOLLAR___OnPush_11, false ) ); BUTTON_3__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON_3__DOLLAR___OnPush_12, false ) ); BUTTON_4__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON_4__DOLLAR___OnPush_13, false ) ); BUTTON_5__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON_5__DOLLAR___OnPush_14, false ) ); BUTTON_6__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON_6__DOLLAR___OnPush_15, false ) ); BUTTON_7__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON_7__DOLLAR___OnPush_16, false ) ); BUTTON_8__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON_8__DOLLAR___OnPush_17, false ) ); BUTTON_9__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON_9__DOLLAR___OnPush_18, false ) ); BUTTON_0__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON_0__DOLLAR___OnPush_19, false ) ); HANG_UP__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( HANG_UP__DOLLAR___OnPush_20, false ) ); DIAL__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( DIAL__DOLLAR___OnPush_21, false ) ); TOGGLE_DIAL_HANG_UP__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( TOGGLE_DIAL_HANG_UP__DOLLAR___OnPush_22, false ) ); BUTTON_PAUSE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON_PAUSE__DOLLAR___OnPush_23, false ) ); BUTTON_DELETE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON_DELETE__DOLLAR___OnPush_24, false ) ); BUTTON_REDIAL__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON_REDIAL__DOLLAR___OnPush_25, false ) ); BUTTON_INTERNATIONAL_PLUS__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON_INTERNATIONAL_PLUS__DOLLAR___OnPush_26, false ) ); BUTTON_BACKSPACE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON_BACKSPACE__DOLLAR___OnPush_27, false ) ); BUTTON_FLASH__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON_FLASH__DOLLAR___OnPush_28, false ) ); BUTTON___POUND____DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON___POUND____DOLLAR___OnPush_29, false ) ); BUTTON_ASTERISK__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( BUTTON_ASTERISK__DOLLAR___OnPush_30, false ) ); TX_MUTEON__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( TX_MUTEON__DOLLAR___OnPush_31, false ) ); TX_MUTEOFF__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( TX_MUTEOFF__DOLLAR___OnPush_32, false ) ); TX_MUTETOGGLE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( TX_MUTETOGGLE__DOLLAR___OnPush_33, false ) ); RX_MUTEON__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( RX_MUTEON__DOLLAR___OnPush_34, false ) ); RX_MUTEOFF__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( RX_MUTEOFF__DOLLAR___OnPush_35, false ) ); RX_MUTETOGGLE__DOLLAR__.OnDigitalPush.Add( new InputChangeHandlerWrapper( RX_MUTETOGGLE__DOLLAR___OnPush_36, false ) ); for( uint i = 0; i < 16; i++ ) SPEED_STORE__DOLLAR__[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( SPEED_STORE__DOLLAR___OnPush_37, false ) ); for( uint i = 0; i < 16; i++ ) SPEED_DIAL__DOLLAR__[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( SPEED_DIAL__DOLLAR___OnPush_38, false ) ); RX__DOLLAR__.OnSerialChange.Add( new InputChangeHandlerWrapper( RX__DOLLAR___OnChange_39, false ) ); _SplusNVRAM.PopulateCustomAttributeList( true ); NVRAM = _SplusNVRAM; }
private void Mapper(IDocumentGeneratorParameter visitable) { if (visitable is BooleanParameter) { BooleanParameter v = visitable as BooleanParameter; MappedParameters.Add(new SC.BuildValueModel() { IsHTML = false, Name = v.Name, Value = v.Value.ToString() }); return; } if (visitable is CharParameter) { CharParameter v = visitable as CharParameter; MappedParameters.Add(new SC.BuildValueModel() { IsHTML = false, Name = v.Name, Value = v.Value.ToString() }); return; } if (visitable is FloatParameter) { FloatParameter v = visitable as FloatParameter; MappedParameters.Add(new SC.BuildValueModel() { IsHTML = false, Name = v.Name, Value = v.Value.ToString() }); return; } if (visitable is GuidParameter) { GuidParameter v = visitable as GuidParameter; MappedParameters.Add(new SC.BuildValueModel() { IsHTML = false, Name = v.Name, Value = v.Value.ToString() }); return; } if (visitable is IntParameter) { IntParameter v = visitable as IntParameter; MappedParameters.Add(new SC.BuildValueModel() { IsHTML = false, Name = v.Name, Value = v.Value.ToString() }); return; } if (visitable is StringParameter) { StringParameter v = visitable as StringParameter; MappedParameters.Add(new SC.BuildValueModel() { IsHTML = v.HasHtmlValue, Name = v.Name, Value = WebUtility.HtmlDecode(v.Value) }); return; } if (visitable is DateTimeParameter) { DateTimeParameter v = visitable as DateTimeParameter; MappedParameters.Add(new SC.BuildValueModel() { IsHTML = false, Name = v.Name, Value = v.Value.ToShortDateString() }); return; } throw new DSWException(string.Concat("Parameter '", visitable.GetType().Name, "' is not correct"), null, DSWExceptionCode.Invalid); }
public override void LogosSplusInitialize() { _SplusNVRAM = new SplusNVRAM(this); LAT = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 15, this); LON = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 15, this); ENABLE = new Crestron.Logos.SplusObjects.DigitalInput(ENABLE__DigitalInput__, this); m_DigitalInputList.Add(ENABLE__DigitalInput__, ENABLE); DISABLE = new Crestron.Logos.SplusObjects.DigitalInput(DISABLE__DigitalInput__, this); m_DigitalInputList.Add(DISABLE__DigitalInput__, DISABLE); ENABLETOGGLE = new Crestron.Logos.SplusObjects.DigitalInput(ENABLETOGGLE__DigitalInput__, this); m_DigitalInputList.Add(ENABLETOGGLE__DigitalInput__, ENABLETOGGLE); CONFIGLOAD = new Crestron.Logos.SplusObjects.DigitalInput(CONFIGLOAD__DigitalInput__, this); m_DigitalInputList.Add(CONFIGLOAD__DigitalInput__, CONFIGLOAD); CONFIGSAVE = new Crestron.Logos.SplusObjects.DigitalInput(CONFIGSAVE__DigitalInput__, this); m_DigitalInputList.Add(CONFIGSAVE__DigitalInput__, CONFIGSAVE); ENABLED = new Crestron.Logos.SplusObjects.DigitalOutput(ENABLED__DigitalOutput__, this); m_DigitalOutputList.Add(ENABLED__DigitalOutput__, ENABLED); CONFIGLOADED_F = new Crestron.Logos.SplusObjects.DigitalOutput(CONFIGLOADED_F__DigitalOutput__, this); m_DigitalOutputList.Add(CONFIGLOADED_F__DigitalOutput__, CONFIGLOADED_F); CONFIGSAVED_F = new Crestron.Logos.SplusObjects.DigitalOutput(CONFIGSAVED_F__DigitalOutput__, this); m_DigitalOutputList.Add(CONFIGSAVED_F__DigitalOutput__, CONFIGSAVED_F); GLOBALACTION = new InOutArray <DigitalOutput>(50, this); for (uint i = 0; i < 50; i++) { GLOBALACTION[i + 1] = new Crestron.Logos.SplusObjects.DigitalOutput(GLOBALACTION__DigitalOutput__ + i, this); m_DigitalOutputList.Add(GLOBALACTION__DigitalOutput__ + i, GLOBALACTION[i + 1]); } LATITUDEOVERRIDE = new Crestron.Logos.SplusObjects.StringInput(LATITUDEOVERRIDE__AnalogSerialInput__, 15, this); m_StringInputList.Add(LATITUDEOVERRIDE__AnalogSerialInput__, LATITUDEOVERRIDE); LONGITUDEOVERRIDE = new Crestron.Logos.SplusObjects.StringInput(LONGITUDEOVERRIDE__AnalogSerialInput__, 15, this); m_StringInputList.Add(LONGITUDEOVERRIDE__AnalogSerialInput__, LONGITUDEOVERRIDE); LATITUDE = new StringParameter(LATITUDE__Parameter__, this); m_ParameterList.Add(LATITUDE__Parameter__, LATITUDE); LONGITUDE = new StringParameter(LONGITUDE__Parameter__, this); m_ParameterList.Add(LONGITUDE__Parameter__, LONGITUDE); STORAGEBASEDIRECTORY = new StringParameter(STORAGEBASEDIRECTORY__Parameter__, this); m_ParameterList.Add(STORAGEBASEDIRECTORY__Parameter__, STORAGEBASEDIRECTORY); GLOBALACTIONNAME = new InOutArray <StringParameter>(50, this); for (uint i = 0; i < 50; i++) { GLOBALACTIONNAME[i + 1] = new StringParameter(GLOBALACTIONNAME__Parameter__ + i, GLOBALACTIONNAME__Parameter__, this); m_ParameterList.Add(GLOBALACTIONNAME__Parameter__ + i, GLOBALACTIONNAME[i + 1]); } ENABLE.OnDigitalPush.Add(new InputChangeHandlerWrapper(ENABLE_OnPush_0, false)); DISABLE.OnDigitalPush.Add(new InputChangeHandlerWrapper(DISABLE_OnPush_1, false)); ENABLETOGGLE.OnDigitalPush.Add(new InputChangeHandlerWrapper(ENABLETOGGLE_OnPush_2, false)); CONFIGLOAD.OnDigitalPush.Add(new InputChangeHandlerWrapper(CONFIGLOAD_OnPush_3, false)); CONFIGSAVE.OnDigitalPush.Add(new InputChangeHandlerWrapper(CONFIGSAVE_OnPush_4, false)); LATITUDEOVERRIDE.OnSerialChange.Add(new InputChangeHandlerWrapper(LATITUDEOVERRIDE_OnChange_5, false)); LONGITUDEOVERRIDE.OnSerialChange.Add(new InputChangeHandlerWrapper(LONGITUDEOVERRIDE_OnChange_6, false)); _SplusNVRAM.PopulateCustomAttributeList(true); NVRAM = _SplusNVRAM; }
public static OpCodeGroup GetGroupOfOpCode(OpCode opCode) { OpCodeGroup result = OpCodeGroup.Parameterless; if (FieldParameter.Contains(opCode)) { result = OpCodeGroup.FieldParameter; } else if (MethodParameter.Contains(opCode)) { result = OpCodeGroup.MethodParameter; } else if (StringParameter.Contains(opCode)) { result = OpCodeGroup.StringParameter; } else if (TypeParameter.Contains(opCode)) { result = OpCodeGroup.TypeParameter; } else if (SbyteLocationParameter.Contains(opCode)) { result = OpCodeGroup.SbyteLocationParameter; } else if (IntLocationParameter.Contains(opCode)) { result = OpCodeGroup.IntLocationParameter; } else if (ByteParameter.Contains(opCode)) { result = OpCodeGroup.ByteParameter; } else if (UshortParameter.Contains(opCode)) { result = OpCodeGroup.UshortParameter; } else if (SbyteParameter.Contains(opCode)) { result = OpCodeGroup.SbyteParameter; } else if (IntParameter.Contains(opCode)) { result = OpCodeGroup.IntParameter; } else if (LongParameter.Contains(opCode)) { result = OpCodeGroup.LongParameter; } else if (FloatParameter.Contains(opCode)) { result = OpCodeGroup.FloatParameter; } else if (DoubleParameter.Contains(opCode)) { result = OpCodeGroup.DoubleParameter; } else if (ByteArgumentParameter.Contains(opCode)) { result = OpCodeGroup.ByteArgumentParameter; } else if (UshortArgumentParameter.Contains(opCode)) { result = OpCodeGroup.UshortArgumentParameter; } else if (ByteVariableParameter.Contains(opCode)) { result = OpCodeGroup.ByteVariableParameter; } else if (UshortVariableParameter.Contains(opCode)) { result = OpCodeGroup.UshortVariableParameter; } else if (opCode.Equals(OpCodes.Calli)) { result = OpCodeGroup.Calli; } else if (opCode.Equals(OpCodes.Switch)) { result = OpCodeGroup.Switch; } else if (opCode.Equals(OpCodes.Ldtoken)) { result = OpCodeGroup.Ldtoken; } return(result); }
public override void LogosSplusInitialize() { SocketInfo __socketinfo__ = new SocketInfo( 1, this ); InitialParametersClass.ResolveHostName = __socketinfo__.ResolveHostName; _SplusNVRAM = new SplusNVRAM( this ); _SplusNVRAM.TEMPSTRING1 = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 80, this ); _SplusNVRAM.SENDSTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 80, this ); _SplusNVRAM.TEMPSTRING2 = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 80, this ); _SplusNVRAM.TEMPSTRING3 = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 80, this ); _SplusNVRAM.RECEIVESTRING = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 80, this ); COMTX__DOLLAR__ = new Crestron.Logos.SplusObjects.StringOutput( COMTX__DOLLAR____AnalogSerialOutput__, this ); m_StringOutputList.Add( COMTX__DOLLAR____AnalogSerialOutput__, COMTX__DOLLAR__ ); MODULESRX__DOLLAR__ = new Crestron.Logos.SplusObjects.StringOutput( MODULESRX__DOLLAR____AnalogSerialOutput__, this ); m_StringOutputList.Add( MODULESRX__DOLLAR____AnalogSerialOutput__, MODULESRX__DOLLAR__ ); COMRX__DOLLAR__ = new Crestron.Logos.SplusObjects.BufferInput( COMRX__DOLLAR____AnalogSerialInput__, 1000, this ); m_StringInputList.Add( COMRX__DOLLAR____AnalogSerialInput__, COMRX__DOLLAR__ ); MODULESTX__DOLLAR__ = new Crestron.Logos.SplusObjects.BufferInput( MODULESTX__DOLLAR____AnalogSerialInput__, 1000, this ); m_StringInputList.Add( MODULESTX__DOLLAR____AnalogSerialInput__, MODULESTX__DOLLAR__ ); NODE__DOLLAR__ = new StringParameter( NODE__DOLLAR____Parameter__, this ); m_ParameterList.Add( NODE__DOLLAR____Parameter__, NODE__DOLLAR__ ); MODULESTX__DOLLAR__.OnSerialChange.Add( new InputChangeHandlerWrapper( MODULESTX__DOLLAR___OnChange_0, false ) ); COMRX__DOLLAR__.OnSerialChange.Add( new InputChangeHandlerWrapper( COMRX__DOLLAR___OnChange_1, false ) ); _SplusNVRAM.PopulateCustomAttributeList( true ); NVRAM = _SplusNVRAM; }
private static void InitializeFields() { ByteParameter.Add(OpCodes.Unaligned); Parameterless.Add(OpCodes.Tailcall); Parameterless.Add(OpCodes.Volatile); Parameterless.Add(OpCodes.Add); Parameterless.Add(OpCodes.Add_Ovf); Parameterless.Add(OpCodes.Add_Ovf_Un); Parameterless.Add(OpCodes.And); Parameterless.Add(OpCodes.Arglist); Parameterless.Add(OpCodes.Break); Parameterless.Add(OpCodes.Ceq); Parameterless.Add(OpCodes.Cgt); Parameterless.Add(OpCodes.Cgt_Un); Parameterless.Add(OpCodes.Ckfinite); Parameterless.Add(OpCodes.Clt); Parameterless.Add(OpCodes.Clt_Un); Parameterless.Add(OpCodes.Conv_I1); Parameterless.Add(OpCodes.Conv_I2); Parameterless.Add(OpCodes.Conv_I4); Parameterless.Add(OpCodes.Conv_I8); Parameterless.Add(OpCodes.Conv_R4); Parameterless.Add(OpCodes.Conv_R8); Parameterless.Add(OpCodes.Conv_U1); Parameterless.Add(OpCodes.Conv_U2); Parameterless.Add(OpCodes.Conv_U4); Parameterless.Add(OpCodes.Conv_U8); Parameterless.Add(OpCodes.Conv_I); Parameterless.Add(OpCodes.Conv_U); Parameterless.Add(OpCodes.Conv_R_Un); Parameterless.Add(OpCodes.Conv_Ovf_I1); Parameterless.Add(OpCodes.Conv_Ovf_I2); Parameterless.Add(OpCodes.Conv_Ovf_I4); Parameterless.Add(OpCodes.Conv_Ovf_I8); Parameterless.Add(OpCodes.Conv_Ovf_U1); Parameterless.Add(OpCodes.Conv_Ovf_U2); Parameterless.Add(OpCodes.Conv_Ovf_U4); Parameterless.Add(OpCodes.Conv_Ovf_U8); Parameterless.Add(OpCodes.Conv_Ovf_I); Parameterless.Add(OpCodes.Conv_Ovf_U); Parameterless.Add(OpCodes.Conv_Ovf_I1_Un); Parameterless.Add(OpCodes.Conv_Ovf_I2_Un); Parameterless.Add(OpCodes.Conv_Ovf_I4_Un); Parameterless.Add(OpCodes.Conv_Ovf_I8_Un); Parameterless.Add(OpCodes.Conv_Ovf_U1_Un); Parameterless.Add(OpCodes.Conv_Ovf_U2_Un); Parameterless.Add(OpCodes.Conv_Ovf_U4_Un); Parameterless.Add(OpCodes.Conv_Ovf_U8_Un); Parameterless.Add(OpCodes.Conv_Ovf_I_Un); Parameterless.Add(OpCodes.Conv_Ovf_U_Un); Parameterless.Add(OpCodes.Cpblk); Parameterless.Add(OpCodes.Div); Parameterless.Add(OpCodes.Div_Un); Parameterless.Add(OpCodes.Dup); Parameterless.Add(OpCodes.Endfilter); Parameterless.Add(OpCodes.Endfinally); Parameterless.Add(OpCodes.Initblk); Parameterless.Add(OpCodes.Ldarg_0); Parameterless.Add(OpCodes.Ldarg_1); Parameterless.Add(OpCodes.Ldarg_2); Parameterless.Add(OpCodes.Ldarg_3); Parameterless.Add(OpCodes.Ldc_I4_0); Parameterless.Add(OpCodes.Ldc_I4_1); Parameterless.Add(OpCodes.Ldc_I4_2); Parameterless.Add(OpCodes.Ldc_I4_3); Parameterless.Add(OpCodes.Ldc_I4_4); Parameterless.Add(OpCodes.Ldc_I4_5); Parameterless.Add(OpCodes.Ldc_I4_6); Parameterless.Add(OpCodes.Ldc_I4_7); Parameterless.Add(OpCodes.Ldc_I4_8); Parameterless.Add(OpCodes.Ldc_I4_M1); Parameterless.Add(OpCodes.Ldind_I1); Parameterless.Add(OpCodes.Ldind_I2); Parameterless.Add(OpCodes.Ldind_I4); Parameterless.Add(OpCodes.Ldind_I8); Parameterless.Add(OpCodes.Ldind_U1); Parameterless.Add(OpCodes.Ldind_U2); Parameterless.Add(OpCodes.Ldind_U4); Parameterless.Add(OpCodes.Ldind_R4); Parameterless.Add(OpCodes.Ldind_R8); Parameterless.Add(OpCodes.Ldind_I); Parameterless.Add(OpCodes.Ldind_Ref); Parameterless.Add(OpCodes.Ldloc_0); Parameterless.Add(OpCodes.Ldloc_1); Parameterless.Add(OpCodes.Ldloc_2); Parameterless.Add(OpCodes.Ldloc_3); Parameterless.Add(OpCodes.Ldnull); Parameterless.Add(OpCodes.Localloc); Parameterless.Add(OpCodes.Mul); Parameterless.Add(OpCodes.Mul_Ovf); Parameterless.Add(OpCodes.Mul_Ovf_Un); Parameterless.Add(OpCodes.Neg); Parameterless.Add(OpCodes.Nop); Parameterless.Add(OpCodes.Not); Parameterless.Add(OpCodes.Or); Parameterless.Add(OpCodes.Pop); Parameterless.Add(OpCodes.Rem); Parameterless.Add(OpCodes.Rem_Un); Parameterless.Add(OpCodes.Ret); Parameterless.Add(OpCodes.Shl); Parameterless.Add(OpCodes.Shr); Parameterless.Add(OpCodes.Shr_Un); Parameterless.Add(OpCodes.Stind_I1); Parameterless.Add(OpCodes.Stind_I2); Parameterless.Add(OpCodes.Stind_I4); Parameterless.Add(OpCodes.Stind_I8); Parameterless.Add(OpCodes.Stind_R4); Parameterless.Add(OpCodes.Stind_R8); Parameterless.Add(OpCodes.Stind_I); Parameterless.Add(OpCodes.Stind_Ref); Parameterless.Add(OpCodes.Stloc_0); Parameterless.Add(OpCodes.Stloc_1); Parameterless.Add(OpCodes.Stloc_2); Parameterless.Add(OpCodes.Stloc_3); Parameterless.Add(OpCodes.Sub); Parameterless.Add(OpCodes.Sub_Ovf); Parameterless.Add(OpCodes.Sub_Ovf_Un); Parameterless.Add(OpCodes.Xor); Parameterless.Add(OpCodes.Ldelem_I1); Parameterless.Add(OpCodes.Ldelem_I2); Parameterless.Add(OpCodes.Ldelem_I4); Parameterless.Add(OpCodes.Ldelem_I8); Parameterless.Add(OpCodes.Ldelem_U1); Parameterless.Add(OpCodes.Ldelem_U2); Parameterless.Add(OpCodes.Ldelem_U4); Parameterless.Add(OpCodes.Ldelem_R4); Parameterless.Add(OpCodes.Ldelem_R8); Parameterless.Add(OpCodes.Ldelem_I); Parameterless.Add(OpCodes.Ldelem_Ref); Parameterless.Add(OpCodes.Ldlen); Parameterless.Add(OpCodes.Refanytype); Parameterless.Add(OpCodes.Rethrow); Parameterless.Add(OpCodes.Stelem_I1); Parameterless.Add(OpCodes.Stelem_I2); Parameterless.Add(OpCodes.Stelem_I4); Parameterless.Add(OpCodes.Stelem_I8); Parameterless.Add(OpCodes.Stelem_R4); Parameterless.Add(OpCodes.Stelem_R8); Parameterless.Add(OpCodes.Stelem_I); Parameterless.Add(OpCodes.Stelem_Ref); Parameterless.Add(OpCodes.Throw); SbyteLocationParameter.Add(OpCodes.Beq_S); SbyteLocationParameter.Add(OpCodes.Bge_S); SbyteLocationParameter.Add(OpCodes.Bge_Un_S); SbyteLocationParameter.Add(OpCodes.Bgt_S); SbyteLocationParameter.Add(OpCodes.Bgt_Un_S); SbyteLocationParameter.Add(OpCodes.Ble_S); SbyteLocationParameter.Add(OpCodes.Ble_Un_S); SbyteLocationParameter.Add(OpCodes.Blt_S); SbyteLocationParameter.Add(OpCodes.Blt_Un_S); SbyteLocationParameter.Add(OpCodes.Bne_Un_S); SbyteLocationParameter.Add(OpCodes.Br_S); SbyteLocationParameter.Add(OpCodes.Brfalse_S); SbyteLocationParameter.Add(OpCodes.Brtrue_S); SbyteLocationParameter.Add(OpCodes.Leave_S); IntLocationParameter.Add(OpCodes.Beq); IntLocationParameter.Add(OpCodes.Bge); IntLocationParameter.Add(OpCodes.Bge_Un); IntLocationParameter.Add(OpCodes.Bgt); IntLocationParameter.Add(OpCodes.Bgt_Un); IntLocationParameter.Add(OpCodes.Ble); IntLocationParameter.Add(OpCodes.Ble_Un); IntLocationParameter.Add(OpCodes.Blt); IntLocationParameter.Add(OpCodes.Blt_Un); IntLocationParameter.Add(OpCodes.Bne_Un); IntLocationParameter.Add(OpCodes.Br); IntLocationParameter.Add(OpCodes.Brfalse); IntLocationParameter.Add(OpCodes.Brtrue); IntLocationParameter.Add(OpCodes.Leave); SbyteParameter.Add(OpCodes.Ldc_I4_S); IntParameter.Add(OpCodes.Ldc_I4); LongParameter.Add(OpCodes.Ldc_I8); FloatParameter.Add(OpCodes.Ldc_R4); DoubleParameter.Add(OpCodes.Ldc_R8); FieldParameter.Add(OpCodes.Ldfld); FieldParameter.Add(OpCodes.Ldflda); FieldParameter.Add(OpCodes.Ldsfld); FieldParameter.Add(OpCodes.Ldsflda); FieldParameter.Add(OpCodes.Stfld); FieldParameter.Add(OpCodes.Stsfld); MethodParameter.Add(OpCodes.Call); MethodParameter.Add(OpCodes.Callvirt); MethodParameter.Add(OpCodes.Jmp); MethodParameter.Add(OpCodes.Ldftn); MethodParameter.Add(OpCodes.Ldvirtftn); StringParameter.Add(OpCodes.Ldstr); TypeParameter.Add(OpCodes.Box); TypeParameter.Add(OpCodes.Castclass); TypeParameter.Add(OpCodes.Constrained); TypeParameter.Add(OpCodes.Cpobj); TypeParameter.Add(OpCodes.Initobj); TypeParameter.Add(OpCodes.Isinst); TypeParameter.Add(OpCodes.Ldelem); TypeParameter.Add(OpCodes.Ldelema); TypeParameter.Add(OpCodes.Ldobj); TypeParameter.Add(OpCodes.Mkrefany); TypeParameter.Add(OpCodes.Newarr); TypeParameter.Add(OpCodes.Newobj); TypeParameter.Add(OpCodes.Refanyval); TypeParameter.Add(OpCodes.Sizeof); TypeParameter.Add(OpCodes.Stelem); TypeParameter.Add(OpCodes.Stobj); TypeParameter.Add(OpCodes.Unbox); TypeParameter.Add(OpCodes.Unbox_Any); ByteArgumentParameter.Add(OpCodes.Ldarg_S); ByteArgumentParameter.Add(OpCodes.Ldarga_S); ByteArgumentParameter.Add(OpCodes.Starg_S); UshortArgumentParameter.Add(OpCodes.Ldarg); UshortArgumentParameter.Add(OpCodes.Ldarga); UshortArgumentParameter.Add(OpCodes.Starg); ByteVariableParameter.Add(OpCodes.Ldloc_S); ByteVariableParameter.Add(OpCodes.Ldloca_S); ByteVariableParameter.Add(OpCodes.Stloc_S); UshortVariableParameter.Add(OpCodes.Ldloc); UshortVariableParameter.Add(OpCodes.Ldloca); UshortVariableParameter.Add(OpCodes.Stloc); foreach (FieldInfo fieldInfo in typeof(OpCodes).GetFields()) { OpCode code = (OpCode)fieldInfo.GetValue(null); OpCodesByName[code.Name] = code; OpCodesByValue[code.Value] = code; } NativeTypeNames.Add(typeof(bool), "bool"); //boxed NativeTypeNames.Add(typeof(char), "char"); //class NativeTypeNames.Add(typeof(float), "float32"); NativeTypeNames.Add(typeof(double), "float64"); NativeTypeNames.Add(typeof(sbyte), "int8"); NativeTypeNames.Add(typeof(short), "int16"); NativeTypeNames.Add(typeof(int), "int32"); NativeTypeNames.Add(typeof(long), "int64"); NativeTypeNames.Add(typeof(IntPtr), "native int"); NativeTypeNames.Add(typeof(UIntPtr), "native unsigned int"); NativeTypeNames.Add(typeof(object), "object"); NativeTypeNames.Add(typeof(string), "string"); NativeTypeNames.Add(typeof(byte), "unsigned int8"); NativeTypeNames.Add(typeof(ushort), "unsigned int16"); NativeTypeNames.Add(typeof(uint), "unsigned int32"); NativeTypeNames.Add(typeof(ulong), "unsigned int64"); NativeTypeNames.Add(typeof(void), "void"); foreach (KeyValuePair <Type, string> keyValue in NativeTypeNames) { NameOfNativeTypes.Add(keyValue.Value, keyValue.Key); } Keywords.Add("#line"); Keywords.Add(".addon"); Keywords.Add(".assembly"); Keywords.Add(".cctor"); Keywords.Add(".class"); Keywords.Add(".corflags"); Keywords.Add(".ctor"); Keywords.Add(".custom"); Keywords.Add(".data"); Keywords.Add(".emitbyte"); Keywords.Add(".entrypoint"); Keywords.Add(".event"); Keywords.Add(".export"); Keywords.Add(".field"); Keywords.Add(".file"); Keywords.Add(".fire"); Keywords.Add(".get"); Keywords.Add(".hash"); Keywords.Add(".imagebase"); Keywords.Add(".import"); Keywords.Add(".language"); Keywords.Add(".line"); Keywords.Add(".locale"); Keywords.Add(".localized"); Keywords.Add(".locals"); Keywords.Add(".manifestres"); Keywords.Add(".maxstack"); Keywords.Add(".method"); Keywords.Add(".module"); Keywords.Add(".mresource"); Keywords.Add(".namespace"); Keywords.Add(".other"); Keywords.Add(".override"); Keywords.Add(".pack"); Keywords.Add(".param"); Keywords.Add(".pdirect"); Keywords.Add(".permission"); Keywords.Add(".permissionset"); Keywords.Add(".property"); Keywords.Add(".publickey"); Keywords.Add(".publickeytoken"); Keywords.Add(".removeon"); Keywords.Add(".set"); Keywords.Add(".size"); Keywords.Add(".subsystem"); Keywords.Add(".try"); Keywords.Add(".ver"); Keywords.Add(".vtable"); Keywords.Add(".vtentry"); Keywords.Add(".vtfixup"); Keywords.Add(".zeroinit"); Keywords.Add("^THE_END^"); Keywords.Add("abstract"); Keywords.Add("add"); Keywords.Add("add.ovf"); Keywords.Add("add.ovf.un"); Keywords.Add("algorithm"); Keywords.Add("alignment"); Keywords.Add("and"); Keywords.Add("ansi"); Keywords.Add("any"); Keywords.Add("arglist"); Keywords.Add("array"); Keywords.Add("as"); Keywords.Add("assembly"); Keywords.Add("assert"); Keywords.Add("at"); Keywords.Add("auto"); Keywords.Add("autochar"); Keywords.Add("beforefieldinit"); Keywords.Add("beq"); Keywords.Add("beq.s"); Keywords.Add("bge"); Keywords.Add("bge.s"); Keywords.Add("bge.un"); Keywords.Add("bge.un.s"); Keywords.Add("bgt"); Keywords.Add("bgt.s"); Keywords.Add("bgt.un"); Keywords.Add("bgt.un.s"); Keywords.Add("ble"); Keywords.Add("ble.s"); Keywords.Add("ble.un"); Keywords.Add("ble.un.s"); Keywords.Add("blob"); Keywords.Add("blob_object"); Keywords.Add("blt"); Keywords.Add("blt.s"); Keywords.Add("blt.un"); Keywords.Add("blt.un.s"); Keywords.Add("bne.un"); Keywords.Add("bne.un.s"); Keywords.Add("bool"); Keywords.Add("box"); Keywords.Add("br"); Keywords.Add("br.s"); Keywords.Add("break"); Keywords.Add("brfalse"); Keywords.Add("brfalse.s"); Keywords.Add("brinst"); Keywords.Add("brinst.s"); Keywords.Add("brnull"); Keywords.Add("brnull.s"); Keywords.Add("brtrue"); Keywords.Add("brtrue.s"); Keywords.Add("brzero"); Keywords.Add("brzero.s"); Keywords.Add("bstr"); Keywords.Add("bytearray"); Keywords.Add("byvalstr"); Keywords.Add("call"); Keywords.Add("calli"); Keywords.Add("callmostderived"); Keywords.Add("callvirt"); Keywords.Add("carray"); Keywords.Add("castclass"); Keywords.Add("catch"); Keywords.Add("cdecl"); Keywords.Add("ceq"); Keywords.Add("cf"); Keywords.Add("cgt"); Keywords.Add("cgt.un"); //Keywords.Add("char"); Keywords.Add("cil"); Keywords.Add("ckfinite"); Keywords.Add("class"); Keywords.Add("clsid"); Keywords.Add("clt"); Keywords.Add("clt.un"); Keywords.Add("const"); Keywords.Add("conv.i"); Keywords.Add("conv.i1"); Keywords.Add("conv.i2"); Keywords.Add("conv.i4"); Keywords.Add("conv.i8"); Keywords.Add("conv.ovf.i"); Keywords.Add("conv.ovf.i.un"); Keywords.Add("conv.ovf.i1"); Keywords.Add("conv.ovf.i1.un"); Keywords.Add("conv.ovf.i2"); Keywords.Add("conv.ovf.i2.un"); Keywords.Add("conv.ovf.i4"); Keywords.Add("conv.ovf.i4.un"); Keywords.Add("conv.ovf.i8"); Keywords.Add("conv.ovf.i8.un"); Keywords.Add("conv.ovf.u"); Keywords.Add("conv.ovf.u.un"); Keywords.Add("conv.ovf.u1"); Keywords.Add("conv.ovf.u1.un"); Keywords.Add("conv.ovf.u2"); Keywords.Add("conv.ovf.u2.un"); Keywords.Add("conv.ovf.u4"); Keywords.Add("conv.ovf.u4.un"); Keywords.Add("conv.ovf.u8"); Keywords.Add("conv.ovf.u8.un"); Keywords.Add("conv.r.un"); Keywords.Add("conv.r4"); Keywords.Add("conv.r8"); Keywords.Add("conv.u"); Keywords.Add("conv.u1"); Keywords.Add("conv.u2"); Keywords.Add("conv.u4"); Keywords.Add("conv.u8"); Keywords.Add("cpblk"); Keywords.Add("cpobj"); //Keywords.Add("currency"); Keywords.Add("custom"); //Keywords.Add("date"); //Keywords.Add("decimal"); Keywords.Add("default"); Keywords.Add("demand"); Keywords.Add("deny"); Keywords.Add("div"); Keywords.Add("div.un"); Keywords.Add("dup"); Keywords.Add("endfault"); Keywords.Add("endfilter"); Keywords.Add("endfinally"); Keywords.Add("endmac"); Keywords.Add("enum"); Keywords.Add("error"); Keywords.Add("explicit"); Keywords.Add("extends"); Keywords.Add("extern"); Keywords.Add("false"); Keywords.Add("famandassem"); Keywords.Add("family"); Keywords.Add("famorassem"); Keywords.Add("fastcall"); Keywords.Add("fastcall"); Keywords.Add("fault"); Keywords.Add("field"); Keywords.Add("filetime"); Keywords.Add("filter"); Keywords.Add("final"); Keywords.Add("finally"); Keywords.Add("fixed"); //Keywords.Add("float"); //Keywords.Add("float32"); //Keywords.Add("float64"); Keywords.Add("forwardref"); Keywords.Add("fromunmanaged"); Keywords.Add("handler"); Keywords.Add("hidebysig"); Keywords.Add("hresult"); Keywords.Add("idispatch"); Keywords.Add("il"); Keywords.Add("illegal"); Keywords.Add("implements"); Keywords.Add("implicitcom"); Keywords.Add("implicitres"); Keywords.Add("import"); Keywords.Add("in"); Keywords.Add("inheritcheck"); Keywords.Add("init"); Keywords.Add("initblk"); Keywords.Add("initobj"); Keywords.Add("initonly"); Keywords.Add("instance"); //Keywords.Add("int"); //Keywords.Add("int16"); //Keywords.Add("int32"); //Keywords.Add("int64"); //Keywords.Add("int8"); Keywords.Add("interface"); Keywords.Add("internalcall"); Keywords.Add("isinst"); Keywords.Add("iunknown"); Keywords.Add("jmp"); Keywords.Add("lasterr"); Keywords.Add("lcid"); Keywords.Add("ldarg"); Keywords.Add("ldarg.0"); Keywords.Add("ldarg.1"); Keywords.Add("ldarg.2"); Keywords.Add("ldarg.3"); Keywords.Add("ldarg.s"); Keywords.Add("ldarga"); Keywords.Add("ldarga.s"); Keywords.Add("ldc.i4"); Keywords.Add("ldc.i4.0"); Keywords.Add("ldc.i4.1"); Keywords.Add("ldc.i4.2"); Keywords.Add("ldc.i4.3"); Keywords.Add("ldc.i4.4"); Keywords.Add("ldc.i4.5"); Keywords.Add("ldc.i4.6"); Keywords.Add("ldc.i4.7"); Keywords.Add("ldc.i4.8"); Keywords.Add("ldc.i4.M1"); Keywords.Add("ldc.i4.m1"); Keywords.Add("ldc.i4.s"); Keywords.Add("ldc.i8"); Keywords.Add("ldc.r4"); Keywords.Add("ldc.r8"); Keywords.Add("ldelem.i"); Keywords.Add("ldelem.i1"); Keywords.Add("ldelem.i2"); Keywords.Add("ldelem.i4"); Keywords.Add("ldelem.i8"); Keywords.Add("ldelem.r4"); Keywords.Add("ldelem.r8"); Keywords.Add("ldelem.ref"); Keywords.Add("ldelem.u1"); Keywords.Add("ldelem.u2"); Keywords.Add("ldelem.u4"); Keywords.Add("ldelem.u8"); Keywords.Add("ldelema"); Keywords.Add("ldfld"); Keywords.Add("ldflda"); Keywords.Add("ldftn"); Keywords.Add("ldind.i"); Keywords.Add("ldind.i1"); Keywords.Add("ldind.i2"); Keywords.Add("ldind.i4"); Keywords.Add("ldind.i8"); Keywords.Add("ldind.r4"); Keywords.Add("ldind.r8"); Keywords.Add("ldind.ref"); Keywords.Add("ldind.u1"); Keywords.Add("ldind.u2"); Keywords.Add("ldind.u4"); Keywords.Add("ldind.u8"); Keywords.Add("ldlen"); Keywords.Add("ldloc"); Keywords.Add("ldloc.0"); Keywords.Add("ldloc.1"); Keywords.Add("ldloc.2"); Keywords.Add("ldloc.3"); Keywords.Add("ldloc.s"); Keywords.Add("ldloca"); Keywords.Add("ldloca.s"); Keywords.Add("ldnull"); Keywords.Add("ldobj"); Keywords.Add("ldsfld"); Keywords.Add("ldsflda"); Keywords.Add("ldstr"); Keywords.Add("ldtoken"); Keywords.Add("ldvirtftn"); Keywords.Add("leave"); Keywords.Add("leave.s"); Keywords.Add("linkcheck"); Keywords.Add("literal"); Keywords.Add("localloc"); Keywords.Add("lpstr"); Keywords.Add("lpstruct"); Keywords.Add("lptstr"); Keywords.Add("lpvoid"); Keywords.Add("lpwstr"); Keywords.Add("managed"); Keywords.Add("marshal"); Keywords.Add("method"); Keywords.Add("mkrefany"); Keywords.Add("modopt"); Keywords.Add("modreq"); Keywords.Add("mul"); Keywords.Add("mul.ovf"); Keywords.Add("mul.ovf.un"); Keywords.Add("native"); Keywords.Add("neg"); Keywords.Add("nested"); Keywords.Add("newarr"); Keywords.Add("newobj"); Keywords.Add("newslot"); Keywords.Add("noappdomain"); Keywords.Add("noinlining"); Keywords.Add("nomachine"); Keywords.Add("nomangle"); Keywords.Add("nometadata"); Keywords.Add("noncasdemand"); Keywords.Add("noncasinheritance"); Keywords.Add("noncaslinkdemand"); Keywords.Add("nop"); Keywords.Add("noprocess"); Keywords.Add("not"); Keywords.Add("not_in_gc_heap"); Keywords.Add("notremotable"); Keywords.Add("notserialized"); Keywords.Add("null"); Keywords.Add("nullref"); //Keywords.Add("object"); Keywords.Add("objectref"); Keywords.Add("opt"); Keywords.Add("optil"); Keywords.Add("or"); Keywords.Add("out"); Keywords.Add("permitonly"); Keywords.Add("pinned"); Keywords.Add("pinvokeimpl"); Keywords.Add("pop"); Keywords.Add("prefix1"); Keywords.Add("prefix2"); Keywords.Add("prefix3"); Keywords.Add("prefix4"); Keywords.Add("prefix5"); Keywords.Add("prefix6"); Keywords.Add("prefix7"); Keywords.Add("prefixref"); Keywords.Add("prejitdeny"); Keywords.Add("prejitgrant"); Keywords.Add("preservesig"); Keywords.Add("private"); Keywords.Add("privatescope"); Keywords.Add("protected"); Keywords.Add("public"); Keywords.Add("readonly"); Keywords.Add("record"); Keywords.Add("refany"); Keywords.Add("refanytype"); Keywords.Add("refanyval"); Keywords.Add("rem"); Keywords.Add("rem.un"); Keywords.Add("reqmin"); Keywords.Add("reqopt"); Keywords.Add("reqrefuse"); Keywords.Add("reqsecobj"); Keywords.Add("request"); Keywords.Add("ret"); Keywords.Add("rethrow"); Keywords.Add("retval"); Keywords.Add("rtspecialname"); Keywords.Add("runtime"); Keywords.Add("safearray"); Keywords.Add("sealed"); Keywords.Add("sequential"); Keywords.Add("serializable"); Keywords.Add("shl"); Keywords.Add("shr"); Keywords.Add("shr.un"); Keywords.Add("sizeof"); Keywords.Add("special"); Keywords.Add("specialname"); Keywords.Add("starg"); Keywords.Add("starg.s"); Keywords.Add("static"); Keywords.Add("stdcall"); Keywords.Add("stdcall"); Keywords.Add("stelem.i"); Keywords.Add("stelem.i1"); Keywords.Add("stelem.i2"); Keywords.Add("stelem.i4"); Keywords.Add("stelem.i8"); Keywords.Add("stelem.r4"); Keywords.Add("stelem.r8"); Keywords.Add("stelem.ref"); Keywords.Add("stfld"); Keywords.Add("stind.i"); Keywords.Add("stind.i1"); Keywords.Add("stind.i2"); Keywords.Add("stind.i4"); Keywords.Add("stind.i8"); Keywords.Add("stind.r4"); Keywords.Add("stind.r8"); Keywords.Add("stind.ref"); Keywords.Add("stloc"); Keywords.Add("stloc.0"); Keywords.Add("stloc.1"); Keywords.Add("stloc.2"); Keywords.Add("stloc.3"); Keywords.Add("stloc.s"); Keywords.Add("stobj"); Keywords.Add("storage"); Keywords.Add("stored_object"); Keywords.Add("stream"); Keywords.Add("streamed_object"); //Keywords.Add("string"); Keywords.Add("struct"); Keywords.Add("stsfld"); Keywords.Add("sub"); Keywords.Add("sub.ovf"); Keywords.Add("sub.ovf.un"); Keywords.Add("switch"); Keywords.Add("synchronized"); Keywords.Add("syschar"); Keywords.Add("sysstring"); Keywords.Add("tail."); Keywords.Add("tbstr"); Keywords.Add("thiscall"); Keywords.Add("throw"); Keywords.Add("tls"); Keywords.Add("to"); Keywords.Add("true"); Keywords.Add("typedref"); Keywords.Add("unaligned."); Keywords.Add("unbox"); Keywords.Add("unicode"); Keywords.Add("unmanaged"); Keywords.Add("unmanagedexp"); Keywords.Add("unsigned"); Keywords.Add("unused"); Keywords.Add("userdefined"); Keywords.Add("value"); Keywords.Add("valuetype"); Keywords.Add("vararg"); Keywords.Add("variant"); Keywords.Add("vector"); Keywords.Add("virtual"); Keywords.Add("void"); Keywords.Add("volatile."); Keywords.Add("wchar"); Keywords.Add("winapi"); Keywords.Add("with"); Keywords.Add("wrapper"); Keywords.Add("xor"); }
public IParameter LocateParameterFromName(string identification, string paramterName) { return(StringParameter.FromStringParameterName(Scope, identification, paramterName)); }
public override void LogosSplusInitialize() { _SplusNVRAM = new SplusNVRAM(this); INIT = new Crestron.Logos.SplusObjects.DigitalInput(INIT__DigitalInput__, this); m_DigitalInputList.Add(INIT__DigitalInput__, INIT); GETINFO = new Crestron.Logos.SplusObjects.DigitalInput(GETINFO__DigitalInput__, this); m_DigitalInputList.Add(GETINFO__DigitalInput__, GETINFO); ROOMON = new Crestron.Logos.SplusObjects.DigitalInput(ROOMON__DigitalInput__, this); m_DigitalInputList.Add(ROOMON__DigitalInput__, ROOMON); ROOMOFF = new Crestron.Logos.SplusObjects.DigitalInput(ROOMOFF__DigitalInput__, this); m_DigitalInputList.Add(ROOMOFF__DigitalInput__, ROOMOFF); COLORLOOPON = new Crestron.Logos.SplusObjects.DigitalInput(COLORLOOPON__DigitalInput__, this); m_DigitalInputList.Add(COLORLOOPON__DigitalInput__, COLORLOOPON); SCENES = new InOutArray <DigitalInput>(20, this); for (uint i = 0; i < 20; i++) { SCENES[i + 1] = new Crestron.Logos.SplusObjects.DigitalInput(SCENES__DigitalInput__ + i, SCENES__DigitalInput__, this); m_DigitalInputList.Add(SCENES__DigitalInput__ + i, SCENES[i + 1]); } ROOMONLINE = new Crestron.Logos.SplusObjects.DigitalOutput(ROOMONLINE__DigitalOutput__, this); m_DigitalOutputList.Add(ROOMONLINE__DigitalOutput__, ROOMONLINE); ROOMISON = new Crestron.Logos.SplusObjects.DigitalOutput(ROOMISON__DigitalOutput__, this); m_DigitalOutputList.Add(ROOMISON__DigitalOutput__, ROOMISON); ROOMBRIIN = new Crestron.Logos.SplusObjects.AnalogInput(ROOMBRIIN__AnalogSerialInput__, this); m_AnalogInputList.Add(ROOMBRIIN__AnalogSerialInput__, ROOMBRIIN); ROOMHUEIN = new Crestron.Logos.SplusObjects.AnalogInput(ROOMHUEIN__AnalogSerialInput__, this); m_AnalogInputList.Add(ROOMHUEIN__AnalogSerialInput__, ROOMHUEIN); ROOMSATIN = new Crestron.Logos.SplusObjects.AnalogInput(ROOMSATIN__AnalogSerialInput__, this); m_AnalogInputList.Add(ROOMSATIN__AnalogSerialInput__, ROOMSATIN); XYVAL = new InOutArray <AnalogInput>(2, this); for (uint i = 0; i < 2; i++) { XYVAL[i + 1] = new Crestron.Logos.SplusObjects.AnalogInput(XYVAL__AnalogSerialInput__ + i, XYVAL__AnalogSerialInput__, this); m_AnalogInputList.Add(XYVAL__AnalogSerialInput__ + i, XYVAL[i + 1]); } SCENESNUM = new Crestron.Logos.SplusObjects.AnalogOutput(SCENESNUM__AnalogSerialOutput__, this); m_AnalogOutputList.Add(SCENESNUM__AnalogSerialOutput__, SCENESNUM); ROOMBRIOUT = new Crestron.Logos.SplusObjects.AnalogOutput(ROOMBRIOUT__AnalogSerialOutput__, this); m_AnalogOutputList.Add(ROOMBRIOUT__AnalogSerialOutput__, ROOMBRIOUT); ROOMHUEOUT = new Crestron.Logos.SplusObjects.AnalogOutput(ROOMHUEOUT__AnalogSerialOutput__, this); m_AnalogOutputList.Add(ROOMHUEOUT__AnalogSerialOutput__, ROOMHUEOUT); ROOMSATOUT = new Crestron.Logos.SplusObjects.AnalogOutput(ROOMSATOUT__AnalogSerialOutput__, this); m_AnalogOutputList.Add(ROOMSATOUT__AnalogSerialOutput__, ROOMSATOUT); ROOMNAMELISTITEM = new Crestron.Logos.SplusObjects.StringInput(ROOMNAMELISTITEM__AnalogSerialInput__, 20, this); m_StringInputList.Add(ROOMNAMELISTITEM__AnalogSerialInput__, ROOMNAMELISTITEM); RMCLASS = new Crestron.Logos.SplusObjects.StringOutput(RMCLASS__AnalogSerialOutput__, this); m_StringOutputList.Add(RMCLASS__AnalogSerialOutput__, RMCLASS); ROOMSCENENAME = new InOutArray <StringOutput>(20, this); for (uint i = 0; i < 20; i++) { ROOMSCENENAME[i + 1] = new Crestron.Logos.SplusObjects.StringOutput(ROOMSCENENAME__AnalogSerialOutput__ + i, this); m_StringOutputList.Add(ROOMSCENENAME__AnalogSerialOutput__ + i, ROOMSCENENAME[i + 1]); } ROOMNAME = new StringParameter(ROOMNAME__Parameter__, this); m_ParameterList.Add(ROOMNAME__Parameter__, ROOMNAME); GETINFO.OnDigitalPush.Add(new InputChangeHandlerWrapper(GETINFO_OnPush_0, false)); INIT.OnDigitalPush.Add(new InputChangeHandlerWrapper(INIT_OnPush_1, false)); ROOMON.OnDigitalPush.Add(new InputChangeHandlerWrapper(ROOMON_OnPush_2, false)); ROOMOFF.OnDigitalPush.Add(new InputChangeHandlerWrapper(ROOMOFF_OnPush_3, false)); COLORLOOPON.OnDigitalPush.Add(new InputChangeHandlerWrapper(COLORLOOPON_OnPush_4, false)); COLORLOOPON.OnDigitalRelease.Add(new InputChangeHandlerWrapper(COLORLOOPON_OnRelease_5, false)); for (uint i = 0; i < 20; i++) { SCENES[i + 1].OnDigitalPush.Add(new InputChangeHandlerWrapper(SCENES_OnPush_6, false)); } ROOMBRIIN.OnAnalogChange.Add(new InputChangeHandlerWrapper(ROOMBRIIN_OnChange_7, true)); ROOMHUEIN.OnAnalogChange.Add(new InputChangeHandlerWrapper(ROOMHUEIN_OnChange_8, true)); ROOMSATIN.OnAnalogChange.Add(new InputChangeHandlerWrapper(ROOMSATIN_OnChange_9, true)); for (uint i = 0; i < 2; i++) { XYVAL[i + 1].OnAnalogChange.Add(new InputChangeHandlerWrapper(XYVAL_OnChange_10, true)); } _SplusNVRAM.PopulateCustomAttributeList(true); NVRAM = _SplusNVRAM; }