package com.facebook.share.internal; import com.facebook.internal.Validate; import com.facebook.share.model.GameRequestContent; /* loaded from: classes2.dex */ public class GameRequestValidation { public static void validate(GameRequestContent gameRequestContent) { Validate.notNull(gameRequestContent.getMessage(), "message"); if ((gameRequestContent.getObjectId() != null) ^ (gameRequestContent.getActionType() == GameRequestContent.ActionType.ASKFOR || gameRequestContent.getActionType() == GameRequestContent.ActionType.SEND)) { throw new IllegalArgumentException("Object id should be provided if and only if action type is send or askfor"); } int i = gameRequestContent.getRecipients() != null ? 1 : 0; if (gameRequestContent.getSuggestions() != null) { i++; } if (gameRequestContent.getFilters() != null) { i++; } if (i > 1) { throw new IllegalArgumentException("Parameters to, filters and suggestions are mutually exclusive"); } } }