Class POBCoreNativeRequestVideoAsset
-
- All Implemented Interfaces:
public final class POBCoreNativeRequestVideoAsset extends POBCoreNativeRequestAsset
This class represents the video asset in the native ad request.
-
-
Field Summary
Fields Modifier and Type Field Description private Integerwidthprivate Integerheightprivate final JSONObjectRTBJSONprivate final IntegerassetIdprivate final BooleanisAssetRequiredprivate final IntegerminDurationprivate final IntegermaxDurationprivate final IntArrayprotocolsprivate final Array<String>mimes
-
Method Summary
Modifier and Type Method Description final IntegergetWidth()Video width in pixels, or null if unset (omitted from request JSON). final UnitsetWidth(Integer width)Video width in pixels, or null if unset (omitted from request JSON). final IntegergetHeight()Video height in pixels, or null if unset (omitted from request JSON). final UnitsetHeight(Integer height)Video height in pixels, or null if unset (omitted from request JSON). JSONObjectgetRTBJSON()Convert the asset object to JSONObject final IntegergetAssetId()final BooleanisAssetRequired()final IntegergetMinDuration()Minimum video ad duration in seconds final IntegergetMaxDuration()Maximum video ad duration in seconds final IntArraygetProtocols()Array of supported video protocols final Array<String>getMimes()Whitelist of content MIME types supported for videoVideo dimensions are not part of the data class primary constructor; assign width and height directly. -
-
Method Detail
-
getWidth
final Integer getWidth()
Video width in pixels, or null if unset (omitted from request JSON).
-
setWidth
final Unit setWidth(Integer width)
Video width in pixels, or null if unset (omitted from request JSON).
-
getHeight
final Integer getHeight()
Video height in pixels, or null if unset (omitted from request JSON).
-
setHeight
final Unit setHeight(Integer height)
Video height in pixels, or null if unset (omitted from request JSON).
-
getRTBJSON
JSONObject getRTBJSON()
Convert the asset object to JSONObject
- Returns:
return the converted JSONObject
-
getAssetId
final Integer getAssetId()
-
isAssetRequired
final Boolean isAssetRequired()
-
getMinDuration
final Integer getMinDuration()
Minimum video ad duration in seconds
-
getMaxDuration
final Integer getMaxDuration()
Maximum video ad duration in seconds
-
getProtocols
final IntArray getProtocols()
Array of supported video protocols
-
getMimes
final Array<String> getMimes()
Whitelist of content MIME types supported for video
Video dimensions are not part of the data class primary constructor; assign width and height directly. They are excluded from equals/hashCode/toString generation. Calling copy produces a new instance with width and height unset until assigned again.
-
-
-
-