122 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			122 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class final Lretrofit2/HttpServiceMethod$SuspendForResponse;
 | |
| .super Lretrofit2/HttpServiceMethod;
 | |
| .source "HttpServiceMethod.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/EnclosingClass;
 | |
|     value = Lretrofit2/HttpServiceMethod;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/InnerClass;
 | |
|     accessFlags = 0x19
 | |
|     name = "SuspendForResponse"
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/Signature;
 | |
|     value = {
 | |
|         "<ResponseT:",
 | |
|         "Ljava/lang/Object;",
 | |
|         ">",
 | |
|         "Lretrofit2/HttpServiceMethod<",
 | |
|         "TResponseT;",
 | |
|         "Ljava/lang/Object;",
 | |
|         ">;"
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field private final callAdapter:Lretrofit2/CallAdapter;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lretrofit2/CallAdapter<",
 | |
|             "TResponseT;",
 | |
|             "Lretrofit2/Call<",
 | |
|             "TResponseT;>;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Lretrofit2/RequestFactory;Lokhttp3/Call$Factory;Lretrofit2/Converter;Lretrofit2/CallAdapter;)V
 | |
|     .locals 0
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lretrofit2/RequestFactory;",
 | |
|             "Lokhttp3/Call$Factory;",
 | |
|             "Lretrofit2/Converter<",
 | |
|             "Lokhttp3/ResponseBody;",
 | |
|             "TResponseT;>;",
 | |
|             "Lretrofit2/CallAdapter<",
 | |
|             "TResponseT;",
 | |
|             "Lretrofit2/Call<",
 | |
|             "TResponseT;>;>;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0, p1, p2, p3}, Lretrofit2/HttpServiceMethod;-><init>(Lretrofit2/RequestFactory;Lokhttp3/Call$Factory;Lretrofit2/Converter;)V
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p4, p0, Lretrofit2/HttpServiceMethod$SuspendForResponse;->callAdapter:Lretrofit2/CallAdapter;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public adapt(Lretrofit2/Call;[Ljava/lang/Object;)Ljava/lang/Object;
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lretrofit2/Call<",
 | |
|             "TResponseT;>;[",
 | |
|             "Ljava/lang/Object;",
 | |
|             ")",
 | |
|             "Ljava/lang/Object;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lretrofit2/HttpServiceMethod$SuspendForResponse;->callAdapter:Lretrofit2/CallAdapter;
 | |
| 
 | |
|     invoke-interface {v0, p1}, Lretrofit2/CallAdapter;->adapt(Lretrofit2/Call;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     check-cast p1, Lretrofit2/Call;
 | |
| 
 | |
|     .line 2
 | |
|     array-length v0, p2
 | |
| 
 | |
|     add-int/lit8 v0, v0, -0x1
 | |
| 
 | |
|     aget-object p2, p2, v0
 | |
| 
 | |
|     check-cast p2, Lkotlin/coroutines/c;
 | |
| 
 | |
|     .line 3
 | |
|     :try_start_0
 | |
|     invoke-static {p1, p2}, Lretrofit2/KotlinExtensions;->awaitResponse(Lretrofit2/Call;Lkotlin/coroutines/c;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
|     :try_end_0
 | |
|     .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     return-object p1
 | |
| 
 | |
|     :catch_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {p1, p2}, Lretrofit2/KotlinExtensions;->suspendAndThrow(Ljava/lang/Exception;Lkotlin/coroutines/c;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 |