24 lines
857 B
Java
24 lines
857 B
Java
package com.discord.utilities.rest;
|
|
|
|
import com.google.gson.JsonElement;
|
|
import com.google.gson.JsonObject;
|
|
import com.google.gson.internal.LinkedTreeMap;
|
|
import j0.k.b;
|
|
/* compiled from: RestAPI.kt */
|
|
public final class RestAPI$getClientVersion$1<T, R> implements b<JsonObject, Integer> {
|
|
public static final RestAPI$getClientVersion$1 INSTANCE = new RestAPI$getClientVersion$1();
|
|
|
|
public final Integer call(JsonObject jsonObject) {
|
|
int i;
|
|
if (jsonObject != null) {
|
|
LinkedTreeMap.e<String, JsonElement> c2 = jsonObject.a.c("discord_android_min_version");
|
|
JsonElement jsonElement = c2 != null ? c2.o : null;
|
|
if (jsonElement != null) {
|
|
i = jsonElement.c();
|
|
return Integer.valueOf(i);
|
|
}
|
|
}
|
|
i = 0;
|
|
return Integer.valueOf(i);
|
|
}
|
|
}
|