# GenericPost

# GenericPost

*** ** * ** ***

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

<br />

```
class GenericPost
```

<br />

*** ** * ** ***

An object representing a generic social media post.

## Summary

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

|                                                                                                                                               ### Public functions                                                                                                                                                |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[LinkPreview](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/LinkPreview)`!>!`                                                                                             | [getLinkPreview](https://developer.android.com/reference/kotlin/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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getTextContent](https://developer.android.com/reference/kotlin/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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!>!`                                                                                                                                     | [getTimestamp](https://developer.android.com/reference/kotlin/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/kotlin/com/google/android/engage/common/datamodel/VideoPreview)`!>!`                                                                                           | [getVideoContent](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/GenericPost#getVideoContent())`()` Indicate the video preview content for the post. |
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!>!` | [getVisualContent](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/GenericPost#getVisualContent())`()` Indicate the image content for the post.       |

## Public functions

### getLinkPreview

```
fun getLinkPreview(): Optional<LinkPreview!>!
```

Indicate the link preview content for the post.  

### getTextContent

```
fun getTextContent(): Optional<String!>!
```

Indicate the text content for the post.  

### getTimestamp

```
fun getTimestamp(): Optional<Long!>!
```  

### getVideoContent

```
fun getVideoContent(): Optional<VideoPreview!>!
```

Indicate the video preview content for the post.  

### getVisualContent

```
fun getVisualContent(): (Mutable)List<Image!>!
```

Indicate the image content for the post.