Class POBProfileInfo

  • All Implemented Interfaces:

    
    public class POBProfileInfo
    
                        

    Model class which parses the profile JSON and provides the getter to access its fields.

    • Constructor Detail

      • POBProfileInfo

        POBProfileInfo()
    • Method Detail

      • getProfileId

         int getProfileId()

        Returns the Profile ID

        Returns:

        Profile ID

      • getVersionId

         int getVersionId()

        Returns the Profile Version display ID

        Returns:

        Profile Version display ID

      • getCreatedDateTime

         long getCreatedDateTime()

        Returns the last time the profile was updated

        Returns:

        Time in milliseconds the profile was fetched

      • isCrashAnalyticsEnabled

         boolean isCrashAnalyticsEnabled()

        Whether to enable or disable crash-analytics

        Returns:

        True to enable crash-analytics false to disable

      • build

         static POBProfileInfo build(@NonNull() JSONObject profileJsonObject)

        Initializes and returns POBProfileInfo object with given profile details

        Parameters:
        profileJsonObject - JSON object for the profile info
        Returns:

        Instance of POBProfileInfo

      • getPublisherId

         int getPublisherId()

        Returns the Pub ID

        Returns:

        Pub ID

      • isProfileInfoExpired

         boolean isProfileInfoExpired()

        Function used to check of the profile is expired based on the expiry time set

        Returns:

        True is the profile is expired else false