Class BoardMessage
Object
BoardMessage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBoard()
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.boolean
Indicates that the message has been removed.int
hashCode()
void
void
void
setMessage
(String message) void
setOffensive
(Boolean offensive) void
void
setPosttime
(LocalDateTime posttime) void
setRemoved
(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
-