private List <BaseAction> GetAndExecute(Data.Data data) { var actions = _actionHandler.GetActions(data); actions.ForEach(action => action.Execute(data)); return(actions); }
public List <BaseAction> GetAndExecute(Data.Data data) { var actions = _actionHandler.GetActions(data); var param = GetParams(data); if (EventType.TwitchSubscription.Equals(data.Type)) { param.Add("tier", data.Tier); } actions.ForEach(action => action.Execute(data, param)); return(actions); }