Class POBNativeAdImageResponseAsset
-
- All Implemented Interfaces:
public class POBNativeAdImageResponseAsset extends POBNativeAdResponseAsset
This class represents the image asset in the response
-
-
Constructor Summary
Constructors Constructor Description POBNativeAdImageResponseAsset(int assetId, boolean required, POBNativeAdLinkResponse link, String imageURL, int width, int height, POBNativeImageAssetType type)Creates the instance of the class which stores the data passed in image object of response
-
Method Summary
Modifier and Type Method Description StringgetImageURL()Returns the url for the image asset intgetWidth()Returns the width of the image asset intgetHeight()Returns the height of the image asset POBNativeImageAssetTypegetType()Returns the type of the image asset (refer POBNativeImageAssetType) StringtoString()Converts the object to a readable string -
-
Constructor Detail
-
POBNativeAdImageResponseAsset
POBNativeAdImageResponseAsset(int assetId, boolean required, POBNativeAdLinkResponse link, String imageURL, int width, int height, POBNativeImageAssetType type)
Creates the instance of the class which stores the data passed in image object of response- Parameters:
assetId- Integer (required)required- Booleanlink- POBNativeAdLinkResponseimageURL- String (required)width- Integerheight- Integertype- POBNativeImageAssetType
-
-
Method Detail
-
getImageURL
@NonNull() String getImageURL()
Returns the url for the image asset
- Returns:
String
-
getWidth
int getWidth()
Returns the width of the image asset
- Returns:
Integer
-
getHeight
int getHeight()
Returns the height of the image asset
- Returns:
Integer
-
getType
@Nullable() POBNativeImageAssetType getType()
Returns the type of the image asset (refer POBNativeImageAssetType)
- Returns:
POBNativeImageAssetType
-
-
-
-