SocialPostEntity


public final class SocialPostEntity extends Entity


An object representing a social media post.

Summary

Nested types

public final class SocialPostEntity.Builder

Builder class for SocialPostEntity.

Public fields

final GenericPost
final List<Interaction>

Public methods

Uri

Returns the action link uri of the social entity.

List<DisplayTimeWindow>

Returns the display time window associated with the social entity.

Optional<String>

Returns the id of the entity.

GenericPost

Returns the post related metadata for the social post entity.

List<Interaction>

Returns the interaction metadata for the social post entity.

Optional<Profile>

Returns the profile metadata for the social post entity.

Public fields

genericPost

public final GenericPost genericPost

interactions

public final List<Interactioninteractions

Public methods

getActionLinkUri

public Uri getActionLinkUri()

Returns the action link uri of the social entity.

getDisplayTimeWindows

public List<DisplayTimeWindowgetDisplayTimeWindows()

Returns the display time window associated with the social entity.

This can be used for several use cases like offer expiry time window, preorder availability time window.

getEntityId

public Optional<StringgetEntityId()

Returns the id of the entity.

getGenericPost

public GenericPost getGenericPost()

Returns the post related metadata for the social post entity.

getInteractions

public List<InteractiongetInteractions()

Returns the interaction metadata for the social post entity.

getProfile

public Optional<ProfilegetProfile()

Returns the profile metadata for the social post entity.