Class POBCoreNativeRequestImageAsset
-
- All Implemented Interfaces:
public final class POBCoreNativeRequestImageAsset extends POBCoreNativeRequestAsset
This class represents the image asset in the request.
-
-
Field Summary
Fields Modifier and Type Field Description private final JSONObjectRTBJSON
-
Constructor Summary
Constructors Constructor Description POBCoreNativeRequestImageAsset(Integer id, Boolean required, POBNativeImageAssetType type, Integer minimumWidth, Integer minimumHeight)
-
Method Summary
Modifier and Type Method Description JSONObjectgetRTBJSON()final UnitsetMimes(List<String> mimes)Setter of Mimes type list final List<String>getMimes()Getter for mimes final POBNativeImageAssetTypegetType()Getter for image asset type final IntegergetMinimumWidth()Getter for minimum width final IntegergetMinimumHeight()Getter for minimum height -
-
Constructor Detail
-
POBCoreNativeRequestImageAsset
POBCoreNativeRequestImageAsset(Integer id, Boolean required, POBNativeImageAssetType type, Integer minimumWidth, Integer minimumHeight)
-
-
Method Detail
-
getRTBJSON
JSONObject getRTBJSON()
- Returns:
JSON of format: { "id": 1, "required": 1, "img": { "type": 1, "wmin": 300, "hmin": 200, "mimes": "image/jpg", "image/jpeg", "image/png" } }
-
setMimes
final Unit setMimes(List<String> mimes)
Setter of Mimes type list
- Parameters:
mimes- list of string
-
getType
final POBNativeImageAssetType getType()
Getter for image asset type
- Returns:
type of image
-
getMinimumWidth
final Integer getMinimumWidth()
Getter for minimum width
- Returns:
minimum width of image
-
getMinimumHeight
final Integer getMinimumHeight()
Getter for minimum height
- Returns:
minimum height of image
-
-
-
-