Package com.ironsource.mediationsdk
Class NetworkData
-
- All Implemented Interfaces:
-
com.ironsource.mediationsdk.AdapterNetworkData
public final class NetworkData implements AdapterNetworkData
-
-
Field Summary
Fields Modifier and Type Field Description private final StringnetworkName
-
Constructor Summary
Constructors Constructor Description NetworkData(String networkName, JSONObject data)
-
Method Summary
Modifier and Type Method Description final StringgetNetworkName()JSONObjectnetworkDataByAdUnit(IronSource.AD_UNIT adUnit)JSONObjectallData()<T extends Any> TdataByKeyIgnoreCase(String desiredKey, Class<T> valueType)Retrieves a value from the network data by its key in a case-insensitive manner. StringtoString()final UnitsetNetworkDataForAdapters(Collection<AbstractAdapter> adapters, Collection<AdapterBaseWrapper> networkAdapters)final UnitsendEvent()-
-
Constructor Detail
-
NetworkData
NetworkData(String networkName, JSONObject data)
-
-
Method Detail
-
getNetworkName
final String getNetworkName()
-
networkDataByAdUnit
JSONObject networkDataByAdUnit(IronSource.AD_UNIT adUnit)
-
allData
JSONObject allData()
-
dataByKeyIgnoreCase
<T extends Any> T dataByKeyIgnoreCase(String desiredKey, Class<T> valueType)
Retrieves a value from the network data by its key in a case-insensitive manner.
- Parameters:
desiredKey- The key to search for in the networkData.valueType- The expected type of the value associated with the found key.- Returns:
The value associated with the key if it exists and is of the expected type, or null otherwise.
-
setNetworkDataForAdapters
final Unit setNetworkDataForAdapters(Collection<AbstractAdapter> adapters, Collection<AdapterBaseWrapper> networkAdapters)
-
-
-
-