Class POBNativeAdDataResponseAsset

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • 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.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getValue() Returns the data's value present in the data object
      int getLength() Returns the length of the value present in the data object
      POBNativeDataAssetType getType() Returns the type the data can be used for (refer POBNativeDataAssetType)
      String toString() Converts the object to a readable string
      • Methods inherited from class com.pubmatic.sdk.nativead.response.POBNativeAdResponseAsset

        getAssetId, getLink, isRequired
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 - Boolean
        link - POBNativeAdLinkResponse
        value - String (required)
        length - Integer
        type - 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

      • toString

        @NonNull() String toString()

        Converts the object to a readable string

        Returns:

        Stringified object