public class AppMessageBuilder extends Object
Constructor and Description |
---|
AppMessageBuilder()
Constructor
|
Modifier and Type | Method and Description |
---|---|
AppMessage |
build()
Build the AppMessage object (Actor is a child of AppMessage)
|
AppMessageBuilder |
setActorAvatar(String avatar) |
AppMessageBuilder |
setActorName(String name) |
AppMessageBuilder |
setActorUrl(String url) |
AppMessageBuilder |
setColor(String color) |
AppMessageBuilder |
setMessage(String text) |
AppMessageBuilder |
setMessageTitle(String title) |
public AppMessageBuilder setMessage(String text)
text
- String text for the messagepublic AppMessageBuilder setMessageTitle(String title)
title
- String title for the messagepublic AppMessageBuilder setActorName(String name)
name
- String name of the actorpublic AppMessageBuilder setActorAvatar(String avatar)
avatar
- String url for the avatar of the Actorpublic AppMessageBuilder setActorUrl(String url)
url
- String url for the Actor's web pagepublic AppMessageBuilder setColor(String color)
color
- String hex colour for the messagepublic AppMessage build()
Copyright © 2018 OpenNTF. All rights reserved.