# GenericPost

# GenericPost

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/GenericPost "View this page in Kotlin")\|Java  

<br />

```
public final class GenericPost
```

<br />

*** ** * ** ***

An object representing a generic social media post.

## Summary

|                                                                                                                                  ### Nested types                                                                                                                                  |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `public final class `[GenericPost.Builder](https://developer.android.com/reference/com/google/android/engage/social/datamodel/GenericPost.Builder) Builder class for[GenericPost](https://developer.android.com/reference/com/google/android/engage/social/datamodel/GenericPost). |

|                                                                                               ### Public methods                                                                                               |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[LinkPreview](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LinkPreview)`>`   | [getLinkPreview](https://developer.android.com/reference/com/google/android/engage/social/datamodel/GenericPost#getLinkPreview())`()` Indicate the link preview content for the post.    |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                         | [getTextContent](https://developer.android.com/reference/com/google/android/engage/social/datamodel/GenericPost#getTextContent())`()` Indicate the text content for the post.            |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Long](https://developer.android.com/reference/java/lang/Long.html)`>`                                             | [getTimestamp](https://developer.android.com/reference/com/google/android/engage/social/datamodel/GenericPost#getTimestamp())`()`                                                        |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[VideoPreview](https://developer.android.com/reference/com/google/android/engage/common/datamodel/VideoPreview)`>` | [getVideoContent](https://developer.android.com/reference/com/google/android/engage/social/datamodel/GenericPost#getVideoContent())`()` Indicate the video preview content for the post. |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)`>`                                     | [getVisualContent](https://developer.android.com/reference/com/google/android/engage/social/datamodel/GenericPost#getVisualContent())`()` 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.