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<LinkPreviewgetLinkPreview()

Indicate the link preview content for the post.

getTextContent

public Optional<StringgetTextContent()

Indicate the text content for the post.

getTimestamp

public Optional<LonggetTimestamp()

getVideoContent

public Optional<VideoPreviewgetVideoContent()

Indicate the video preview content for the post.

getVisualContent

public List<ImagegetVisualContent()

Indicate the image content for the post.