question
stringlengths 654
113k
| answer
stringclasses 2
values |
|---|---|
```
# Class: com.polarsteps.service.traveltogether.TravelTogetherServiceImpl
.method public final v(Ljava/lang/String;Lkotlin/coroutines/jvm/internal/ContinuationImpl;)Ljava/lang/Object;
.locals 7
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end param
.param p2 # Lkotlin/coroutines/jvm/internal/ContinuationImpl;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end param
instance-of v0, p2, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$canInviteBuddyToTrip$1;
if-eqz v0, :cond_0
move-object v0, p2
check-cast v0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$canInviteBuddyToTrip$1;
iget v1, v0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$canInviteBuddyToTrip$1;->label:I
const/high16 v2, -0x80000000
and-int v3, v1, v2
if-eqz v3, :cond_0
sub-int/2addr v1, v2
iput v1, v0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$canInviteBuddyToTrip$1;->label:I
goto :goto_0
:cond_0
new-instance v0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$canInviteBuddyToTrip$1;
invoke-direct {v0, p0, p2}, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$canInviteBuddyToTrip$1;-><init>(Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;Lkotlin/coroutines/c;)V
:goto_0
iget-object p2, v0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$canInviteBuddyToTrip$1;->result:Ljava/lang/Object;
sget-object v1, Lkotlin/coroutines/intrinsics/CoroutineSingletons;->COROUTINE_SUSPENDED:Lkotlin/coroutines/intrinsics/CoroutineSingletons;
iget v2, v0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$canInviteBuddyToTrip$1;->label:I
const/4 v3, 0x2
const/4 v4, 0x1
if-eqz v2, :cond_3
if-eq v2, v4, :cond_2
if-ne v2, v3, :cond_1
iget-object p1, v0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$canInviteBuddyToTrip$1;->L$0:Ljava/lang/Object;
check-cast p1, Ljava/lang/String;
invoke-static {p2}, Lkotlin/l;->b(Ljava/lang/Object;)V
return-object p2
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_2
iget-object p1, v0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$canInviteBuddyToTrip$1;->L$0:Ljava/lang/Object;
check-cast p1, Ljava/lang/String;
invoke-static {p2}, Lkotlin/l;->b(Ljava/lang/Object;)V
goto :goto_2
:cond_3
invoke-static {p2}, Lkotlin/l;->b(Ljava/lang/Object;)V
iput-object p1, v0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$canInviteBuddyToTrip$1;->L$0:Ljava/lang/Object;
iput v4, v0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$canInviteBuddyToTrip$1;->label:I
invoke-static {p1}, Lcom/polarsteps/data/models/domain/local/PolarIdentifier;->fromUUID(Ljava/lang/String;)Lcom/polarsteps/data/models/domain/local/PolarIdentifier;
move-result-object p2
const-string v2, "fromUUID(...)"
invoke-static {p2, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v2, p0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;->c:Lcom/polarsteps/data/database/DatabaseAccess;
invoke-interface {v2, p2}, Lcom/polarsteps/data/database/DatabaseAccess;->justTrip(Lcom/polarsteps/data/models/domain/local/PolarIdentifier;)Lcom/polarsteps/data/models/domain/room/RoomTrip;
move-result-object p2
const/4 v2, 0x0
if-eqz p2, :cond_7
invoke-virtual {p2}, Lcom/polarsteps/data/models/domain/room/RoomTrip;->getBuddies()Ljava/util/List;
move-result-object p2
if-eqz p2, :cond_7
check-cast p2, Ljava/lang/Iterable;
instance-of v5, p2, Ljava/util/Collection;
if-eqz v5, :cond_5
move-object v5, p2
check-cast v5, Ljava/util/Collection;
invoke-interface {v5}, Ljava/util/Collection;->isEmpty()Z
move-result v5
if-eqz v5, :cond_5
:cond_4
move v4, v2
goto :goto_1
:cond_5
invoke-interface {p2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p2
:cond_6
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
move-result v5
if-eqz v5, :cond_4
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v5
check-cast v5, Lcom/polarsteps/data/models/domain/TripBuddy;
iget-object v6, p0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;->d:Lcom/polarsteps/service/K1;
invoke-interface {v5}, Lcom/polarsteps/data/models/domain/TripBuddy;->getUser()Lcom/polarsteps/data/models/domain/User;
move-result-object v5
invoke-interface {v6, v5}, Lcom/polarsteps/service/K1;->p(Lcom/polarsteps/data/models/domain/User;)Z
move-result v5
if-eqz v5, :cond_6
:goto_1
move v2, v4
:cond_7
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p2
if-ne p2, v1, :cond_8
goto :goto_3
:cond_8
:goto_2
check-cast p2, Ljava/lang/Boolean;
invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z
move-result p2
if-nez p2, :cond_a
const/4 p2, 0x0
iput-object p2, v0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$canInviteBuddyToTrip$1;->L$0:Ljava/lang/Object;
iput v3, v0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$canInviteBuddyToTrip$1;->label:I
invoke-virtual {p0, p1}, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;->o(Ljava/lang/String;)Ljava/lang/Boolean;
move-result-object p1
if-ne p1, v1, :cond_9
:goto_3
return-object v1
:cond_9
return-object p1
:cond_a
sget-object p1, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
return-object p1
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
# Class: com.polarsteps.service.traveltogether.TravelTogetherServiceImpl
.method public final y(Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiTripBuddy;Ljava/lang/String;Lkotlin/coroutines/jvm/internal/ContinuationImpl;)Ljava/lang/Object;
.locals 14
move-object/from16 v0, p4
instance-of v1, v0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$storeInvitedBuddyLocally$1;
if-eqz v1, :cond_0
move-object v1, v0
check-cast v1, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$storeInvitedBuddyLocally$1;
iget v2, v1, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$storeInvitedBuddyLocally$1;->label:I
const/high16 v3, -0x80000000
and-int v4, v2, v3
if-eqz v4, :cond_0
sub-int/2addr v2, v3
iput v2, v1, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$storeInvitedBuddyLocally$1;->label:I
goto :goto_0
:cond_0
new-instance v1, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$storeInvitedBuddyLocally$1;
invoke-direct {v1, p0, v0}, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$storeInvitedBuddyLocally$1;-><init>(Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;Lkotlin/coroutines/c;)V
:goto_0
iget-object v0, v1, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$storeInvitedBuddyLocally$1;->result:Ljava/lang/Object;
sget-object v2, Lkotlin/coroutines/intrinsics/CoroutineSingletons;->COROUTINE_SUSPENDED:Lkotlin/coroutines/intrinsics/CoroutineSingletons;
iget v3, v1, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$storeInvitedBuddyLocally$1;->label:I
const/4 v4, 0x1
if-eqz v3, :cond_2
if-ne v3, v4, :cond_1
iget-object v2, v1, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$storeInvitedBuddyLocally$1;->L$2:Ljava/lang/Object;
check-cast v2, Ljava/lang/String;
iget-object v2, v1, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$storeInvitedBuddyLocally$1;->L$1:Ljava/lang/Object;
check-cast v2, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiTripBuddy;
iget-object v1, v1, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$storeInvitedBuddyLocally$1;->L$0:Ljava/lang/Object;
check-cast v1, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;
:try_start_0
invoke-static {v0}, Lkotlin/l;->b(Ljava/lang/Object;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
move-object v13, v2
goto :goto_2
:catch_0
move-exception v0
goto :goto_3
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_2
invoke-static {v0}, Lkotlin/l;->b(Ljava/lang/Object;)V
:try_start_1
invoke-virtual/range {p2 .. p2}, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiTripBuddy;->getUser()Lcom/polarsteps/data/models/domain/fastapi/FastApiBaseUser;
move-result-object v5
invoke-virtual/range {p2 .. p2}, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiTripBuddy;->getStatus()Lcom/polarsteps/data/models/domain/TripBuddyStatus;
move-result-object v7
sget-object v8, Lcom/polarsteps/data/models/domain/room/TripBuddyLocalState;->Idle:Lcom/polarsteps/data/models/domain/room/TripBuddyLocalState;
invoke-virtual/range {p2 .. p2}, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiTripBuddy;->getId()Ljava/lang/Long;
move-result-object v11
invoke-virtual/range {p2 .. p2}, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiTripBuddy;->getUuid()Ljava/lang/String;
move-result-object v10
invoke-virtual/range {p2 .. p2}, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiTripBuddy;->getInvitedAt()Lcom/polarsteps/common/time/TimeInSeconds;
move-result-object v9
const/4 v0, 0x0
iput-object v0, v1, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$storeInvitedBuddyLocally$1;->L$0:Ljava/lang/Object;
move-object/from16 v13, p2
iput-object v13, v1, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$storeInvitedBuddyLocally$1;->L$1:Ljava/lang/Object;
iput-object v0, v1, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$storeInvitedBuddyLocally$1;->L$2:Ljava/lang/Object;
iput v4, v1, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$storeInvitedBuddyLocally$1;->label:I
iget-object v0, p1, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;->c:Lcom/polarsteps/data/database/DatabaseAccess;
invoke-interface {v0}, Lcom/polarsteps/data/database/DatabaseAccess;->getDatabase()Lcom/polarsteps/data/database/PolarstepsDatabase;
move-result-object v0
new-instance v3, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$locallyStoreTripBuddy$2;
const/4 v12, 0x0
move-object v4, p1
move-object/from16 v6, p3
invoke-direct/range {v3 .. v12}, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$locallyStoreTripBuddy$2;-><init>(Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;Lcom/polarsteps/data/models/domain/User;Ljava/lang/String;Lcom/polarsteps/data/models/domain/TripBuddyStatus;Lcom/polarsteps/data/models/domain/room/TripBuddyLocalState;Lcom/polarsteps/common/time/TimeInSeconds;Ljava/lang/String;Ljava/lang/Long;Lkotlin/coroutines/c;)V
invoke-static {v0, v3, v1}, Landroidx/room/u;->a(Landroidx/room/RoomDatabase;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/c;)Ljava/lang/Object;
move-result-object v0
if-ne v0, v2, :cond_3
goto :goto_1
:cond_3
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
:goto_1
if-ne v0, v2, :cond_4
return-object v2
:cond_4
:goto_2
new-instance v0, Lcom/polarsteps/service/traveltogether/c$b;
invoke-direct {v0, v13}, Lcom/polarsteps/service/traveltogether/c$b;-><init>(Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiTripBuddy;)V
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
return-object v0
:goto_3
new-instance v1, Lcom/polarsteps/service/traveltogether/c$a;
sget-object v2, Lcom/polarsteps/service/traveltogether/InviteFailedReason;->LocalStorage:Lcom/polarsteps/service/traveltogether/InviteFailedReason;
invoke-direct {v1, v2, v0}, Lcom/polarsteps/service/traveltogether/c$a;-><init>(Lcom/polarsteps/service/traveltogether/InviteFailedReason;Ljava/lang/Throwable;)V
return-object v1
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.field I$0:I
.locals 0
.annotation system Ldalvik/annotation/Signature;
iput-object p1, p0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$remoteInviteBuddy$1;->this$0:Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;
invoke-direct {p0, p2}, Lkotlin/coroutines/jvm/internal/ContinuationImpl;-><init>(Lkotlin/coroutines/c;)V
return-void
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
.param p1 # Ljava/lang/Object;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end param
iput-object p1, p0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$remoteInviteBuddy$1;->result:Ljava/lang/Object;
iget p1, p0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$remoteInviteBuddy$1;->label:I
const/high16 v0, -0x80000000
or-int/2addr p1, v0
iput p1, p0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$remoteInviteBuddy$1;->label:I
iget-object p1, p0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$remoteInviteBuddy$1;->this$0:Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;
const/4 v0, 0x0
invoke-static {p1, v0, v0, p0}, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;->s(Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;Lcom/polarsteps/data/models/domain/room/RoomTrip;Lcom/polarsteps/data/models/domain/User;Lkotlin/coroutines/jvm/internal/ContinuationImpl;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
# Class: com.polarsteps.data.models.PolarstepsFastApiCompatKt
.method public static final getLivingLocationCompat(Lcom/polarsteps/data/models/domain/User;)Lcom/polarsteps/data/models/domain/LocationInfo;
.locals 5
.param p0 # Lcom/polarsteps/data/models/domain/User;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end param
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
instance-of v0, p0, Lcom/polarsteps/data/models/domain/WithLocationInfo;
const/4 v1, 0x0
if-nez v0, :cond_0
move-object v0, v1
goto :goto_0
:cond_0
move-object v0, p0
:goto_0
check-cast v0, Lcom/polarsteps/data/models/domain/WithLocationInfo;
if-nez v0, :cond_1
sget-object v0, LTh/a;->a:LTh/a$a;
new-instance v2, Ljava/lang/IllegalAccessException;
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object p0
const-string v3, "Trying to access "
const-string v4, " in deprecated mode."
invoke-static {v3, p0, v4}, LA4/b;->m(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
invoke-direct {v2, p0}, Ljava/lang/IllegalAccessException;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, v2}, LTh/a$a;->p(Ljava/lang/Throwable;)V
move-object v0, v1
:cond_1
if-eqz v0, :cond_2
invoke-interface {v0}, Lcom/polarsteps/data/models/domain/WithLocationInfo;->getLocation()Lcom/polarsteps/data/models/domain/LocationInfo;
move-result-object p0
return-object p0
:cond_2
return-object v1
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: com.polarsteps.data.models.PolarstepsFastApiCompatKt
.method public static final getLivingLocationNameCompat(Lcom/polarsteps/data/models/domain/User;)Ljava/lang/String;
.locals 5
.param p0 # Lcom/polarsteps/data/models/domain/User;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end param
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
instance-of v0, p0, Lcom/polarsteps/data/models/domain/WithLocationInfo;
const/4 v1, 0x0
if-nez v0, :cond_0
move-object v0, v1
goto :goto_0
:cond_0
move-object v0, p0
:goto_0
check-cast v0, Lcom/polarsteps/data/models/domain/WithLocationInfo;
if-nez v0, :cond_1
sget-object v0, LTh/a;->a:LTh/a$a;
new-instance v2, Ljava/lang/IllegalAccessException;
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object p0
const-string v3, "Trying to access "
const-string v4, " in deprecated mode."
invoke-static {v3, p0, v4}, LA4/b;->m(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
invoke-direct {v2, p0}, Ljava/lang/IllegalAccessException;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, v2}, LTh/a$a;->p(Ljava/lang/Throwable;)V
move-object v0, v1
:cond_1
if-eqz v0, :cond_2
invoke-interface {v0}, Lcom/polarsteps/data/models/domain/WithLocationInfo;->getLocation()Lcom/polarsteps/data/models/domain/LocationInfo;
move-result-object p0
if-eqz p0, :cond_2
invoke-static {p0}, Lcom/polarsteps/data/models/domain/LocationInfoKt;->getSingleLineName(Lcom/polarsteps/data/models/domain/LocationInfo;)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_2
return-object v1
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
.method public hashCode()I
.locals 2
iget-wide v0, p0, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;->userId:J
invoke-static {v0, v1}, Ljava/lang/Long;->hashCode(J)I
move-result v0
return v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public equals(Ljava/lang/Object;)Z
.locals 7
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
:cond_0
instance-of v1, p1, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
const/4 v2, 0x0
if-nez v1, :cond_1
return v2
:cond_1
check-cast p1, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
iget-wide v3, p0, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;->userId:J
iget-wide v5, p1, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;->userId:J
cmp-long p1, v3, v5
if-eqz p1, :cond_2
return v2
:cond_2
return v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public static synthetic copy$default(Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;JILjava/lang/Object;)Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.locals 0
and-int/lit8 p3, p3, 0x1
if-eqz p3, :cond_0
iget-wide p1, p0, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;->userId:J
:cond_0
invoke-virtual {p0, p1, p2}, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;->copy(J)Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
move-result-object p0
return-object p0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final getUserId()J
.locals 2
iget-wide v0, p0, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;->userId:J
return-wide v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public toString()Ljava/lang/String;
.locals 4
.annotation build Lorg/jetbrains/annotations/NotNull;
iget-wide v0, p0, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;->userId:J
const-string v2, "FastApiAddBuddyRequest(userId="
const-string v3, ")"
invoke-static {v0, v1, v2, v3}, Landroidx/compose/foundation/text/selection/f;->l(JLjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final component1()J
.locals 2
iget-wide v0, p0, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;->userId:J
return-wide v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public constructor <init>(J)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-wide p1, p0, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;->userId:J
return-void
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final copy(J)Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.locals 1
.annotation build Lorg/jetbrains/annotations/NotNull;
new-instance v0, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
invoke-direct {v0, p1, p2}, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;-><init>(J)V
return-object v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
# Class: retrofit2.Retrofit
.method public create(Ljava/lang/Class;)Ljava/lang/Object;
.locals 3
.annotation system Ldalvik/annotation/Signature;
invoke-direct {p0, p1}, Lretrofit2/Retrofit;->validateServiceInterface(Ljava/lang/Class;)V
invoke-virtual {p1}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v0
filled-new-array {p1}, [Ljava/lang/Class;
move-result-object v1
new-instance v2, Lretrofit2/Retrofit$1;
invoke-direct {v2, p0, p1}, Lretrofit2/Retrofit$1;-><init>(Lretrofit2/Retrofit;Ljava/lang/Class;)V
invoke-static {v0, v1, v2}, Ljava/lang/reflect/Proxy;->newProxyInstance(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
# Class: com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy
.method public getId()Ljava/lang/Long;
.locals 1
iget-object v0, p0, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiTripBuddy;->id:Ljava/lang/Long;
return-object v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final equals(Ljava/lang/Object;)Z
.locals 3
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
:cond_0
instance-of v1, p1, Lcom/polarsteps/service/traveltogether/c$b;
const/4 v2, 0x0
if-nez v1, :cond_1
return v2
:cond_1
check-cast p1, Lcom/polarsteps/service/traveltogether/c$b;
iget-object v1, p0, Lcom/polarsteps/service/traveltogether/c$b;->a:Lcom/polarsteps/data/models/domain/TripBuddy;
iget-object p1, p1, Lcom/polarsteps/service/traveltogether/c$b;->a:Lcom/polarsteps/data/models/domain/TripBuddy;
invoke-static {v1, p1}, Lkotlin/jvm/internal/Intrinsics;->d(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_2
return v2
:cond_2
return v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
.method public final toString()Ljava/lang/String;
.locals 2
.annotation build Lorg/jetbrains/annotations/NotNull;
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Invited(buddy="
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v1, p0, Lcom/polarsteps/service/traveltogether/c$b;->a:Lcom/polarsteps/data/models/domain/TripBuddy;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
.method public constructor <init>(Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiTripBuddy;)V
.locals 1
.param p1 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiTripBuddy;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end param
const-string v0, "buddy"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Lcom/polarsteps/service/traveltogether/c;-><init>()V
iput-object p1, p0, Lcom/polarsteps/service/traveltogether/c$b;->a:Lcom/polarsteps/data/models/domain/TripBuddy;
return-void
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
.method public final hashCode()I
.locals 1
iget-object v0, p0, Lcom/polarsteps/service/traveltogether/c$b;->a:Lcom/polarsteps/data/models/domain/TripBuddy;
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
return v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy
.method public getStatus()Lcom/polarsteps/data/models/domain/TripBuddyStatus;
.locals 1
.annotation build Lorg/jetbrains/annotations/NotNull;
iget-object v0, p0, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiTripBuddy;->status:Lcom/polarsteps/data/models/domain/TripBuddyStatus;
return-object v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
# Class: Aa.G
.method public final invoke()Ljava/lang/Object;
.locals 6
iget v0, p0, LAa/G;->a:I
const/4 v1, 0x1
const/16 v2, 0xa
const/4 v3, 0x0
const/4 v4, 0x0
iget-object v5, p0, LAa/G;->b:Ljava/lang/Object;
packed-switch v0, :pswitch_data_0
check-cast v5, Lcom/polarsteps/map/features/c;
new-instance v0, Lcom/polarsteps/map/BaseMapSelector;
invoke-direct {v0, v5}, Lcom/polarsteps/map/BaseMapSelector;-><init>(Lcom/polarsteps/map/features/c;)V
return-object v0
:pswitch_0
check-cast v5, Lcom/polarsteps/map/features/a;
new-instance v0, Lcom/polarsteps/map/e0;
const/16 v1, 0xc
invoke-direct {v0, v5, v3, v1}, Lcom/polarsteps/map/e0;-><init>(Lcom/polarsteps/map/y;ZI)V
return-object v0
:pswitch_1
check-cast v5, Lcom/polarsteps/fragments/routes/RouteSegmentListView;
sget v0, Lcom/polarsteps/fragments/routes/RouteSegmentListView;->V:I
invoke-virtual {v5}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f0700a3
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
move-result v0
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
return-object v0
:pswitch_2
check-cast v5, Lcom/polarsteps/fragments/SearchSpotFragment;
invoke-static {v5}, Lcom/polarsteps/fragments/SearchSpotFragment;->N(Lcom/polarsteps/fragments/SearchSpotFragment;)Landroidx/recyclerview/widget/LinearLayoutManager;
move-result-object v0
return-object v0
:pswitch_3
check-cast v5, Lcom/polarsteps/following/FollowButtonViewModel;
iget-object v0, v5, Lcom/polarsteps/following/FollowButtonViewModel;->p:Lc9/b;
invoke-interface {v0}, Lc9/b;->a()Z
move-result v0
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
return-object v0
:pswitch_4
check-cast v5, Lcom/polarsteps/service/sync/tasks/M;
sget-object v0, Lcom/polarsteps/navigation/M0;->a:Lcom/polarsteps/navigation/M0;
const-string v1, "<this>"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Lcom/polarsteps/navigation/EditTrip;->a:Lcom/polarsteps/navigation/EditTrip;
iget-object v1, v5, Lcom/polarsteps/service/sync/tasks/M;->b:Lcom/polarsteps/service/sync/b;
iget-object v1, v1, Lcom/polarsteps/service/sync/b;->l:Ljava/lang/Object;
invoke-static {v1}, Lkotlin/collections/CollectionsKt;->T(Ljava/util/List;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-static {v1}, Lcom/polarsteps/data/models/domain/local/PolarIdentifier;->fromUUID(Ljava/lang/String;)Lcom/polarsteps/data/models/domain/local/PolarIdentifier;
move-result-object v1
const-string v2, "fromUUID(...)"
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
invoke-static {v1, v4}, Lcom/polarsteps/navigation/EditTrip;->f(Lcom/polarsteps/data/models/domain/local/PolarIdentifier;Lcom/polarsteps/navigation/EditTrip$BlinkTarget;)Lcom/polarsteps/navigation/A;
move-result-object v0
invoke-static {v0}, Lcom/polarsteps/navigation/M0;->a(Lcom/polarsteps/navigation/J0;)V
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object v0
:pswitch_5
check-cast v5, Lcom/polarsteps/features/common/bottomui/navbar/h;
sget-object v0, Lcom/polarsteps/features/common/bottomui/navbar/n$c;->a:Lcom/polarsteps/features/common/bottomui/navbar/n$c;
invoke-virtual {v5, v0}, Lcom/polarsteps/features/common/bottomui/navbar/h;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object v0
:pswitch_6
check-cast v5, Lcom/polarsteps/features/common/bottomui/snackbar/SnackBarViewModel;
invoke-virtual {v5}, Lcom/polarsteps/features/common/bottomui/snackbar/SnackBarViewModel;->R()V
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object v0
:pswitch_7
check-cast v5, Lcom/polarsteps/features/common/bottomui/h;
check-cast v5, Lcom/polarsteps/features/common/bottomui/h$b;
iget-object v0, v5, Lcom/polarsteps/features/common/bottomui/h$b;->c:LFb/t;
invoke-virtual {v0}, LFb/t;->invoke()Ljava/lang/Object;
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object v0
:pswitch_8
check-cast v5, Lcom/polarsteps/discovery/view/m;
new-instance v0, Landroidx/lifecycle/i0;
iget-object v1, v5, Lcom/polarsteps/discovery/view/m;->c:LZ8/i;
invoke-direct {v0, v5, v1}, Landroidx/lifecycle/i0;-><init>(Landroidx/lifecycle/k0;Landroidx/lifecycle/i0$c;)V
const-class v1, Lcom/polarsteps/search/view/GuidesSearchViewModel;
invoke-virtual {v0, v1}, Landroidx/lifecycle/i0;->a(Ljava/lang/Class;)Landroidx/lifecycle/f0;
move-result-object v0
check-cast v0, Lcom/polarsteps/search/view/GuidesSearchViewModel;
return-object v0
:pswitch_9
check-cast v5, Lcom/polarsteps/discovery/mapfeatures/f;
new-instance v0, Landroidx/lifecycle/i0;
invoke-direct {v0, v5}, Landroidx/lifecycle/i0;-><init>(Landroidx/lifecycle/k0;)V
const-class v1, Lcom/polarsteps/discovery/mapfeatures/d;
invoke-virtual {v0, v1}, Landroidx/lifecycle/i0;->a(Ljava/lang/Class;)Landroidx/lifecycle/f0;
move-result-object v0
check-cast v0, Lcom/polarsteps/discovery/mapfeatures/d;
return-object v0
:pswitch_a
check-cast v5, Lcom/polarsteps/destination/ui/DestinationDetailsViewModel;
sget-object v0, Lcom/polarsteps/destination/ui/l$c;->a:Lcom/polarsteps/destination/ui/l$c;
invoke-virtual {v5, v0}, Lcom/polarsteps/destination/ui/DestinationDetailsViewModel;->d0(Lcom/polarsteps/destination/ui/l;)V
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object v0
:pswitch_b
check-cast v5, Lcom/polarsteps/data/models/domain/api/ApiStories;
invoke-static {v5}, Lcom/polarsteps/data/models/domain/api/ApiStories;->c(Lcom/polarsteps/data/models/domain/api/ApiStories;)Ljava/util/Map;
move-result-object v0
return-object v0
:pswitch_c
check-cast v5, Lcom/polarsteps/compose/E;
check-cast v5, Lcom/polarsteps/compose/E$a;
iget-object v0, v5, Lcom/polarsteps/compose/E$a;->a:Lih/f;
const/4 v1, 0x3
invoke-static {v0, v1}, Lkotlin/collections/CollectionsKt;->x0(Ljava/lang/Iterable;I)Ljava/util/List;
move-result-object v0
check-cast v0, Ljava/lang/Iterable;
new-instance v1, Ljava/util/ArrayList;
invoke-static {v0, v2}, Lkotlin/collections/x;->q(Ljava/lang/Iterable;I)I
move-result v2
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_0
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/polarsteps/compose/a;
iget-object v2, v2, Lcom/polarsteps/compose/a;->a:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
invoke-static {v1}, Lih/a;->d(Ljava/lang/Iterable;)Lih/f;
move-result-object v0
return-object v0
:pswitch_d
check-cast v5, Lcom/polarsteps/compose/B;
iget-object v0, v5, Lcom/polarsteps/compose/B;->a:Landroidx/compose/runtime/f0;
sget-object v1, Lcom/polarsteps/compose/p$a;->a:Lcom/polarsteps/compose/p$a;
invoke-virtual {v0, v1}, Landroidx/compose/runtime/J0;->setValue(Ljava/lang/Object;)V
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object v0
:pswitch_e
check-cast v5, Lcom/polarsteps/analytics/o;
iget-object v0, v5, Lcom/polarsteps/analytics/o;->c:Lcom/polarsteps/analytics/h;
invoke-virtual {v0}, Lcom/polarsteps/analytics/h;->g()Z
move-result v1
if-eqz v1, :cond_1
iget-object v1, v0, Lcom/polarsteps/analytics/h;->d:Lcom/rudderstack/android/sdk/core/p;
invoke-virtual {v0, v1}, Lcom/polarsteps/analytics/h;->b(Lcom/rudderstack/android/sdk/core/p;)Ljava/lang/String;
move-result-object v4
goto :goto_1
:cond_1
invoke-virtual {v0}, Lcom/polarsteps/analytics/h;->f()Z
move-result v1
if-eqz v1, :cond_2
iget-object v0, v0, Lcom/polarsteps/analytics/h;->c:Lcom/mixpanel/android/mpmetrics/c;
iget-object v0, v0, Lcom/mixpanel/android/mpmetrics/c;->f:LI8/i;
invoke-virtual {v0}, LI8/i;->b()Ljava/lang/String;
move-result-object v4
:cond_2
:goto_1
return-object v4
:pswitch_f
check-cast v5, Ljava/util/concurrent/Callable;
invoke-static {v5}, Landroidx/room/RoomDatabase;->b(Ljava/util/concurrent/Callable;)Ljava/lang/Object;
move-result-object v0
return-object v0
:pswitch_10
check-cast v5, Landroidx/room/InvalidationTracker;
iget-object v0, v5, Landroidx/room/InvalidationTracker;->a:Landroidx/room/RoomDatabase;
invoke-virtual {v0}, Landroidx/room/RoomDatabase;->inCompatibilityMode$room_runtime_release()Z
move-result v0
if-eqz v0, :cond_4
iget-object v0, v5, Landroidx/room/InvalidationTracker;->a:Landroidx/room/RoomDatabase;
invoke-virtual {v0}, Landroidx/room/RoomDatabase;->isOpenInternal()Z
move-result v0
if-eqz v0, :cond_3
goto :goto_2
:cond_3
move v1, v3
:cond_4
:goto_2
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
return-object v0
:pswitch_11
check-cast v5, Lcom/polarsteps/views/spots/SpotPrivacySelectionView;
sget v0, Lcom/polarsteps/views/spots/SpotPrivacySelectionView;->d0:I
const v0, 0x7f0a049b
invoke-virtual {v5, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/view/ViewGroup;
return-object v0
:pswitch_12
check-cast v5, LUb/b;
sget-object v0, Lc9/c;->a:Ljava/lang/String;
invoke-virtual {v5, v1, v0}, LUb/b;->d(ILjava/lang/String;)Lretrofit2/Retrofit;
move-result-object v0
const-class v1, LUb/b$b;
invoke-virtual {v0, v1}, Lretrofit2/Retrofit;->create(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
check-cast v0, LUb/b$b;
return-object v0
:pswitch_13
check-cast v5, Lcom/polarsteps/common/architecture/mvc/CoordinatedFragment;
new-instance v0, LS8/h;
invoke-direct {v0, v5}, LS8/h;-><init>(Lcom/polarsteps/common/architecture/mvc/CoordinatedFragment;)V
return-object v0
:pswitch_14
check-cast v5, Lcom/polarsteps/bottomsheet/a;
iget-object v0, v5, Lcom/polarsteps/bottomsheet/a;->a:Landroid/widget/FrameLayout;
invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f0700ab
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimension(I)F
move-result v0
invoke-static {v0}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v0
return-object v0
:pswitch_15
check-cast v5, Lcom/polarsteps/compose/G;
instance-of v0, v5, Lcom/polarsteps/compose/G$b;
if-eqz v0, :cond_5
move-object v4, v5
check-cast v4, Lcom/polarsteps/compose/G$b;
:cond_5
if-eqz v4, :cond_6
iget-object v0, v4, Lcom/polarsteps/compose/G$b;->c:Lcom/polarsteps/compose/E;
if-eqz v0, :cond_6
invoke-virtual {v0}, Lcom/polarsteps/compose/E;->a()Lkotlin/jvm/functions/Function0;
move-result-object v0
if-eqz v0, :cond_6
invoke-interface {v0}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
:cond_6
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object v0
:pswitch_16
check-cast v5, LLc/x;
iget-object v0, v5, LLc/x;->f:Lcom/polarsteps/j;
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->f(Ljava/lang/Object;)V
iget-object v0, v0, Lcom/polarsteps/j;->b:Ldagger/internal/d;
invoke-interface {v0}, Leg/a;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, LLc/m;
const-class v1, LLc/k;
invoke-virtual {v0, v1}, LLc/m;->d(Ljava/lang/Class;)Landroidx/fragment/app/Fragment;
move-result-object v0
const-string v1, "null cannot be cast to non-null type com.polarsteps.stories.GuidesStoriesFragment"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->g(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v0, LLc/k;
return-object v0
:pswitch_17
check-cast v5, Lcom/polarsteps/trippage/TripViewModel;
invoke-virtual {v5}, Lcom/polarsteps/trippage/TripViewModel;->n0()V
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object v0
:pswitch_18
check-cast v5, LGa/D;
iget-object v0, v5, LGa/D;->U:LCa/E;
iget-object v0, v0, LCa/E;->d:Landroidx/appcompat/widget/AppCompatTextView;
invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatTextView;->getText()Ljava/lang/CharSequence;
move-result-object v0
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "TopSpotViewHolder_"
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
:pswitch_19
check-cast v5, LGa/C;
invoke-virtual {v5}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
const-string v0, "ThemedCollectionViewHolderKey"
return-object v0
:pswitch_1a
check-cast v5, LEa/d;
invoke-virtual {v5}, LEa/d;->g()LAa/c;
move-result-object v0
const-class v1, Lcom/polarsteps/guides/view/A;
invoke-virtual {v0, v1}, LAa/c;->d(Ljava/lang/Class;)Landroidx/fragment/app/Fragment;
move-result-object v0
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->f(Ljava/lang/Object;)V
check-cast v0, Lcom/polarsteps/guides/view/A;
return-object v0
:pswitch_1b
check-cast v5, LBa/e;
iget-object v0, v5, LBa/e;->a:LEa/d;
invoke-virtual {v0}, LEa/d;->h()V
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object v0
:pswitch_1c
check-cast v5, LAa/I;
iget-object v0, v5, LAa/I;->a:Ljava/util/List;
check-cast v0, Ljava/lang/Iterable;
invoke-static {v0, v2}, Lkotlin/collections/x;->q(Ljava/lang/Iterable;I)I
move-result v1
invoke-static {v1}, Lkotlin/collections/O;->a(I)I
move-result v1
const/16 v2, 0x10
if-ge v1, v2, :cond_7
move v1, v2
:cond_7
new-instance v2, Ljava/util/LinkedHashMap;
invoke-direct {v2, v1}, Ljava/util/LinkedHashMap;-><init>(I)V
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_3
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_8
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
move-object v3, v1
check-cast v3, LFa/b;
iget-object v3, v3, LFa/b;->a:Ljava/lang/String;
invoke-interface {v2, v3, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_3
:cond_8
return-object v2
nop
:pswitch_data_0
.packed-switch 0x0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy
.method public getUuid()Ljava/lang/String;
.locals 1
.annotation build Lorg/jetbrains/annotations/NotNull;
iget-object v0, p0, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiTripBuddy;->uuid:Ljava/lang/String;
return-object v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
package com.polarsteps.service.traveltogether;
public final class c {
// Default constructor
public c() {
super();
}
}
package com.polarsteps.data.models.domain.room;
public class RoomBaseModel {
// Existing field reference kept as-is
Long id;
public Long getId() {
return this.id;
}
}
// package declaration is hidden; assumed to be com.polarsteps.data.models.domain
public abstract class WithID {
// Original method: public abstract getId()Ljava/lang/Long;
public abstract Long getId();
}
// package: com.polarsteps.data.models.domain.room
public class RoomTrip {
// Reference to the user ID field from the smali
private Long userId;
// Getter method for the user ID
public Long getUserId() {
return this.userId;
}
}
package com.polarsteps.data.models.domain.room;
import java.util.List;
import org.jetbrains.annotations.NotNull;
public class RoomTrip {
// Keep this member
@NotNull
public List<?> buddies;
// Desobfuscated method
@NotNull
public List<?> getBuddies() {
return buddies;
}
}
package com.polarsteps.service.traveltogether;
import com.polarsteps.data.models.domain.Trip;
import com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy;
import org.jetbrains.annotations.NotNull;
public class e {
// Existing fields (as used in smali):
Trip a;
FastApiTripBuddy b;
@Override
@NotNull
public final String toString() {
StringBuilder sb = new StringBuilder("SentBuddyInvite(trip=");
sb.append(a);
sb.append(", buddy=");
sb.append(b);
sb.append(')');
return sb.toString();
}
}
package com.polarsteps.data.models.domain.local;
public class PolarIdentifier {
// Corresponds to: iget-object v0, p0, Lcom/polarsteps/data/models/domain/local/PolarIdentifier;->id:Ljava/lang/Long;
// Renamed for clarity
private Long id;
// Corresponds to:
// .method public getId()Ljava/lang/Long;
// .locals 1
// iget-object v0, p0, Lcom/polarsteps/data/models/domain/local/PolarIdentifier;->id:Ljava/lang/Long;
// return-object v0
// .end method
public Long getId() {
return id;
}
}
// Corresponds to interface/class: Ub.b$a
public interface TripApiService {
/**
* Invites a buddy to a specified trip.
*
* @param tripId The ID of the trip to invite the buddy to.
* @param request The buddy invitation details.
* @return An observable emitting the server response.
* @see retrofit2.http.POST
* @see retrofit2.http.Path
* @see retrofit2.http.Body
*/
@retrofit2.http.POST("/api/trips/{trip_id}/buddies/invite")
io.reactivex.rxjava3.core.z inviteBuddy(
@retrofit2.http.Path("trip_id") java.lang.Long tripId,
@org.jetbrains.annotations.NotNull @retrofit2.http.Body com.polarsteps.data.models.domain.fastapi.buddies.FastApiAddBuddyRequest request
);
}
package Ub;
import LWb.c;
import LWb.d;
import com.google.gson.Gson;
import okhttp3.OkHttpClient;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava3.RxJava3CallAdapterFactory;
// This corresponds to class `Ub.b` (based on smali descriptor)
public class b {
// Original fields kept for reference (not deobfuscated)
public Gson d; // likely retained for desobfuscation path references
public Gson e;
// Renamed for clarity, based on method behavior:
public OkHttpClient getClientForAPIConfiguration(int apiId) {
throw new RuntimeException("This method stub does not contain instantiation code, just references.");
}
// Renamed and refactored for clarity
public Retrofit buildRetrofitInstance(int apiId, String baseUrl) {
Retrofit.Builder builder = new Retrofit.Builder()
.baseUrl(baseUrl)
.addConverterFactory(new d()) // subclass of retrofit2.Converter.Factory
.addConverterFactory(new c(this.d, this.e)) // Custom factory
.addCallAdapterFactory(RxJava3CallAdapterFactory.create());
// Custom OkHttpClient setup
OkHttpClient client = this.getClientForAPIConfiguration(apiId);
builder.client(client);
// Final instantiation
Retrofit retrofit = builder.build();
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(retrofit, "build(...)");
return retrofit;
}
}
package com.polarsteps.service.traveltogether;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.ContinuationImpl;
import org.jetbrains.annotations.NotNull;
public final class TravelTogetherServiceImpl$inviteBuddyToOfflineTrip$1 {
// Kept fields for reference but not critical for desobfuscation
public BackReference this$0;
public volatile Object result;
public int label;
/**
* Invoked when a continuation is resumed with a result.
* Desobfuscated and annotated for clarity.
*/
public final Object invokeSuspend(@NotNull Object value) {
// Desobfuscate field references
this.result = value;
// Atomically update the label to indicate resumed execution
int currentLabel = this.label;
int flag = Integer.MIN_VALUE;
int updatedLabel = currentLabel | flag;
this.label = updatedLabel;
// Prepare arguments for continuation: this context, user (null), and this for completion context
TravelTogetherServiceImpl self = this.this$0;
Continuation continuation = this;
// Final invocation: delegates to the static method from TravelTogetherServiceImpl
Object result = TravelTogetherServiceImpl.q(self, self, null, null, (ContinuationImpl) continuation);
return result;
}
}
// Supporting pseudo-reference; actual field type would match reflection of original class
class BackReference {
public TravelTogetherServiceImpl this$0;
}
package com.polarsteps.service.traveltogether;
// Referenced class:
// com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$inviteBuddyToOfflineTrip$1
public class TravelTogetherServiceImpl$inviteBuddyToOfflineTrip$1 extends kotlin.coroutines.jvm.internal.ContinuationImpl {
// Renamed for clarity, keeping the descriptor reference
public com.polarsteps.service.traveltogether.TravelTogetherServiceImpl this$0;
// Synthetic reference to the continuation's enclosing method
public TravelTogetherServiceImpl$inviteBuddyToOfflineTrip$1(kotlin.coroutines.Continuation completion) {
super(completion);
}
// Explicit/default implementation retained
@Override
protected final void invokeSuspend(Object result) {
// Stub for hooking real desobfuscation if present
// Manual override if mechanics were preserved in actual deep-source code.
}
// Runtime/savable reversion paths via sugarcoated descriptors preserve referece logic:
// L$0 = this$this$0 equivalent
// Specifically: for this$0 when real capturer/wire thread maintained
@Override
public java.lang.Object invokeSuspend(Object result) {
// Implementation tied to referenced real class continues here
// Issue a short-circuit on null L$0 where applicable
if (this.this$0 == null) {
return kotlin.coroutines.intrinsics.IntrinsicsKt.NULL;
}
// actual continuation logic would follow...
return kotlin.coroutines.intrinsics.IntrinsicsKt.SUSPENDED;
}
}
package com.polarsteps.data.models.domain.fastapi.buddies;
public class FastApiAddBuddyRequest {
public long userId;
public FastApiAddBuddyRequest(long userId) {
this.userId = userId;
}
}
// Equivalent Java code for the provided smali snippet
// Class: com.polarsteps.data.models.domain.fastapi.buddies.FastApiAddBuddyRequest
/** @hidden */
public static Synthetic copy$default(
com.polarsteps.data.models.domain.fastapi.buddies.FastApiAddBuddyRequest self,
long userId,
int mask,
java.lang.Object unused // ignored placeholder for default parameter
) {
if ((mask & 0x1) != 0) {
userId = self.userId;
}
return self.copy(userId);
}
package com.polarsteps.service.traveltogether;
// Inner class target derived from smali: com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$canInviteBuddyToTrip$1
final class TravelTogetherServiceImpl$canInviteBuddyToTrip$1 extends kotlin.coroutines.jvm.internal.ContinuationImpl {
// This corresponds to the original 'this' reference held by the continuation
// Referenced as 'this$0' in smali
final com.polarsteps.service.traveltogether.TravelTogetherServiceImpl this$0;
// Tracks the invocation state (originally named 'label' in smali)
int label;
// Holds the result of the suspended operation (referenced as 'result')
java.lang.Object result;
public TravelTogetherServiceImpl$canInviteBuddyToTrip$1(
com.polarsteps.service.traveltogether.TravelTogetherServiceImpl this$0,
kotlin.coroutines.Continuation<? super TravelTogetherServiceImpl$canInviteBuddyToTrip$1> completion
) {
super(completion);
this.this$0 = this$0;
}
@Override
@org.jetbrains.annotations.NotNull
public final java.lang.Object invokeSuspend(@org.jetbrains.annotations.NotNull java.lang.Object value) {
// Store the result of the suspension
this.result = value;
// Mark this continuation as resumed by-or'ing with the high bit
this.label |= 0x80000000;
// Call the suspendable method with the current label (coroutine context)
// Smali: invoke-virtual {p1, v0, p0}, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;->v(Ljava/lang/String;Lkotlin/coroutines/jvm/internal/ContinuationImpl;)Ljava/lang/Object;
// Where p1 is the receiver (this.this$0), v0 is null (no label), and p0 is this continuation
return this.this$0.v(
null,
this
);
}
}
// Decompiled from: com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$canInviteBuddyToTrip$1
// Assembly: app, version: 1.0.0
package com.polarsteps.service.traveltogether;
// L$0:Ljava/lang/Object;
// This field references the outer class instance.
// .locals 0
// .annotation system Ldalvik/annotation/Signature;
// In SMALI: this$0 -> declared in Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl; -> field in outer class
public final class TravelTogetherServiceImpl$canInviteBuddyToTrip$1 extends kotlin.coroutines.jvm.internal.ContinuationImpl {
// Renamed to avoid confusion: this$0 -> will hold reference to outer class
// Desobfuscated for Java access:
// package-default visibility
com.polarsteps.service.traveltogether.TravelTogetherServiceImpl this$0;
// .locals 0 -> no local variables in this method
// The locals array should not be confused with this method's parameters
// Corresponds to:
// public TravelTogetherServiceImpl$canInviteBuddyToTrip$1(
// TravelTogetherServiceImpl outer,
// kotlin.coroutines.Continuation completion
// ) {
// super(completion);
// this.this$0 = outer;
// }
public TravelTogetherServiceImpl$canInviteBuddyToTrip$1(
com.polarsteps.service.traveltogether.TravelTogetherServiceImpl continuation,
kotlin.coroutines.Continuation completion
) {
super(completion);
this.this$0 = continuation;
}
// Note from smali: iput-object p1, p0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$canInviteBuddyToTrip$1;->this$0:Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;
// The reference assignment happens at index 0:
// iput-object -> field assignment: Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$canInviteBuddyToTrip$1.this$0 = <reference>
// The rest of the smali class is hidden or truncated in the snippet
}
package com.polarsteps.service.traveltogether;
// Corresponds to: com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$remoteInviteBuddy$1
// Annotated inline continuation for suspend functions (kotlin.coroutines.jvm.internal.ContinuationImpl)
public final class TravelTogetherServiceImpl$remoteInviteBuddy$1
extends kotlin.coroutines.jvm.internal.ContinuationImpl {
// Renamed field: inlined label/index stored as I$0
int label;
// Corresponds to:
// .method public constructor <init>(Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;Lkotlin/coroutines/c;)V
public TravelTogetherServiceImpl$remoteInviteBuddy$1(TravelTogetherServiceImpl outer, kotlin.coroutines.c completion) {
super(completion);
this.this$0 = outer;
}
// Observable continuation reference (reference passed from outer scope - this$0)
TravelTogetherServiceImpl this$0;
// Generated: 构造方法签名: public final void B(Lkotlin/coroutines/a;)V
// Relative call: super.releaseIntercepted()
@Override
public final void releaseIntercepted() {
super.releaseIntercepted(); // allow proper cleanup of continuation stack
}
// State machine moveNext adapted from underlying suspendable expression
// Override with the injected label-based continuation dispatch
@Override
protected void resumeWith(Object result) {
// Continuation capturing code is handled by super.resumeWith(result)
super.resumeWith(result);
}
}
package com.polarsteps.data.models.domain.fastapi.buddies;
import org.jetbrains.annotations.NotNull;
public final class FastApiAddBuddyRequest {
private final long userId;
// Constructor
public FastApiAddBuddyRequest(long userId) {
this.userId = userId;
}
// Desobfuscated copy method - mimics the semantics of the smali's "copy"
@NotNull
public FastApiAddBuddyRequest copy(long userId) {
return new FastApiAddBuddyRequest(userId);
}
// Optional: Getters for the field
public long getUserId() {
return userId;
}
}
// Class: com.polarsteps.data.models.domain.fastapi.buddies.FastApiAddBuddyRequest
public final long getUserId() {
long userId = this.userId;
return userId;
}
// Class: com.polarsteps.data.models.domain.fastapi.buddies.FastApiAddBuddyRequest
/*
* Overrides equals() to compare two FastApiAddBuddyRequest objects.
* Two objects are equal if their userId fields are equal.
*/
@Override
public boolean equals(Object other) {
// Reference equality check
if (this == other) {
return true;
}
// Null or wrong type check
if (!(other instanceof FastApiAddBuddyRequest)) {
return false;
}
FastApiAddBuddyRequest that = (FastApiAddBuddyRequest) other;
// Field comparison
return this.userId == that.userId;
}
package com.polarsteps.service.traveltogether;
import kotlin.TuplesKt;
import kotlin.coroutines.*;
import com.polarsteps.common.time.TimeInSeconds;
import com.polarsteps.data.models.domain.*;
import com.polarsteps.data.models.domain.room.TripBuddyLocalState;
// Technically this is an anonymous class generated by the Kotlin compiler,
// matching the mangled class name from the smali.
final class TravelTogetherServiceImpl$locallyStoreTripBuddy$2
extends kotlin.coroutines.jvm.internal.ContinuationImpl {
// Captured arguments from the corresponding suspend lambda/function.
private final User user;
private final String tripUUID;
private final TripBuddyStatus status;
private final TripBuddyLocalState localState;
private final TimeInSeconds invitedAt;
private final String buddyUuid;
private final Long buddyId;
// Referenced as "this$0" to denote the outer class instance.
private final TravelTogetherServiceImpl this$0;
public TravelTogetherServiceImpl$locallyStoreTripBuddy$2(
TravelTogetherServiceImpl outer,
User user,
String tripUUID,
TripBuddyStatus status,
TripBuddyLocalState localState,
TimeInSeconds invitedAt,
String buddyUuid,
Long buddyId,
Continuation completion
) {
super(completion);
this.this$0 = outer;
this.user = user;
this.tripUUID = tripUUID;
this.status = status;
this.localState = localState;
this.invitedAt = invitedAt;
this.buddyUuid = buddyUuid;
this.buddyId = buddyId;
}
// Renamed from original smali: create
@Override
public final Continuation create(Continuation completion) {
// Construct a new copy of this continuation with the same captured values.
TravelTogetherServiceImpl$locallyStoreTripBuddy$2 continuation =
new TravelTogetherServiceImpl$locallyStoreTripBuddy$2(
this.this$0,
this.user,
this.tripUUID,
this.status,
this.localState,
this.invitedAt,
this.buddyUuid,
this.buddyId,
completion
);
return continuation;
}
// Placeholder method representing the actual coroutine body (not present in provided smali)
@Override
public final Object invokeSuspend(Object result) {
// Throwing an exception to indicate it's a placeholder; in real code this would have the actual logic.
throw new IllegalStateException(
"call to 'invokeSuspend' is not allowed in the copied continuation"
);
}
}
// Decompiled and deobfuscated from:
// class: com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$remoteInviteBuddy$1
// Original internal name: com/polarsteps/service/traveltogether/TravelTogetherServiceImpl$remoteInviteBuddy$1
package com.polarsteps.service.traveltogether;
import com.polarsteps.data.models.domain.User;
import com.polarsteps.data.models.domain.room.RoomTrip;
import kotlin.coroutines.jvm.internal.ContinuationImpl;
import org.jetbrains.annotations.NotNull;
public final class TravelTogetherServiceImpl$remoteInviteBuddy$1 extends ContinuationImpl {
// Renamed from this$0 for clarity; it's a reference to the outer class
public TravelTogetherServiceImpl outerService;
// Renamed from result for clarity; stored the result of the suspendable call
public Object result;
// Class constructor (not decompiled - assumed to be auto-generated by Kotlin)
public TravelTogetherServiceImpl$remoteInviteBuddy$1(TravelTogetherServiceImpl service, ContinuationImpl completion) {
super(completion);
this.outerService = service;
}
// Equivalent of invokeSuspend
@Override
@NotNull
public final Object invokeSuspend(@NotNull Object suspendResult) {
this.result = suspendResult;
// Mark this continuation as resumed
int currentLabel = this.label;
this.label = currentLabel | Integer.MIN_VALUE;
// Delegate to outer class's static method:
// TravelTogetherServiceImpl.Companion.s(outerService, null, null, this)
// This corresponds to a suspend function call with receiver:
// this.remoteInviteBuddy(...)
// Which may have an optional parameter like a user and/or trip
return TravelTogetherServiceImpl.Companion.s(
this.outerService,
(RoomTrip) null,
(User) null,
this
);
}
}
package com.polarsteps.data.models.domain.fastapi.buddies;
public class FastApiTripBuddy {
// Original field reference kept as-is
private Long id;
// Desobfuscated getter
public Long getId() {
return this.id;
}
}
// In class retrofit2.Retrofit
public <T> T create(Class<T> serviceInterface) {
validateServiceInterface(serviceInterface);
ClassLoader classLoader = serviceInterface.getClassLoader();
Class<?>[] interfaces = { serviceInterface };
InvocationHandler handler = new Retrofit$1(this, serviceInterface);
T proxy = (T) java.lang.reflect.Proxy.newProxyInstance(classLoader, interfaces, handler);
return proxy;
}
package com.polarsteps.data.models.domain.fastapi.buddies;
import java.util.Objects;
/**
* Represents a request to add a buddy.
*/
public final class FastApiAddBuddyRequest {
/**
* The ID of the user to add as a buddy.
*/
public final long userId;
/**
* Constructs a new FastApiAddBuddyRequest.
*
* @param userId the ID of the user to add
*/
public FastApiAddBuddyRequest(long userId) {
this.userId = userId;
}
/**
* Returns the component1 field (the userId).
*
* @return the userId
*/
public final long component1() {
return.userId;
}
// Auto-generated equals, hashCode, and toString for clarity
@Override
public boolean equals(Object other) {
if (this == other) return true;
if (!(other instanceof FastApiAddBuddyRequest)) return false;
FastApiAddBuddyRequest that = (FastApiAddBuddyRequest) other;
return userId == that.userId;
}
@Override
public int hashCode() {
return Objects.hash(userId);
}
@Override
public String toString() {
return "FastApiAddBuddyRequest(userId=" + userId + ")";
}
}
// Equivalent Java class for the provided smali snippet.
// Placeholder for external reference:
// androidx.compose.foundation.text.selection.f;
// Consider this: we have a class:
package com.polarsteps.data.models.domain.fastapi.buddies;
// Existing class (inferred from method):
public class FastApiAddBuddyRequest {
// Original field retained:
public long userId;
// The full desobfuscated toString() method, manually derived from the smali:
@Override
@org.jetbrains.annotations.NotNull
public String toString() {
// The smali calls a method from androidx.compose.foundation.text.selection.f: l(...).
// In modern Java/Kotlin, this likely simplifies to a string format like:
// "FastApiAddBuddyRequest(userId=" + value + ")"
// Rewriting it in pure Java:
return "FastApiAddBuddyRequest(userId=" + userId + ")";
}
}
package com.polarsteps.data.models.domain.fastapi.buddies;
public class FastApiAddBuddyRequest {
// Existing field/field Signature: musicallyapp/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;->userId:J
public long userId;
@Override
public int hashCode() {
// Computed exactly as in the smali:
// iget-wide v0, p0, Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;->userId:J
// invoke-static {v0, v1}, Ljava/lang/Long;->hashCode(J)I
// move-result v0
// return v0
return Long.hashCode(this.userId);
}
}
// Target: com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$locallyStoreTripBuddy$2
public final class TravelTogetherServiceImpl$locallyStoreTripBuddy$2 extends kotlin.coroutines.jvm.internal.SuspendLambda {
// Original synthetic field references preserved:
// $buddyId:Ljava/lang/Long; lives at this ICC slot
// Synthetic captures:
final com.polarsteps.service.traveltogether.TravelTogetherServiceImpl this$0; // this$0
final com.polarsteps.data.models.domain.User $user; // $user
final java.lang.String $tripUUID; // $tripUUID
final com.polarsteps.data.models.domain.TripBuddyStatus $status; // $status
final com.polarsteps.data.models.domain.room.TripBuddyLocalState $localState; // $localState
final com.polarsteps.common.time.TimeInSeconds $invitedAt; // $invitedAt
final java.lang.String $buddyUuid; // $buddyUuid
final java.lang.Long $buddyId; // $buddyId
// Constructor:
public TravelTogetherServiceImpl$locallyStoreTripBuddy$2(
com.polarsteps.service.traveltogether.TravelTogetherServiceImpl this$0,
com.polarsteps.data.models.domain.User user,
java.lang.String tripUUID,
com.polarsteps.data.models.domain.TripBuddyStatus status,
com.polarsteps.data.models.domain.room.TripBuddyLocalState localState,
com.polarsteps.common.time.TimeInSeconds invitedAt,
java.lang.String buddyUuid,
java.lang.Long buddyId,
kotlin.coroutines.Continuation cont
) {
super(1, cont);
// Note: Field order from smali matches SmaliBaseCompiler output with the smali reference resolved.
this.this$0 = this$0;
this.$user = user;
this.$tripUUID = tripUUID;
this.$status = status;
this.$localState = localState;
this.$invitedAt = invitedAt;
this.$buddyUuid = buddyUuid;
this.$buddyId = buddyId;
}
// Implementation would depend on the rest of the smali code (such as the invoke method),
// but in this class, we only preserve the instantiated fields as referenced by smali:
@Override
public final kotlin.coroutines.Continuation create(kotlin.coroutines.Continuation completion) {
return new TravelTogetherServiceImpl$locallyStoreTripBuddy$2(
this.this$0,
this.$user,
this.$tripUUID,
this.$status,
this.$localState,
this.$invitedAt,
this.$buddyUuid,
this.$buddyId,
completion
);
}
}
package com.polarsteps.data.models.domain.fastapi.buddies;
import com.polarsteps.data.models.domain.TripBuddyStatus;
import org.jetbrains.annotations.NotNull;
public class FastApiTripBuddy {
// Original field reference kept unchanged
private TripBuddyStatus status;
@NotNull
public TripBuddyStatus getStatus() {
return this.status;
}
}
package com.polarsteps.service.traveltogether;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.SuspendFunction;
import kotlin.coroutines.intrinsics.CoroutineSingletons;
import kotlin.collections.CollectionsKt;
// Representation for: com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$locallyStoreTripBuddy$2
// Inner class: TravelTogetherServiceImpl.locallyStoreTripBuddy
public final class TravelTogetherServiceProvider {
// Final synthetic class: TravelTogetherServiceImpl$locallyStoreTripBuddy$2
public static class locallyStoreTripBuddy implements SuspendFunction {
// Rename from fields '$user', '$tripUUID', '$status', '$localState', '$invitedAt', '$buddyUuid', '$buddyId'
public final com.polarsteps.data.models.domain.User user;
public final String tripUUID;
public final com.polarsteps.data.models.domain.TripBuddyStatus status;
public final com.polarsteps.data.models.domain.room.TripBuddyLocalState localState;
public final com.polarsteps.common.time.TimeInSeconds invitedAt;
public final String buddyUuid;
public final Long buddyId;
// Used to track continuation/coroutine state
public int label;
// Original references
public final TravelTogetherServiceImpl this$0;
public locallyStoreTripBuddy(TravelTogetherServiceImpl service,
com.polarsteps.data.models.domain.User user,
String tripUUID,
com.polarsteps.data.models.domain.TripBuddyStatus status,
com.polarsteps.data.models.domain.room.TripBuddyLocalState localState,
com.polarsteps.common.time.TimeInSeconds invitedAt,
String buddyUuid,
Long buddyId) {
this.this$0 = service;
this.user = user;
this.tripUUID = tripUUID;
this.status = status;
this.localState = localState;
this.invitedAt = invitedAt;
this.buddyUuid = buddyUuid;
this.buddyId = buddyId;
}
/**
* Invoked by Kotlin runtime during suspend/resume. Equivalent of resume() in Kotlin coroutines.
*/
@Override
public Object invokeSuspend(Object result) {
CoroutineSingletons COROUTINE_SUSPENDED = CoroutineSingletons.COROUTINE_SUSPENDED;
int currentLabel = this.label;
if (currentLabel == 0) {
// First resume: proceed to initial call
kotlin.l.b(result);
com.polarsteps.service.K1 databaseService = this.this$0.d;
// Check if user is already in DB
boolean exists = databaseService.p(this.user);
if (!exists) {
// Not present => insert the user then fallthrough to insert or update trip buddy
com.polarsteps.data.database.DatabaseAccess dbAccess = this.this$0.c;
com.polarsteps.data.models.domain.room.RoomUser roomUser =
com.polarsteps.data.models.domain.UserKt.forStorage(this.user);
java.util.List<com.polarsteps.data.models.domain.room.RoomUser> users =
CollectionsKt.c(roomUser);
this.label = 1;
result = dbAccess.insertOrIgnoreUsers(users, this);
if (result == COROUTINE_SUSPENDED)
return COROUTINE_SUSPENDED;
}
} else if (currentLabel == 1) {
// Resume after insertUser =>
kotlin.l.b(result);
} else if (currentLabel == 2) {
// Resume after upsertTripBuddies =>
kotlin.l.b(result);
} else {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
// Insert or update TripBuddyJoin
com.polarsteps.data.database.DatabaseAccess dbAccess =
this.this$0.c;
com.polarsteps.data.models.domain.room.TripBuddyJoin tripBuddy = new com.polarsteps.data.models.domain.room.TripBuddyJoin(
this.tripUUID,
this.user.getUuid(),
this.status,
this.localState,
this.invitedAt,
this.buddyUuid,
this.buddyId);
java.util.List<com.polarsteps.data.models.domain.room.TripBuddyJoin> tripBuddies
= CollectionsKt.c(tripBuddy);
this.label = 2;
result = dbAccess.upsertTripBuddies(tripBuddies, this);
if (result == COROUTINE_SUSPENDED)
return COROUTINE_SUSPENDED;
return kotlin.Unit.a;
}
// Not needed but for clarity (replaces invokeSuspend)
@Override
public Object invoke(Object parameter) {
// Simulate the execution path
// This would normally be called by the Kotlin coroutine engine
throw new UnsupportedOperationException("Not fully implemented");
}
}
}
package com.polarsteps.service.traveltogether;
import com.polarsteps.data.database.DatabaseAccess;
import com.polarsteps.data.database.PolarstepsDatabase;
import com.polarsteps.data.models.domain.*;
import com.polarsteps.data.models.domain.fastapi.FastApiBaseUser;
import com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy;
import com.polarsteps.data.models.domain.room.TripBuddyLocalState;
import com.polarsteps.service.traveltogether.TravelTogetherServiceImpl;
import com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$locallyStoreTripBuddy$2;
import com.polarsteps.service.traveltogether.c$b;
import com.polarsteps.service.traveltogether.c$a;
import com.polarsteps.service.traveltogether.InviteFailedReason;
import kotlinx.coroutines.BuildersKt;
import kotlinx.coroutines.intrinsics.CoroutineSingletons;
import kotlinx.coroutines.CoroutineScope;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.ContinuationImpl;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.l;
import androidx.room.RoomDatabase;
import androidx.room.With;
import java.lang.Exception;
import java.lang.IllegalStateException;
import kotlin.jvm.functions.Function1;
// Deobfuscated method signature as per class reference
// y(Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;
// Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiTripBuddy;
// Ljava/lang/String;Lkotlin/coroutines/jvm/internal/ContinuationImpl;)
// returns: java.lang.Object
public final class TravelTogetherServiceImpl {
// Original name kept as: y
// Signature preserved: y corresponds to a method named like storeInvitedBuddyLocally
public final Object storeInvitedBuddyLocally(
TravelTogetherServiceImpl self,
FastApiTripBuddy buddy,
String tripUuid,
ContinuationImpl $completion
) {
boolean notCompletedYet = $completion instanceof TravelTogetherServiceImpl$storeInvitedBuddyLocally$1;
TravelTogetherServiceImpl$storeInvitedBuddyLocally$1 coroutine;
if (notCompletedYet) {
coroutine = (TravelTogetherServiceImpl$storeInvitedBuddyLocally$1) $completion;
int state = coroutine.label;
int mask = Integer.MIN_VALUE;
if ((state & mask) != 0) {
state -= mask;
coroutine.label = state;
}
} else {
coroutine = new TravelTogetherServiceImpl$storeInvitedBuddyLocally$1(self, $completion);
}
Object result = coroutine.result;
CoroutineSingletons singleton = CoroutineSingletons.COROUTINE_SUSPENDED;
int state = coroutine.label;
if (state == 0) {
l.b(result);
// Build conversion object
FastApiBaseUser user = buddy.getUser();
TripBuddyStatus status = buddy.getStatus();
String uuid = buddy.getUuid();
TimeInSeconds invitedAt = buddy.getInvitedAt();
Long id = buddy.getId();
TripBuddyLocalState localState = TripBuddyLocalState.Idle;
coroutine.L$0 = null;
coroutine.L$1 = buddy;
coroutine.L$2 = null;
coroutine.label = 1;
DatabaseAccess databaseAccess = self.c;
RoomDatabase database = databaseAccess.getDatabase();
Function1 task = new TravelTogetherServiceImpl$locallyStoreTripBuddy$2(
self, user, tripUuid, status, localState, invitedAt, uuid, id, null
);
Object suspended = BuildersKt.WithUMarkersCoroutine(database, task, coroutine);
if (suspended == singleton) {
return singleton;
}
// Mark as done
kotlin.Unit.unit = kotlin.Unit.a;
} else if (state == 1) {
Object savedInstance = coroutine.L$1;
buddy = (FastApiTripBuddy) savedInstance;
Object unused = coroutine.L$2;
self = (TravelTogetherServiceImpl) coroutine.L$0;
l.b(result); // Just ensure we are not empty
} else {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
// Upon success or after coroutine resume:
try {
return new c$b(buddy);
} catch (Exception e) {
return new c$a(InviteFailedReason.LocalStorage, e);
}
}
}
public final Object v(String polarTripId, kotlin.coroutines.jvm.internal.ContinuationImpl continuation) {
kotlin.coroutines.jvm.internal.ContinuationImpl capturedContinuation;
boolean z;
// Check if continuation is already an instance of the related annotated method continuation
if (continuation instanceof com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$canInviteBuddyToTrip$1) {
capturedContinuation = continuation;
com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$canInviteBuddyToTrip$1 existingContinuation =
(com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$canInviteBuddyToTrip$1) capturedContinuation;
int currentLabel = existingContinuation.label;
int mask = Integer.MIN_VALUE;
int masked = currentLabel & mask;
if (masked != 0) {
currentLabel -= mask;
existingContinuation.label = currentLabel;
}
} else {
capturedContinuation = new com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$canInviteBuddyToTrip$1(this, continuation);
}
// Unpack result from previous suspension point
Object savedResult = ((com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$canInviteBuddyToTrip$1) capturedContinuation).result;
kotlin.coroutines.intrinsics.CoroutineSingletons COROUTINE_SUSPENDED = kotlin.coroutines.intrinsics.CoroutineSingletons.COROUTINE_SUSPENDED;
// Check label for which state we're in
int currentLabel = ((com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$canInviteBuddyToTrip$1) capturedContinuation).label;
int STATE_1 = 1;
int STATE_2 = 2;
switch (currentLabel) {
case 0:
// First invocation. Ensure continuation is unwrapped
kotlin.l.b(savedResult);
((com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$canInviteBuddyToTrip$1) capturedContinuation).L$0 = polarTripId;
((com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$canInviteBuddyToTrip$1) capturedContinuation).label = STATE_1;
com.polarsteps.data.models.domain.local.PolarIdentifier parsedId =
com.polarsteps.data.models.domain.local.PolarIdentifier.fromUUID(polarTripId);
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(parsedId, "fromUUID(...)");
com.polarsteps.data.database.DatabaseAccess dbAccess = this.c;
com.polarsteps.data.models.domain.room.RoomTrip tripOrEmpty =
dbAccess.justTrip(parsedId);
java.lang.Boolean atLeastOneBuddy = java.lang.Boolean.FALSE;
if (tripOrEmpty != null) {
java.util.List<TripBuddy> buddies = tripOrEmpty.getBuddies();
if (buddies != null) {
// Iterate to check if current user (me) is already in the trip
boolean foundMe = false;
for (TripBuddy buddy : buddies) {
com.polarsteps.service.K1 authService = this.d;
User user = buddy.getUser();
if (authService.p(user)) {
foundMe = true;
break;
}
}
atLeastOneBuddy = java.lang.Boolean.valueOf(foundMe);
}
}
if (atLeastOneBuddy == COROUTINE_SUSPENDED) {
return COROUTINE_SUSPENDED;
} else {
polarTripId = (String) ((com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$canInviteBuddyToTrip$1) capturedContinuation).L$0;
z = atLeastOneBuddy.booleanValue();
}
if (!z) {
((com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$canInviteBuddyToTrip$1) capturedContinuation).L$0 = null;
((com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$canInviteBuddyToTrip$1) capturedContinuation).label = STATE_2;
java.lang.Boolean canInviteSameBuddy = o(polarTripId);
if (canInviteSameBuddy == COROUTINE_SUSPENDED) {
return COROUTINE_SUSPENDED;
}
return canInviteSameBuddy;
} else {
// Already in the trip, so allow invitation
return java.lang.Boolean.TRUE;
}
case STATE_1:
polarTripId = (String) ((com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$canInviteBuddyToTrip$1) capturedContinuation).L$0;
kotlin.l.b(savedResult);
z = ((java.lang.Boolean) savedResult).booleanValue();
// Falls through to STATE_2 scenario
// Deliberate fallthrough to avoid duplicate code
case STATE_2:
// This handles the direct continuation of the second path without tomfoolery
kotlin.l.b(savedResult); // For debugging sanity
// expect: savedResult could be whatever from o().
java.lang.Boolean intermediateOutcome = (java.lang.Boolean) savedResult;
return intermediateOutcome;
default:
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
}
public static final Object remoteInviteBuddy(
com.polarsteps.service.traveltogether.TravelTogetherServiceImpl service,
com.polarsteps.data.models.domain.room.RoomTrip trip,
com.polarsteps.data.models.domain.User user,
kotlin.coroutines.jvm.internal.ContinuationImpl continuation
) {
// This function uses coroutine continuation with suspend semantics
// Set the class reference
service.getClass();
// Resume continuation if it's already defined
com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$remoteInviteBuddy$1 frame;
if (continuation instanceof com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$remoteInviteBuddy$1) {
frame = (com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$remoteInviteBuddy$1) continuation;
int label = frame.label & Integer.MIN_VALUE;
if (label != 0) {
frame.label -= label;
}
} else {
frame = new com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$remoteInviteBuddy$1(service, continuation);
}
Object result = frame.result;
Object suspendToken = kotlin.coroutines.intrinsics.CoroutineSingletons.COROUTINE_SUSPENDED;
int label = frame.label;
final int STATE_CONTINUE = 1,
STATE_EMIT = 2,
STATE_FINAL = 3;
try {
if (label == 0) {
// Initial entry
kotlin.l.b(result); // Ensure result is not suspended
// Build the FastAPI request
Uo.b apiClient = service.b.a();
Long tripId = trip.getId();
kotlin.jvm.internal.Intrinsics.f(tripId);
com.polarsteps.data.models.domain.fastapi.buddies.FastApiAddBuddyRequest request =
new com.polarsteps.data.models.domain.fastapi.buddies.FastApiAddBuddyRequest(
user.getId().longValue()
);
// Invoke remote API
io.reactivex.rxjava3.core.z response =
apiClient.A(tripId, request);
// Suspend to await the API response
frame.L$0 = trip;
frame.L$1 = null;
frame.I$0 = 0;
frame.label = 1;
Object awaited = kotlinx.coroutines.rx3.RxAwaitKt.await(response, frame);
if (awaited == suspendToken) {
return suspendToken;
}
// Store result from API call
int retryCount = 0;
com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy buddy =
(com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy) awaited;
// Emit to the events flow
kotlinx.coroutines.flow.MutableSharedFlow events = service.p;
com.polarsteps.service.traveltogether.d event =
new com.polarsteps.service.traveltogether.d(trip, buddy);
frame.L$0 = trip;
frame.L$1 = null;
frame.L$2 = awaited;
frame.L$3 = null;
frame.I$0 = retryCount;
frame.I$1 = 0;
frame.label = 2;
Object emitResult = events.emit(event, frame);
if (emitResult == suspendToken) {
return suspendToken;
}
// Continue to final state
frame.L$0 = trip;
frame.L$1 = null;
frame.L$2 = null;
frame.L$3 = null;
frame.I$0 = 0;
frame.label = 3;
String tripUuid = trip.getUuid();
Object remoteResult = service.y(service, buddy, tripUuid, frame);
if (remoteResult == suspendToken) {
return suspendToken;
}
return remoteResult;
} else if (label == STATE_CONTINUE) {
// Resume after await
kotlin.l.b(result);
// Extract values out of continuation frame
int retryCount = frame.I$0;
com.polarsteps.data.models.domain.User passedUser = (com.polarsteps.data.models.domain.User) frame.L$1;
com.polarsteps.data.models.domain.room.RoomTrip passedTrip = (com.polarsteps.data.models.domain.room.RoomTrip) frame.L$0;
// Rebuild from saved local references
// ... corresponds to what was held after API call
} else if (label == STATE_EMIT) {
// Resume after emit
kotlin.l.b(result);
// Resume if there’s previous state
com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy buddy =
(com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy) frame.L$2;
com.polarsteps.data.models.domain.User emittedUser =
(com.polarsteps.data.models.domain.User) frame.L$1;
com.polarsteps.data.models.domain.room.RoomTrip emittedTrip =
(com.polarsteps.data.models.domain.room.RoomTrip) frame.L$0;
// No use after resume, pass through
} else if (label == STATE_FINAL) {
// Just passed through emission
com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy buddy =
(com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy) frame.L$3;
com.polarsteps.data.models.domain.User userFromContinuation =
(com.polarsteps.data.models.domain.User) frame.L$1;
com.polarsteps.data.models.domain.room.RoomTrip tripFromContinuation =
(com.polarsteps.data.models.domain.room.RoomTrip) frame.L$0;
kotlin.l.b(result);
// Original result to return at end
} else {
// Not expected state
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
} catch (Throwable throwable) {
// Capture failures post-API or emit
Object failureOr = kotlin.Result.Companion.constructorImpl(kotlin.l.a(throwable));
Object localResult = failureOr;
boolean isFailure = kotlin.Result.isFailure$impl(localResult);
if (isFailure) {
Lg.a logger = Th.a.a;
logger.e(throwable);
com.polarsteps.service.traveltogether.c$a failure =
new com.polarsteps.service.traveltogether.c$a(
com.polarsteps.service.traveltogether.InviteFailedReason.Connectivity,
throwable
);
return failure;
}
// Otherwise continue with success path
}
// Extract and finalize
Object finalResult = kotlin.Result.exceptionOrNull-impl(result);
if (finalResult != null) {
if (finalResult instanceof java.lang.Throwable) {
Lg.a logger = Th.a.a;
logger.e((java.lang.Throwable) finalResult);
com.polarsteps.service.traveltogether.c$a failure =
new com.polarsteps.service.traveltogether.c$a(
com.polarsteps.service.traveltogether.InviteFailedReason.Connectivity,
(java.lang.Throwable) finalResult
);
return failure;
} else {
com.polarsteps.service.traveltogether.c$a failure =
new com.polarsteps.service.traveltogether.c$a(
com.polarsteps.service.traveltogether.InviteFailedReason.ApiError,
null
);
return failure;
}
}
// Optional build result on success
com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy buddy = (com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy) result;
if (buddy == null) {
return new com.polarsteps.service.traveltogether.c$a(
com.polarsteps.service.traveltogether.InviteFailedReason.ApiError,
null
);
}
// Use the service’s second flow
String tripUuid = trip.getUuid();
frame.L$0 = null;
frame.L$1 = null;
frame.L$2 = null;
frame.L$3 = null;
frame.I$0 = 0;
frame.label = 3;
return service.y(service, buddy, tripUuid, frame);
}
// Decompiled from smali to java
package com.polarsteps.service.traveltogether;
import android.util.Log;
import com.polarsteps.data.models.domain.User;
import com.polarsteps.data.models.domain.WithUUID;
import com.polarsteps.data.models.domain.local.PolarIdentifier;
import com.polarsteps.data.models.domain.room.RoomBaseModel;
import com.polarsteps.data.models.domain.room.RoomTrip;
import com.polarsteps.data.models.domain.room.RoomTripBuddy;
import com.polarsteps.data.models.domain.room.TripBuddyJoin;
import com.polarsteps.data.models.domain.room.TripBuddyLocalState;
import com.polarsteps.data.models.domain.TripBuddyStatus;
import java.util.List;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.CoroutineContext;
import kotlin.coroutines.EmptyCoroutineContext;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Ref;
import kotlinx.coroutines.BuildersKt;
import kotlinx.coroutines.CancellableContinuation;
import kotlinx.coroutines.CoroutineScope;
import kotlinx.coroutines.Dispatchers;
import kotlinx.coroutines.internal.DispatchedContinuation;
// Class based on referenced name
public class TravelTogetherServiceImpl$inviteBuddy$2 extends kotlin.coroutines.jvm.internal.ContinuationImpl {
// method invokeSuspend
@Override
public final Object invokeSuspend(Object result) {
if (kotlin.coroutines.intrinsics.CoroutineSingletons.COROUTINE_SUSPENDED == result) {
return kotlin.coroutines.intrinsics.CoroutineSingletons.COROUTINE_SUSPENDED;
}
switch (this.label) {
case 0: {
// Initial invocation
TravelTogetherServiceImpl service = this.this$0;
String tripUUID = this.$tripUUID;
User buddy = this.$buddy;
boolean notify = this.$notify;
// Find trip and verify it exists
PolarIdentifier tripId;
try {
tripId = PolarIdentifier.fromUUID(tripUUID);
Intrinsics.checkNotNullExpressionValue(tripId, "fromUUID(...)");
} catch (Exception e) {
Log.e("TravelTogetherService", "Error creating PolarIdentifier", e);
return new com.polarsteps.service.traveltogether.c.a(
com.polarsteps.service.traveltogether.InviteFailedReason.TripDoesNotExist,
e);
}
RoomTrip trip = service.c.justTrip(tripId);
if (trip == null) {
return new com.polarsteps.service.traveltogether.c.a(
com.polarsteps.service.traveltogether.InviteFailedReason.TripDoesNotExist,
null);
}
// Look up the existing buddy assignment for this user/trip combination
RoomTripBuddy existingBuddy = service.c.buddyForTrip(tripUUID, buddy.getUuid(), this);
if (existingBuddy == kotlin.coroutines.intrinsics.CoroutineSingletons.COROUTINE_SUSPENDED) {
return kotlin.coroutines.intrinsics.CoroutineSingletons.COROUTINE_SUSPENDED;
}
// Ignore any peer's self-invitation
if (service.d.p(buddy)) {
return new com.polarsteps.service.traveltogether.c.a(
com.polarsteps.service.traveltogether.InviteFailedReason.InvitingYourself,
null);
}
// Ensure the current user has rights to invite people to this trip
Boolean allowedOrError = service.v(tripUUID, this);
if (allowedOrError == kotlin.coroutines.intrinsics.CoroutineSingletons.COROUTINE_SUSPENDED) {
return kotlin.coroutines.intrinsics.CoroutineSingletons.COROUTINE_SUSPENDED;
}
if (!allowedOrError) {
return new com.polarsteps.service.traveltogether.c.a(
com.polarsteps.service.traveltogether.InviteFailedReason.NotEnoughRights,
null);
}
// Check maximum buddy limit
PolarIdentifier tripRef = PolarIdentifier.fromUUID(tripUUID);
Intrinsics.checkNotNullExpressionValue(tripRef, "fromUUID(...)");
RoomTrip tripBeingChecked = service.c.justTrip(tripRef);
int buddyCount = 0;
if (tripBeingChecked != null) {
List<RoomTripBuddy> buddies = tripBeingChecked.getBuddies();
buddyCount = buddies.size();
}
int maxBuddies = service.g.c();
if (buddyCount < maxBuddies) {
// Valid: continue with invite creation
} else {
return new com.polarsteps.service.traveltogether.c.a(
com.polarsteps.service.traveltogether.InviteFailedReason.MaximumBuddiesReached,
null);
}
// If offline: special handling
boolean isOffline = com.polarsteps.data.models.domain.BaseSyncModelKt.isOffline(trip);
if (isOffline) {
Object invoked = com.polarsteps.service.traveltogether.TravelTogetherServiceImpl.q(
service,
service,
buddy,
tripUUID,
this
);
if (invoked == kotlin.coroutines.intrinsics.CoroutineSingletons.COROUTINE_SUSPENDED) {
return kotlin.coroutines.intrinsics.CoroutineSingletons.COROUTINE_SUSPENDED;
} else {
com.polarsteps.service.traveltogether.c thing = (com.polarsteps.service.traveltogether.c) invoked;
boolean shouldSendNotification = notify;
if (thing instanceof com.polarsteps.service.traveltogether.c$c && shouldSendNotification) {
service.f.h();
}
return thing;
}
}
// Check if an invite is already pending or in progress
TripBuddyLocalState localState = (existingBuddy != null && existingBuddy.getJoin() != null)
? existingBuddy.getJoin().getLocalState()
: null;
TripBuddyLocalState pendingInviteState = TripBuddyLocalState.Inviting;
TripBuddyLocalState edgeState = TripBuddyLocalState.Exviting;
if (localState == pendingInviteState || localState == edgeState) {
return new com.polarsteps.service.traveltogether.c.a(
com.polarsteps.service.traveltogether.InviteFailedReason.OperationInProgress,
null);
}
// Persist the pending invite locally (simplified: just store state)
try {
Object storedLocally = com.polarsteps.service.traveltogether.TravelTogetherServiceImpl.x(
service,
buddy,
tripUUID,
TripBuddyStatus.PendingInvite,
TripBuddyLocalState.Inviting,
this
);
if (storedLocally == kotlin.coroutines.intrinsics.CoroutineSingletons.COROUTINE_SUSPENDED) {
return kotlin.coroutines.intrinsics.CoroutineSingletons.COROUTINE_SUSPENDED;
}
} catch (Exception e) {
Log.e("TravelTogetherService", "Could not store pending invite locally.", e);
}
// Offload network action to the IO dispatcher (coroutine-friendly)
com.polarsteps.service.traveltogether.c remoteResult;
try {
remoteResult = com.polarsteps.service.traveltogether.TravelTogetherServiceImpl.s(
service,
trip,
buddy,
this
);
if (remoteResult == kotlin.coroutines.intrinsics.CoroutineSingletons.COROUTINE_SUSPENDED) {
return kotlin.coroutines.intrinsics.CoroutineSingletons.COROUTINE_SUSPENDED;
}
} catch (Exception e) {
// Attempt to mark it locally as failed
Log.w("TravelTogetherService", "Network invite failed. Attempting to fail locally.", e);
try {
com.polarsteps.service.traveltogether.TravelTogetherServiceImpl.x(
service,
buddy,
tripUUID,
TripBuddyStatus.PendingInvite,
TripBuddyLocalState.InviteFailed,
this
);
} catch (Exception ignored) {
// No-op: just best effort
}
return new com.polarsteps.service.traveltogether.c.a(
com.polarsteps.service.traveltogether.InviteFailedReason.InviteFailed,
e);
}
// Handle both pending and success cases
if (remoteResult instanceof com.polarsteps.service.traveltogether.c$a) {
com.polarsteps.service.traveltogether.c$a failed = (com.polarsteps.service.traveltogether.c$a) remoteResult;
// Store locally as failed
try {
com.polarsteps.service.traveltogether.TravelTogetherServiceImpl.x(
service,
buddy,
tripUUID,
TripBuddyStatus.PendingInvite,
TripBuddyLocalState.InviteFailed,
this
);
} catch (Exception ignored) {
}
return failed;
} else if (remoteResult instanceof com.polarsteps.service.traveltogether.c$b) {
if (notify) {
service.f.h();
}
return remoteResult;
} else if (remoteResult == com.polarsteps.service.traveltogether.c.c.a) {
return remoteResult;
} else {
throw new kotlin.NoWhenBranchMatchedException();
}
}
default:
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
}
}
```
From this code, write documentation on how the retrofit request is formed and response handled. Starts by describing the definition of the retrofit endpoint. Then for each arguments required, name it and detail how to form it based on the code I provided you. Don't speculate too much about how things are working if not provided in the code.
|
No
|
```
# Class: com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$remoteInviteBuddy$1
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
.param p1 # Ljava/lang/Object;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end param
iput-object p1, p0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$remoteInviteBuddy$1;->result:Ljava/lang/Object;
iget p1, p0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$remoteInviteBuddy$1;->label:I
const/high16 v0, -0x80000000
or-int/2addr p1, v0
iput p1, p0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$remoteInviteBuddy$1;->label:I
iget-object p1, p0, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl$remoteInviteBuddy$1;->this$0:Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;
const/4 v0, 0x0
invoke-static {p1, v0, v0, p0}, Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;->s(Lcom/polarsteps/service/traveltogether/TravelTogetherServiceImpl;Lcom/polarsteps/data/models/domain/room/RoomTrip;Lcom/polarsteps/data/models/domain/User;Lkotlin/coroutines/jvm/internal/ContinuationImpl;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract A(Ljava/lang/Long;Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;)Lio/reactivex/rxjava3/core/z;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "trip_id"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/trips/{trip_id}/buddies/invite"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
package com.polarsteps.service.traveltogether;
public class c {
public c() {
super();
}
}
// Decompiled from smali
package com.polarsteps.data.models.domain.room;
public class RoomBaseModel {
Long id;
public Long getId() {
return this.id;
}
}
// File: com/polarsteps/data/models/domain/WithID.java
package com.polarsteps.data.models.domain;
/**
* A generic interface for entities that have a unique identifier.
* Note: The actual type used for the ID may vary (e.g., Long, Integer).
*/
public interface WithID {
/**
* Returns the unique identifier.
*
* @return the ID, or null if not yet assigned.
*/
java.lang.Long getId();
}
package com.polarsteps.data.models.domain.fastapi.buddies;
public class FastApiAddBuddyRequest {
public long userId;
public FastApiAddBuddyRequest(long userId) {
this.userId = userId;
}
}
// Class: com.polarsteps.data.models.domain.fastapi.buddies.FastApiAddBuddyRequest
public final long component1() {
return this.userId;
}
package com.polarsteps.data.models.domain.fastapi.buddies;
public final class FastApiAddBuddyRequest {
// Renamed from the smali field 'userId' for clarity
private long buddyId;
public final long getUserId() {
return buddyId;
}
// Keeping this for reference/conversion compatibility with smali
// The original field name preserved as it appears in the smali snippet
public final long getuserId() {
return getUserId();
}
}
// Synthetic copy method with default argument handling for FastApiAddBuddyRequest
@kotlin.jvm.JvmStatic // Marker to denote synthetic origin
public static com.polarsteps.data.models.domain.fastapi.buddies.FastApiAddBuddyRequest copy$default(
com.polarsteps.data.models.domain.fastapi.buddies.FastApiAddBuddyRequest thisObject,
long userId,
int mask,
java.lang.Object unused
) {
// Extract userId from the 'thisObject' if the first bit (0x01) is set in the mask
if ((mask & 0x01) != 0) {
userId = thisObject.userId;
}
// Delegate to the generated copy method
return thisObject.copy(userId);
}
package com.polarsteps.service.traveltogether;
import com.polarsteps.data.models.domain.Trip;
import com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy;
import org.jetbrains.annotations.NotNull;
public class e {
// Renamed for clarity
public Trip trip;
public FastApiTripBuddy buddy;
// Accessor methods
public Trip getTrip() {
return trip;
}
public FastApiTripBuddy getBuddy() {
return buddy;
}
@Override
@NotNull
public String toString() {
StringBuilder sb = new StringBuilder("SentBuddyInvite(trip=");
sb.append(trip);
sb.append(", buddy=");
sb.append(buddy);
sb.append(")");
return sb.toString();
}
}
// Renamed for clarity: Ub.b$a -> BuddyApiClient
// Represents a Retrofit API interface declaring RESTful endpoints.
package com.polarsteps.data.api;
import com.polarsteps.data.models.domain.fastapi.buddies.FastApiAddBuddyRequest;
import io.reactivex.rxjava3.core.Maybe;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Path;
public interface BuddyApiClient {
/**
* Invites a buddy to a trip using a POST request.
*
* @param tripId The ID of the trip to invite the buddy to.
* @param request The data required to perform the invitation.
* @return A Maybe emitting the response or error.
*/
@POST("/api/trips/{trip_id}/buddies/invite")
Maybe<Void> inviteBuddy(
@Path("trip_id") Long tripId,
@Body @org.jetbrains.annotations.NotNull FastApiAddBuddyRequest request
);
}
public Long getId() {
return this.id;
}
// Generated from the smali: com.polarsteps.data.models.domain.fastapi.buddies.FastApiAddBuddyRequest
public final class FastApiAddBuddyRequest {
// Original field reference kept as framework may refer to it (e.g., JvmField)
@org.jetbrains.annotations.NotNull
public final FastApiAddBuddyRequest copy(long userId) {
// Handled in the bytecode: instantiate constructor and return
return new FastApiAddBuddyRequest(userId);
}
}
package com.polarsteps.data.models.domain.fastapi.buddies;
public class FastApiAddBuddyRequest {
public long userId;
@Override
public int hashCode() {
return Long.hashCode(this.userId);
}
}
// Desobfuscated version of smali snippet:
// Class name: com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$remoteInviteBuddy$1
package com.polarsteps.service.traveltogether;
// Inner class: This is an anonymous continuation lambda for a coroutine.
public final class TravelTogetherServiceImpl$remoteInviteBuddy$1
extends kotlin.coroutines.jvm.internal.ContinuationImpl {
// Captured local variable: 'I$0' is likely an int param named 'index'
// TODO: Better naming: if known context says this came from a 'for' loop or list index, use that.
int index;
// Original Kotlin parameter: this$0 of type TravelTogetherServiceImpl
// Original Kotlin parameter: completion: continuation
public TravelTogetherServiceImpl$remoteInviteBuddy$1(
TravelTogetherServiceImpl service,
kotlin.coroutines.Continuation completion) {
// Captured reference kept in this$0 field
this.this$0 = service;
// Super constructor call remains unchanged (ContinuationImpl)
super(completion);
}
}
package com.polarsteps.service.traveltogether;
import kotlin.coroutines.jvm.internal.ContinuationImpl;
/**
* Continuation for the suspend function:
* fun CoroutineScope.remoteInviteBuddy(roomTrip: RoomTrip?, user: User?, continuation: Continuation<*>): Any?
*/
final class TravelTogetherServiceImpl$remoteInviteBuddy$1 extends ContinuationImpl {
// Captured references and state
public Object result;
public int label;
public final TravelTogetherServiceImpl this$0;
// Method: invokeSuspend
// Signature: invokeSuspend(java.lang.Object)
// Desobfuscated semantic: resume the coroutine with the given result
@Override
public java.lang.Object invokeSuspend(java.lang.Object result) {
this.result = result;
// Set the label to indicate continuation is resumed
int currentLabel = this.label;
this.label = currentLabel | Integer.MIN_VALUE;
TravelTogetherServiceImpl service = this.this$0;
// Call the synthetic dispatch: s
return com.polarsteps.service.traveltogether.TravelTogetherServiceImpl.s(
service,
null, // coming from synthetic call
null, // coming from synthetic call
this // passage of continuation
);
}
}
// Derived from smali to java for com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy
package com.polarsteps.data.models.domain.fastapi.buddies;
@org.jetbrains.annotations.NotNull
public com.polarsteps.data.models.domain.TripBuddyStatus getStatus() {
return this.status;
}
package com.polarsteps.data.models.domain.fastapi.buddies;
public class FastApiAddBuddyRequest {
// Assuming userId is a field declared elsewhere in the class
public long userId;
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof FastApiAddBuddyRequest)) {
return false;
}
FastApiAddBuddyRequest that = (FastApiAddBuddyRequest) o;
return userId == that.userId;
}
@Override
public int hashCode() {
return (int) (userId ^ (userId >>> 32));
}
}
// Converted from:
// # Lcom/polarsteps/data/models/domain/fastapi/buddies/FastApiAddBuddyRequest;
// public class FastApiAddBuddyRequest {
// public long userId;
// }
//
// Equivalent Java source:
package com.polarsteps.data.models.domain.fastapi.buddies;
@org.jetbrains.annotations.NotNull
public class FastApiAddBuddyRequest {
public long userId;
@Override
@org.jetbrains.annotations.NotNull
public String toString() {
androidXComposeFoundationTextSelectionHelper helper = new androidXComposeFoundationTextSelectionHelper();
return helper.appendUserIdToString(this.userId, "FastApiAddBuddyRequest(userId=", ")");
}
}
// Target class: com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$remoteInviteBuddy$1
// Represents a Kotlin continuation for a suspend function invoked via invokeSuspend()
package com.polarsteps.service.traveltogether;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.ContinuationImpl;
import org.jetbrains.annotations.NotNull;
/**
* Note: This class appears to be a generated continuation wrapper for a suspend function
* titled 'remoteInviteBuddy'. Kotlin inline classes and coroutines are used here,
* so the assembly effectively represents a continuation to resume the execution flow.
*/
public final class TravelTogetherServiceImpl$remoteInviteBuddy$1 extends ContinuationImpl {
// Original reference to its outer class instance
@NotNull
public final TravelTogetherServiceImpl this$0;
// Result storage, inherited from ContinuationImpl
public Object result;
// Propagates the super constructor through bytecode analysis
public TravelTogetherServiceImpl$remoteInviteBuddy$1(
@NotNull TravelTogetherServiceImpl owner,
@NotNull Continuation<Unit> completion
) {
super(completion);
this.this$0 = owner;
}
// Continuation delegate method; Kotlin compiler targets this via invokevirtual
@Override
@org.jetbrains.annotations.NotNull
public final Object invokeSuspend(
@org.jetbrains.annotations.NotNull Object result
) {
// Stores the result in the continuation like a captured variable
this.result = result;
// Atomically marks the continuation as active (run state)
int label = this.label | Integer.MIN_VALUE; // -2147483648
this.label = label;
// Invokes the original suspend method with:
// this.this$0 (the outer class)
// null, null (possibly placeholder args for RoomTrip and User)
// this continuation (this)
Object returnedValue =
com.polarsteps.service.traveltogether.TravelTogetherServiceImpl.s(
this.this$0,
null, // roomTrip: RoomTrip
null, // user: User
this // this continuation
);
return returnedValue;
}
}
package com.polarsteps.service.traveltogether;
// Imported dependencies would typically be here if not in the smali bin.
// Assuming mystery imports are available through transitive dependencies.
// Ref: com.polarsteps.service.traveltogether.TravelTogetherServiceImpl$locallyStoreTripBuddy$2
final class TravelTogetherServiceImpl$$locallyStoreTripBuddy$2 extends kotlin.coroutines.jvm.internal.SuspendLambda {
// Fields moved from synthetic reference and kept inline:
final com.polarsteps.service.traveltogether.TravelTogetherServiceImpl this$0;
final com.polarsteps.data.models.domain.User $user;
final java.lang.String $tripUUID;
final com.polarsteps.data.models.domain.TripBuddyStatus $status;
final com.polarsteps.data.models.domain.room.TripBuddyLocalState $localState;
final com.polarsteps.common.time.TimeInSeconds $invitedAt;
final java.lang.String $buddyUuid;
final java.lang.Long $buddyId;
// Constructor (desobfuscated and annotated according to smali usage pattern)
TravelTogetherServiceImpl$$locallyStoreTripBuddy$2(
com.polarsteps.service.traveltogether.TravelTogetherServiceImpl outerThis,
com.polarsteps.data.models.domain.User user,
java.lang.String tripUUID,
com.polarsteps.data.models.domain.TripBuddyStatus status,
com.polarsteps.data.models.domain.room.TripBuddyLocalState localState,
com.polarsteps.common.time.TimeInSeconds invitedAt,
java.lang.String buddyUuid,
java.lang.Long buddyId,
kotlin.coroutines.c completion
) {
super(1, completion);
this.this$0 = outerThis;
this.$user = user;
this.$tripUUID = tripUUID;
this.$status = status;
this.$localState = localState;
this.$invitedAt = invitedAt;
this.$buddyUuid = buddyUuid;
this.$buddyId = buddyId;
}
// Presented as its Java equivalent. The original smali refers to this as the "override"
// of a function mostly likely named invoke and defined by the SuspendLambda base class.
// Desobfuscated and kept as an example placeholder:
@Override
public final java.lang.Object invoke(kotlin.coroutines.c completion) {
// Within the generated smali, there’s likely a continuation here calling resumeWith.
// This is a place-holder, actual generated code not shown:
throw new kotlin.NotImplementedError();
}
}
package com.polarsteps.service.traveltogether;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
public final class TravelTogetherServiceImpl$locallyStoreTripBuddy$2 extends kotlin.coroutines.jvm.internal.ContinuationImpl {
// Capture all the fields from the original class
// Using identical field names as referenced in the smali code
@NotNull
public final com.polarsteps.data.models.domain.User $user;
@NotNull
public final String $tripUUID;
public final com.polarsteps.data.models.domain.TripBuddyStatus $status;
public final com.polarsteps.data.models.domain.room.TripBuddyLocalState $localState;
public final com.polarsteps.common.time.TimeInSeconds $invitedAt;
public final String $buddyUuid;
public final Long $buddyId;
@NotNull
public final TravelTogetherServiceImpl this$0;
// JDK-style constructor
public TravelTogetherServiceImpl$locallyStoreTripBuddy$2(
@NotNull TravelTogetherServiceImpl service,
@NotNull com.polarsteps.data.models.domain.User user,
@NotNull String tripUUID,
com.polarsteps.data.models.domain.TripBuddyStatus status,
com.polarsteps.data.models.domain.room.TripBuddyLocalState localState,
com.polarsteps.common.time.TimeInSeconds invitedAt,
String buddyUuid,
Long buddyId,
kotlin.coroutines.Continuation<?> completion
) {
// super delegation needs the completion Continuation...
super(completion);
this.this$0 = service;
this.$user = user;
this.$tripUUID = tripUUID;
this.$status = status;
this.$localState = localState;
this.$invitedAt = invitedAt;
this.$buddyUuid = buddyUuid;
this.$buddyId = buddyId;
}
// ContinuationImpl method: create
@NotNull
@Override
public kotlin.coroutines.Continuation create(@NotNull kotlin.coroutines.Continuation<?> completion) {
// First we make a new holder with all the captured fields
// Renaming `p1` to `completion` for clarity and proper scoping
TravelTogetherServiceImpl$locallyStoreTripBuddy$2 continuation =
new TravelTogetherServiceImpl$locallyStoreTripBuddy$2(
this.this$0,
this.$user,
this.$tripUUID,
this.$status,
this.$localState,
this.$invitedAt,
this.$buddyUuid,
this.$buddyId,
completion
);
return continuation;
}
}
public final Object invokeSuspend(Object result) {
// Coroutine singleton for suspension state
kotlin.coroutines.intrinsics.CoroutineSingletons COROUTINE_SUSPENDED =
kotlin.coroutines.intrinsics.CoroutineSingletons.COROUTINE_SUSPENDED;
// Label keeps track of current execution point in the suspend/resume flow
int currentLabel = this.label;
if (currentLabel == 0) {
// First time this function is called
kotlin.l.b(result); // Ensure result is not an exception
// Get the UserService reference and the target user
com.polarsteps.service.traveltogether.TravelTogetherServiceImpl controller =
this.this$0;
com.polarsteps.service.K1 userService = controller.d;
com.polarsteps.data.models.domain.User user = this.$user;
// Check if user is already known (cached in UserService)
boolean userExists = userService.p(user);
if (!userExists) {
// Insert user if not already present
com.polarsteps.data.database.DatabaseAccess db = controller.c;
com.polarsteps.data.models.domain.room.RoomUser roomUser =
com.polarsteps.data.models.domain.UserKt.forStorage(user);
java.util.List<com.polarsteps.data.models.domain.room.RoomUser> usersList =
kotlin.collections.v.c(roomUser);
this.label = 1; // Prepare for later resume after this.yield
Object insertResult =
db.insertOrIgnoreUsers(usersList, this); // suspend point
if (insertResult == COROUTINE_SUSPENDED) {
return COROUTINE_SUSPENDED;
}
}
} else if (currentLabel == 1) {
// Resume after insertOrIgnoreUsers
kotlin.l.b(result); // ensure valid continuation
} else if (currentLabel == 2) {
// Resume after upsertTripBuddies
kotlin.l.b(result); // handle possibility of suspend/restart
} else {
// Invalid state
throw new java.lang.IllegalStateException(
"call to 'resume' before 'invoke' with coroutine");
}
// Step 2: Upsert (insert/replace) the TripBuddyJoin for this user
com.polarsteps.service.traveltogether.TravelTogetherServiceImpl controller =
this.this$0;
com.polarsteps.data.database.DatabaseAccess db = controller.c;
com.polarsteps.data.models.domain.User user = this.$user;
com.polarsteps.data.models.domain.room.TripBuddyJoin tripBuddy =
new com.polarsteps.data.models.domain.room.TripBuddyJoin(
this.$tripUUID,
user.getUuid(),
this.$status,
this.$localState,
this.$invitedAt,
this.$buddyUuid,
this.$buddyId
);
java.util.List<com.polarsteps.data.models.domain.room.TripBuddyJoin> tripBuddiesList =
kotlin.collections.v.c(tripBuddy);
this.label = 2; // Prepare for later resume after upsert
Object upsertResult = db.upsertTripBuddies(tripBuddiesList, this); // suspend point
if (upsertResult == COROUTINE_SUSPENDED) {
return COROUTINE_SUSPENDED;
}
// Final completion
return kotlin.Unit.a;
}
package com.polarsteps.service.traveltogether;
import androidx.room.RoomDatabase;
import com.polarsteps.common.time.TimeInSeconds;
import com.polarsteps.data.database.DatabaseAccess;
import com.polarsteps.data.database.PolarstepsDatabase;
import com.polarsteps.data.models.domain.User;
import com.polarsteps.data.models.domain.fastapi.FastApiBaseUser;
import com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy;
import com.polarsteps.data.models.domain.room.TripBuddyLocalState;
import com.polarsteps.data.models.domain.TripBuddyStatus;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.CoroutineSingletons;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.BuildersKt;
/**
* Desobfuscated version of:
* com.polarsteps.service.traveltogether.TravelTogetherServiceImpl.storeInvitedBuddyLocally
* <p>
* Original obfuscated parameters:
* - p0: this (receiver)
* - p1: buddy (FastApiTripBuddy)
* - p2: tripUUID (String)
* - p3: continuation (ContinuationImpl)
*/
final class TravelTogetherServiceImpl {
// Simplified representation of the receiver field. Not sure if truly an alias could go here,
// so kept it as-is for safety.
public DatabaseAccess c;
@SuppressWarnings("unused")
public final Object storeInvitedBuddyLocally(
FastApiTripBuddy buddy,
String tripUUID,
ContinuationImpl continuation
) {
// Creates or reuses continuation/coroutine state
if (continuation instanceof TravelTogetherServiceImpl$storeInvitedBuddyLocally$1) {
TravelTogetherServiceImpl$storeInvitedBuddyLocally$1 state =
(TravelTogetherServiceImpl$storeInvitedBuddyLocally$1) continuation;
int label = state.label;
if ((label & Integer.MIN_VALUE) != 0) {
label = label - Integer.MIN_VALUE;
state.label = label;
}
continuation = state;
} else {
continuation = new TravelTogetherServiceImpl$storeInvitedBuddyLocally$1(this, null);
}
// Deconstruct result
Object result = ((TravelTogetherServiceImpl$storeInvitedBuddyLocally$1) continuation).result;
CoroutineSingletons COROUTINE_SUSPENDED = CoroutineSingletons.COROUTINE_SUSPENDED;
int label = ((TravelTogetherServiceImpl$storeInvitedBuddyLocally$1) continuation).label;
// Match label to resume point
if (label == 0) {
// Initial call
kotlin.l.b(result); // Hide expected receiver if-null before computation
// Extract buddy properties
FastApiBaseUser user = buddy.getUser();
TripBuddyStatus status = buddy.getStatus(); // Already derived
TripBuddyLocalState localState = TripBuddyLocalState.Idle; // Fixed
String uuid = buddy.getUuid(); // Retrieved
TimeInSeconds invitedAt = buddy.getInvitedAt(); // Retrieved
Long id = buddy.getId(); // Retrieved
// Store reference in local state
((TravelTogetherServiceImpl$storeInvitedBuddyLocally$1) continuation).L$0 = this;
((TravelTogetherServiceImpl$storeInvitedBuddyLocally$1) continuation).L$1 = buddy;
// Placeholder to maintain continuity similar to smali labeled values
((TravelTogetherServiceImpl$storeInvitedBuddyLocally$1) continuation).L$2 = null;
((TravelTogetherServiceImpl$storeInvitedBuddyLocally$1) continuation).label = 1;
// Prepare the DB store operation (deferred)
DatabaseAccess dbAccess = this.c;
RoomDatabase db = dbAccess.getDatabase();
// Create the store coroutine function descriptor
Function1 store =
new TravelTogetherServiceImpl$locallyStoreTripBuddy$2(
this,
user, // ClientUser
tripUUID,
status, // TripBuddyStatus
localState, // TripBuddyLocalState
invitedAt, // TimeInSeconds
uuid, // String
id, // Long
null // Continuation (indirect)
);
// Perform the synchronous/suspended DB operation
Object awaited = BuildersKt.a(db, store, (TravelTogetherServiceImpl$storeInvitedBuddyLocally$1) continuation);
// If suspended, pass back synchronously
if (awaited == COROUTINE_SUSPENDED) {
return COROUTINE_SUSPENDED;
}
// Otherwise store succeeded
Unit discard = Unit.a;
// Return success wrapper
return new TravelTogetherServiceImpl$c$b(buddy);
} else if (label == 1) {
// Resume after deferred store
FastApiTripBuddy prevBuddy =
((TravelTogetherServiceImpl$storeInvitedBuddyLocally$1) continuation).L$1;
Object previous = ((TravelTogetherServiceImpl$storeInvitedBuddyLocally$1) continuation).L$0;
kotlin.l.b(result); // Hide expected receiver if-null before computation
return new TravelTogetherServiceImpl$c$b(prevBuddy);
} else {
throw new IllegalStateException(
"call to 'resume' before 'invoke' with coroutine"
);
}
}
}
// Decompiled and deobfuscated Java equivalent of the Kotlin-coroutine-generated smali.
package com.polarsteps.service.traveltogether;
import android.util.Log;
import com.polarsteps.data.models.domain.User;
import com.polarsteps.data.models.domain.WithID;
import com.polarsteps.data.models.domain.room.RoomTrip;
import com.polarsteps.data.models.domain.fastapi.buddies.FastApiAddBuddyRequest;
import com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy;
import com.polarsteps.service.traveltogether.e;
import com.polarsteps.service.traveltogether.c;
import com.polarsteps.service.traveltogether.c$a;
import com.polarsteps.service.traveltogether.InviteFailedReason;
import java.lang.Thread;
import java.lang.Throwable;
import kotlin.Result;
import kotlin.Result$Failure;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.CoroutineSingletons;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlinx.coroutines.flow.MutableSharedFlow;
import kotlinx.coroutines.rx3.RxAwaitKt;
import okhttp3.internal.http2.Http2;
import t1.v;
import t1.w;
import t1.x;
import vb.b;
import vb.b$a;
@DebugMetadata(className = "com.polarsteps.service.traveltogether.TravelTogetherServiceImpl",
fs = "TravelTogetherServiceImpl.kt",
l = {77, 84, 85, 89},
m = "remoteInviteBuddy",
n = {"roomTrip", "user", Http2.h, "request", "response", "newBuddy", "connectionId", "requestId"},
s = {"L$0", "L$1", "L$2", "L$3", "L$4", "L$5", "I$0", "I$1"})
public final class TravelTogetherServiceImpl$remoteInviteBuddy$1 extends SuspendLambda implements w {
// parameters save kept as-is
Object L$0; // roomTrip
Object L$1; // user
Object L$2; // buddyId (Long?)
Object L$3; // response
Object L$4; // responseCache
Object L$5; // FastApiTripBuddy
int I$0; // Boolean (auto-unboxed)
int I$1; // requestId (long)
int label;
public Object result;
// synthetic reference kept as-is
private final TravelTogetherServiceImpl this$0;
// fall back to generated signature rather than original parameter semantics
public TravelTogetherServiceImpl$remoteInviteBuddy$1(TravelTogetherServiceImpl travelTogetherServiceImpl, Continuation<? super TravelTogetherServiceImpl$remoteInviteBuddy$1> continuation) {
super(2, continuation);
this.this$0 = travelTogetherServiceImpl;
}
// Kotlin: override public final Object invoke(java.lang.Object, java.lang.Object)
// Kotlin: override public final Object invokeSuspend(Object)
@Override
public final Object invokeSuspend(Object continuation) {
CoroutineSingletons COROUTINE_SUSPENDED = CoroutineSingletons.COROUTINE_SUSPENDED;
int currentLabel = this.label;
RoomTrip currentRoomTrip;
User currentUser;
FastApiTripBuddy currentBuddy;
Long requestId;
b$a apiClient;
switch (currentLabel) {
case 0:
Result.b(continuation);
apiClient = this.this$0.b.a();
long tripId = this.this$0.convertToTripId(this.this$0, this.$roomTrip); // accessors left as-is
Long userId = ((WithID) this.$user).getId();
kotlin.jvm.internal.Intrinsics.f(userId, "null cannot be cast to non-null type com.polarsteps.data.models.domain.WithID");
long userIdLong = userId.longValue();
FastApiAddBuddyRequest request = new FastApiAddBuddyRequest(userIdLong);
v.k(this); // Assuming this does something relevant to the continuation stack
// await() part
kotlinx.coroutines.rx3.RxAwaitKt.await(
apiClient.A(tripId, request),
this
);
if (continuation == COROUTINE_SUSPENDED) { // suspend point
return COROUTINE_SUSPENDED;
}
// fall-through
case 1:
Result.b(continuation);
// keep fallback path when handled -->
Long currentBuddyId = this.L$2;
currentBuddy = (FastApiTripBuddy) this.L$3;
this.L$0 = this.$roomTrip;
this.L$1 = this.$user;
this.L$2 = currentBuddy;
this.L$3 = null; // reset for exception
this.label = 2;
MutableSharedFlow flow = this.this$0.p;
e emitValue = new e(this.$roomTrip, currentBuddy);
Object emitted = flow.emit(emitValue, this);
if (emitted == COROUTINE_SUSPENDED) {
return COROUTINE_SUSPENDED;
}
// fall-through after shared flow emit
case 2:
Result.b(continuation);
this.L$3 = currentBuddy;
// exception wrapping part
try {
Object success = Result.constructorImpl(currentBuddy);
this.L$0 = null; this.L$1 = null; this.L$2 = null; this.L$3 = null;
this.label = 3;
// == specialized call to y() ==
Object yieldResult =
this.this$0.y(this.this$0, currentBuddy, this.this$0.getTripConnectionId(this.$roomTrip), this);
if (yieldResult == COROUTINE_SUSPENDED) {
return COROUTINE_SUSPENDED;
}
currentBuddy = (FastApiTripBuddy) yieldResult; //сычь-сычь, possible source of confusion
if (currentBuddy != null) {
return currentBuddy;
}
} catch (Throwable t) {
// Exception wrapping
// Not stack completing here - but only accepting specific path
// whenever a nullวิดี
}
return new c$a(InviteFailedReason.ApiError, null);
case 3:
currentBuddy = (FastApiTripBuddy) this.L$3;
currentRoomTrip = (RoomTrip) this.L$0;
currentUser = (User) this.L$1;
// Around bytecode: {
// checkcast com.polarsteps.data.models.domain.fastapi.buddies.FastApiTripBuddy
// invoke-static {v0}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
// }
// do not introduce winner-chance upwards val skew
// fall-through to latest sprint
default:
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
// Equivalent final unlockExit metadata
// consistent with bottom-fallthrough pattern in smali
// consider that Smali canonical int refs changed during turning types macros
if (Result.isFailureImpl(this.result)) {
logErrorIfNeeded(); // assumes side-effect bound under this env
return new c$a(InviteFailedReason.Connectivity, Resuming.extractThrowable(this.result));
} else {
FastApiTripBuddy unwrappedBuddy = Result.boxIfSuccess(this.result);
String connectionId = this.this$0.getTripConnectionId(this.$roomTrip);
Object yieldResult = this.this$0.y(this.this$0, unwrappedBuddy, connectionId, this);
if (yieldResult == COROUTINE_SUSPENDED) {
return COROUTINE_SUSPENDED;
}
if (yieldResult == null) {
return new c$a(InviteFailedReason.ApiError, null);
} else {
return yieldResult;
}
}
}
// Note: public final Object invoke(Object, Object)
@Override // callback refrain; retained as per invitation
public Object invoke(Object arg1, Object arg2) {
TravelTogetherServiceImpl$remoteInviteBuddy$1 localVar = new TravelTogetherServiceImpl$remoteInviteBuddy$1(this.this$0, (Continuation) arg2);
localVar.$roomTrip = arg1;
localVar.$user = localVar.L$1;
Unit result = (Unit) localVar.invokeSuspend(Unit.INSTANCE);
return result;
}
}
```
From this code, write documentation on how the retrofit request is formed and response handled. Starts by describing the definition of the retrofit endpoint. Then for each arguments required, name it and detail how to form it based on the code I provided you. Don't speculate too much about how things are working if not provided in the code.
|
Yes
|
```
# Class: com.polarsteps.service.spots.r
.method public final apply(Ljava/lang/Object;)Ljava/lang/Object;
.locals 3
check-cast p1, Lcom/polarsteps/data/models/domain/room/RoomSavedSpot;
const-string v0, "bookmark"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p1}, Lcom/polarsteps/data/models/domain/BaseSyncModelKt;->isOffline(Lcom/polarsteps/data/models/domain/BaseSyncModel;)Z
move-result v0
if-nez v0, :cond_0
iget-object v0, p0, Lcom/polarsteps/service/spots/r;->a:Lcom/polarsteps/service/spots/s;
iget-object v0, v0, Lcom/polarsteps/service/spots/s;->b:LUb/b;
invoke-virtual {v0}, LUb/b;->a()LUb/b$a;
move-result-object v0
invoke-virtual {p1}, Lcom/polarsteps/data/models/domain/room/RoomBaseModel;->getId()Ljava/lang/Long;
move-result-object v1
invoke-interface {v0, v1}, LUb/b$a;->B(Ljava/lang/Long;)Lio/reactivex/rxjava3/core/a;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
new-instance v1, Lio/reactivex/rxjava3/internal/operators/completable/g;
sget-object v2, Lio/reactivex/rxjava3/internal/functions/Functions;->g:Lio/reactivex/rxjava3/internal/functions/Functions$F;
invoke-direct {v1, v0, v2}, Lio/reactivex/rxjava3/internal/operators/completable/g;-><init>(Lio/reactivex/rxjava3/core/a;LXf/q;)V
invoke-static {p1}, Lio/reactivex/rxjava3/core/l;->f(Ljava/lang/Object;)Lio/reactivex/rxjava3/internal/operators/maybe/k;
move-result-object p1
new-instance v0, Lio/reactivex/rxjava3/internal/operators/maybe/MaybeDelayWithCompletable;
invoke-direct {v0, p1, v1}, Lio/reactivex/rxjava3/internal/operators/maybe/MaybeDelayWithCompletable;-><init>(Lio/reactivex/rxjava3/internal/operators/maybe/k;Lio/reactivex/rxjava3/internal/operators/completable/g;)V
return-object v0
:cond_0
invoke-static {p1}, Lio/reactivex/rxjava3/core/l;->f(Ljava/lang/Object;)Lio/reactivex/rxjava3/internal/operators/maybe/k;
move-result-object p1
return-object p1
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract B(Ljava/lang/Long;)Lio/reactivex/rxjava3/core/a;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "savedSpotId"
.end annotation
.end param
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/DELETE;
value = "/api/saved_spots/{savedSpotId}"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
# Class: Ub.b
.method public final a()LUb/b$a;
.locals 2
.annotation build Lorg/jetbrains/annotations/NotNull;
iget-object v0, p0, LUb/b;->f:Lkotlin/i;
invoke-interface {v0}, Lkotlin/i;->getValue()Ljava/lang/Object;
move-result-object v0
const-string v1, "getValue(...)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v0, LUb/b$a;
return-object v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract B(Ljava/lang/Long;)Lio/reactivex/rxjava3/core/a;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "savedSpotId"
.end annotation
.end param
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/DELETE;
value = "/api/saved_spots/{savedSpotId}"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: com.polarsteps.data.models.domain.BaseSyncModelKt
.method public static final isOffline(Lcom/polarsteps/data/models/domain/BaseSyncModel;)Z
.locals 1
.param p0 # Lcom/polarsteps/data/models/domain/BaseSyncModel;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end param
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {p0}, Lcom/polarsteps/data/models/domain/WithID;->getId()Ljava/lang/Long;
move-result-object p0
if-nez p0, :cond_0
const/4 p0, 0x1
return p0
:cond_0
const/4 p0, 0x0
return p0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract B(Ljava/lang/Long;)Lio/reactivex/rxjava3/core/a;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "savedSpotId"
.end annotation
.end param
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/DELETE;
value = "/api/saved_spots/{savedSpotId}"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: com.polarsteps.data.models.domain.room.RoomBaseModel
.method public getId()Ljava/lang/Long;
.locals 1
iget-object v0, p0, Lcom/polarsteps/data/models/domain/room/RoomBaseModel;->id:Ljava/lang/Long;
return-object v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract B(Ljava/lang/Long;)Lio/reactivex/rxjava3/core/a;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "savedSpotId"
.end annotation
.end param
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/DELETE;
value = "/api/saved_spots/{savedSpotId}"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
# Class: A4.d
.method public static j(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
.locals 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract B(Ljava/lang/Long;)Lio/reactivex/rxjava3/core/a;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "savedSpotId"
.end annotation
.end param
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/DELETE;
value = "/api/saved_spots/{savedSpotId}"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: com.polarsteps.data.models.domain.WithID
.method public abstract getId()Ljava/lang/Long;
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract B(Ljava/lang/Long;)Lio/reactivex/rxjava3/core/a;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "savedSpotId"
.end annotation
.end param
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/DELETE;
value = "/api/saved_spots/{savedSpotId}"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
# Class: C0.a
.method public static n(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
.locals 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0, p0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
return-object v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract B(Ljava/lang/Long;)Lio/reactivex/rxjava3/core/a;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "savedSpotId"
.end annotation
.end param
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/DELETE;
value = "/api/saved_spots/{savedSpotId}"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: Ub.b$a
.method public abstract B(Ljava/lang/Long;)Lio/reactivex/rxjava3/core/a;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "savedSpotId"
.end annotation
.end param
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/DELETE;
value = "/api/saved_spots/{savedSpotId}"
.end annotation
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract B(Ljava/lang/Long;)Lio/reactivex/rxjava3/core/a;
.param p1 # Ljava/lang/Long;
.annotation runtime Lretrofit2/http/Path;
value = "savedSpotId"
.end annotation
.end param
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/DELETE;
value = "/api/saved_spots/{savedSpotId}"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
package com.polarsteps.data.models.domain;
public interface WithID {
Long getId();
}
package com.polarsteps.data.models.domain.room;
public class RoomBaseModel {
// Original field reference kept for compatibility
private Long id;
// Desobfuscated getter
public Long getId() {
return this.id;
}
// Desobfuscated setter for completeness
public void setId(Long id) {
this.id = id;
}
}
import io.reactivex.rxjava3.core.Single;
import org.jetbrains.annotations.NotNull;
import retrofit2.http.DELETE;
import retrofit2.http.Path;
// Inside the class Ub.b
public abstract class Ub$b {
@DELETE("/api/saved_spots/{savedSpotId}")
@NotNull
public abstract Single<?> B(@NotNull @Path("savedSpotId") Long savedSpotId);
}
package com.polarsteps.service.spots;
import com.polarsteps.data.models.domain.BaseSyncModel;
import com.polarsteps.data.models.domain.room.RoomSavedSpot;
import com.polarsteps.data.models.domain.room.RoomBaseModel;
import com.polarsteps.data.models.domain.BaseSyncModelKt;
import io.reactivex.rxjava3.core.Maybe;
import io.reactivex.rxjava3.exceptions.Exceptions;
import io.reactivex.rxjava3.internal.functions.Functions;
import io.reactivex.rxjava3.internal.operators.completable.CompletableFromAction;
import io.reactivex.rxjava3.internal.operators.completable.CompletableToSingle;
import io.reactivex.rxjava3.internal.operators.observable.ObservableFromIterable;
import io.reactivex.rxjava3.internal.operators.single.SingleFromCallable;
import io.reactivex.rxjava3.plugins.RxJavaPlugins;
import kotlin.jvm.internal.Intrinsics;
import java.util.concurrent.Callable;
// Adapted from smali: com.polarsteps.service.spots.r
public final class r implements Xf/q {
// Renamed field for clarity; kept original class reference names as per smali
public final s a;
public r(s controller) {
this.a = controller;
}
@Override
public final Object apply(Object parameter) {
RoomSavedSpot bookmark = (RoomSavedSpot) parameter;
Intrinsics.checkNotNullParameter(bookmark, "bookmark");
boolean isOffline = BaseSyncModelKt.isOffline(bookmark);
if (!isOffline) {
Ub.b cacheProxy = a.b; // Lcom/polarsteps/service/spots/s;->b:LUb/b;
Ub.b.a completableBuilder = cacheProxy.a(); // Ub/b->a() -> Ub/b$a
Long id = bookmark.getId(); // Lcom/polarsteps/data/models/domain/room/RoomBaseModel;->getId()Ljava/lang/Long;
io.reactivex.rxjava3.core.a deletableCompletable = completableBuilder.B(id);
// Enforce non-nullability (deletableCompletable).getClass() triggers a nullcheck at runtime.
// Detach the observer to avoid triggering the nullability assertion
deletableCompletable = new CompletableFromAction(/* drawn from desobfuscated info */ new Callable<Void>() {
@Override
public Void call() throws Exception {
if (deletableCompletable == null) {
Exception ex = new NullPointerException("Completable is null");
RxJavaPlugins.onError(ex);
throw ex;
}
return null;
}
});
// delayWithCompletable setup
io.reactivex.rxjava3.internal.operators.completable.CompletableToSingle singleFromCompletable =
new CompletableToSingle(deletableCompletable, Functions.g);
Maybe<?> maybeOfBookmark = io.reactivex.rxjava3.core.l.f(bookmark); // Just returns the input
Maybe<?> delayedMaybe = new io.reactivex.rxjava3.internal.operators.maybe.MaybeDelayWithCompletable(
(io.reactivex.rxjava3.internal.operators.maybe.k) maybeOfBookmark,
singleFromCompletable
);
return delayedMaybe;
} else {
Maybe<?> maybeOfBookmark = io.reactivex.rxjava3.core.l.f(bookmark);
return maybeOfBookmark;
}
}
}
```
From this code, write documentation on how the retrofit request is formed and response handled. Starts by describing the definition of the retrofit endpoint. Then for each arguments required, name it and detail how to form it based on the code I provided you. Don't speculate too much about how things are working if not provided in the code.
|
No
|
```
# Class: okio.j
.method public abstract d1(Lokio/B;)I
.param p1 # Lokio/B;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end param
.annotation system Ldalvik/annotation/Throws;
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: com.polarsteps.common.preferences.g
.method public final d(Ljava/lang/String;Z)Z
.locals 1
invoke-virtual {p0}, Lcom/polarsteps/common/preferences/g;->h()Landroid/content/SharedPreferences;
move-result-object v0
invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
move-result p1
return p1
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: com.polarsteps.common.preferences.g
.method public final h()Landroid/content/SharedPreferences;
.locals 2
iget-object v0, p0, Lcom/polarsteps/common/preferences/g;->d:Lkotlin/i;
invoke-interface {v0}, Lkotlin/i;->getValue()Ljava/lang/Object;
move-result-object v0
const-string v1, "getValue(...)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v0, Landroid/content/SharedPreferences;
return-object v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
.method public getCode()I
.locals 1
iget v0, p0, Lcom/polarsteps/service/errors/HttpException;->code:I
return v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.field private final code:I
.locals 0
invoke-direct {p0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
iput p2, p0, Lcom/polarsteps/service/errors/HttpException;->code:I
return-void
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: Ub.b
.method public final a()LUb/b$a;
.locals 2
.annotation build Lorg/jetbrains/annotations/NotNull;
iget-object v0, p0, LUb/b;->f:Lkotlin/i;
invoke-interface {v0}, Lkotlin/i;->getValue()Ljava/lang/Object;
move-result-object v0
const-string v1, "getValue(...)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v0, LUb/b$a;
return-object v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: okhttp3.v
.method public final a(Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
.locals 6
const-string v0, "name"
const-string v1, "charset"
invoke-static {v1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lokhttp3/v;->c:[Ljava/lang/String;
array-length v2, v0
add-int/lit8 v2, v2, -0x1
const/4 v3, 0x2
const/4 v4, 0x0
invoke-static {v4, v2, v3}, Lcom/google/android/gms/internal/measurement/X1;->s(III)I
move-result v2
if-ltz v2, :cond_1
:goto_0
aget-object v3, v0, v4
const/4 v5, 0x1
invoke-static {v3, v1, v5}, Lkotlin/text/p;->o(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v3
if-eqz v3, :cond_0
add-int/2addr v4, v5
aget-object v0, v0, v4
goto :goto_1
:cond_0
if-eq v4, v2, :cond_1
add-int/lit8 v4, v4, 0x2
goto :goto_0
:cond_1
const/4 v0, 0x0
:goto_1
if-nez v0, :cond_2
return-object p1
:cond_2
:try_start_0
invoke-static {v0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
move-result-object p1
:try_end_0
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
return-object p1
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: retrofit2.Response
.method public body()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
iget-object v0, p0, Lretrofit2/Response;->body:Ljava/lang/Object;
return-object v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: retrofit2.Response
.method public code()I
.locals 1
iget-object v0, p0, Lretrofit2/Response;->rawResponse:Lokhttp3/D;
iget v0, v0, Lokhttp3/D;->d:I
return v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: retrofit2.Response
.method public errorBody()Lokhttp3/E;
.locals 1
iget-object v0, p0, Lretrofit2/Response;->errorBody:Lokhttp3/E;
return-object v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: okhttp3.D
.method public final s()Z
.locals 3
const/16 v0, 0xc8
const/4 v1, 0x0
iget v2, p0, Lokhttp3/D;->d:I
if-gt v0, v2, :cond_0
const/16 v0, 0x12c
if-ge v2, v0, :cond_0
const/4 v0, 0x1
return v0
:cond_0
return v1
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: retrofit2.Response
.method public isSuccessful()Z
.locals 1
iget-object v0, p0, Lretrofit2/Response;->rawResponse:Lokhttp3/D;
invoke-virtual {v0}, Lokhttp3/D;->s()Z
move-result v0
return v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: com.urbanairship.http.d
.method public static final k(Ljava/io/Closeable;Ljava/lang/Throwable;)V
.locals 0
if-eqz p0, :cond_1
if-nez p1, :cond_0
invoke-interface {p0}, Ljava/io/Closeable;->close()V
return-void
:cond_0
:try_start_0
invoke-interface {p0}, Ljava/io/Closeable;->close()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
return-void
:catchall_0
move-exception p0
invoke-static {p1, p0}, Lkotlin/f;->a(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
:cond_1
return-void
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: okhttp3.E
.method private final charset()Ljava/nio/charset/Charset;
.locals 2
invoke-virtual {p0}, Lokhttp3/E;->contentType()Lokhttp3/v;
move-result-object v0
if-eqz v0, :cond_1
sget-object v1, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-virtual {v0, v1}, Lokhttp3/v;->a(Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
move-result-object v0
if-nez v0, :cond_0
goto :goto_0
:cond_0
return-object v0
:cond_1
:goto_0
sget-object v0, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset;
return-object v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: A4.d
.method public static j(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
.locals 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
# Class: retrofit2.Call
.method public abstract execute()Lretrofit2/Response;
.annotation system Ldalvik/annotation/Signature;
.annotation system Ldalvik/annotation/Throws;
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
# Class: okhttp3.E
.method public abstract source()Lokio/j;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: okhttp3.E
.method public final string()Ljava/lang/String;
.locals 3
.annotation system Ldalvik/annotation/Throws;
.annotation build Lorg/jetbrains/annotations/NotNull;
invoke-virtual {p0}, Lokhttp3/E;->source()Lokio/j;
move-result-object v0
:try_start_0
invoke-direct {p0}, Lokhttp3/E;->charset()Ljava/nio/charset/Charset;
move-result-object v1
invoke-static {v0, v1}, Lxh/c;->r(Lokio/j;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
move-result-object v1
invoke-interface {v0, v1}, Lokio/j;->F0(Ljava/nio/charset/Charset;)Ljava/lang/String;
move-result-object v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-interface {v0}, Ljava/io/Closeable;->close()V
return-object v1
:catchall_0
move-exception v1
:try_start_1
throw v1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
:catchall_1
move-exception v2
invoke-static {v0, v1}, Lcom/urbanairship/http/d;->k(Ljava/io/Closeable;Ljava/lang/Throwable;)V
throw v2
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: okhttp3.E
.method public abstract contentType()Lokhttp3/v;
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: xh.c
.method public static final r(Lokio/j;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
.locals 1
.param p0 # Lokio/j;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end param
.param p1 # Ljava/nio/charset/Charset;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end param
.annotation system Ldalvik/annotation/Throws;
.annotation build Lorg/jetbrains/annotations/NotNull;
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "default"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Lxh/c;->d:Lokio/B;
invoke-interface {p0, v0}, Lokio/j;->d1(Lokio/B;)I
move-result p0
const/4 v0, -0x1
if-eq p0, v0, :cond_7
if-eqz p0, :cond_6
const/4 p1, 0x1
if-eq p0, p1, :cond_5
const/4 p1, 0x2
if-eq p0, p1, :cond_4
const/4 p1, 0x3
const-string v0, "forName(...)"
if-eq p0, p1, :cond_2
const/4 p1, 0x4
if-ne p0, p1, :cond_1
sget-object p0, Lkotlin/text/Charsets;->a:Lkotlin/text/Charsets;
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
sget-object p0, Lkotlin/text/Charsets;->c:Ljava/nio/charset/Charset;
if-nez p0, :cond_0
const-string p0, "UTF-32LE"
invoke-static {p0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
move-result-object p0
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
sput-object p0, Lkotlin/text/Charsets;->c:Ljava/nio/charset/Charset;
:cond_0
return-object p0
:cond_1
new-instance p0, Ljava/lang/AssertionError;
invoke-direct {p0}, Ljava/lang/AssertionError;-><init>()V
throw p0
:cond_2
sget-object p0, Lkotlin/text/Charsets;->a:Lkotlin/text/Charsets;
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
sget-object p0, Lkotlin/text/Charsets;->d:Ljava/nio/charset/Charset;
if-nez p0, :cond_3
const-string p0, "UTF-32BE"
invoke-static {p0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
move-result-object p0
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
sput-object p0, Lkotlin/text/Charsets;->d:Ljava/nio/charset/Charset;
:cond_3
return-object p0
:cond_4
sget-object p0, Ljava/nio/charset/StandardCharsets;->UTF_16LE:Ljava/nio/charset/Charset;
const-string p1, "UTF_16LE"
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
:cond_5
sget-object p0, Ljava/nio/charset/StandardCharsets;->UTF_16BE:Ljava/nio/charset/Charset;
const-string p1, "UTF_16BE"
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
:cond_6
sget-object p0, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
const-string p1, "UTF_8"
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
:cond_7
return-object p1
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: C0.a
.method public static n(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
.locals 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0, p0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
return-object v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: Ub.b$a
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
# Class: com.polarsteps.service.spots.SpotServiceImpl$spotDetailPage$2
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 4
sget-object v0, Lkotlin/coroutines/intrinsics/CoroutineSingletons;->COROUTINE_SUSPENDED:Lkotlin/coroutines/intrinsics/CoroutineSingletons;
iget v0, p0, Lcom/polarsteps/service/spots/SpotServiceImpl$spotDetailPage$2;->label:I
if-nez v0, :cond_3
invoke-static {p1}, Lkotlin/l;->b(Ljava/lang/Object;)V
iget-object p1, p0, Lcom/polarsteps/service/spots/SpotServiceImpl$spotDetailPage$2;->this$0:Lcom/polarsteps/service/spots/SpotServiceImpl;
iget-object p1, p1, Lcom/polarsteps/service/spots/SpotServiceImpl;->b:LUb/b;
invoke-virtual {p1}, LUb/b;->a()LUb/b$a;
move-result-object p1
iget-object v0, p0, Lcom/polarsteps/service/spots/SpotServiceImpl$spotDetailPage$2;->$spotId:Ljava/lang/String;
iget-object v1, p0, Lcom/polarsteps/service/spots/SpotServiceImpl$spotDetailPage$2;->this$0:Lcom/polarsteps/service/spots/SpotServiceImpl;
iget-object v1, v1, Lcom/polarsteps/service/spots/SpotServiceImpl;->e:Lcom/polarsteps/common/preferences/g;
const-string v2, "<this>"
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v2, "show_draft_data_in_guides"
const/4 v3, 0x0
invoke-virtual {v1, v2, v3}, Lcom/polarsteps/common/preferences/g;->d(Ljava/lang/String;Z)Z
const/4 v1, 0x0
invoke-interface {p1, v0, v1}, LUb/b$a;->C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
move-result-object p1
invoke-interface {p1}, Lretrofit2/Call;->execute()Lretrofit2/Response;
move-result-object p1
invoke-virtual {p1}, Lretrofit2/Response;->isSuccessful()Z
move-result v0
if-eqz v0, :cond_0
invoke-virtual {p1}, Lretrofit2/Response;->body()Ljava/lang/Object;
move-result-object p1
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->f(Ljava/lang/Object;)V
check-cast p1, Lcom/polarsteps/data/models/domain/api/ApiDetailSpotResponse;
return-object p1
:cond_0
new-instance v0, Lcom/polarsteps/service/errors/HttpException;
invoke-virtual {p1}, Lretrofit2/Response;->errorBody()Lokhttp3/E;
move-result-object v1
if-eqz v1, :cond_1
invoke-virtual {v1}, Lokhttp3/E;->string()Ljava/lang/String;
move-result-object v1
if-nez v1, :cond_2
:cond_1
const-string v1, "unknown"
:cond_2
invoke-virtual {p1}, Lretrofit2/Response;->code()I
move-result p1
invoke-direct {v0, v1, p1}, Lcom/polarsteps/service/errors/HttpException;-><init>(Ljava/lang/String;I)V
throw v0
:cond_3
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
# Class: okio.j
.method public abstract F0(Ljava/nio/charset/Charset;)Ljava/lang/String;
.param p1 # Ljava/nio/charset/Charset;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end param
.annotation system Ldalvik/annotation/Throws;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract C(Ljava/lang/String;Ljava/lang/String;)Lretrofit2/Call;
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Path;
value = "place_id"
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation runtime Lretrofit2/http/Query;
value = "publish_status"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/GET;
value = "/api/apps/spot/{place_id}/detail"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
package retrofit2;
public abstract class Call<T> {
// Original: public abstract execute()Lretrofit2/Response;
// Desobfuscated: public abstract Response<T> execute() throws IOException
public abstract Response<T> execute() throws IOException;
}
package A4;
public class d {
// Static method that concatenates two strings
public static String j(String base, String suffix) {
StringBuilder sb = new StringBuilder();
sb.append(base);
sb.append(suffix);
return sb.toString();
}
}
// Manifested as: Ub.b$a
package Ub;
import org.jetbrains.annotations.NotNull;
import retrofit2.Call;
import retrofit2.http.*;
public interface b$a {
@GET("/api/apps/spot/{place_id}/detail")
@NotNull
Call<?> C(
@Path("place_id") @NotNull String placeId,
@Query("publish_status") String publishStatus
);
}
/**
* Represents an HTTP-related exception.
*/
public class HttpException extends Exception {
/**
* The HTTP status code associated with this exception.
*/
public final int code;
/**
* Constructs an HttpException with the specified HTTP status code.
*
* @param code The HTTP status code
*/
public HttpException(int code) {
super();
this.code = code;
}
/**
* Returns the HTTP status code associated with this exception.
*
* @return the HTTP status code
*/
public int getCode() {
return this.code;
}
}
// Equivalent Java desobfuscation of the provided smali code.
package com.polarsteps.service.spots;
import com.polarsteps.common.preferences.g;
import com.polarsteps.data.models.domain.api.ApiDetailSpotResponse;
import com.polarsteps.service.errors.HttpException;
import kotlin.coroutines.intrinsics.CoroutineSingletons;
import retrofit2.Call;
import retrofit2.Response;
// Original class: com.polarsteps.service.spots.SpotServiceImpl$spotDetailPage$2
//
// Forward declaration (for reference): this is an anonymous class generated by Kotlin
// used as a continuation/coroutine in a suspend function. Mentions references:
//
// this$0: SpotServiceImpl
// $spotId: String (captured)
final class SpotDetailPageContinuation {
// Current label (coroutine state)
int label;
// Captured references
SpotServiceImpl this$0;
String $spotId;
// Desobfuscated, this is the generated invokeSuspend() corresponding to 'suspend fun bg()'.
// Equivalent to a Kotlin suspend function desobfuscated as:
/*
suspend fun bg(spotId: String): ApiDetailSpotResponse {
val response = this.b
.a() // returns a retrofit service builder
.C(spotId, null) // call with 'spotId' and null 'locale'
.execute()
if (response.isSuccessful) {
val body = response.body()
delay(100) // dummy delay for desobfuscation logic
return body ?: throw IllegalArgumentException("Body cannot be null")
}
val errorBody = response.errorBody()?.string() ?: "unknown"
throw HttpException(errorBody, response.code())
}
*/
public Object invokeSuspend(Object result) {
CoroutineSingletons COROUTINE_SUSPENDED = CoroutineSingletons.COROUTINE_SUSPENDED;
if (label == 0) {
kotlin.l.b(result); // Kotlin's reified 'ensureSuccess'
// Equivalent to: this.b.a() (retrofit service + parameters)
Ub.b service = this$0.b;
Ub.b.a apiCall = service.a();
// Equivalent to: .C(spotId, null) -> retrofit call request
String spotId = this.$spotId;
g preferences = this$0.e;
// Nullable check on preferences is elided due to 'foreground check'
boolean draftPreferenceEnabled = preferences.d("show_draft_data_in_guides", false);
Call call = apiCall.C(spotId, null);
Response response = call.execute();
if (response.isSuccessful()) {
Object body = response.body();
kotlin.jvm.internal.Intrinsics.f(body); // non-null assertion
ApiDetailSpotResponse apiResponse =
(ApiDetailSpotResponse) body;
return apiResponse;
}
// Manually build an error.
String errorBody =
response.errorBody() != null ?
response.errorBody().string() :
"unknown";
int statusCode = response.code();
HttpException exception = new HttpException(errorBody, statusCode);
throw exception;
} else {
throw new IllegalStateException(
"call to 'resume' before 'invoke' with coroutine");
}
}
}
```
From this code, write documentation on how the retrofit request is formed and response handled. Starts by describing the definition of the retrofit endpoint. Then for each arguments required, name it and detail how to form it based on the code I provided you. Don't speculate too much about how things are working if not provided in the code.
|
No
|
```
# Class: Pb.b
.method public apply(Ljava/lang/Object;)Ljava/lang/Object;
.locals 7
check-cast p1, LS2/a;
const-string v0, "userOptional"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, LPb/b;->b:Ljava/lang/Object;
check-cast v0, Ljava/lang/String;
iget-object v1, p0, LPb/b;->c:Ljava/lang/Object;
check-cast v1, Lcom/polarsteps/service/spots/t;
iget-object v2, p0, LPb/b;->d:Ljava/lang/Object;
check-cast v2, Lcom/polarsteps/service/spots/s;
invoke-virtual {p1}, LS2/a;->b()Z
move-result v3
if-nez v3, :cond_0
sget-object p1, LS2/a;->b:LS2/a;
goto :goto_1
:cond_0
iget-object p1, p1, LS2/a;->a:Ljava/lang/Object;
check-cast p1, Lcom/polarsteps/data/models/domain/User;
new-instance v3, Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
invoke-interface {p1}, Lcom/polarsteps/data/models/domain/WithID;->getId()Ljava/lang/Long;
move-result-object v4
if-eqz v1, :cond_1
iget-object v5, v1, Lcom/polarsteps/service/spots/t;->a:Ljava/lang/Integer;
goto :goto_0
:cond_1
const/4 v5, 0x0
:goto_0
invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;
move-result-object v6
invoke-virtual {v6}, Ljava/util/UUID;->toString()Ljava/lang/String;
move-result-object v6
invoke-direct {v3, v4, v0, v5, v6}, Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;-><init>(Ljava/lang/Long;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;)V
iget-object v0, v2, Lcom/polarsteps/service/spots/s;->b:LUb/b;
invoke-virtual {v0}, LUb/b;->a()LUb/b$a;
move-result-object v0
invoke-interface {v0, v3}, LUb/b$a;->D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
move-result-object v0
new-instance v3, Lcom/polarsteps/service/spots/o;
invoke-direct {v3, p1, v2, v1}, Lcom/polarsteps/service/spots/o;-><init>(Lcom/polarsteps/data/models/domain/User;Lcom/polarsteps/service/spots/s;Lcom/polarsteps/service/spots/t;)V
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
new-instance p1, Lio/reactivex/rxjava3/internal/operators/single/f;
invoke-direct {p1, v0, v3}, Lio/reactivex/rxjava3/internal/operators/single/f;-><init>(Lio/reactivex/rxjava3/core/z;LXf/g;)V
new-instance v0, Lio/reactivex/rxjava3/internal/operators/single/c;
sget-object v1, Lcom/polarsteps/service/spots/p;->a:Lcom/polarsteps/service/spots/p;
invoke-direct {v0, p1, v1}, Lio/reactivex/rxjava3/internal/operators/single/c;-><init>(Lio/reactivex/rxjava3/core/z;LXf/g;)V
invoke-static {v0}, LS2/a;->c(Ljava/lang/Object;)LS2/a;
move-result-object p1
:goto_1
iget-object p1, p1, LS2/a;->a:Ljava/lang/Object;
if-eqz p1, :cond_2
check-cast p1, Lio/reactivex/rxjava3/core/D;
return-object p1
:cond_2
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "No User present for saving a spot"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final accept(Ljava/lang/Object;)V
.locals 2
check-cast p1, Lcom/polarsteps/data/models/domain/api/ApiSavedSpot;
const-string v0, "apiSavedSpot"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lcom/polarsteps/service/spots/o;->a:Lcom/polarsteps/data/models/domain/User;
invoke-interface {v0}, Lcom/polarsteps/data/models/domain/WithUUID;->getUuid()Ljava/lang/String;
move-result-object v0
invoke-static {p1, v0}, Lcom/polarsteps/data/models/domain/SavedSpotKt;->forStorage(Lcom/polarsteps/data/models/domain/SavedSpot;Ljava/lang/String;)Lcom/polarsteps/data/models/domain/room/RoomSavedSpot;
move-result-object p1
iget-object v0, p0, Lcom/polarsteps/service/spots/o;->c:Lcom/polarsteps/service/spots/t;
if-eqz v0, :cond_0
iget-object v0, v0, Lcom/polarsteps/service/spots/t;->a:Ljava/lang/Integer;
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
invoke-virtual {p1, v0}, Lcom/polarsteps/data/models/domain/room/RoomSavedSpot;->setGuideId(Ljava/lang/Integer;)V
invoke-static {p1}, Lcom/polarsteps/data/models/domain/WithCreationAndLastModifiedTimeKt;->updateTimeFields(Lcom/polarsteps/data/models/domain/WithCreationAndLastModifiedTime;)V
iget-object v0, p0, Lcom/polarsteps/service/spots/o;->b:Lcom/polarsteps/service/spots/s;
iget-object v0, v0, Lcom/polarsteps/service/spots/s;->d:Lcom/polarsteps/service/PersistanceService;
sget-object v1, Lcom/polarsteps/service/PersistanceService$LocalNotifyMode;->DO_NOT_NOTIFY:Lcom/polarsteps/service/PersistanceService$LocalNotifyMode;
invoke-interface {v0, p1, v1}, Lcom/polarsteps/service/PersistanceService;->e(Lcom/polarsteps/data/models/domain/room/RoomBaseModel;Lcom/polarsteps/service/PersistanceService$LocalNotifyMode;)Z
return-void
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.field public final synthetic a:Lcom/polarsteps/data/models/domain/User;
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/polarsteps/service/spots/o;->a:Lcom/polarsteps/data/models/domain/User;
iput-object p2, p0, Lcom/polarsteps/service/spots/o;->b:Lcom/polarsteps/service/spots/s;
iput-object p3, p0, Lcom/polarsteps/service/spots/o;->c:Lcom/polarsteps/service/spots/t;
return-void
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
# Class: Ub.b
.method public final a()LUb/b$a;
.locals 2
.annotation build Lorg/jetbrains/annotations/NotNull;
iget-object v0, p0, LUb/b;->f:Lkotlin/i;
invoke-interface {v0}, Lkotlin/i;->getValue()Ljava/lang/Object;
move-result-object v0
const-string v1, "getValue(...)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v0, LUb/b$a;
return-object v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
.method static constructor <clinit>()V
.locals 1
new-instance v0, LS2/a;
invoke-direct {v0}, LS2/a;-><init>()V
sput-object v0, LS2/a;->b:LS2/a;
return-void
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final toString()Ljava/lang/String;
.locals 2
iget-object v0, p0, LS2/a;->a:Ljava/lang/Object;
if-eqz v0, :cond_0
const-string v1, "Optional[%s]"
filled-new-array {v0}, [Ljava/lang/Object;
move-result-object v0
invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
return-object v0
:cond_0
const-string v0, "Optional.empty"
return-object v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
.method public final b()Z
.locals 1
iget-object v0, p0, LS2/a;->a:Ljava/lang/Object;
if-eqz v0, :cond_0
const/4 v0, 0x1
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public constructor <init>(Ljava/lang/Object;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
iput-object p1, p0, LS2/a;->a:Ljava/lang/Object;
return-void
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
.method public final hashCode()I
.locals 1
iget-object v0, p0, LS2/a;->a:Ljava/lang/Object;
if-eqz v0, :cond_0
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final equals(Ljava/lang/Object;)Z
.locals 1
if-ne p0, p1, :cond_0
const/4 p1, 0x1
return p1
:cond_0
instance-of v0, p1, LS2/a;
if-nez v0, :cond_1
const/4 p1, 0x0
return p1
:cond_1
check-cast p1, LS2/a;
iget-object v0, p0, LS2/a;->a:Ljava/lang/Object;
iget-object p1, p1, LS2/a;->a:Ljava/lang/Object;
invoke-static {v0, p1}, LZ9/a;->l(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
return p1
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
.method public static c(Ljava/lang/Object;)LS2/a;
.locals 1
.annotation system Ldalvik/annotation/Signature;
if-nez p0, :cond_0
sget-object p0, LS2/a;->b:LS2/a;
return-object p0
:cond_0
new-instance v0, LS2/a;
invoke-direct {v0, p0}, LS2/a;-><init>(Ljava/lang/Object;)V
return-object v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
.method public final a()Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
iget-object v0, p0, LS2/a;->a:Ljava/lang/Object;
if-eqz v0, :cond_0
return-object v0
:cond_0
new-instance v0, Ljava/util/NoSuchElementException;
const-string v1, "No value present"
invoke-direct {v0, v1}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
throw v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: S2.a
.method public static c(Ljava/lang/Object;)LS2/a;
.locals 1
.annotation system Ldalvik/annotation/Signature;
if-nez p0, :cond_0
sget-object p0, LS2/a;->b:LS2/a;
return-object p0
:cond_0
new-instance v0, LS2/a;
invoke-direct {v0, p0}, LS2/a;-><init>(Ljava/lang/Object;)V
return-object v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: S2.a
.method public final b()Z
.locals 1
iget-object v0, p0, LS2/a;->a:Ljava/lang/Object;
if-eqz v0, :cond_0
const/4 v0, 0x1
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
# Class: A4.d
.method public static j(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
.locals 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: com.polarsteps.data.models.domain.WithID
.method public abstract getId()Ljava/lang/Long;
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: C0.a
.method public static n(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
.locals 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0, p0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
return-object v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: Ub.b$a
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final setUserId(Ljava/lang/Long;)V
.locals 0
iput-object p1, p0, Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;->userId:Ljava/lang/Long;
return-void
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final getUuid()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;->uuid:Ljava/lang/String;
return-object v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final getGuideId()Ljava/lang/Integer;
.locals 1
iget-object v0, p0, Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;->guideId:Ljava/lang/Integer;
return-object v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final getSpotId()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;->spotId:Ljava/lang/String;
return-object v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public synthetic constructor <init>(Ljava/lang/Long;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 1
and-int/lit8 p6, p5, 0x1
const/4 v0, 0x0
if-eqz p6, :cond_0
move-object p1, v0
:cond_0
and-int/lit8 p6, p5, 0x2
if-eqz p6, :cond_1
move-object p2, v0
:cond_1
and-int/lit8 p6, p5, 0x4
if-eqz p6, :cond_2
move-object p3, v0
:cond_2
and-int/lit8 p5, p5, 0x8
if-eqz p5, :cond_3
move-object p4, v0
:cond_3
invoke-direct {p0, p1, p2, p3, p4}, Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;-><init>(Ljava/lang/Long;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;)V
return-void
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final setUuid(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;->uuid:Ljava/lang/String;
return-void
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final setGuideId(Ljava/lang/Integer;)V
.locals 0
iput-object p1, p0, Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;->guideId:Ljava/lang/Integer;
return-void
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final setSpotId(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;->spotId:Ljava/lang/String;
return-void
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final getUserId()Ljava/lang/Long;
.locals 1
iget-object v0, p0, Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;->userId:Ljava/lang/Long;
return-object v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract D(Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;)Lio/reactivex/rxjava3/core/z;
.param p1 # Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/POST;
value = "/api/saved_spots"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
// Decompiled from: com.polarsteps.data.models.domain.api.ApiPostSavedSpot
// Method: getGuideId()
package com.polarsteps.data.models.domain.api;
public final Integer getGuideId() {
return this.guideId;
}
package com.polarsteps.data.models.domain.api;
public final class ApiPostSavedSpot {
// Original field encoded as 'uuid'
private String uuid;
// Getter for 'uuid'
public final String getUuid() {
return this.uuid;
}
}
package com.polarsteps.data.models.domain.api;
public final class ApiPostSavedSpot {
// Original field reference preserved
public java.lang.String uuid;
// Original method reference preserved
public final void setUuid(java.lang.String uuid) {
this.uuid = uuid;
}
}
// File: LS2/a.java
package LS2;
public class a {
// Original field name kept as-is
public Object a;
// Renamed from 'b' for clarity
public final boolean hasValue() {
return (a != null);
}
}
public final class ApiPostSavedSpot {
// Keep a reference to the field, originally referenced as 'userId'
private Long userId;
// Equivalent to the smali 'setUserId' method
public final void setUserId(Long value) {
this.userId = value;
}
}
// Decompiled and desobfuscated from smali to java:
package S2;
public final class a {
// Original field name kept for compatibility.
public Object a;
// Inlined and simplified: originally transpiled as a public boolean b()
public final boolean b() {
// Synthetically rewritten to Java:
return this.a != null;
}
}
package S2;
public class a {
// Static reference initialized in class initializer
static a b;
// Default constructor
public a() {
// Empty constructor body
}
// Static initializer (runs once when the class is first loaded)
static {
// Create an instance of the class
a instance = new a();
// Store it in the static field
b = instance;
}
}
// Smali class: S2.a
public final class S2$a {
// Original field reference: LS2/a;->a:Ljava/lang/Object;
public Object a;
// Original method: S2.a.hashCode()I
@Override
public final int hashCode() {
Object value = this.a;
if (value != null) {
return value.hashCode();
}
return 0;
}
}
package com.polarsteps.data.models.domain.api;
public final class ApiPostSavedSpot {
// Original field reference kept as-is:
// private final String spotId;
// Note: In the provided Smali, the field is used as-if it's final and already initialized.
// Desobfuscating to its Java equivalent, inference valid:
private final String spotId;
// Original method kept as-is:
public final String getSpotId() {
return this.spotId;
}
}
package com.polarsteps.data.models.domain.api;
public final class ApiPostSavedSpot {
// Existing field reference present in smali
public String spotId;
// Desobfuscated setter from the smali
public final void setSpotId(String spotId) {
this.spotId = spotId;
}
}
package com.polarsteps.data.models.domain.api;
// Assuming this class was originally:
public final class ApiPostSavedSpot {
// Field likely declared as:
private Long userId;
// Getter methods:
public final Long getUserId() {
return userId;
}
// Additional GETTER/SETTER companions in java:
public final void setUserId(Long userId) {
this.userId = userId;
}
}
package com.polarsteps.data.models.domain.api;
// Retained references:
// com.polarsteps.data.models.domain.api.ApiPostSavedSpot
// io.reactivex.rxjava3.core.z
// retrofit2.http.Body
// retrofit2.http.POST
// Simplified inner interface; does not mention the outer class `Ub.b`
interface SavedSpotApiService {
/**
* Saves a spot represented by the provided API request object.
*
* @param savedSpot the spot data to save
* @return an Observable signaling the save operation's completion or error
*/
io.reactivex.rxjava3.core.z saveSpot(
@retrofit2.http.Body ApiPostSavedSpot savedSpot);
// Lcom/polarsteps/data/models/domain/api/ApiPostSavedSpot;
// Lio/reactivex/rxjava3/core/z;
}
package com.polarsteps.data.models.domain.api;
public class ApiPostSavedSpot {
// Existing field reference (after obfuscation, this was likely originally something like:
// private Integer guideId;
// and desobfuscated as: private Integer guideId;
// but we'll keep the reference as is, since the smali method assigns to this field):
Integer guideId;
// Desobfuscated: public final void setGuideId(Integer newGuideId)
public final void setGuideId(Integer guideId) {
this.guideId = guideId;
}
}
// Citation: desobfuscated from smali snippet in provided reproducible codeblock.
// Package and class names preserved as-is.
package com.polarsteps.service.spots;
// Field references:
// a: com.polarsteps.data.models.domain.User
// b: com.polarsteps.service.spots.s
// c: com.polarsteps.service.spots.t
public final class o {
// Original field kept for compatibility; synthetic (from inner class reference).
public final synthetic com.polarsteps.data.models.domain.User a;
// Originally part of a more complex structure; simplified for clarity.
public final com.polarsteps.service.spots.s b;
public final com.polarsteps.service.spots.t c;
// Constructor kept as-is with parameter naming kept to reference original fields.
public o(com.polarsteps.data.models.domain.User user,
com.polarsteps.service.spots.s spotService,
com.polarsteps.service.spots.t userDataService) {
super();
this.a = user;
this.b = spotService;
this.c = userDataService;
}
}
package com.polarsteps.data.models.domain.api;
//public synthetic constructor kept for backward compatibility or
//JVM bytecode reasons but not part of the source language
public class ApiPostSavedSpot {
// Original fields
public Long id;
public String name;
public Integer type;
public String description;
// Main constructor
public ApiPostSavedSpot(Long id, String name, Integer type, String description) {
this.id = id;
this.name = name;
this.type = type;
this.description = description;
}
// Synthetic bridge constructor with default flags
// Used to emulate Kotlin's default args behavior
public /* synthetic */ ApiPostSavedSpot(
Long id,
String name,
Integer type,
String description,
int flags,
Object dummy // Required for the synthetic access flag
) {
// Apply default values for parameters where the corresponding bit is set
if ((flags & 0x1) != 0) {
id = null;
}
if ((flags & 0x2) != 0) {
name = null;
}
if ((flags & 0x4) != 0) {
type = null;
}
if ((flags & 0x8) != 0) {
description = null;
}
// Forward to the main constructor
this(id, name, type, description);
}
}
package com.polarsteps.service.spots;
import com.polarsteps.data.models.domain.ApiSavedSpot;
import com.polarsteps.data.models.domain.SavedSpot;
import com.polarsteps.data.models.domain.WithUUID;
import com.polarsteps.data.models.domain.room.RoomSavedSpot;
import com.polarsteps.data.models.domain.WithCreationAndLastModifiedTime;
import com.polarsteps.data.models.domain.SavedSpotKt;
import com.polarsteps.data.models.domain.WithCreationAndLastModifiedTimeKt;
import com.polarsteps.service.PersistanceService;
import com.polarsteps.service.PersistanceService.LocalNotifyMode;
import kotlin.jvm.internal.Intrinsics;
public final class spots_o {
// Fields retained for reference compatibility
public com.polarsteps.data.models.domain.User a;
public com.polarsteps.service.spots.s b;
public com.polarsteps.service.spots.t c;
// Renamed from 'accept' for readability
public final void saveAndPersist(SavedSpot apiSavedSpot) {
Intrinsics.checkNotNullParameter(apiSavedSpot, "apiSavedSpot");
String currentUserId = a.getUuid();
RoomSavedSpot roomSavedSpot = SavedSpotKt.forStorage(apiSavedSpot, currentUserId);
Integer guideId = (c != null) ? c.a : null;
roomSavedSpot.setGuideId(guideId);
WithCreationAndLastModifiedTimeKt.updateTimeFields(roomSavedSpot);
PersistanceService persistanceService = b.d;
LocalNotifyMode notifyMode = LocalNotifyMode.DO_NOT_NOTIFY;
persistanceService.e(roomSavedSpot, notifyMode);
}
}
package Pb;
import LS2.a; // domain wrapper (hold a value or is failure)
import S2.a; // domain wrapper (hold a value or is failure)
import Xf.g;
import Uc.c; // disposables
import io.reactivex.rxjava3.core.D; // Single
import io.reactivex.rxjava3.core.Single;
import java.util.UUID;
import com.polarsteps.data.models.domain.User;
import com.polarsteps.data.models.domain.WithID;
import com.polarsteps.data.models.domain.api.ApiPostSavedSpot;
import com.polarsteps.service.spots.s;
import com.polarsteps.service.spots.t;
import com.polarsteps.service.spots.o;
import com.polarsteps.service.spots.p;
public class b implements Xf.g { // function from S2/a to D<ApiPostSavedSpot> (Single)
public final String b; // optional id
public final t c; // metadata for request
public final s d; // persist spot?
// Emulates lambda stored in field reference a in Java
g lambdaLambda = new g() {
@Override
public Object apply(Object value) {
// Cast and any null-checks or validation
S2.a mutableOption = (S2.a) value;
return doSaveSpot(mutableOption);
}
private S2.a doSaveSpot(S2.a mutableOption) {
// If userOptional is not successful, return failure
if (!mutableOption.b()) {
return S2.a.Companion.getFAILED();
}
User user = (User) mutableOption.a();
// Build the request object
ApiPostSavedSpot body = new ApiPostSavedSpot(
user.getId(), // userId
b, // spotId
c != null ? c.a : null, // categoryId (can be null)
UUID.randomUUID().toString() // temporary id
);
// Chain the observables
com.polarsteps.service.spots.s service = d;
Uc.c z = service.b.a();
io.reactivex.rxjava3.core.z rxBackendCall = z.D(body);
// Hook: Record aynchronous side-effect for user
io.reactivex.rxjava3.core.z userEffect = rxBackendCall
.toSingle(new com.polarsteps.service.spots.o(user, service, c));
io.reactivex.rxjava3.core.z userEffect2 = userEffect
.toFlowable(io.reactivex.rxjava3.core.Flowable.error(new com.polarsteps.service.spots.p()));
return S2.a.Companion.success(userEffect2);
}
};
@Override
public Object apply(Object value) {
return lambdaLambda.apply(value);
}
}
```
From this code, write documentation on how the retrofit request is formed and response handled. Starts by describing the definition of the retrofit endpoint. Then for each arguments required, name it and detail how to form it based on the code I provided you. Don't speculate too much about how things are working if not provided in the code.
|
No
|
```
# Class: com.polarsteps.data.models.domain.StepMediaWithSensitiveDataKt
.method public static final forEdit(Lcom/polarsteps/data/models/domain/StepMediaWithSensitiveData;)Lcom/polarsteps/data/models/domain/api/ApiMedia;
.locals 2
.param p0 # Lcom/polarsteps/data/models/domain/StepMediaWithSensitiveData;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end param
.annotation build Lorg/jetbrains/annotations/NotNull;
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
instance-of v0, p0, Lcom/polarsteps/data/models/domain/api/ApiMedia;
if-eqz v0, :cond_0
check-cast p0, Lcom/polarsteps/data/models/domain/api/ApiMedia;
return-object p0
:cond_0
instance-of v0, p0, Lcom/polarsteps/data/models/domain/room/RoomMedia;
if-eqz v0, :cond_1
invoke-static {}, Lcom/polarsteps/data/models/mappers/MapStructObjectMapperKt;->getObjectMapper()Lcom/polarsteps/data/models/mappers/MapStructObjectMapper;
move-result-object v0
check-cast p0, Lcom/polarsteps/data/models/domain/room/RoomMedia;
invoke-interface {v0, p0}, Lcom/polarsteps/data/models/mappers/MapStructObjectMapper;->convertMedia(Lcom/polarsteps/data/models/domain/room/RoomMedia;)Lcom/polarsteps/data/models/domain/api/ApiMedia;
move-result-object p0
return-object p0
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object p0
sget-object v1, Lkotlin/jvm/internal/v;->a:Lkotlin/jvm/internal/w;
invoke-virtual {v1, p0}, Lkotlin/jvm/internal/w;->b(Ljava/lang/Class;)Lkotlin/reflect/d;
move-result-object p0
invoke-interface {p0}, Lkotlin/reflect/d;->s()Ljava/lang/String;
move-result-object p0
const-string v1, "Unsupported StepMediaWithSensitiveData type: "
invoke-static {v1, p0}, Lcom/mapbox/maps/l;->i(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract E(Ljava/lang/Integer;Lcom/polarsteps/data/sync/SyncRequest;)Lretrofit2/Call;
.param p1 # Ljava/lang/Integer;
.annotation runtime Lretrofit2/http/Query;
value = "refresh"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/sync/SyncRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Headers;
value = {
.end annotation
.annotation runtime Lretrofit2/http/POST;
value = "api/sync/"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
# Class: com.polarsteps.data.models.domain.StepWithSensitiveDataKt
.method public static final forEdit(Lcom/polarsteps/data/models/domain/StepWithSensitiveData;)Lcom/polarsteps/data/models/domain/api/ApiStep;
.locals 2
.param p0 # Lcom/polarsteps/data/models/domain/StepWithSensitiveData;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end param
.annotation build Lorg/jetbrains/annotations/NotNull;
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
instance-of v0, p0, Lcom/polarsteps/data/models/domain/api/ApiStep;
if-eqz v0, :cond_0
check-cast p0, Lcom/polarsteps/data/models/domain/api/ApiStep;
return-object p0
:cond_0
instance-of v0, p0, Lcom/polarsteps/data/models/domain/room/RoomStep;
if-eqz v0, :cond_1
invoke-static {}, Lcom/polarsteps/data/models/mappers/MapStructObjectMapperKt;->getObjectMapper()Lcom/polarsteps/data/models/mappers/MapStructObjectMapper;
move-result-object v0
check-cast p0, Lcom/polarsteps/data/models/domain/room/RoomStep;
invoke-interface {v0, p0}, Lcom/polarsteps/data/models/mappers/MapStructObjectMapper;->convertStep(Lcom/polarsteps/data/models/domain/room/RoomStep;)Lcom/polarsteps/data/models/domain/api/ApiStep;
move-result-object p0
return-object p0
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object p0
sget-object v1, Lkotlin/jvm/internal/v;->a:Lkotlin/jvm/internal/w;
invoke-virtual {v1, p0}, Lkotlin/jvm/internal/w;->b(Ljava/lang/Class;)Lkotlin/reflect/d;
move-result-object p0
invoke-interface {p0}, Lkotlin/reflect/d;->s()Ljava/lang/String;
move-result-object p0
const-string v1, "Unsupported StepWithSensitiveData type: "
invoke-static {v1, p0}, Lcom/mapbox/maps/l;->i(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract E(Ljava/lang/Integer;Lcom/polarsteps/data/sync/SyncRequest;)Lretrofit2/Call;
.param p1 # Ljava/lang/Integer;
.annotation runtime Lretrofit2/http/Query;
value = "refresh"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/sync/SyncRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Headers;
value = {
.end annotation
.annotation runtime Lretrofit2/http/POST;
value = "api/sync/"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: com.polarsteps.data.models.domain.StepSpotWithSensitiveDataKt
.method public static final forEdit(Lcom/polarsteps/data/models/domain/StepSpotWithSensitiveData;Ljava/lang/Long;)Lcom/polarsteps/data/models/domain/api/ApiStepSpot;
.locals 1
.param p0 # Lcom/polarsteps/data/models/domain/StepSpotWithSensitiveData;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end param
.annotation build Lorg/jetbrains/annotations/NotNull;
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
instance-of v0, p0, Lcom/polarsteps/data/models/domain/api/ApiStepSpot;
if-eqz v0, :cond_0
check-cast p0, Lcom/polarsteps/data/models/domain/api/ApiStepSpot;
invoke-virtual {p0, p1}, Lcom/polarsteps/data/models/domain/api/ApiStepSpot;->setStepId(Ljava/lang/Long;)V
return-object p0
:cond_0
instance-of v0, p0, Lcom/polarsteps/data/models/domain/room/RoomStepSpot;
if-eqz v0, :cond_1
invoke-static {}, Lcom/polarsteps/data/models/mappers/MapStructObjectMapperKt;->getObjectMapper()Lcom/polarsteps/data/models/mappers/MapStructObjectMapper;
move-result-object v0
check-cast p0, Lcom/polarsteps/data/models/domain/room/RoomStepSpot;
invoke-interface {v0, p0}, Lcom/polarsteps/data/models/mappers/MapStructObjectMapper;->convertStepSpot(Lcom/polarsteps/data/models/domain/room/RoomStepSpot;)Lcom/polarsteps/data/models/domain/api/ApiStepSpot;
move-result-object p0
invoke-virtual {p0, p1}, Lcom/polarsteps/data/models/domain/api/ApiStepSpot;->setStepId(Ljava/lang/Long;)V
return-object p0
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object p0
sget-object v0, Lkotlin/jvm/internal/v;->a:Lkotlin/jvm/internal/w;
invoke-virtual {v0, p0}, Lkotlin/jvm/internal/w;->b(Ljava/lang/Class;)Lkotlin/reflect/d;
move-result-object p0
invoke-interface {p0}, Lkotlin/reflect/d;->s()Ljava/lang/String;
move-result-object p0
const-string v0, "Unsupported StepSpotWithSensitiveData type: "
invoke-static {v0, p0}, Lcom/mapbox/maps/l;->i(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract E(Ljava/lang/Integer;Lcom/polarsteps/data/sync/SyncRequest;)Lretrofit2/Call;
.param p1 # Ljava/lang/Integer;
.annotation runtime Lretrofit2/http/Query;
value = "refresh"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/sync/SyncRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Headers;
value = {
.end annotation
.annotation runtime Lretrofit2/http/POST;
value = "api/sync/"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
.method public constructor <init>(JLjava/lang/Long;)V
.locals 0
invoke-direct {p0, p1, p2}, Lcom/polarsteps/data/sync/AckObject;-><init>(J)V
iput-object p3, p0, Lcom/polarsteps/data/sync/AckStep;->tripId:Ljava/lang/Long;
return-void
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract E(Ljava/lang/Integer;Lcom/polarsteps/data/sync/SyncRequest;)Lretrofit2/Call;
.param p1 # Ljava/lang/Integer;
.annotation runtime Lretrofit2/http/Query;
value = "refresh"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/sync/SyncRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Headers;
value = {
.end annotation
.annotation runtime Lretrofit2/http/POST;
value = "api/sync/"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
.method public final getTripId()Ljava/lang/Long;
.locals 1
iget-object v0, p0, Lcom/polarsteps/data/sync/AckStep;->tripId:Ljava/lang/Long;
return-object v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract E(Ljava/lang/Integer;Lcom/polarsteps/data/sync/SyncRequest;)Lretrofit2/Call;
.param p1 # Ljava/lang/Integer;
.annotation runtime Lretrofit2/http/Query;
value = "refresh"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/sync/SyncRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Headers;
value = {
.end annotation
.annotation runtime Lretrofit2/http/POST;
value = "api/sync/"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final getTripId()Ljava/lang/Long;
.locals 1
iget-object v0, p0, Lcom/polarsteps/data/sync/AckRouteSegment;->tripId:Ljava/lang/Long;
return-object v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract E(Ljava/lang/Integer;Lcom/polarsteps/data/sync/SyncRequest;)Lretrofit2/Call;
.param p1 # Ljava/lang/Integer;
.annotation runtime Lretrofit2/http/Query;
value = "refresh"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/sync/SyncRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Headers;
value = {
.end annotation
.annotation runtime Lretrofit2/http/POST;
value = "api/sync/"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public constructor <init>(JLjava/lang/Long;)V
.locals 0
invoke-direct {p0, p1, p2}, Lcom/polarsteps/data/sync/AckObject;-><init>(J)V
iput-object p3, p0, Lcom/polarsteps/data/sync/AckRouteSegment;->tripId:Ljava/lang/Long;
return-void
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract E(Ljava/lang/Integer;Lcom/polarsteps/data/sync/SyncRequest;)Lretrofit2/Call;
.param p1 # Ljava/lang/Integer;
.annotation runtime Lretrofit2/http/Query;
value = "refresh"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/sync/SyncRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Headers;
value = {
.end annotation
.annotation runtime Lretrofit2/http/POST;
value = "api/sync/"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
.method public constructor <init>(J)V
.locals 0
invoke-direct {p0, p1, p2}, Lcom/polarsteps/data/sync/AckObject;-><init>(J)V
return-void
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract E(Ljava/lang/Integer;Lcom/polarsteps/data/sync/SyncRequest;)Lretrofit2/Call;
.param p1 # Ljava/lang/Integer;
.annotation runtime Lretrofit2/http/Query;
value = "refresh"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/sync/SyncRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Headers;
value = {
.end annotation
.annotation runtime Lretrofit2/http/POST;
value = "api/sync/"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public final getStepId()Ljava/lang/Long;
.locals 1
iget-object v0, p0, Lcom/polarsteps/data/sync/AckStepSpot;->stepId:Ljava/lang/Long;
return-object v0
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract E(Ljava/lang/Integer;Lcom/polarsteps/data/sync/SyncRequest;)Lretrofit2/Call;
.param p1 # Ljava/lang/Integer;
.annotation runtime Lretrofit2/http/Query;
value = "refresh"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/sync/SyncRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Headers;
value = {
.end annotation
.annotation runtime Lretrofit2/http/POST;
value = "api/sync/"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
```
.method public constructor <init>(JLjava/lang/Long;)V
.locals 0
invoke-direct {p0, p1, p2}, Lcom/polarsteps/data/sync/AckObject;-><init>(J)V
iput-object p3, p0, Lcom/polarsteps/data/sync/AckStepSpot;->stepId:Ljava/lang/Long;
return-void
.end method
```
Could this class be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract E(Ljava/lang/Integer;Lcom/polarsteps/data/sync/SyncRequest;)Lretrofit2/Call;
.param p1 # Ljava/lang/Integer;
.annotation runtime Lretrofit2/http/Query;
value = "refresh"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/sync/SyncRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Headers;
value = {
.end annotation
.annotation runtime Lretrofit2/http/POST;
value = "api/sync/"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: com.polarsteps.data.database.daos.MediaDao
.method public abstract unsynchronized()Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract E(Ljava/lang/Integer;Lcom/polarsteps/data/sync/SyncRequest;)Lretrofit2/Call;
.param p1 # Ljava/lang/Integer;
.annotation runtime Lretrofit2/http/Query;
value = "refresh"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/sync/SyncRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Headers;
value = {
.end annotation
.annotation runtime Lretrofit2/http/POST;
value = "api/sync/"
.end annotation
.end method
```
Answer by yes or no:
|
No
|
```
# Class: com.polarsteps.data.sync.SyncAckRequest
.method public final getDeletedTrips()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
iget-object v0, p0, Lcom/polarsteps/data/sync/SyncAckRequest;->deletedTrips:Ljava/util/List;
return-object v0
.end method
```
Could this method be related to this retrofit API endpoint arguments or request overall?
```
.method public abstract E(Ljava/lang/Integer;Lcom/polarsteps/data/sync/SyncRequest;)Lretrofit2/Call;
.param p1 # Ljava/lang/Integer;
.annotation runtime Lretrofit2/http/Query;
value = "refresh"
.end annotation
.end param
.param p2 # Lcom/polarsteps/data/sync/SyncRequest;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Body;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
.annotation build Lorg/jetbrains/annotations/NotNull;
.annotation runtime Lretrofit2/http/Headers;
value = {
.end annotation
.annotation runtime Lretrofit2/http/POST;
value = "api/sync/"
.end annotation
.end method
```
Answer by yes or no:
|
Yes
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.