Files
rr3-apk/smali_classes2/com/facebook/share/internal/GameRequestValidation.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

135 lines
3.0 KiB
Smali

.class public Lcom/facebook/share/internal/GameRequestValidation;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.locals 0
.line 21
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static validate(Lcom/facebook/share/model/GameRequestContent;)V
.locals 5
.line 24
invoke-virtual {p0}, Lcom/facebook/share/model/GameRequestContent;->getMessage()Ljava/lang/String;
move-result-object v0
const-string v1, "message"
invoke-static {v0, v1}, Lcom/facebook/internal/Validate;->notNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 25
invoke-virtual {p0}, Lcom/facebook/share/model/GameRequestContent;->getObjectId()Ljava/lang/String;
move-result-object v0
const/4 v1, 0x0
const/4 v2, 0x1
if-eqz v0, :cond_0
move v0, v2
goto :goto_0
:cond_0
move v0, v1
.line 26
:goto_0
invoke-virtual {p0}, Lcom/facebook/share/model/GameRequestContent;->getActionType()Lcom/facebook/share/model/GameRequestContent$ActionType;
move-result-object v3
sget-object v4, Lcom/facebook/share/model/GameRequestContent$ActionType;->ASKFOR:Lcom/facebook/share/model/GameRequestContent$ActionType;
if-eq v3, v4, :cond_2
.line 27
invoke-virtual {p0}, Lcom/facebook/share/model/GameRequestContent;->getActionType()Lcom/facebook/share/model/GameRequestContent$ActionType;
move-result-object v3
sget-object v4, Lcom/facebook/share/model/GameRequestContent$ActionType;->SEND:Lcom/facebook/share/model/GameRequestContent$ActionType;
if-ne v3, v4, :cond_1
goto :goto_1
:cond_1
move v3, v1
goto :goto_2
:cond_2
:goto_1
move v3, v2
:goto_2
xor-int/2addr v0, v3
if-nez v0, :cond_7
.line 34
invoke-virtual {p0}, Lcom/facebook/share/model/GameRequestContent;->getRecipients()Ljava/util/List;
move-result-object v0
if-eqz v0, :cond_3
move v1, v2
.line 37
:cond_3
invoke-virtual {p0}, Lcom/facebook/share/model/GameRequestContent;->getSuggestions()Ljava/util/List;
move-result-object v0
if-eqz v0, :cond_4
add-int/lit8 v1, v1, 0x1
.line 40
:cond_4
invoke-virtual {p0}, Lcom/facebook/share/model/GameRequestContent;->getFilters()Lcom/facebook/share/model/GameRequestContent$Filters;
move-result-object p0
if-eqz p0, :cond_5
add-int/lit8 v1, v1, 0x1
:cond_5
if-gt v1, v2, :cond_6
return-void
.line 44
:cond_6
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "Parameters to, filters and suggestions are mutually exclusive"
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.line 28
:cond_7
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "Object id should be provided if and only if action type is send or askfor"
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method