Class BoardMessage
Object
BoardMessage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoard()getId()Returns the contents of the message as posted.Indicates that the message has been removed, due to offensive content.Indicates if a message of a board is pinned or not.booleanIndicates that the message has been removed.inthashCode()voidvoidvoidsetMessage(String message) voidsetOffensive(Boolean offensive) voidvoidsetPosttime(LocalDateTime posttime) voidsetRemoved(Boolean removed) toString()
-
Constructor Details
-
BoardMessage
public BoardMessage()
-
-
Method Details
-
getMessage
Returns the contents of the message as posted. If the message has been removed, it will return the message "Message has been removed due to offensive content.".- Returns:
- the contents of the message on the board.
- See Also:
-
setMessage
-
getRemoved
public boolean getRemoved()Indicates that the message has been removed.- Returns:
- true if removed, false otherwise.
-
getOffensive
Indicates that the message has been removed, due to offensive content.- Returns:
- true if removed, false otherwise.
-
setOffensive
- Parameters:
offensive- true if the message needs be removed, due to offensive content, false otherwise.
-
setRemoved
- Parameters:
removed- true if the message needs be removed, fals otherwise.
-
getPinned
Indicates if a message of a board is pinned or not. -
setPinned
-
getBoard
-
setBoard
-
getId
-
setId
-
getPerson
-
setPerson
-
getPosttime
-
setPosttime
-
hashCode
-
equals
-
toString
-