public class POBNativeAdDataResponseAsset extends POBNativeAdResponseAsset
| Constructor and Description |
|---|
POBNativeAdDataResponseAsset(int assetId,
boolean required,
POBNativeAdLinkResponse link,
java.lang.String value,
int length,
com.pubmatic.sdk.openwrap.core.nativead.POBNativeDataAssetType type)
Creates instance for the class which stores the data asset received in the ad response.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
Returns the length of the value present in the data object
|
com.pubmatic.sdk.openwrap.core.nativead.POBNativeDataAssetType |
getType()
Returns the type the data can be used for (refer
POBNativeDataAssetType) |
java.lang.String |
getValue()
Returns the data's value present in the data object
|
java.lang.String |
toString()
Converts the object to a readable string
|
getAssetId, getLink, isRequiredpublic POBNativeAdDataResponseAsset(int assetId,
boolean required,
@Nullable
POBNativeAdLinkResponse link,
@NonNull
java.lang.String value,
int length,
@Nullable
com.pubmatic.sdk.openwrap.core.nativead.POBNativeDataAssetType type)
length - Integervalue - String (required)type - POBNativeDataAssetTypeassetId - Integer (required)required - Booleanlink - POBNativeAdLinkResponse@NonNull public java.lang.String getValue()
public int getLength()
@Nullable public com.pubmatic.sdk.openwrap.core.nativead.POBNativeDataAssetType getType()
POBNativeDataAssetType)POBNativeDataAssetType@NonNull public java.lang.String toString()
toString in class POBNativeAdResponseAsset