Primer paso de la investigacion. Se aportan el .apk, las carpetas con el apk extraido y el apk descompilado. El archivo API_DOCUMENTATION.md es un archivo donde se anotaran los descubrimientos del funcionamiento de la API, y los .py son scripts para probar la funcionalidad de la API con los métodos que vayamos encontrando. Finalmente, los archivos .js son scripts de Frida para extraer informacion de la APP durante la ejecucion.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.subscription.SubscriptionType;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* synthetic */ class DefaultSubscriptionsRepository$create$1$response$1$WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[SubscriptionType.values().length];
|
||||
try {
|
||||
iArr[SubscriptionType.JOURNEY.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[SubscriptionType.TRAIN.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,184 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.subscription.Subscription;
|
||||
import com.adif.elcanomovil.domain.entities.utils.AsyncResult;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u00050\u0004H\u008a@¨\u0006\u0006"}, d2 = {"<anonymous>", "", "ResultType", "RequestType", "Lkotlinx/coroutines/flow/FlowCollector;", "Lcom/adif/elcanomovil/domain/entities/utils/AsyncResult;", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1", f = "DefaultSubscriptionsRepository.kt", i = {0, 1, 2, 3, 4, 4, 5}, l = {18, 19, 22, 44, 51, 52, 38}, m = "invokeSuspend", n = {"$this$flow", "$this$flow", "$this$flow", "$this$flow", "$this$flow", "subscriptionsResponse", "$this$flow"}, s = {"L$0", "L$0", "L$0", "L$0", "L$0", "L$1", "L$0"})
|
||||
@SourceDebugExtension({"SMAP\nNetworkBoundResource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n+ 2 DefaultSubscriptionsRepository.kt\ncom/adif/elcanomovil/repositories/subscriptions/DefaultSubscriptionsRepository$fetch$2\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 4 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 5 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n+ 6 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt\n*L\n1#1,40:1\n212#2,2:41\n241#2:43\n223#2,9:44\n232#2,5:56\n239#2:62\n226#2,2:68\n1549#3:53\n1620#3,2:54\n1622#3:61\n53#4:63\n55#4:67\n53#4:70\n55#4:74\n53#4:75\n55#4:79\n53#4:80\n55#4:84\n50#5:64\n55#5:66\n50#5:71\n55#5:73\n50#5:76\n55#5:78\n50#5:81\n55#5:83\n109#6:65\n109#6:72\n109#6:77\n109#6:82\n*S KotlinDebug\n*F\n+ 1 DefaultSubscriptionsRepository.kt\ncom/adif/elcanomovil/repositories/subscriptions/DefaultSubscriptionsRepository$fetch$2\n+ 2 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n231#1:53\n231#1:54,2\n231#1:61\n26#2:63\n26#2:67\n29#2:70\n29#2:74\n31#2:75\n31#2:79\n35#2:80\n35#2:84\n26#2:64\n26#2:66\n29#2:71\n29#2:73\n31#2:76\n31#2:78\n35#2:81\n35#2:83\n26#2:65\n29#2:72\n31#2:77\n35#2:82\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1 extends SuspendLambda implements Function2<FlowCollector<? super AsyncResult<? extends List<? extends Subscription>>>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ boolean $shouldFetch$inlined;
|
||||
private /* synthetic */ Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
final /* synthetic */ DefaultSubscriptionsRepository this$0;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001c\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@¢\u0006\u0002\u0010\u0006¨\u0006\u0007¸\u0006\n"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nSafeCollector.common.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1\n+ 2 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n*L\n1#1,115:1\n51#2,5:116\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass2 implements Flow<AsyncResult<? extends List<? extends Subscription>>> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\b\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2", "com/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3$invokeSuspend$$inlined$map$2$2"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 NetworkBoundResource.kt\ncom/adif/elcanomovil/repositories/NetworkBoundResourceKt$networkBoundResource$3\n*L\n1#1,222:1\n54#2:223\n29#3:224\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2, reason: invalid class name and collision with other inner class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class C00152<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2", f = "DefaultSubscriptionsRepository.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
|
||||
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
||||
/* renamed from: com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1, reason: invalid class name */
|
||||
/* loaded from: classes.dex */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return C00152.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public C00152(FlowCollector flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r5, kotlin.coroutines.Continuation r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00152.AnonymousClass1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1 r0 = (com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00152.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1 r0 = new com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1$2$2$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L31
|
||||
if (r2 != r3) goto L29
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L29:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L31:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = r4.$this_unsafeFlow
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult$Companion r6 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE
|
||||
com.adif.elcanomovil.domain.entities.utils.AsyncResult r5 = r6.success(r5)
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.emit(r5, r0)
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1.AnonymousClass2.C00152.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(Flow flow) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super AsyncResult<? extends List<? extends Subscription>>> flowCollector, Continuation continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new C00152(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1(Continuation continuation, DefaultSubscriptionsRepository defaultSubscriptionsRepository, boolean z3, DefaultSubscriptionsRepository defaultSubscriptionsRepository2, DefaultSubscriptionsRepository defaultSubscriptionsRepository3) {
|
||||
super(2, continuation);
|
||||
this.this$0 = defaultSubscriptionsRepository;
|
||||
this.$shouldFetch$inlined = z3;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
DefaultSubscriptionsRepository defaultSubscriptionsRepository = this.this$0;
|
||||
DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1 defaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1 = new DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1(continuation, defaultSubscriptionsRepository, this.$shouldFetch$inlined, defaultSubscriptionsRepository, defaultSubscriptionsRepository);
|
||||
defaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1.L$0 = obj;
|
||||
return defaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:16:0x01bd, code lost:
|
||||
|
||||
if (kotlinx.coroutines.flow.FlowKt.emitAll(r0, r13, r11) != r1) goto L72;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:70:0x00ad, code lost:
|
||||
|
||||
if (r0.emit(r13, r12) == r1) goto L71;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:74:0x0093, code lost:
|
||||
|
||||
if (r13 != r1) goto L29;
|
||||
*/
|
||||
/* JADX WARN: Failed to find 'out' block for switch in B:3:0x0009. Please report as an issue. */
|
||||
/* JADX WARN: Removed duplicated region for block: B:28:0x0110 A[Catch: all -> 0x0135, TRY_LEAVE, TryCatch #2 {all -> 0x0135, blocks: (B:13:0x0159, B:25:0x00f5, B:26:0x010a, B:28:0x0110, B:31:0x012e, B:35:0x013b, B:39:0x0143, B:45:0x014b, B:51:0x00dd, B:60:0x00d5), top: B:59:0x00d5 }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:47:0x0158 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:53:0x00f3 */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r13) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 472
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(FlowCollector<? super AsyncResult<? extends List<? extends Subscription>>> flowCollector, Continuation<? super Unit> continuation) {
|
||||
return ((DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1) create(flowCollector, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.subscription.SubscriptionType;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* synthetic */ class DefaultSubscriptionsRepository$modify$1$response$1$WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[SubscriptionType.values().length];
|
||||
try {
|
||||
iArr[SubscriptionType.JOURNEY.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[SubscriptionType.TRAIN.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,16 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.uiTrain.entities.TrainInfoMapperKt;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0010\b\n\u0002\b\u0002\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0002\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0003\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0004\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0005\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0006\u001a\u00020\u0007X\u0086T¢\u0006\u0002\n\u0000\"\u000e\u0010\b\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000¨\u0006\t"}, d2 = {TrainInfoMapperKt.CERCANIAS, "", "MUTE", "OSVERSION", "PLATFORM", "SUBSCRIPTION_ID", "SUBSCRIPTION_RESPONSE_OK", "", "TRAIN_SUBSCRIPTION_ID", "repositories_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultSubscriptionsRepositoryKt {
|
||||
public static final String CERCANIAS = "cercanias";
|
||||
public static final String MUTE = "%s::%s-%s-%s-%s-%s-%s-%s-%s";
|
||||
public static final String OSVERSION = "10";
|
||||
public static final String PLATFORM = "300";
|
||||
public static final String SUBSCRIPTION_ID = "%s::%s-%s-%s-%s-%s-%s-%s";
|
||||
public static final int SUBSCRIPTION_RESPONSE_OK = 200;
|
||||
public static final String TRAIN_SUBSCRIPTION_ID = "%s::%s-%s-%s-%s";
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.serviceNetworking.subscriptions.SubscriptionsService;
|
||||
import com.adif.elcanomovil.serviceStorage.database.SubscriptionsAuxDataDao;
|
||||
import com.adif.elcanomovil.serviceStorage.database.SubscriptionsDao;
|
||||
import com.adif.elcanomovil.serviceStorage.preferences.PreferenceStorage;
|
||||
import d1.InterfaceC0307a;
|
||||
import dagger.internal.DaggerGenerated;
|
||||
import dagger.internal.Factory;
|
||||
import dagger.internal.QualifierMetadata;
|
||||
import dagger.internal.ScopeMetadata;
|
||||
import javax.inject.Provider;
|
||||
|
||||
@ScopeMetadata("javax.inject.Singleton")
|
||||
@DaggerGenerated
|
||||
@QualifierMetadata
|
||||
/* loaded from: classes.dex */
|
||||
public final class DefaultSubscriptionsRepository_Factory implements Factory<DefaultSubscriptionsRepository> {
|
||||
private final Provider<InterfaceC0307a> appDispatcherProvider;
|
||||
private final Provider<PreferenceStorage> preferenceStorageProvider;
|
||||
private final Provider<SubscriptionMapper> subscriptionMapperProvider;
|
||||
private final Provider<SubscriptionsAuxDataDao> subscriptionsAuxDataDaoProvider;
|
||||
private final Provider<SubscriptionsDao> subscriptionsDaoProvider;
|
||||
private final Provider<SubscriptionsService> subscriptionsServiceProvider;
|
||||
|
||||
public DefaultSubscriptionsRepository_Factory(Provider<SubscriptionsService> provider, Provider<SubscriptionMapper> provider2, Provider<PreferenceStorage> provider3, Provider<SubscriptionsDao> provider4, Provider<SubscriptionsAuxDataDao> provider5, Provider<InterfaceC0307a> provider6) {
|
||||
this.subscriptionsServiceProvider = provider;
|
||||
this.subscriptionMapperProvider = provider2;
|
||||
this.preferenceStorageProvider = provider3;
|
||||
this.subscriptionsDaoProvider = provider4;
|
||||
this.subscriptionsAuxDataDaoProvider = provider5;
|
||||
this.appDispatcherProvider = provider6;
|
||||
}
|
||||
|
||||
public static DefaultSubscriptionsRepository_Factory create(Provider<SubscriptionsService> provider, Provider<SubscriptionMapper> provider2, Provider<PreferenceStorage> provider3, Provider<SubscriptionsDao> provider4, Provider<SubscriptionsAuxDataDao> provider5, Provider<InterfaceC0307a> provider6) {
|
||||
return new DefaultSubscriptionsRepository_Factory(provider, provider2, provider3, provider4, provider5, provider6);
|
||||
}
|
||||
|
||||
public static DefaultSubscriptionsRepository newInstance(SubscriptionsService subscriptionsService, SubscriptionMapper subscriptionMapper, PreferenceStorage preferenceStorage, SubscriptionsDao subscriptionsDao, SubscriptionsAuxDataDao subscriptionsAuxDataDao, InterfaceC0307a interfaceC0307a) {
|
||||
return new DefaultSubscriptionsRepository(subscriptionsService, subscriptionMapper, preferenceStorage, subscriptionsDao, subscriptionsAuxDataDao, interfaceC0307a);
|
||||
}
|
||||
|
||||
@Override // javax.inject.Provider
|
||||
public DefaultSubscriptionsRepository get() {
|
||||
return newInstance(this.subscriptionsServiceProvider.get(), this.subscriptionMapperProvider.get(), this.preferenceStorageProvider.get(), this.subscriptionsDaoProvider.get(), this.subscriptionsAuxDataDaoProvider.get(), this.appDispatcherProvider.get());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.subscription.Destination;
|
||||
import com.adif.elcanomovil.serviceNetworking.subscriptions.models.DestinationResponse;
|
||||
import com.adif.elcanomovil.serviceStorage.model.subscriptions.DestinationEntity;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006J\u000e\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004J\u000e\u0010\b\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\tJ\u000e\u0010\n\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\t¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/repositories/subscriptions/DestinationMapper;", "", "()V", "domainToEntity", "Lcom/adif/elcanomovil/serviceStorage/model/subscriptions/DestinationEntity;", "source", "Lcom/adif/elcanomovil/domain/entities/subscription/Destination;", "entityToDomain", "responseToDomain", "Lcom/adif/elcanomovil/serviceNetworking/subscriptions/models/DestinationResponse;", "responseToEntity", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class DestinationMapper {
|
||||
public final DestinationEntity domainToEntity(Destination source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new DestinationEntity(source.getCommercialZone(), source.getCustomerService(), source.getId(), source.getLatlong(), source.getName(), source.getObservation(), source.getShortName(), source.getTrafficType());
|
||||
}
|
||||
|
||||
public final Destination entityToDomain(DestinationEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new Destination(source.getCommercialZone(), source.getCustomerService(), source.getId(), source.getLatlong(), source.getName(), source.getObservation(), source.getShortName(), source.getTrafficType());
|
||||
}
|
||||
|
||||
public final Destination responseToDomain(DestinationResponse source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new Destination(source.getCommercialZone(), source.getCustomerService(), source.getId(), source.getLatlong(), source.getName(), source.getObservation(), source.getShortName(), source.getTrafficType());
|
||||
}
|
||||
|
||||
public final DestinationEntity responseToEntity(DestinationResponse source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new DestinationEntity(source.getCommercialZone(), source.getCustomerService(), source.getId(), source.getLatlong(), source.getName(), source.getObservation(), source.getShortName(), source.getTrafficType());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.subscription.Origin;
|
||||
import com.adif.elcanomovil.serviceNetworking.subscriptions.models.OriginResponse;
|
||||
import com.adif.elcanomovil.serviceStorage.model.subscriptions.OriginEntity;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006J\u000e\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004J\u000e\u0010\b\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\tJ\u000e\u0010\n\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\t¨\u0006\u000b"}, d2 = {"Lcom/adif/elcanomovil/repositories/subscriptions/OriginMapper;", "", "()V", "domainToEntity", "Lcom/adif/elcanomovil/serviceStorage/model/subscriptions/OriginEntity;", "source", "Lcom/adif/elcanomovil/domain/entities/subscription/Origin;", "entityToDomain", "responseToDomain", "Lcom/adif/elcanomovil/serviceNetworking/subscriptions/models/OriginResponse;", "responseToEntity", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class OriginMapper {
|
||||
public final OriginEntity domainToEntity(Origin source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new OriginEntity(source.getCommercialZone(), source.getCustomerService(), source.getId(), source.getLatlong(), source.getName(), source.getObservation(), source.getShortName(), source.getTrafficType());
|
||||
}
|
||||
|
||||
public final Origin entityToDomain(OriginEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new Origin(source.getCommercialZone(), source.getCustomerService(), source.getId(), source.getLatlong(), source.getName(), source.getObservation(), source.getShortName(), source.getTrafficType());
|
||||
}
|
||||
|
||||
public final Origin responseToDomain(OriginResponse source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new Origin(source.getCommercialZone(), source.getCustomerService(), source.getId(), source.getLatlong(), source.getName(), source.getObservation(), source.getShortName(), source.getTrafficType());
|
||||
}
|
||||
|
||||
public final OriginEntity responseToEntity(OriginResponse source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new OriginEntity(source.getCommercialZone(), source.getCustomerService(), source.getId(), source.getLatlong(), source.getName(), source.getObservation(), source.getShortName(), source.getTrafficType());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.NavArguments;
|
||||
import com.adif.elcanomovil.domain.entities.subscription.Destination;
|
||||
import com.adif.elcanomovil.domain.entities.subscription.Origin;
|
||||
import com.adif.elcanomovil.domain.entities.subscription.Subscription;
|
||||
import com.adif.elcanomovil.domain.entities.subscription.SubscriptionType;
|
||||
import com.adif.elcanomovil.repositories.R;
|
||||
import com.adif.elcanomovil.serviceNetworking.subscriptions.models.DestinationResponse;
|
||||
import com.adif.elcanomovil.serviceNetworking.subscriptions.models.SubscriptionResponse;
|
||||
import com.adif.elcanomovil.serviceStorage.model.subscriptions.DestinationEntity;
|
||||
import com.adif.elcanomovil.serviceStorage.model.subscriptions.OriginEntity;
|
||||
import com.adif.elcanomovil.serviceStorage.model.subscriptions.SubscriptionEntity;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\b\u0018\u00002\u00020\u0001B\u000f\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0004\u0010\u0005J\u0015\u0010\t\u001a\u00020\b2\u0006\u0010\u0007\u001a\u00020\u0006¢\u0006\u0004\b\t\u0010\nJ\u0015\u0010\u000b\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\b¢\u0006\u0004\b\u000b\u0010\fJ%\u0010\u0011\u001a\u00020\b2\u0006\u0010\u0007\u001a\u00020\r2\u0006\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\u0010\u001a\u00020\u000e¢\u0006\u0004\b\u0011\u0010\u0012R\u0017\u0010\u0003\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0003\u0010\u0013\u001a\u0004\b\u0014\u0010\u0015¨\u0006\u0016"}, d2 = {"Lcom/adif/elcanomovil/repositories/subscriptions/SubscriptionMapper;", "", "Ld1/g;", "stringProvider", "<init>", "(Ld1/g;)V", "Lcom/adif/elcanomovil/domain/entities/subscription/Subscription;", "source", "Lcom/adif/elcanomovil/serviceStorage/model/subscriptions/SubscriptionEntity;", "domainToEntity", "(Lcom/adif/elcanomovil/domain/entities/subscription/Subscription;)Lcom/adif/elcanomovil/serviceStorage/model/subscriptions/SubscriptionEntity;", "entityToDomain", "(Lcom/adif/elcanomovil/serviceStorage/model/subscriptions/SubscriptionEntity;)Lcom/adif/elcanomovil/domain/entities/subscription/Subscription;", "Lcom/adif/elcanomovil/serviceNetworking/subscriptions/models/SubscriptionResponse;", "", NavArguments.ARG_DYNAMIC_LINKS_OPERATOR, NavArguments.ARG_DYNAMIC_LINKS_COMMERCIAL_PRODUCT, "responseToEntity", "(Lcom/adif/elcanomovil/serviceNetworking/subscriptions/models/SubscriptionResponse;Ljava/lang/String;Ljava/lang/String;)Lcom/adif/elcanomovil/serviceStorage/model/subscriptions/SubscriptionEntity;", "Ld1/g;", "getStringProvider", "()Ld1/g;", "repositories_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nSubscriptionMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SubscriptionMapper.kt\ncom/adif/elcanomovil/repositories/subscriptions/SubscriptionMapper\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,170:1\n1#2:171\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class SubscriptionMapper {
|
||||
private final d1.g stringProvider;
|
||||
|
||||
public SubscriptionMapper(d1.g stringProvider) {
|
||||
Intrinsics.checkNotNullParameter(stringProvider, "stringProvider");
|
||||
this.stringProvider = stringProvider;
|
||||
}
|
||||
|
||||
public final SubscriptionEntity domainToEntity(Subscription source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
int id = source.getId();
|
||||
Destination destination = source.getDestination();
|
||||
DestinationEntity domainToEntity = destination != null ? new DestinationMapper().domainToEntity(destination) : null;
|
||||
OriginEntity domainToEntity2 = new OriginMapper().domainToEntity(source.getOrigin());
|
||||
String repeats = source.getRepeats();
|
||||
String subscriptionType = source.getSubscriptionType();
|
||||
String timeCenter = source.getTimeCenter();
|
||||
String timeEnd = source.getTimeEnd();
|
||||
String timeStart = source.getTimeStart();
|
||||
boolean active = source.getActive();
|
||||
String operator = source.getOperator();
|
||||
if (operator == null) {
|
||||
operator = ((d1.h) this.stringProvider).a(R.string.circulation_header_train);
|
||||
}
|
||||
return new SubscriptionEntity(id, domainToEntity, domainToEntity2, repeats, subscriptionType, timeCenter, timeEnd, timeStart, active, operator, source.getCommercialProduct());
|
||||
}
|
||||
|
||||
public final Subscription entityToDomain(SubscriptionEntity source) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
SubscriptionType subscriptionType = SubscriptionType.TRAIN;
|
||||
if (source.getDestination() != null) {
|
||||
subscriptionType = SubscriptionType.JOURNEY;
|
||||
}
|
||||
SubscriptionType subscriptionType2 = subscriptionType;
|
||||
int subcriptionId = source.getSubcriptionId();
|
||||
DestinationEntity destination = source.getDestination();
|
||||
Destination entityToDomain = destination != null ? new DestinationMapper().entityToDomain(destination) : null;
|
||||
Origin entityToDomain2 = new OriginMapper().entityToDomain(source.getOrigin());
|
||||
String repeats = source.getRepeats();
|
||||
String subscriptionType3 = source.getSubscriptionType();
|
||||
String timeCenter = source.getTimeCenter();
|
||||
String timeEnd = source.getTimeEnd();
|
||||
String timeStart = source.getTimeStart();
|
||||
boolean active = source.getActive();
|
||||
String operator = source.getOperator();
|
||||
return new Subscription(subcriptionId, entityToDomain, entityToDomain2, repeats, subscriptionType3, timeCenter, timeEnd, timeStart, active, subscriptionType2, (operator == null || operator.length() == 0) ? "" : source.getOperator(), source.getCommercialProduct());
|
||||
}
|
||||
|
||||
public final d1.g getStringProvider() {
|
||||
return this.stringProvider;
|
||||
}
|
||||
|
||||
public final SubscriptionEntity responseToEntity(SubscriptionResponse source, String operator, String commercialProduct) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
Intrinsics.checkNotNullParameter(operator, "operator");
|
||||
Intrinsics.checkNotNullParameter(commercialProduct, "commercialProduct");
|
||||
DestinationResponse destination = source.getDestination();
|
||||
return new SubscriptionEntity(0, destination != null ? new DestinationMapper().responseToEntity(destination) : null, new OriginMapper().responseToEntity(source.getOrigin()), source.getRepeats(), source.getSubscriptionType(), source.getTimeCenter(), source.getTimeEnd(), source.getTimeStart(), false, operator, commercialProduct, 257, null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.serviceNetworking.subscriptions.SubscriptionsService;
|
||||
import com.adif.elcanomovil.serviceNetworking.subscriptions.models.SubscriptionRequest;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class a extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4703a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4704b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ SubscriptionRequest f4705c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public a(DefaultSubscriptionsRepository defaultSubscriptionsRepository, SubscriptionRequest subscriptionRequest, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4704b = defaultSubscriptionsRepository;
|
||||
this.f4705c = subscriptionRequest;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new a(this.f4704b, this.f4705c, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((a) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
SubscriptionsService subscriptionsService;
|
||||
String str;
|
||||
String pushId;
|
||||
String deviceId;
|
||||
String str2;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4703a;
|
||||
if (i != 0) {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return obj;
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
DefaultSubscriptionsRepository defaultSubscriptionsRepository = this.f4704b;
|
||||
subscriptionsService = defaultSubscriptionsRepository.subscriptionsService;
|
||||
str = defaultSubscriptionsRepository.header;
|
||||
pushId = defaultSubscriptionsRepository.getPushId();
|
||||
deviceId = defaultSubscriptionsRepository.getDeviceId();
|
||||
str2 = defaultSubscriptionsRepository.headerAuth;
|
||||
this.f4703a = 1;
|
||||
Object createJourneySubscription = subscriptionsService.createJourneySubscription(str, pushId, deviceId, str2, this.f4705c, this);
|
||||
return createJourneySubscription == coroutine_suspended ? coroutine_suspended : createJourneySubscription;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.subscription.Subscription;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class b extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4706a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4707b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ Subscription f4708c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4709d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public b(Subscription subscription, DefaultSubscriptionsRepository defaultSubscriptionsRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4708c = subscription;
|
||||
this.f4709d = defaultSubscriptionsRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
b bVar = new b(this.f4708c, this.f4709d, continuation);
|
||||
bVar.f4707b = obj;
|
||||
return bVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((b) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't wrap try/catch for region: R(5:(1:(1:(3:8|9|10)(2:12|13))(1:14))(1:22)|15|16|9|10) */
|
||||
/* JADX WARN: Can't wrap try/catch for region: R(9:1|(1:(2:(5:(1:(1:(3:8|9|10)(2:12|13))(1:14))(1:22)|15|16|9|10)(6:23|24|25|26|27|(4:29|(2:31|21)|9|10)(1:32))|19)(1:36))(1:49)|37|38|39|(1:41)(1:46)|42|(3:44|27|(0)(0))|21) */
|
||||
/* JADX WARN: Code restructure failed: missing block: B:18:0x0035, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:20:0x011a, code lost:
|
||||
|
||||
if (r3.emit(r0, r23) == r2) goto L48;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:33:0x0109, code lost:
|
||||
|
||||
if (r7.emit(r0, r23) == r2) goto L48;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:47:0x0091, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:48:0x0092, code lost:
|
||||
|
||||
r3 = r11;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:50:0x006c, code lost:
|
||||
|
||||
if (r0.emit(r11, r23) == r2) goto L48;
|
||||
*/
|
||||
/* JADX WARN: Removed duplicated region for block: B:29:0x00db A[Catch: all -> 0x004a, TryCatch #2 {all -> 0x004a, blocks: (B:25:0x0043, B:27:0x00d1, B:29:0x00db, B:32:0x00f2), top: B:24:0x0043 }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:32:0x00f2 A[Catch: all -> 0x004a, TRY_LEAVE, TryCatch #2 {all -> 0x004a, blocks: (B:25:0x0043, B:27:0x00d1, B:29:0x00db, B:32:0x00f2), top: B:24:0x0043 }] */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r24) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 288
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.subscriptions.b.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.subscription.SubscriptionType;
|
||||
import com.adif.elcanomovil.serviceNetworking.subscriptions.models.SubscriptionCreateTrainRequest;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class c extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public SubscriptionCreateTrainRequest f4710a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public int f4711b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ SubscriptionType f4712c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4713d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4714e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4715f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4716g;
|
||||
public final /* synthetic */ String h;
|
||||
public final /* synthetic */ String i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4717j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4718k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4719l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4720m;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4721n;
|
||||
|
||||
/* renamed from: o, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4722o;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public c(SubscriptionType subscriptionType, DefaultSubscriptionsRepository defaultSubscriptionsRepository, String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String str10, String str11, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4712c = subscriptionType;
|
||||
this.f4713d = str;
|
||||
this.f4714e = str2;
|
||||
this.f4715f = str3;
|
||||
this.f4716g = str4;
|
||||
this.h = str5;
|
||||
this.i = str6;
|
||||
this.f4717j = str7;
|
||||
this.f4718k = str8;
|
||||
this.f4719l = defaultSubscriptionsRepository;
|
||||
this.f4720m = str9;
|
||||
this.f4721n = str10;
|
||||
this.f4722o = str11;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
String str = this.f4721n;
|
||||
String str2 = this.f4722o;
|
||||
return new c(this.f4712c, this.f4719l, this.f4713d, this.f4714e, this.f4715f, this.f4716g, this.h, this.i, this.f4717j, this.f4718k, this.f4720m, str, str2, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((c) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x0099, code lost:
|
||||
|
||||
if (r0 != r7) goto L22;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:28:0x00e3, code lost:
|
||||
|
||||
if (r0 == r7) goto L28;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r21) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 233
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.subscriptions.c.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.subscription.SubscriptionType;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class d extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4723a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4724b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4725c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ SubscriptionType f4726d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4727e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4728f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4729g;
|
||||
public final /* synthetic */ String h;
|
||||
public final /* synthetic */ String i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4730j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4731k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4732l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4733m;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4734n;
|
||||
|
||||
/* renamed from: o, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4735o;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public d(SubscriptionType subscriptionType, DefaultSubscriptionsRepository defaultSubscriptionsRepository, String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String str10, String str11, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4725c = defaultSubscriptionsRepository;
|
||||
this.f4726d = subscriptionType;
|
||||
this.f4727e = str;
|
||||
this.f4728f = str2;
|
||||
this.f4729g = str3;
|
||||
this.h = str4;
|
||||
this.i = str5;
|
||||
this.f4730j = str6;
|
||||
this.f4731k = str7;
|
||||
this.f4732l = str8;
|
||||
this.f4733m = str9;
|
||||
this.f4734n = str10;
|
||||
this.f4735o = str11;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
String str = this.f4734n;
|
||||
String str2 = this.f4735o;
|
||||
d dVar = new d(this.f4726d, this.f4725c, this.f4727e, this.f4728f, this.f4729g, this.h, this.i, this.f4730j, this.f4731k, this.f4732l, this.f4733m, str, str2, continuation);
|
||||
dVar.f4724b = obj;
|
||||
return dVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((d) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't wrap try/catch for region: R(10:1|2|(1:(1:(5:(1:(1:(3:9|10|11)(2:13|14))(1:15))(1:19)|16|17|10|11)(6:20|21|22|23|24|(5:26|(2:28|29)|17|10|11)(1:30)))(1:37))(1:47)|38|39|40|41|(3:43|24|(0)(0))|29|(1:(0))) */
|
||||
/* JADX WARN: Code restructure failed: missing block: B:31:0x00ec, code lost:
|
||||
|
||||
if (r0 == r2) goto L45;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:36:0x0101, code lost:
|
||||
|
||||
if (r4.emit(r0, r24) == r2) goto L45;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:45:0x00ef, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:46:0x00f0, code lost:
|
||||
|
||||
r4 = r7;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:48:0x0069, code lost:
|
||||
|
||||
if (r0.emit(r9, r24) == r2) goto L45;
|
||||
*/
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:26:0x00c0 A[Catch: all -> 0x0031, TryCatch #0 {all -> 0x0031, blocks: (B:16:0x002c, B:24:0x00b6, B:26:0x00c0, B:30:0x00d3), top: B:2:0x000e }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:30:0x00d3 A[Catch: all -> 0x0031, TRY_LEAVE, TryCatch #0 {all -> 0x0031, blocks: (B:16:0x002c, B:24:0x00b6, B:26:0x00c0, B:30:0x00d3), top: B:2:0x000e }] */
|
||||
/* JADX WARN: Type inference failed for: r4v0 */
|
||||
/* JADX WARN: Type inference failed for: r4v1 */
|
||||
/* JADX WARN: Type inference failed for: r4v17 */
|
||||
/* JADX WARN: Type inference failed for: r4v18 */
|
||||
/* JADX WARN: Type inference failed for: r4v19 */
|
||||
/* JADX WARN: Type inference failed for: r4v2, types: [kotlinx.coroutines.flow.FlowCollector] */
|
||||
/* JADX WARN: Type inference failed for: r4v3 */
|
||||
/* JADX WARN: Type inference failed for: r4v7 */
|
||||
/* JADX WARN: Type inference failed for: r4v8 */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r25) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 263
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.subscriptions.d.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.serviceNetworking.subscriptions.SubscriptionsService;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class e extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4736a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4737b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4738c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public e(DefaultSubscriptionsRepository defaultSubscriptionsRepository, String str, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4737b = defaultSubscriptionsRepository;
|
||||
this.f4738c = str;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new e(this.f4737b, this.f4738c, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((e) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
SubscriptionsService subscriptionsService;
|
||||
String str;
|
||||
String pushId;
|
||||
String str2;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4736a;
|
||||
if (i != 0) {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return obj;
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
DefaultSubscriptionsRepository defaultSubscriptionsRepository = this.f4737b;
|
||||
subscriptionsService = defaultSubscriptionsRepository.subscriptionsService;
|
||||
str = defaultSubscriptionsRepository.header;
|
||||
pushId = defaultSubscriptionsRepository.getPushId();
|
||||
str2 = defaultSubscriptionsRepository.headerAuth;
|
||||
this.f4736a = 1;
|
||||
Object unregisterSubscription = subscriptionsService.unregisterSubscription(this.f4738c, str, pushId, str2, this);
|
||||
return unregisterSubscription == coroutine_suspended ? coroutine_suspended : unregisterSubscription;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.subscription.Subscription;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class f extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4739a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4740b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ Subscription f4741c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4742d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ boolean f4743e;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public f(Subscription subscription, DefaultSubscriptionsRepository defaultSubscriptionsRepository, Continuation continuation, boolean z3) {
|
||||
super(2, continuation);
|
||||
this.f4741c = subscription;
|
||||
this.f4742d = defaultSubscriptionsRepository;
|
||||
this.f4743e = z3;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
f fVar = new f(this.f4741c, this.f4742d, continuation, this.f4743e);
|
||||
fVar.f4740b = obj;
|
||||
return fVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((f) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:32:0x00d2, code lost:
|
||||
|
||||
if (r1.emit(r9, r8) == r0) goto L40;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:38:0x00e4, code lost:
|
||||
|
||||
if (r1.emit(r9, r8) != r0) goto L41;
|
||||
*/
|
||||
/* JADX WARN: Failed to find 'out' block for switch in B:3:0x000d. Please report as an issue. */
|
||||
/* JADX WARN: Removed duplicated region for block: B:18:0x0090 A[Catch: all -> 0x0026, TryCatch #0 {all -> 0x0026, blocks: (B:11:0x0021, B:15:0x0037, B:16:0x0086, B:18:0x0090, B:22:0x00a5, B:26:0x005e, B:28:0x0064, B:31:0x00c0), top: B:2:0x000d }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:0x00a5 A[Catch: all -> 0x0026, TryCatch #0 {all -> 0x0026, blocks: (B:11:0x0021, B:15:0x0037, B:16:0x0086, B:18:0x0090, B:22:0x00a5, B:26:0x005e, B:28:0x0064, B:31:0x00c0), top: B:2:0x000d }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:28:0x0064 A[Catch: all -> 0x0026, TryCatch #0 {all -> 0x0026, blocks: (B:11:0x0021, B:15:0x0037, B:16:0x0086, B:18:0x0090, B:22:0x00a5, B:26:0x005e, B:28:0x0064, B:31:0x00c0), top: B:2:0x000d }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:31:0x00c0 A[Catch: all -> 0x0026, TRY_LEAVE, TryCatch #0 {all -> 0x0026, blocks: (B:11:0x0021, B:15:0x0037, B:16:0x0086, B:18:0x0090, B:22:0x00a5, B:26:0x005e, B:28:0x0064, B:31:0x00c0), top: B:2:0x000d }] */
|
||||
/* JADX WARN: Type inference failed for: r1v0, types: [int, kotlinx.coroutines.flow.FlowCollector] */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r9) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 252
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.subscriptions.f.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.serviceStorage.model.subscriptions.SubscriptionEntity;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class g extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4744a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4745b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ List f4746c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4747d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public g(List list, DefaultSubscriptionsRepository defaultSubscriptionsRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4746c = list;
|
||||
this.f4747d = defaultSubscriptionsRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
g gVar = new g(this.f4746c, this.f4747d, continuation);
|
||||
gVar.f4745b = obj;
|
||||
return gVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((g) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
int collectionSizeOrDefault;
|
||||
SubscriptionMapper subscriptionMapper;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4744a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
FlowCollector flowCollector = (FlowCollector) this.f4745b;
|
||||
List<SubscriptionEntity> list = this.f4746c;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (SubscriptionEntity subscriptionEntity : list) {
|
||||
subscriptionMapper = this.f4747d.subscriptionMapper;
|
||||
arrayList.add(subscriptionMapper.entityToDomain(subscriptionEntity));
|
||||
}
|
||||
this.f4744a = 1;
|
||||
if (flowCollector.emit(arrayList, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class h extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4748a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4749b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public h(DefaultSubscriptionsRepository defaultSubscriptionsRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4749b = defaultSubscriptionsRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
h hVar = new h(this.f4749b, continuation);
|
||||
hVar.f4748a = obj;
|
||||
return hVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((h) create((List) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return FlowKt.flow(new g((List) this.f4748a, this.f4749b, null));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class i extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4750a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ boolean f4751b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public i(DefaultSubscriptionsRepository defaultSubscriptionsRepository, boolean z3, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4750a = defaultSubscriptionsRepository;
|
||||
this.f4751b = z3;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new i(this.f4750a, this.f4751b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((i) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
ResultKt.throwOnFailure(obj);
|
||||
DefaultSubscriptionsRepository defaultSubscriptionsRepository = this.f4750a;
|
||||
return FlowKt.flow(new DefaultSubscriptionsRepository$fetch$2$invokeSuspend$$inlined$networkBoundResource$1(null, defaultSubscriptionsRepository, this.f4751b, defaultSubscriptionsRepository, defaultSubscriptionsRepository));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.subscription.Subscription;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class j extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4752a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ Subscription f4753b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ boolean f4754c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4755d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public j(Subscription subscription, DefaultSubscriptionsRepository defaultSubscriptionsRepository, Continuation continuation, boolean z3) {
|
||||
super(2, continuation);
|
||||
this.f4753b = subscription;
|
||||
this.f4754c = z3;
|
||||
this.f4755d = defaultSubscriptionsRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
boolean z3 = this.f4754c;
|
||||
return new j(this.f4753b, this.f4755d, continuation, z3);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((j) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x003c, code lost:
|
||||
|
||||
if (r2.insert(r6, r5) == r0) goto L17;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:15:0x004f, code lost:
|
||||
|
||||
return r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:17:0x004d, code lost:
|
||||
|
||||
if (r1.delete(r6, r5) == r0) goto L17;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r6) {
|
||||
/*
|
||||
r5 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r5.f4752a
|
||||
r2 = 2
|
||||
r3 = 1
|
||||
if (r1 == 0) goto L1b
|
||||
if (r1 == r3) goto L17
|
||||
if (r1 != r2) goto Lf
|
||||
goto L17
|
||||
Lf:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L17:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L50
|
||||
L1b:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
com.adif.elcanomovil.domain.entities.subscription.Subscription r6 = r5.f4753b
|
||||
r1 = 0
|
||||
r6.setActive(r1)
|
||||
com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository r1 = r5.f4755d
|
||||
boolean r4 = r5.f4754c
|
||||
if (r4 == 0) goto L3f
|
||||
com.adif.elcanomovil.serviceStorage.database.SubscriptionsDao r2 = com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository.access$getSubscriptionsDao$p(r1)
|
||||
com.adif.elcanomovil.repositories.subscriptions.SubscriptionMapper r1 = com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository.access$getSubscriptionMapper$p(r1)
|
||||
com.adif.elcanomovil.serviceStorage.model.subscriptions.SubscriptionEntity r6 = r1.domainToEntity(r6)
|
||||
r5.f4752a = r3
|
||||
java.lang.Object r5 = r2.insert(r6, r5)
|
||||
if (r5 != r0) goto L50
|
||||
goto L4f
|
||||
L3f:
|
||||
com.adif.elcanomovil.serviceStorage.database.SubscriptionsDao r1 = com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository.access$getSubscriptionsDao$p(r1)
|
||||
int r6 = r6.getId()
|
||||
r5.f4752a = r2
|
||||
java.lang.Object r5 = r1.delete(r6, r5)
|
||||
if (r5 != r0) goto L50
|
||||
L4f:
|
||||
return r0
|
||||
L50:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.subscriptions.j.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.subscription.Subscription;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.BuildersKt;
|
||||
import kotlinx.coroutines.CoroutineDispatcher;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class k extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4756a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ Subscription f4757b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ boolean f4758c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4759d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public k(Subscription subscription, DefaultSubscriptionsRepository defaultSubscriptionsRepository, Continuation continuation, boolean z3) {
|
||||
super(2, continuation);
|
||||
this.f4757b = subscription;
|
||||
this.f4758c = z3;
|
||||
this.f4759d = defaultSubscriptionsRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
boolean z3 = this.f4758c;
|
||||
return new k(this.f4757b, this.f4759d, continuation, z3);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((k) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4756a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
CoroutineDispatcher io = Dispatchers.getIO();
|
||||
j jVar = new j(this.f4757b, this.f4759d, null, this.f4758c);
|
||||
this.f4756a = 1;
|
||||
if (BuildersKt.withContext(io, jVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.subscription.Destination;
|
||||
import com.adif.elcanomovil.domain.entities.subscription.Subscription;
|
||||
import com.adif.elcanomovil.serviceStorage.database.SubscriptionsDao;
|
||||
import com.adif.elcanomovil.serviceStorage.model.subscriptions.SubscriptionEntity;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class l extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4760a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4761b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4762c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ Subscription f4763d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4764e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4765f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4766g;
|
||||
public final /* synthetic */ String h;
|
||||
public final /* synthetic */ String i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4767j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4768k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4769l;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public l(Subscription subscription, DefaultSubscriptionsRepository defaultSubscriptionsRepository, String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4761b = str;
|
||||
this.f4762c = str2;
|
||||
this.f4763d = subscription;
|
||||
this.f4764e = str3;
|
||||
this.f4765f = str4;
|
||||
this.f4766g = str5;
|
||||
this.h = str6;
|
||||
this.i = str7;
|
||||
this.f4767j = str8;
|
||||
this.f4768k = str9;
|
||||
this.f4769l = defaultSubscriptionsRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
String str = this.f4768k;
|
||||
return new l(this.f4763d, this.f4769l, this.f4761b, this.f4762c, this.f4764e, this.f4765f, this.f4766g, this.h, this.i, this.f4767j, str, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((l) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
SubscriptionsDao subscriptionsDao;
|
||||
SubscriptionMapper subscriptionMapper;
|
||||
Destination destination;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4760a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
Subscription subscription = this.f4763d;
|
||||
String str = this.f4761b;
|
||||
if (str != null) {
|
||||
subscription.getOrigin().setId(Integer.parseInt(str));
|
||||
}
|
||||
String str2 = this.f4762c;
|
||||
if (str2 != null && (destination = subscription.getDestination()) != null) {
|
||||
destination.setId(Integer.parseInt(str2));
|
||||
}
|
||||
subscription.setTimeStart(this.f4764e);
|
||||
String str3 = this.f4765f;
|
||||
if (str3 == null) {
|
||||
str3 = "";
|
||||
}
|
||||
subscription.setTimeCenter(str3);
|
||||
subscription.setTimeEnd(this.f4766g);
|
||||
String str4 = this.h;
|
||||
if (str4 == null) {
|
||||
str4 = "";
|
||||
}
|
||||
subscription.setRepeats(str4);
|
||||
String str5 = this.i;
|
||||
if (str5 == null) {
|
||||
str5 = "";
|
||||
}
|
||||
subscription.setSubscriptionType(str5);
|
||||
String str6 = this.f4767j;
|
||||
if (str6 == null) {
|
||||
str6 = "";
|
||||
}
|
||||
subscription.setOperator(str6);
|
||||
String str7 = this.f4768k;
|
||||
subscription.setCommercialProduct(str7 != null ? str7 : "");
|
||||
DefaultSubscriptionsRepository defaultSubscriptionsRepository = this.f4769l;
|
||||
subscriptionsDao = defaultSubscriptionsRepository.subscriptionsDao;
|
||||
subscriptionMapper = defaultSubscriptionsRepository.subscriptionMapper;
|
||||
SubscriptionEntity domainToEntity = subscriptionMapper.domainToEntity(subscription);
|
||||
this.f4760a = 1;
|
||||
if (subscriptionsDao.insert(domainToEntity, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.subscription.Subscription;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.BuildersKt;
|
||||
import kotlinx.coroutines.CoroutineDispatcher;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class m extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4770a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4771b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4772c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ Subscription f4773d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4774e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4775f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4776g;
|
||||
public final /* synthetic */ String h;
|
||||
public final /* synthetic */ String i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4777j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4778k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4779l;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public m(Subscription subscription, DefaultSubscriptionsRepository defaultSubscriptionsRepository, String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4771b = str;
|
||||
this.f4772c = str2;
|
||||
this.f4773d = subscription;
|
||||
this.f4774e = str3;
|
||||
this.f4775f = str4;
|
||||
this.f4776g = str5;
|
||||
this.h = str6;
|
||||
this.i = str7;
|
||||
this.f4777j = str8;
|
||||
this.f4778k = str9;
|
||||
this.f4779l = defaultSubscriptionsRepository;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
String str = this.f4778k;
|
||||
return new m(this.f4773d, this.f4779l, this.f4771b, this.f4772c, this.f4774e, this.f4775f, this.f4776g, this.h, this.i, this.f4777j, str, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((m) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4770a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
CoroutineDispatcher io = Dispatchers.getIO();
|
||||
DefaultSubscriptionsRepository defaultSubscriptionsRepository = this.f4779l;
|
||||
String str = this.f4777j;
|
||||
String str2 = this.f4778k;
|
||||
l lVar = new l(this.f4773d, defaultSubscriptionsRepository, this.f4771b, this.f4772c, this.f4774e, this.f4775f, this.f4776g, this.h, this.i, str, str2, null);
|
||||
this.f4770a = 1;
|
||||
if (BuildersKt.withContext(io, lVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.subscription.Subscription;
|
||||
import com.adif.elcanomovil.serviceStorage.database.SubscriptionsDao;
|
||||
import com.adif.elcanomovil.serviceStorage.model.subscriptions.SubscriptionEntity;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class n extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4780a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4781b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ Subscription f4782c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public n(Subscription subscription, DefaultSubscriptionsRepository defaultSubscriptionsRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4781b = defaultSubscriptionsRepository;
|
||||
this.f4782c = subscription;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new n(this.f4782c, this.f4781b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((n) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
SubscriptionsDao subscriptionsDao;
|
||||
SubscriptionMapper subscriptionMapper;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4780a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
DefaultSubscriptionsRepository defaultSubscriptionsRepository = this.f4781b;
|
||||
subscriptionsDao = defaultSubscriptionsRepository.subscriptionsDao;
|
||||
subscriptionMapper = defaultSubscriptionsRepository.subscriptionMapper;
|
||||
SubscriptionEntity domainToEntity = subscriptionMapper.domainToEntity(this.f4782c);
|
||||
this.f4780a = 1;
|
||||
if (subscriptionsDao.insert(domainToEntity, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.subscription.Subscription;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.BuildersKt;
|
||||
import kotlinx.coroutines.CoroutineDispatcher;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class o extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4783a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4784b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ Subscription f4785c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public o(Subscription subscription, DefaultSubscriptionsRepository defaultSubscriptionsRepository, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4784b = defaultSubscriptionsRepository;
|
||||
this.f4785c = subscription;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new o(this.f4785c, this.f4784b, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((o) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4783a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
CoroutineDispatcher io = Dispatchers.getIO();
|
||||
n nVar = new n(this.f4785c, this.f4784b, null);
|
||||
this.f4783a = 1;
|
||||
if (BuildersKt.withContext(io, nVar, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.subscription.Subscription;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class p extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4786a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ Subscription f4787b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4788c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4789d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4790e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4791f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4792g;
|
||||
public final /* synthetic */ String h;
|
||||
public final /* synthetic */ String i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4793j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4794k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4795l;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public p(Subscription subscription, DefaultSubscriptionsRepository defaultSubscriptionsRepository, String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4787b = subscription;
|
||||
this.f4788c = str;
|
||||
this.f4789d = str2;
|
||||
this.f4790e = str3;
|
||||
this.f4791f = str4;
|
||||
this.f4792g = str5;
|
||||
this.h = str6;
|
||||
this.i = str7;
|
||||
this.f4793j = str8;
|
||||
this.f4794k = defaultSubscriptionsRepository;
|
||||
this.f4795l = str9;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new p(this.f4787b, this.f4794k, this.f4788c, this.f4789d, this.f4790e, this.f4791f, this.f4792g, this.h, this.i, this.f4793j, this.f4795l, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((p) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:18:0x006c, code lost:
|
||||
|
||||
if (r0 == r8) goto L22;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:23:0x00b8, code lost:
|
||||
|
||||
if (r0 == r8) goto L22;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r21) {
|
||||
/*
|
||||
r20 = this;
|
||||
r7 = r20
|
||||
java.lang.Object r8 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r0 = r7.f4786a
|
||||
r1 = 2
|
||||
r2 = 1
|
||||
if (r0 == 0) goto L25
|
||||
if (r0 == r2) goto L1e
|
||||
if (r0 != r1) goto L16
|
||||
kotlin.ResultKt.throwOnFailure(r21)
|
||||
r0 = r21
|
||||
goto L6f
|
||||
L16:
|
||||
java.lang.IllegalStateException r0 = new java.lang.IllegalStateException
|
||||
java.lang.String r1 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r0.<init>(r1)
|
||||
throw r0
|
||||
L1e:
|
||||
kotlin.ResultKt.throwOnFailure(r21)
|
||||
r0 = r21
|
||||
goto Lbb
|
||||
L25:
|
||||
kotlin.ResultKt.throwOnFailure(r21)
|
||||
com.adif.elcanomovil.domain.entities.subscription.Subscription r0 = r7.f4787b
|
||||
com.adif.elcanomovil.domain.entities.subscription.SubscriptionType r0 = r0.getTypeSubscription()
|
||||
int[] r3 = com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository$modify$1$response$1$WhenMappings.$EnumSwitchMapping$0
|
||||
int r0 = r0.ordinal()
|
||||
r0 = r3[r0]
|
||||
com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository r3 = r7.f4794k
|
||||
if (r0 == r2) goto L78
|
||||
if (r0 != r1) goto L72
|
||||
com.adif.elcanomovil.serviceNetworking.subscriptions.models.SubscriptionTrainRequest r6 = new com.adif.elcanomovil.serviceNetworking.subscriptions.models.SubscriptionTrainRequest
|
||||
java.lang.String r12 = r7.f4788c
|
||||
java.lang.String r13 = r7.f4791f
|
||||
java.lang.String r10 = "300"
|
||||
java.lang.String r11 = "10"
|
||||
java.lang.String r14 = r7.h
|
||||
java.lang.String r15 = r7.f4793j
|
||||
r9 = r6
|
||||
r9.<init>(r10, r11, r12, r13, r14, r15)
|
||||
com.adif.elcanomovil.serviceNetworking.subscriptions.SubscriptionsService r0 = com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository.access$getSubscriptionsService$p(r3)
|
||||
java.lang.String r2 = com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository.access$getHeader$p(r3)
|
||||
r4 = r3
|
||||
java.lang.String r3 = com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository.access$getPushId(r4)
|
||||
r5 = r4
|
||||
java.lang.String r4 = com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository.access$getDeviceId(r5)
|
||||
java.lang.String r5 = com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository.access$getHeaderAuth$p(r5)
|
||||
r7.f4786a = r1
|
||||
java.lang.String r1 = r7.f4795l
|
||||
java.lang.Object r0 = r0.modifyTrainSubscription(r1, r2, r3, r4, r5, r6, r7)
|
||||
if (r0 != r8) goto L6f
|
||||
goto Lba
|
||||
L6f:
|
||||
retrofit2.Response r0 = (retrofit2.Response) r0
|
||||
return r0
|
||||
L72:
|
||||
kotlin.NoWhenBranchMatchedException r0 = new kotlin.NoWhenBranchMatchedException
|
||||
r0.<init>()
|
||||
throw r0
|
||||
L78:
|
||||
r5 = r3
|
||||
com.adif.elcanomovil.serviceNetworking.subscriptions.models.SubscriptionRequest r6 = new com.adif.elcanomovil.serviceNetworking.subscriptions.models.SubscriptionRequest
|
||||
java.lang.String r0 = r7.f4792g
|
||||
java.lang.String r1 = r7.h
|
||||
java.lang.String r10 = "300"
|
||||
java.lang.String r11 = "10"
|
||||
java.lang.String r12 = r7.f4788c
|
||||
java.lang.String r13 = r7.f4789d
|
||||
java.lang.String r14 = r7.f4790e
|
||||
java.lang.String r15 = r7.f4791f
|
||||
java.lang.String r3 = r7.i
|
||||
java.lang.String r4 = r7.f4793j
|
||||
r16 = r0
|
||||
r17 = r1
|
||||
r18 = r3
|
||||
r19 = r4
|
||||
r9 = r6
|
||||
r9.<init>(r10, r11, r12, r13, r14, r15, r16, r17, r18, r19)
|
||||
com.adif.elcanomovil.serviceNetworking.subscriptions.SubscriptionsService r0 = com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository.access$getSubscriptionsService$p(r5)
|
||||
java.lang.String r1 = com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository.access$getHeader$p(r5)
|
||||
java.lang.String r3 = com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository.access$getPushId(r5)
|
||||
java.lang.String r4 = com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository.access$getDeviceId(r5)
|
||||
java.lang.String r5 = com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository.access$getHeaderAuth$p(r5)
|
||||
r7.f4786a = r2
|
||||
r2 = r1
|
||||
java.lang.String r1 = r7.f4795l
|
||||
java.lang.Object r0 = r0.modifyJourneySubscription(r1, r2, r3, r4, r5, r6, r7)
|
||||
if (r0 != r8) goto Lbb
|
||||
Lba:
|
||||
return r8
|
||||
Lbb:
|
||||
retrofit2.Response r0 = (retrofit2.Response) r0
|
||||
return r0
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.subscriptions.p.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.subscription.Subscription;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class q extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4796a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4797b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4798c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ Subscription f4799d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4800e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4801f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4802g;
|
||||
public final /* synthetic */ String h;
|
||||
public final /* synthetic */ String i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4803j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4804k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4805l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4806m;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4807n;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public q(DefaultSubscriptionsRepository defaultSubscriptionsRepository, Subscription subscription, String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String str10, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4798c = defaultSubscriptionsRepository;
|
||||
this.f4799d = subscription;
|
||||
this.f4800e = str;
|
||||
this.f4801f = str2;
|
||||
this.f4802g = str3;
|
||||
this.h = str4;
|
||||
this.i = str5;
|
||||
this.f4803j = str6;
|
||||
this.f4804k = str7;
|
||||
this.f4805l = str8;
|
||||
this.f4806m = str9;
|
||||
this.f4807n = str10;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
q qVar = new q(this.f4798c, this.f4799d, this.f4800e, this.f4801f, this.f4802g, this.h, this.i, this.f4803j, this.f4804k, this.f4805l, this.f4806m, this.f4807n, continuation);
|
||||
qVar.f4797b = obj;
|
||||
return qVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((q) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't wrap try/catch for region: R(23:1|(1:(5:(5:(1:(1:(3:8|9|10)(2:12|13))(1:14))(1:23)|15|16|9|10)(10:24|25|26|27|28|29|30|(4:32|33|34|(2:36|37))(2:39|(1:41))|9|10)|20|(1:22)|9|10)(1:49))(2:78|(2:80|81))|50|51|52|53|54|55|56|57|58|59|60|61|62|(1:64)|28|29|30|(0)(0)|9|10|(1:(0))) */
|
||||
/* JADX WARN: Can't wrap try/catch for region: R(5:(1:(1:(3:8|9|10)(2:12|13))(1:14))(1:23)|15|16|9|10) */
|
||||
/* JADX WARN: Code restructure failed: missing block: B:18:0x0033, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:19:0x0034, code lost:
|
||||
|
||||
r13 = r15;
|
||||
r15 = r2;
|
||||
r2 = null;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:42:0x00fc, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:43:0x00fd, code lost:
|
||||
|
||||
r2 = r2;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:44:0x00fe, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:45:0x00ff, code lost:
|
||||
|
||||
r2 = null;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:66:0x011d, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:67:0x011e, code lost:
|
||||
|
||||
r13 = r15;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:69:0x0121, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:70:0x0122, code lost:
|
||||
|
||||
r13 = r15;
|
||||
r2 = null;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:71:0x0125, code lost:
|
||||
|
||||
r15 = r7;
|
||||
r2 = r2;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:73:0x0127, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:74:0x0128, code lost:
|
||||
|
||||
r2 = null;
|
||||
r13 = r15;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:76:0x012b, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:77:0x012c, code lost:
|
||||
|
||||
r2 = null;
|
||||
r13 = r15;
|
||||
r15 = r7;
|
||||
*/
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:? A[RETURN, SYNTHETIC] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:32:0x00d1 A[Catch: all -> 0x00fe, TRY_LEAVE, TryCatch #6 {all -> 0x00fe, blocks: (B:29:0x00c7, B:32:0x00d1), top: B:28:0x00c7 }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:39:0x0101 A[Catch: all -> 0x00fc, TRY_LEAVE, TryCatch #4 {all -> 0x00fc, blocks: (B:34:0x00ec, B:39:0x0101), top: B:30:0x00cf }] */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r23) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 324
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.subscriptions.q.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import com.adif.elcanomovil.serviceNetworking.subscriptions.SubscriptionsService;
|
||||
import com.adif.elcanomovil.serviceNetworking.subscriptions.models.SubscriptionRequest;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class r extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4808a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4809b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4810c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ SubscriptionRequest f4811d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public r(DefaultSubscriptionsRepository defaultSubscriptionsRepository, String str, SubscriptionRequest subscriptionRequest, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4809b = defaultSubscriptionsRepository;
|
||||
this.f4810c = str;
|
||||
this.f4811d = subscriptionRequest;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
return new r(this.f4809b, this.f4810c, this.f4811d, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((r) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
SubscriptionsService subscriptionsService;
|
||||
String str;
|
||||
String pushId;
|
||||
String deviceId;
|
||||
String str2;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f4808a;
|
||||
if (i != 0) {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return obj;
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
DefaultSubscriptionsRepository defaultSubscriptionsRepository = this.f4809b;
|
||||
subscriptionsService = defaultSubscriptionsRepository.subscriptionsService;
|
||||
str = defaultSubscriptionsRepository.header;
|
||||
pushId = defaultSubscriptionsRepository.getPushId();
|
||||
deviceId = defaultSubscriptionsRepository.getDeviceId();
|
||||
str2 = defaultSubscriptionsRepository.headerAuth;
|
||||
this.f4808a = 1;
|
||||
Object muteSubscription = subscriptionsService.muteSubscription(this.f4810c, str, pushId, deviceId, str2, this.f4811d, this);
|
||||
return muteSubscription == coroutine_suspended ? coroutine_suspended : muteSubscription;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
package com.adif.elcanomovil.repositories.subscriptions;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.flow.FlowCollector;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class s extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f4812a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4813b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ DefaultSubscriptionsRepository f4814c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4815d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4816e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4817f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ String f4818g;
|
||||
public final /* synthetic */ String h;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public s(DefaultSubscriptionsRepository defaultSubscriptionsRepository, String str, String str2, String str3, String str4, String str5, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f4814c = defaultSubscriptionsRepository;
|
||||
this.f4815d = str;
|
||||
this.f4816e = str2;
|
||||
this.f4817f = str3;
|
||||
this.f4818g = str4;
|
||||
this.h = str5;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
s sVar = new s(this.f4814c, this.f4815d, this.f4816e, this.f4817f, this.f4818g, this.h, continuation);
|
||||
sVar.f4813b = obj;
|
||||
return sVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((s) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't wrap try/catch for region: R(9:1|(1:2)|(1:(1:(4:(1:(1:(3:9|10|11)(2:13|14))(1:15))(1:17)|16|10|11)(5:18|19|20|21|(4:23|(2:25|26)|10|11)(1:27)))(1:29))(1:40)|30|31|32|(3:34|21|(0)(0))|26|(1:(0))) */
|
||||
/* JADX WARN: Code restructure failed: missing block: B:28:0x00e0, code lost:
|
||||
|
||||
if (r2.emit(r0, r26) == r8) goto L42;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:36:0x00e3, code lost:
|
||||
|
||||
r0 = th;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:37:0x00e4, code lost:
|
||||
|
||||
r2 = r14;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:38:0x00e5, code lost:
|
||||
|
||||
r0 = com.adif.elcanomovil.domain.entities.utils.AsyncResult.INSTANCE.error(r0, null);
|
||||
r26.f4813b = null;
|
||||
r26.f4812a = 5;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:39:0x00f3, code lost:
|
||||
|
||||
if (r2.emit(r0, r26) != r8) goto L43;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:41:0x0065, code lost:
|
||||
|
||||
if (r0.emit(r4, r26) == r8) goto L42;
|
||||
*/
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:23:0x00b8 A[Catch: all -> 0x0033, TryCatch #1 {all -> 0x0033, blocks: (B:16:0x002e, B:19:0x0041, B:21:0x00ae, B:23:0x00b8, B:27:0x00c9), top: B:2:0x0010 }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:27:0x00c9 A[Catch: all -> 0x0033, TRY_LEAVE, TryCatch #1 {all -> 0x0033, blocks: (B:16:0x002e, B:19:0x0041, B:21:0x00ae, B:23:0x00b8, B:27:0x00c9), top: B:2:0x0010 }] */
|
||||
/* JADX WARN: Type inference failed for: r2v0, types: [com.adif.elcanomovil.repositories.subscriptions.DefaultSubscriptionsRepository] */
|
||||
/* JADX WARN: Type inference failed for: r2v1, types: [kotlinx.coroutines.flow.FlowCollector] */
|
||||
/* JADX WARN: Type inference failed for: r2v2 */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r27) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 249
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.repositories.subscriptions.s.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user