Files
rr3-apk/decompiled-community/sources/com/facebook/share/internal/GameRequestValidation.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

25 lines
1.1 KiB
Java

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");
}
}
}