public void Post(string value) { //break here to inspect message from qualtrics. TriggerPackage triggerPackage = new TriggerPackage(); triggerPackage.ExternalDataReference = "Not Implemented"; triggerPackage.UserResponse = QuestionResponse.SomethingGood; //then send triggerPackage to Scheduler. //the probabilities are .3 for SomethingGood or SomethingBad //the probability is .1 for NothingHappened }
public void RegisterTrigger(IEnumerable <Transform> inputTransforms, Predicate <IEnumerable <Transform> > triggerPredicate, Action consequeceAction) { var newTrigger = new TriggerPackage(); newTrigger.Trigger = triggerPredicate; newTrigger.Transforms = inputTransforms; newTrigger.Consequence = consequeceAction; _triggerStore.Add(newTrigger); }