Class POBProfileInfo
-
- All Implemented Interfaces:
public class POBProfileInfoModel class which parses the profile JSON and provides the getter to access its fields.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interfacePOBProfileInfo.CountryFilterModeTypedef for country filter type
-
Field Summary
Fields Modifier and Type Field Description public final static StringCOUNTRY_FILTERING_ALLOW_MODEpublic final static StringCOUNTRY_FILTERING_BLOCK_MODEpublic intprofileIdpublic final longcreatedDateTimepublic booleanisCrashAnalyticsEnabledpublic booleanisAppInstallStatusEnabledpublic StringadServerNamepublic StringcountryFilteringMode
-
Constructor Summary
Constructors Constructor Description POBProfileInfo()
-
Method Summary
Modifier and Type Method Description intgetProfileId()Returns the Profile ID longgetCreatedDateTime()Returns the last time the profile was updated booleanisCrashAnalyticsEnabled()Whether to enable or disable crash-analytics booleanisAppInstallStatusEnabled()Returns app install feature status. StringgetAdServerName()Returns the Ad Server StringgetCountryFilteringMode()Returns country filtering mode, if configured at OW profile static POBProfileInfobuild(@NonNull() JSONObject profileJsonObject)Initializes and returns POBProfileInfo object with given profile details intgetPublisherId()Returns the Pub ID Set<String>getFilteringCountries()Retrieves the country list booleanisProfileInfoExpired()Checks whether this profile is expired based on PROFILE_EXPIRY_IN_MILLISECONDS. -
-
Method Detail
-
getProfileId
int getProfileId()
Returns the Profile ID
- Returns:
Profile 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
-
isAppInstallStatusEnabled
boolean isAppInstallStatusEnabled()
Returns app install feature status. When disabled, the SDK will not set the mraidappstatus parameter in the request and will return unknown status to JavaScript.
- Returns:
True if app install status is enabled, false otherwise
-
getAdServerName
@Nullable() String getAdServerName()
Returns the Ad Server
- Returns:
Ad Server name
-
getCountryFilteringMode
@Nullable() String getCountryFilteringMode()
Returns country filtering mode, if configured at OW profile
- Returns:
the configured country filtering mode
-
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
-
getFilteringCountries
@Nullable() Set<String> getFilteringCountries()
Retrieves the country list
- Returns:
the < if available, else null
-
isProfileInfoExpired
boolean isProfileInfoExpired()
Checks whether this profile is expired based on PROFILE_EXPIRY_IN_MILLISECONDS.
- Returns:
true if expired, else false
-
-
-
-