use of org.prebid.mobile.rendering.networking.parameters.ParameterBuilder in project prebid-mobile-android by prebid.
the class URLBuilderTest method testBuildURLObject.
@Test
public void testBuildURLObject() {
URLPathBuilder mockPathBuilder = mock(URLPathBuilder.class);
ArrayList<ParameterBuilder> parameterBuilders = new ArrayList<>();
URLBuilder urlBuilder = new URLBuilder(mockPathBuilder, parameterBuilders, new AdRequestInput());
assertNotNull(urlBuilder);
}
use of org.prebid.mobile.rendering.networking.parameters.ParameterBuilder in project prebid-mobile-android by prebid.
the class Requester method getParameterBuilders.
protected List<ParameterBuilder> getParameterBuilders() {
Context context = mContextReference.get();
Resources resources = null;
if (context != null) {
resources = context.getResources();
}
boolean browserActivityAvailable = ExternalViewerUtils.isBrowserActivityCallable(context);
ArrayList<ParameterBuilder> parameterBuilderArray = new ArrayList<>();
parameterBuilderArray.add(new BasicParameterBuilder(mAdConfiguration, resources, browserActivityAvailable));
parameterBuilderArray.add(new GeoLocationParameterBuilder());
parameterBuilderArray.add(new AppInfoParameterBuilder(mAdConfiguration));
parameterBuilderArray.add(new DeviceInfoParameterBuilder(mAdConfiguration));
parameterBuilderArray.add(new NetworkParameterBuilder());
parameterBuilderArray.add(new UserConsentParameterBuilder(mUserConsentManager));
return parameterBuilderArray;
}
Aggregations