GenericPost


public final class GenericPost


An object representing a generic social media post.

Summary

Nested types

public final class GenericPost.Builder

Builder class for GenericPost.

Public methods

Optional<LinkPreview>

Indicate the link preview content for the post.

Optional<String>

Indicate the text content for the post.

Optional<Long>
Optional<VideoPreview>

Indicate the video preview content for the post.

List<Image>

Indicate the image content for the post.

Public methods

getLinkPreview

public Optional<LinkPreview> getLinkPreview()

Indicate the link preview content for the post.

getTextContent

public Optional<String> getTextContent()

Indicate the text content for the post.

getTimestamp

public Optional<Long> getTimestamp()

getVideoContent

public Optional<VideoPreview> getVideoContent()

Indicate the video preview content for the post.

getVisualContent

public List<Image> getVisualContent()

Indicate the image content for the post.