GenericPost.Builder


class GenericPost.Builder


Builder class for GenericPost.

Summary

Public constructors

Public functions

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

Builder()

Public functions

addVisualContent

@CanIgnoreReturnValue
fun addVisualContent(image: Image!): GenericPost.Builder!

Add an image for the post.

Optional.

addVisualContents

@CanIgnoreReturnValue
fun addVisualContents(images: (Mutable)List<Image!>!): GenericPost.Builder!

Add the image contents for the post.

Optional.

build

fun build(): GenericPost!

setLinkPreviewContent

@CanIgnoreReturnValue
fun setLinkPreviewContent(linkPreview: LinkPreview!): GenericPost.Builder!

Indicate the link preview content for the post.

Optional.

setTextContent

@CanIgnoreReturnValue
fun setTextContent(textContent: String!): GenericPost.Builder!

Indicate the text content for the post.

Optional.

setTimestamp

@CanIgnoreReturnValue
fun setTimestamp(timestamp: Long): GenericPost.Builder!

Sets the timestamp of the post.

Optional.

setVideoContent

@CanIgnoreReturnValue
fun setVideoContent(videoContent: VideoPreview!): GenericPost.Builder!

Indicate the video preview content for the post.

Optional.