Class InMobiJsonValidatorKt
-
- All Implemented Interfaces:
public final class InMobiJsonValidatorKt
-
-
Method Summary
Modifier and Type Method Description final static ShortvalidateInMobiJsonResponse(InMobiJsonResponse response)Validates an InMobiJsonResponse for completeness and correctness. -
-
Method Detail
-
validateInMobiJsonResponse
final static Short validateInMobiJsonResponse(InMobiJsonResponse response)
Validates an InMobiJsonResponse for completeness and correctness.
This function performs comprehensive validation of InMobi JSON ad responses to ensure they contain all required fields and valid data. It checks for the presence of mandatory assets (icon or media), validates their required fields, and ensures URLs are properly formatted network URLs.
- Parameters:
response- The InMobiJsonResponse to validate, may be null- Returns:
A TelemetryConstant.ErrorCode indicating the validation result: - TelemetryConstant.ErrorCode.NO_ERROR if validation passes - Specific error codes for different validation failures
-
-
-
-