Interaction


public final class Interaction


An object representing a interaction on a content.

Summary

Nested types

public final class Interaction.Builder

Builder class for Interaction.

Public fields

final String
final Long

Public methods

String

Returns the number of reactions e.g. “3.7 M”

Long

Returns the count value of the interaction.

Optional<String>

Indicate what the interaction is for. e.g. “Likes”

List<Image>

Returns the images/icon showing what the interaction is for

Public fields

count

public final String count

countValue

public final Long countValue

Public methods

getCount

public String getCount()

Returns the number of reactions e.g. “3.7 M”

getCountValue

public Long getCountValue()

Returns the count value of the interaction.

getLabel

public Optional<StringgetLabel()

Indicate what the interaction is for. e.g. “Likes”

getVisuals

public List<ImagegetVisuals()

Returns the images/icon showing what the interaction is for