Class POBNativeRequestDataAsset

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final POBNativeDataAssetType type
      public int length
      public final int id
    • Constructor Summary

      Constructors 
      Constructor Description
      POBNativeRequestDataAsset(int id, boolean required, POBNativeDataAssetType type) Helps to create the POBNativeRequestDataAsset object
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      POBNativeDataAssetType getType() Getter for the type
      int getLength() Getter for the length
      void setLength(intĀ length) Setter for the length
      JSONObject getRTBJSON()
      • Methods inherited from class com.pubmatic.sdk.nativead.request.POBBaseNativeRequestAsset

        getId, isRequired
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • POBNativeRequestDataAsset

        POBNativeRequestDataAsset(int id, boolean required, POBNativeDataAssetType type)
        Helps to create the POBNativeRequestDataAsset object
        Parameters:
        id - of native request
        required - indicates if the asset is required to be displayed
        type - of data passed
    • Method Detail

      • getType

        @NonNull() POBNativeDataAssetType getType()

        Getter for the type

        Returns:

        type of the data asset

      • getLength

         int getLength()

        Getter for the length

        Returns:

        length of data's value

      • setLength

         void setLength(intĀ length)

        Setter for the length

        Parameters:
        length - of the text