@Test public void setMediaAssetTypes_withoutMediaType() { NativeRequest nativeRequest = new NativeRequest.Builder() .build(); assertTrue(nativeRequest.containsAssetType(MediaAssetType.Icon)); assertTrue(nativeRequest.containsAssetType(MediaAssetType.Image)); assertFalse(nativeRequest.containsAssetType(MediaAssetType.Video)); }
@SuppressWarnings("WeakerAccess") public boolean containsAssetType(MediaAssetType assetType) { return mediaAssetTypes.isEmpty() || mediaAssetTypes.contains(assetType) || mediaAssetTypes.contains(MediaAssetType.All); }
NativeRequest extends AdRequest<NativeRequest, UnifiedNativeAdRequestParams> { @SuppressWarnings("WeakerAccess") public boolean containsAssetType(MediaAssetType assetType) { return mediaAssetTypes.isEmpty() || mediaAssetTypes.contains(assetType) || mediaAssetTypes.contains(MediaAssetType.All); } }
NativeRequest extends AdRequest<NativeRequest, UnifiedNativeAdRequestParams> { @SuppressWarnings("WeakerAccess") public boolean containsAssetType(MediaAssetType assetType) { return mediaAssetTypes.isEmpty() || mediaAssetTypes.contains(assetType) || mediaAssetTypes.contains(MediaAssetType.All); } private  NativeRequest(); }
NativeRequest extends AdRequest<NativeRequest, UnifiedNativeAdRequestParams> { @SuppressWarnings("WeakerAccess") public boolean containsAssetType(MediaAssetType assetType) { return mediaAssetTypes.isEmpty() || mediaAssetTypes.contains(assetType) || mediaAssetTypes.contains(MediaAssetType.All); } private  NativeRequest(); @SuppressWarnings("WeakerAccess") boolean containsAssetType(MediaAssetType assetType); }
NativeRequest extends AdRequest<NativeRequest, UnifiedNativeAdRequestParams> { @SuppressWarnings("WeakerAccess") public boolean containsAssetType(MediaAssetType assetType) { return mediaAssetTypes.isEmpty() || mediaAssetTypes.contains(assetType) || mediaAssetTypes.contains(MediaAssetType.All); } private  NativeRequest(); @SuppressWarnings("WeakerAccess") boolean containsAssetType(MediaAssetType assetType);  }