Class EventInformation
java.lang.Object
passport.domain.contexts.events.forms.EventInformation
Represents the information required for an event, including the title,
description, and schedule.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) Sets the description of the event.scheduledFor
(LocalDate schedule) Sets the schedule date of the event.submit()
Submits the event information and returns a Poster object containing the title, description, and schedule.Sets the title of the event.
-
Constructor Details
-
EventInformation
public EventInformation()
-
-
Method Details
-
title
Sets the title of the event.- Parameters:
title
- the title of the event- Returns:
- the updated EventInformation object
-
description
Sets the description of the event.- Parameters:
description
- the description of the event- Returns:
- the updated EventInformation object
-
scheduledFor
Sets the schedule date of the event.- Parameters:
schedule
- the date the event is scheduled for- Returns:
- the updated EventInformation object
-
submit
Submits the event information and returns a Poster object containing the title, description, and schedule.- Returns:
- a new Poster object with the event information
- Throws:
NullPointerException
- if any of the required fields (title, description, schedule) are null
-