GenericPost.Builder


public final class GenericPost.Builder


Builder class for GenericPost.

Summary

Public constructors

Public methods

GenericPost.Builder

Add an image for the post.

GenericPost.Builder

Add the image contents for the post.

GenericPost
GenericPost.Builder

Indicate the link preview content for the post.

GenericPost.Builder

Indicate the text content for the post.

GenericPost.Builder

Sets the timestamp of the post.

GenericPost.Builder

Indicate the video preview content for the post.

Public constructors

Builder

public Builder()

Public methods

addVisualContent

@CanIgnoreReturnValue
public GenericPost.Builder addVisualContent(Image image)

Add an image for the post.

Optional.

addVisualContents

@CanIgnoreReturnValue
public GenericPost.Builder addVisualContents(List<Image> images)

Add the image contents for the post.

Optional.

build

public GenericPost build()

setLinkPreviewContent

@CanIgnoreReturnValue
public GenericPost.Builder setLinkPreviewContent(LinkPreview linkPreview)

Indicate the link preview content for the post.

Optional.

setTextContent

@CanIgnoreReturnValue
public GenericPost.Builder setTextContent(String textContent)

Indicate the text content for the post.

Optional.

setTimestamp

@CanIgnoreReturnValue
public GenericPost.Builder setTimestamp(long timestamp)

Sets the timestamp of the post.

Optional.

setVideoContent

@CanIgnoreReturnValue
public GenericPost.Builder setVideoContent(VideoPreview videoContent)

Indicate the video preview content for the post.

Optional.