CAG v5.7.4版本的 MD5 值为:bc57ead76a7a30559f0708e9d60d749f
以下内容为反编译后的 YouTubeApi$ListRequest$preResult$videoModel$1.java 源代码,内容仅作参考
package org.godfootsteps.arch.youtubeApi;
import d.c.a.m.b;
import d.c.a.m.c;
import i.c.a.c.m;
import i.j.a.e.t.d;
import java.util.Objects;
import kotlin.Metadata;
import kotlin.coroutines.intrinsics.CoroutineSingletons;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.internal.Ref$ObjectRef;
import n.e;
import n.f.g;
import n.g.f.a.c;
import n.i.a.l;
import n.i.a.p;
import n.i.b.h;
import n.o.a;
import o.b.y;
import org.godfootsteps.arch.youtubeApi.YouTubeApi;
import org.godfootsteps.arch.youtubeApi.model.ItemBean;
import org.godfootsteps.arch.youtubeApi.model.ListItemBean;
import org.godfootsteps.arch.youtubeApi.model.SearchItemBean;
import org.godfootsteps.arch.youtubeApi.model.SearchListModel;
import org.godfootsteps.arch.youtubeApi.model.YouTubeListModel;
import org.godfootsteps.arch.youtubeApi.model.YouTubeVideoModel;
@Metadata(d1 = {"\u0000\f\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\u00020\u0003H\u008a@"}, d2 = {"<anonymous>", "Lorg/godfootsteps/arch/youtubeApi/model/YouTubeVideoModel;", "T", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {1, 5, 1}, xi = 48)
@c(c = "org.godfootsteps.arch.youtubeApi.YouTubeApi$ListRequest$preResult$videoModel$1", f = "YouTubeApi.kt", l = {197, 210}, m = "invokeSuspend")
public final class YouTubeApi$ListRequest$preResult$videoModel$1 extends SuspendLambda implements p<y, n.g.c<? super YouTubeVideoModel>, Object> {
public final Ref$ObjectRef<String> $nextPageToken;
public final T $result;
public int label;
public final YouTubeApi.ListRequest<T> this$0;
public YouTubeApi$ListRequest$preResult$videoModel$1(T t2, Ref$ObjectRef<String> ref$ObjectRef, YouTubeApi.ListRequest<T> listRequest, n.g.c<? super YouTubeApi$ListRequest$preResult$videoModel$1> cVar) {
super(2, cVar);
this.$result = t2;
this.$nextPageToken = ref$ObjectRef;
this.this$0 = listRequest;
}
@Override
public final n.g.c<e> create(Object obj, n.g.c<?> cVar) {
return new YouTubeApi$ListRequest$preResult$videoModel$1(this.$result, this.$nextPageToken, this.this$0, cVar);
}
@Override
public final Object invoke(y yVar, n.g.c<? super YouTubeVideoModel> cVar) {
return ((YouTubeApi$ListRequest$preResult$videoModel$1) create(yVar, cVar)).invokeSuspend(e.a);
}
@Override
public final Object invokeSuspend(Object obj) {
String str;
CoroutineSingletons coroutineSingletons = CoroutineSingletons.COROUTINE_SUSPENDED;
int i2 = this.label;
boolean z = true;
if (i2 != 0) {
if (i2 != 1) {
if (i2 != 2) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
d.Q4(obj);
return (YouTubeVideoModel) obj;
}
d.Q4(obj);
YouTubeVideoModel youTubeVideoModel = (YouTubeVideoModel) obj;
str = this.this$0.f15317o;
if (str != null && !a.o(str)) {
z = false;
}
if (z) {
return youTubeVideoModel;
}
for (ItemBean itemBean : youTubeVideoModel.getItems()) {
b bVar = b.a;
StringBuilder P = i.a.b.a.a.P("0:https://www.googleapis.com/youtube/v3/videos?part=snippet,statistics,contentDetails&id=", itemBean.getId(), ",&fields=items(id,statistics/viewCount,snippet/title,snippet/publishedAt,contentDetails/duration)&key=");
YouTubeKeyHelper youTubeKeyHelper = YouTubeKeyHelper.a;
P.append(YouTubeKeyHelper.c);
String sb = P.toString();
String e2 = m.e(new YouTubeVideoModel(d.r3(itemBean)));
h.d(e2, "toJson(YouTubeVideoModel(listOf(video)))");
bVar.c(sb, e2);
}
return youTubeVideoModel;
}
d.Q4(obj);
T t2 = this.$result;
if (t2 instanceof YouTubeListModel) {
this.$nextPageToken.element = ((YouTubeListModel) t2).getNextPageToken();
Objects.requireNonNull(d.c.a.m.c.a);
d.c.a.m.c cVar = c.a.b;
String y = g.y(((YouTubeListModel) this.$result).getItems(), ",", null, null, 0, null, new l<ListItemBean, CharSequence>() {
@Override
public final CharSequence invoke(ListItemBean listItemBean) {
h.e(listItemBean, "it");
return listItemBean.getSnippet().getResourceId().getVideoId();
}
}, 30);
this.label = 1;
obj = d.c.a.m.a.E(cVar, y, null, null, this, 6, null);
if (obj == coroutineSingletons) {
return coroutineSingletons;
}
YouTubeVideoModel youTubeVideoModel2 = (YouTubeVideoModel) obj;
str = this.this$0.f15317o;
if (str != null) {
z = false;
}
if (z) {
}
} else {
Objects.requireNonNull(t2, "null cannot be cast to non-null type org.godfootsteps.arch.youtubeApi.model.SearchListModel");
this.$nextPageToken.element = ((SearchListModel) t2).getNextPageToken();
Objects.requireNonNull(d.c.a.m.c.a);
d.c.a.m.c cVar2 = c.a.b;
String y2 = g.y(((SearchListModel) this.$result).getItems(), ",", null, null, 0, null, new l<SearchItemBean, CharSequence>() {
@Override
public final CharSequence invoke(SearchItemBean searchItemBean) {
h.e(searchItemBean, "it");
return searchItemBean.getId().getVideoId();
}
}, 30);
this.label = 2;
obj = d.c.a.m.a.E(cVar2, y2, null, null, this, 6, null);
if (obj == coroutineSingletons) {
return coroutineSingletons;
}
return (YouTubeVideoModel) obj;
}
}
}