Package passport.domain.models.email
Class EmailMetadata
java.lang.Object
passport.domain.models.email.EmailMetadata
Represents the metadata of an email, including sender, recipient, and
subject.
-
Constructor Summary
ConstructorDescriptionEmailMetadata
(EmailAddress senderEmail, EmailAddress recipientEmail, String subject) Constructs a new EmailMetadata with the specified sender, recipient, and subject. -
Method Summary
-
Constructor Details
-
EmailMetadata
Constructs a new EmailMetadata with the specified sender, recipient, and subject.- Parameters:
senderEmail
- the email address of the senderrecipientEmail
- the email address of the recipientsubject
- the subject of the email
-
-
Method Details
-
sender
Returns the sender's email address.- Returns:
- the sender's email address
-
recipient
Returns the recipient's email address.- Returns:
- the recipient's email address
-
subject
-