Class InviteRequest.Builder
- Enclosing class:
InviteRequest
InviteRequest.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Validates and builds the request.Groups this invite with others for reporting, for example a seasonal push.How the invite is being sent, for examplesmsorwhatsapp.description(String description) The body text on the preview card.The image on the preview card, as an absolute address.Adds a custom parameter carried to the invited device.An application defined string handed back to the invited device, for example the room or team the friend is being invited to.The headline on the preview card the link shows in a messaging application.
-
Method Details
-
campaign
Groups this invite with others for reporting, for example a seasonal push. Letters, digits,
.,_and-only.Parameters
campaign: the campaign name
Returns
this builder
-
channel
How the invite is being sent, for example
smsorwhatsapp. Letters, digits,.,_and-only.Parameters
channel: the channel name
Returns
this builder
-
payload
An application defined string handed back to the invited device, for example the room or team the friend is being invited to.
Parameters
payload: the payload
Returns
this builder
-
title
The headline on the preview card the link shows in a messaging application.
Parameters
title: the title
Returns
this builder
-
description
The body text on the preview card.
Parameters
description: the description
Returns
this builder
-
imageUrl
The image on the preview card, as an absolute address.
Parameters
url: the image address
Returns
this builder
-
param
Adds a custom parameter carried to the invited device. A null value removes the key.
Parameters
-
key: the parameter name -
value: the parameter value, or null to remove it
Returns
this builder
-
-
build
Validates and builds the request.
Returns
the immutable request
-