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 intversionIdpublic final longcreatedDateTimepublic booleanisCrashAnalyticsEnabledpublic StringadServerNamepublic StringcountryFilteringMode
-
Constructor Summary
Constructors Constructor Description POBProfileInfo()
-
Method Summary
Modifier and Type Method Description intgetProfileId()Returns the Profile ID intgetVersionId()Returns the Profile Version display ID longgetCreatedDateTime()Returns the last time the profile was updated booleanisCrashAnalyticsEnabled()Whether to enable or disable crash-analytics 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()Function used to check of the profile is expired based on the expiry time set -
-
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
-
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()
Function used to check of the profile is expired based on the expiry time set
- Returns:
True is the profile is expired else false
-
-
-
-