public ValidationCodeName(ISqlQueryHelper sqlQueryHelper, IDBContext eddsDbContext, String codeTypeName, ChoiceDelegate callback) { EddsDbContext = eddsDbContext; CodeTypeName = codeTypeName; _callback = callback; _sqlQueryHelper = sqlQueryHelper; }
public DialogState(string name, string text, Dictionary <string, UIProp <object> > uiProps = null, Dictionary <string, float> variables = null, List <DialogChoice> choices = null, DialogSet parent = null, ChoiceDelegate onChoice = null, EventDelegate handleEvent = null, SkipDelegate onSkipped = null, StartDelegate onStarted = null) : base(name, parent, variables, handleEvent, onSkipped, onStarted) { this.text = text; this.uiProps = uiProps ?? new Dictionary <string, UIProp <object> >(); this.choices = choices ?? new List <DialogChoice>(); this.OnChoice = onChoice ?? defaultOnChoice; this.HandleEvent = handleEvent ?? defaultHandleEvent; this.OnStarted = onStarted ?? defaultOnStarted; this.OnSkipped = onSkipped ?? defaultOnSkipped; _active = false; }