Class POBNativeRequestImageAsset
-
- All Implemented Interfaces:
public class POBNativeRequestImageAsset extends POBBaseNativeRequestAsset
This class represents the image asset in the request
-
-
Field Summary
Fields Modifier and Type Field Description public final POBNativeImageAssetTypetypepublic final intminimumWidthpublic final intminimumHeightpublic List<String>mimespublic final intid
-
Constructor Summary
Constructors Constructor Description POBNativeRequestImageAsset(int id, boolean required, POBNativeImageAssetType type, int minimumWidth, int minimumHeight)Helps to create the POBNativeRequestImageAsset object
-
Method Summary
Modifier and Type Method Description POBNativeImageAssetTypegetType()Getter for image asset type intgetMinimumWidth()Getter for minimum width intgetMinimumHeight()Getter for minimum height List<String>getMimes()Getter for mimes voidsetMimes(@NonNull() List<String> mimes)Setter of Mimes type list JSONObjectgetRTBJSON()-
-
Constructor Detail
-
POBNativeRequestImageAsset
POBNativeRequestImageAsset(int id, boolean required, POBNativeImageAssetType type, int minimumWidth, int minimumHeight)
Helps to create the POBNativeRequestImageAsset object- Parameters:
id- of native requestrequired- indicates if the asset is required to be displayedtype- of imageminimumWidth- of image in pixelsminimumHeight- of image in pixels
-
-
Method Detail
-
getType
@NonNull() POBNativeImageAssetType getType()
Getter for image asset type
- Returns:
type of image
-
getMinimumWidth
int getMinimumWidth()
Getter for minimum width
- Returns:
minimum width of image
-
getMinimumHeight
int getMinimumHeight()
Getter for minimum height
- Returns:
minimum height of image
-
setMimes
void setMimes(@NonNull() List<String> mimes)
Setter of Mimes type list
- Parameters:
mimes- list of string
-
getRTBJSON
@NonNull() JSONObject getRTBJSON()
- Returns:
JSON of format: { "id": 1, "required": 1, "img": { "type": 1, "wmin": 300, "hmin": 200, "mimes": [ "image/jpg", "image/jpeg", "image/png" ] } }
-
-
-
-