b.smali
.class public final Lhh/b;
.super Ljava/lang/Object;
.source "LocationBusiness.kt"
# annotations
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u00008\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0008\u00c6\u0002\u0018\u00002\u00020\u0001B\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J!\u0010\u0008\u001a\n\u0018\u00010\tj\u0004\u0018\u0001`\n2\u0006\u0010\u000b\u001a\u00020\u000cH\u0086@\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010\rJ\u001a\u0010\u000e\u001a\n\u0018\u00010\tj\u0004\u0018\u0001`\n*\u0008\u0012\u0004\u0012\u00020\u00100\u000fH\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T\u00a2\u0006\u0002\n\u0000R\u0016\u0010\u0005\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00070\u0006X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u0082\u0002\u0004\n\u0002\u0008\u0019\u00a8\u0006\u0011"
}
d2 = {
"Lcom/shopee/foody/driver/location/business/LocationBusiness;",
"",
"()V",
"TAG",
"",
"apiService",
"Lkotlin/Lazy;",
"Lcom/shopee/foody/driver/location/business/LocationApi;",
"reportLocation",
"Ljava/lang/Exception;",
"Lkotlin/Exception;",
"request",
"Lcom/shopee/foody/driver/location/business/LocationRequest;",
"(Lcom/shopee/foody/driver/location/business/LocationRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
"parseRespBody",
"Lretrofit2/Response;",
"Lcom/shopee/foody/driver/location/business/LocationResponse;",
"driver_indonesiaRelease"
}
k = 0x1
mv = {
0x1,
0x1,
0x10
}
.end annotation
# static fields
.field public static final a:Lkotlin/Lazy;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/Lazy<",
"Lhh/a;",
">;"
}
.end annotation
.end field
.field public static final b:Lhh/b;
# direct methods
.method public static constructor <clinit>()V
.registers 1
new-instance v0, Lhh/b;
invoke-direct {v0}, Lhh/b;-><init>()V
sput-object v0, Lhh/b;->b:Lhh/b;
sget-object v0, Lhh/b$a;->a:Lhh/b$a;
invoke-static {v0}, Lfa/a;->a(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
move-result-object v0
sput-object v0, Lhh/b;->a:Lkotlin/Lazy;
return-void
.end method
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final a(Lxq/t;)Ljava/lang/Exception;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lxq/t<",
"Lhh/c;",
">;)",
"Ljava/lang/Exception;"
}
.end annotation
invoke-virtual {p1}, Lxq/t;->c()Z
move-result v0
if-nez v0, :cond_2d
new-instance v0, Ljava/lang/Exception;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "http error: code["
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Lxq/t;->b()I
move-result v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v2, "] msg:"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Lxq/t;->d()Ljava/lang/String;
move-result-object p1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
return-object v0
:cond_2d
invoke-virtual {p1}, Lxq/t;->a()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lhh/c;
if-eqz p1, :cond_53
invoke-virtual {p1}, Lhh/c;->a()Ljava/lang/Integer;
move-result-object v0
if-nez v0, :cond_3c
goto :goto_42
:cond_3c
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
if-eqz v0, :cond_51
:goto_42
new-instance v0, Ljava/lang/Exception;
invoke-virtual {p1}, Lhh/c;->b()Ljava/lang/String;
move-result-object p1
if-eqz p1, :cond_4b
goto :goto_4d
:cond_4b
const-string p1, "unknown business error"
:goto_4d
invoke-direct {v0, p1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
return-object v0
:cond_51
const/4 p1, 0x0
return-object p1
:cond_53
new-instance p1, Ljava/lang/Exception;
const-string v0, "empty response body"
invoke-direct {p1, v0}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
return-object p1
.end method
.method public final a(Lcom/shopee/foody/driver/location/business/LocationRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/shopee/foody/driver/location/business/LocationRequest;",
"Lkotlin/coroutines/Continuation<",
"-",
"Ljava/lang/Exception;",
">;)",
"Ljava/lang/Object;"
}
.end annotation
sget-object p2, Lhh/b;->a:Lkotlin/Lazy;
invoke-interface {p2}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;
move-result-object p2
check-cast p2, Lhh/a;
if-eqz p2, :cond_1e
:try_start_a
invoke-interface {p2, p1}, Lhh/a;->a(Lcom/shopee/foody/driver/location/business/LocationRequest;)Lxq/d;
move-result-object p1
invoke-interface {p1}, Lxq/d;->execute()Lxq/t;
move-result-object p1
const-string p2, "service.location(request\u2026 .execute()"
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0, p1}, Lhh/b;->a(Lxq/t;)Ljava/lang/Exception;
move-result-object p1
:try_end_1b
.catch Ljava/lang/Exception; {:try_start_a .. :try_end_1b} :catch_1c
goto :goto_1d
:catch_1c
move-exception p1
:goto_1d
return-object p1
:cond_1e
new-instance p1, Ljava/lang/Exception;
const-string p2, "missing api service"
invoke-direct {p1, p2}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
return-object p1
.end method