# PortraitMediaPost

# PortraitMediaPost

*** ** * ** ***

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

<br />

```
public final class PortraitMediaPost
```

<br />

*** ** * ** ***

An object representing a portrait media social media post.

## Summary

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

| ### Public fields |
|-------------------|-----------------------------------------------------------------------------------------------------------------------------------------|
| `final boolean`   | [isVideoContent](https://developer.android.com/reference/com/google/android/engage/social/datamodel/PortraitMediaPost#isVideoContent()) |

|                                                                             ### Public methods                                                                             |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [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/PortraitMediaPost#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/PortraitMediaPost#getTimestamp())`()`                                                                                 |
| [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)`>`         | [getVideoDurationMillis](https://developer.android.com/reference/com/google/android/engage/social/datamodel/PortraitMediaPost#getVideoDurationMillis())`()` Indicate the duration of the video content in milliseconds. |
| [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/PortraitMediaPost#getVisualContent())`()` Indicate the image content for the post.                                |
| `boolean`                                                                                                                                                                  | [isVideoContent](https://developer.android.com/reference/com/google/android/engage/social/datamodel/PortraitMediaPost#isVideoContent())`()` Indicate the post has a video content.                                      |

## Public fields

### isVideoContent

```
public final boolean isVideoContent
```  

## Public methods

### getTextContent

```
public Optional<String> getTextContent()
```

Indicate the text content for the post.  

### getTimestamp

```
public Optional<Long> getTimestamp()
```  

### getVideoDurationMillis

```
public Optional<Long> getVideoDurationMillis()
```

Indicate the duration of the video content in milliseconds.  

### getVisualContent

```
public List<Image> getVisualContent()
```

Indicate the image content for the post.  

### isVideoContent

```
public boolean isVideoContent()
```

Indicate the post has a video content.