Class TasksDistributedEvent

java.lang.Object
no.ntnu.principes.event.PrincipesEvent<List<Task>>
no.ntnu.principes.event.task.TasksDistributedEvent

public class TasksDistributedEvent extends PrincipesEvent<List<Task>>
Represents an event that is triggered when tasks are distributed to household members.
  • Constructor Details

    • TasksDistributedEvent

      public TasksDistributedEvent(List<Task> tasks)
      Constructor for creating a new TasksDistributedEvent.
      Parameters:
      tasks - The tasks that has been created.
  • Method Details

    • of

      public static TasksDistributedEvent of(List<Task> tasks)
      Creates a new TasksDistributedEvent with the specified tasks.
      Parameters:
      tasks - The tasks that has been distributed.
      Returns:
      A new instance of TasksDistributedEvent.