Calendar trigger

This commit is contained in:
2024-01-20 23:47:32 +01:00
parent 1ff4a15818
commit b7677bdcce
14 changed files with 502 additions and 24 deletions

View File

@ -839,4 +839,30 @@ public class Rule implements Comparable<Rule>
return false;
}
public int getAmountOfTriggersForType(Trigger.Trigger_Enum type)
{
int amount = 0;
for(Trigger t : getTriggerSet())
{
if(t.getTriggerType().equals(type))
amount++;
}
return amount;
}
public int getAmountOfActionsForType(Action.Action_Enum type)
{
int amount = 0;
for(Action a : getActionSet())
{
if(a.getAction().equals(type))
amount++;
}
return amount;
}
}