Package com.nadiyar.kiwi.model
Class FullMessageBuilder
java.lang.Object
com.nadiyar.kiwi.model.FullMessageBuilder
- All Implemented Interfaces:
MessageBuilder
Use this to instanciate a full message object including content,
sentBy and sentAt
- Author:
- Nadiyar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()create a newMessageobjectmsgContent(String content) Set content - what is message contentmsgSentAt(ZonedDateTime sentAt) Set sent time - when is message sentSet sentBy - who sent the message
-
Constructor Details
-
FullMessageBuilder
public FullMessageBuilder()
-
-
Method Details
-
build
create a newMessageobject- Specified by:
buildin interfaceMessageBuilder
-
msgContent
Set content - what is message content- Specified by:
msgContentin interfaceMessageBuilder- Parameters:
content- - String
-
msgSentAt
Set sent time - when is message sent- Specified by:
msgSentAtin interfaceMessageBuilder- Parameters:
sentAt- - ZonedDateTime
-
msgSentBy
Set sentBy - who sent the message- Specified by:
msgSentByin interfaceMessageBuilder- Parameters:
sentBy- - String
-