Class POBNativeAdDataResponseAsset
-
- All Implemented Interfaces:
public class POBNativeAdDataResponseAsset extends POBNativeAdResponseAsset
This class represents the data object passed in the asset object
-
-
Constructor Summary
Constructors Constructor Description POBNativeAdDataResponseAsset(int assetId, boolean required, POBNativeAdLinkResponse link, String value, int length, POBNativeDataAssetType type)Creates instance for the class which stores the data asset received in the ad response.
-
Method Summary
Modifier and Type Method Description StringgetValue()Returns the data's value present in the data object intgetLength()Returns the length of the value present in the data object POBNativeDataAssetTypegetType()Returns the type the data can be used for (refer POBNativeDataAssetType) StringtoString()Converts the object to a readable string -
-
Constructor Detail
-
POBNativeAdDataResponseAsset
POBNativeAdDataResponseAsset(int assetId, boolean required, POBNativeAdLinkResponse link, String value, int length, POBNativeDataAssetType type)
Creates instance for the class which stores the data asset received in the ad response.- Parameters:
assetId- Integer (required)required- Booleanlink- POBNativeAdLinkResponsevalue- String (required)length- Integertype- POBNativeDataAssetType
-
-
Method Detail
-
getValue
@NonNull() String getValue()
Returns the data's value present in the data object
- Returns:
String
-
getLength
int getLength()
Returns the length of the value present in the data object
- Returns:
Integer
-
getType
@Nullable() POBNativeDataAssetType getType()
Returns the type the data can be used for (refer POBNativeDataAssetType)
- Returns:
POBNativeDataAssetType
-
-
-
-