// GET api/<controller> public List <ParameterValue> Get(String parameterID) { ParameterValueContext _pvtx = new ParameterValueContext(); List <ParameterValue> debugList = new List <ParameterValue>(); debugList = _pvtx.GetParameterValuesByParameterID(parameterID); return(debugList); }
// GET api/<controller> public List <ParameterValue> Get() { ParameterValueContext _pvtx = new ParameterValueContext(); List <ParameterValue> debugList = new List <ParameterValue>(); debugList = _pvtx.GetParameterValues(); return(debugList); }
/// <summary> /// Initializes the <see cref="ParameterValueContextAttribute"/> class. /// </summary> /// <param name="parameterValueContext"> /// The <see cref="DataCollection.ParameterValueContext"/> to be used on <see cref="ParameterBase"/> type <see cref="DataCollectorParameter{TRow,TValue}"/>s. /// </param> /// <param name="parameterSubscriptionValueContext"> /// The <see cref="DataCollection.ParameterValueContext"/> to be used on <see cref="ParameterSubscription"/> type <see cref="DataCollectorParameter{TRow,TValue}"/>s. /// </param> private void Initialize(ParameterValueContext parameterValueContext, ParameterValueContext parameterSubscriptionValueContext) { this.ParameterValueContext = parameterValueContext; this.ParameterSubscriptionValueContext = parameterSubscriptionValueContext; }
/// <summary> /// Initializes a new instance of the <see cref="DefinedThingShortNameAttribute"/> class. /// </summary> /// <param name="parameterValueContext"> /// The <see cref="DataCollection.ParameterValueContext"/> to be used on <see cref="ParameterBase"/> type <see cref="DataCollectorParameter{TRow,TValue}"/>s. /// </param> /// <param name="parameterSubscriptionValueContext"> /// The <see cref="DataCollection.ParameterValueContext"/> to be used on <see cref="ParameterSubscription"/> type <see cref="DataCollectorParameter{TRow,TValue}"/>s. /// </param> public ParameterValueContextAttribute(ParameterValueContext parameterValueContext, ParameterValueContext parameterSubscriptionValueContext) { this.Initialize(parameterValueContext, parameterSubscriptionValueContext); }
public ParameterValueContext parameterValue() { ParameterValueContext _localctx = new ParameterValueContext(Context, State); EnterRule(_localctx, 4, RULE_parameterValue); int _la; try { State = 40; ErrorHandler.Sync(this); switch (Interpreter.AdaptivePredict(TokenStream, 3, Context)) { case 1: _localctx = new ScalarParameterValueContext(_localctx); EnterOuterAlt(_localctx, 1); { State = 20; ((ScalarParameterValueContext)_localctx).scalar = value(); } break; case 2: _localctx = new ValueListParameterValueContext(_localctx); EnterOuterAlt(_localctx, 2); { State = 21; Match(LEFT_PAREN); State = 22; ((ValueListParameterValueContext)_localctx)._value = value(); ((ValueListParameterValueContext)_localctx)._valueList.Add(((ValueListParameterValueContext)_localctx)._value); State = 27; ErrorHandler.Sync(this); _la = TokenStream.LA(1); while (_la == COMMA) { { { State = 23; Match(COMMA); State = 24; ((ValueListParameterValueContext)_localctx)._value = value(); ((ValueListParameterValueContext)_localctx)._valueList.Add(((ValueListParameterValueContext)_localctx)._value); } } State = 29; ErrorHandler.Sync(this); _la = TokenStream.LA(1); } State = 30; Match(RIGHT_PAREN); } break; case 3: _localctx = new ParameterListParameterValueContext(_localctx); EnterOuterAlt(_localctx, 3); { State = 36; ErrorHandler.Sync(this); _la = TokenStream.LA(1); do { { { State = 32; Match(LEFT_PAREN); State = 33; ((ParameterListParameterValueContext)_localctx)._parameter = parameter(); ((ParameterListParameterValueContext)_localctx)._parameterList.Add(((ParameterListParameterValueContext)_localctx)._parameter); State = 34; Match(RIGHT_PAREN); } } State = 38; ErrorHandler.Sync(this); _la = TokenStream.LA(1); } while (_la == LEFT_PAREN); } break; } } catch (RecognitionException re) { _localctx.exception = re; ErrorHandler.ReportError(this, re); ErrorHandler.Recover(this, re); } finally { ExitRule(); } return(_localctx); }
public ValueListParameterValueContext(ParameterValueContext context) { CopyFrom(context); }
public ScalarParameterValueContext(ParameterValueContext context) { CopyFrom(context); }
public virtual void CopyFrom(ParameterValueContext context) { base.CopyFrom(context); }