Class Mail
Object
Mail
- All Implemented Interfaces:
Serializable
Contents of mail someone has sent. For a list of receivers of the mail, see
MailReceiver.- Author:
- maartenl
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longContains the item ids of the different items that represent letters/mail. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBody()Indicates wether or not the original send of the mail, has deleted the mail.getId()getName()Returns the sender of the mail.The subject or title of the mail.Returns the receiver(s) of the mail.inthashCode()voidvoidsetDeleted(Boolean deleted) voidvoidSets the sender of the mail.voidsetSubject(String subject) voidSets the receiver of the mail.voidsetWhensent(LocalDateTime whensent) toString()
-
Field Details
-
ID_OLD_FADED_YELLOW_PARCHMENT
public static final long ID_OLD_FADED_YELLOW_PARCHMENT- See Also:
-
ID_CRUMPLED_PIECE_OF_PAPER
public static final long ID_CRUMPLED_PIECE_OF_PAPER- See Also:
-
ID_OFFICIAL_LOOKING_SEALED_LEGAL_DOCUMENT
public static final long ID_OFFICIAL_LOOKING_SEALED_LEGAL_DOCUMENT- See Also:
-
ID_IMPRESSIVE_LOOKING_FORGED_LEGAL_DOCUMENT
public static final long ID_IMPRESSIVE_LOOKING_FORGED_LEGAL_DOCUMENT- See Also:
-
ID_HANDWRITTEN_FOLDED_INKSPATTERED_LETTER
public static final long ID_HANDWRITTEN_FOLDED_INKSPATTERED_LETTER- See Also:
-
ID_SHORT_RUSHED_SQUARESHAPED_MEMO
public static final long ID_SHORT_RUSHED_SQUARESHAPED_MEMO- See Also:
-
ID_EMBOSSED_BEAUTIFULLY_WRITTEN_LEAFLET
public static final long ID_EMBOSSED_BEAUTIFULLY_WRITTEN_LEAFLET- See Also:
-
ID_EMBOSSED_BEAUTIFULLY_WRITTEN_INVITATION
public static final long ID_EMBOSSED_BEAUTIFULLY_WRITTEN_INVITATION- See Also:
-
ITEMS
Contains the item ids of the different items that represent letters/mail. The readdescription of said letters looks a little like the following:"stuffletterhead letterbody letterfooter"
That way, the letterhead, letterbody and letterfooter are automatically replaced.
-
-
Constructor Details
-
Mail
public Mail()
-
-
Method Details
-
getId
-
setId
-
getSubject
The subject or title of the mail.- Returns:
- String containing the subject.
-
setSubject
- See Also:
-
getWhensent
-
setWhensent
-
getBody
-
setBody
-
getDeleted
Indicates wether or not the original send of the mail, has deleted the mail. This has no effect on the mail received, these are still viewable by the receivers. -
setDeleted
- See Also:
-
getToname
Returns the receiver(s) of the mail. as originally typed. For example, "Jim", but also "Jim, Hank", but also possible is "guild", "deputies", "everybody", "guild: The Inner Flame".
As such there is no hard relation to persons or anything of the kind. It's just a string.
- Returns:
- comma separated list of all people receiving the mail
-
setToname
-
getName
-
setName
-
hashCode
-
equals
-
toString
-