Package com.pubmatic.sdk.common.models
Class POBPublisherConfig
-
- All Implemented Interfaces:
public final class POBPublisherConfigPublisher-level configuration from remote JSON or defaults.
-
-
Field Summary
Fields Modifier and Type Field Description private final LongcreatedAtprivate final BooleanisDeviceSignalEnabled
-
Constructor Summary
Constructors Constructor Description POBPublisherConfig()
-
Method Summary
Modifier and Type Method Description final LonggetCreatedAt()Epoch milliseconds when this snapshot was created; used with isExpired and POBCommonConstants.PUBLISHER_CONFIG_EXPIRY_IN_MILLISECONDS. final BooleanisDeviceSignalEnabled()When true, Nucleus-related parameters may be included in ad requests for this publisher.final BooleanisExpired()Whether this publisher config snapshot is past its TTL and should be refetched. final static POBPublisherConfigbuild(JSONObject jsonObject)Parses the given JSON into a POBPublisherConfig; createdAt is set to the current time. -
-
Method Detail
-
getCreatedAt
final Long getCreatedAt()
Epoch milliseconds when this snapshot was created; used with isExpired and POBCommonConstants.PUBLISHER_CONFIG_EXPIRY_IN_MILLISECONDS.
-
isDeviceSignalEnabled
final Boolean isDeviceSignalEnabled()
When
true, Nucleus-related parameters may be included in ad requests for this publisher.Parsed from JSON key
nucleus: non-zero means enabled; when the key is absent the default is enabled.
-
isExpired
final Boolean isExpired()
Whether this publisher config snapshot is past its TTL and should be refetched.
- Returns:
trueif older than POBCommonConstants.PUBLISHER_CONFIG_EXPIRY_IN_MILLISECONDS relative to createdAt.
-
build
final static POBPublisherConfig build(JSONObject jsonObject)
Parses the given JSON into a POBPublisherConfig; createdAt is set to the current time.
- Returns:
Instance of POBPublisherConfig build with values from jsonObject config.
-
-
-
-