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,26 @@
|
||||
package com.adif.elcanomovil.uiTrain.entities;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003¢\u0006\u0002\u0010\u0005R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\u0007¨\u0006\t"}, d2 = {"Lcom/adif/elcanomovil/uiTrain/entities/DateHeader;", "Lcom/adif/elcanomovil/uiTrain/entities/StepItems;", "formattedDate", "", "formattedDateShort", "(Ljava/lang/String;Ljava/lang/String;)V", "getFormattedDate", "()Ljava/lang/String;", "getFormattedDateShort", "ui-train_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class DateHeader implements StepItems {
|
||||
private final String formattedDate;
|
||||
private final String formattedDateShort;
|
||||
|
||||
public DateHeader(String formattedDate, String formattedDateShort) {
|
||||
Intrinsics.checkNotNullParameter(formattedDate, "formattedDate");
|
||||
Intrinsics.checkNotNullParameter(formattedDateShort, "formattedDateShort");
|
||||
this.formattedDate = formattedDate;
|
||||
this.formattedDateShort = formattedDateShort;
|
||||
}
|
||||
|
||||
public final String getFormattedDate() {
|
||||
return this.formattedDate;
|
||||
}
|
||||
|
||||
public final String getFormattedDateShort() {
|
||||
return this.formattedDateShort;
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,8 @@
|
||||
package com.adif.elcanomovil.uiTrain.entities;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\bf\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"Lcom/adif/elcanomovil/uiTrain/entities/StepItems;", "", "ui-train_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public interface StepItems {
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
package com.adif.elcanomovil.uiTrain.entities;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialPathRouteSidesInfo;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.PassthroughDetailsStep;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.PassthroughDetailsStepSide;
|
||||
import com.adif.elcanomovil.domain.entities.compositions.Composition;
|
||||
import com.adif.elcanomovil.domain.entities.compositions.Wagon;
|
||||
import com.adif.elcanomovil.uiTrain.entities.Step;
|
||||
import com.google.firebase.messaging.Constants;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J(\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u00042\f\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\u00070\u00042\f\u0010\b\u001a\b\u0012\u0004\u0012\u00020\t0\u0004¨\u0006\n"}, d2 = {"Lcom/adif/elcanomovil/uiTrain/entities/StepMapper;", "", "()V", "map", "", "Lcom/adif/elcanomovil/uiTrain/entities/Step;", Constants.MessagePayloadKeys.FROM, "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathRouteSidesInfo;", "compositions", "Lcom/adif/elcanomovil/domain/entities/compositions/Composition;", "ui-train_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nStepMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 StepMapper.kt\ncom/adif/elcanomovil/uiTrain/entities/StepMapper\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,181:1\n1864#2,2:182\n288#2,2:184\n1866#2:186\n*S KotlinDebug\n*F\n+ 1 StepMapper.kt\ncom/adif/elcanomovil/uiTrain/entities/StepMapper\n*L\n17#1:182,2\n55#1:184,2\n17#1:186\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class StepMapper {
|
||||
public final List<Step> map(List<CommercialPathRouteSidesInfo> from, List<Composition> compositions) {
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides;
|
||||
Step step;
|
||||
PassthroughDetailsStepSide arrivalPassthroughStepSides;
|
||||
PassthroughDetailsStepSide arrivalPassthroughStepSides2;
|
||||
String observation;
|
||||
PassthroughDetailsStepSide arrivalPassthroughStepSides3;
|
||||
String platform;
|
||||
boolean platformMuted;
|
||||
boolean z3;
|
||||
PassthroughDetailsStepSide arrivalPassthroughStepSides4;
|
||||
String str;
|
||||
Object obj;
|
||||
List<Wagon> emptyList;
|
||||
String ctcPlatform;
|
||||
String sitraPlatform;
|
||||
String plannedPlatform;
|
||||
String operatorPlatform;
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides2;
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides3;
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides4;
|
||||
Intrinsics.checkNotNullParameter(from, "from");
|
||||
Intrinsics.checkNotNullParameter(compositions, "compositions");
|
||||
List reversed = CollectionsKt.reversed(from.get(0).getPassthroughSteps());
|
||||
ArrayList arrayList = new ArrayList();
|
||||
int i = 0;
|
||||
for (Object obj2 : reversed) {
|
||||
int i4 = i + 1;
|
||||
if (i < 0) {
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
}
|
||||
PassthroughDetailsStep passthroughDetailsStep = (PassthroughDetailsStep) obj2;
|
||||
boolean z4 = i > 0;
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides5 = passthroughDetailsStep.getDeparturePassthroughStepSides();
|
||||
boolean z5 = (departurePassthroughStepSides5 != null && departurePassthroughStepSides5.isAudited()) || !((departurePassthroughStepSides = passthroughDetailsStep.getDeparturePassthroughStepSides()) == null || departurePassthroughStepSides.isSuppressed() || (step = (Step) CollectionsKt.getOrNull(arrayList, i + (-1))) == null || !step.getIsArrivalAudited());
|
||||
PassthroughDetailsStepSide arrivalPassthroughStepSides5 = passthroughDetailsStep.getArrivalPassthroughStepSides();
|
||||
boolean z6 = (arrivalPassthroughStepSides5 != null && arrivalPassthroughStepSides5.isAudited()) || (i > 0 && (arrivalPassthroughStepSides = passthroughDetailsStep.getArrivalPassthroughStepSides()) != null && !arrivalPassthroughStepSides.isSuppressed() && z5);
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides6 = z4 ? passthroughDetailsStep.getDeparturePassthroughStepSides() : passthroughDetailsStep.getArrivalPassthroughStepSides();
|
||||
Date plannedDate = passthroughDetailsStep.plannedDate(z4);
|
||||
String access$plannedTime = StepMapperKt.access$plannedTime(passthroughDetailsStep, z4, from.get(0).getCommercialPathInfo().isCercanias());
|
||||
long access$plannedTimeLong = StepMapperKt.access$plannedTimeLong(passthroughDetailsStep, z4);
|
||||
String access$delayedTime = StepMapperKt.access$delayedTime(passthroughDetailsStep, z4);
|
||||
Date access$myPlannedDate = StepMapperKt.access$myPlannedDate(passthroughDetailsStep, z4, from.get(0).getCommercialPathInfo().isCercanias());
|
||||
String obj3 = StepMapperKt.access$state(passthroughDetailsStep, z4).toString();
|
||||
String stationCode = passthroughDetailsStep.getStationCode();
|
||||
String str2 = (!z4 ? !((arrivalPassthroughStepSides2 = passthroughDetailsStep.getArrivalPassthroughStepSides()) == null || (observation = arrivalPassthroughStepSides2.getObservation()) == null) : !((departurePassthroughStepSides4 = passthroughDetailsStep.getDeparturePassthroughStepSides()) == null || (observation = departurePassthroughStepSides4.getObservation()) == null)) ? "" : observation;
|
||||
String str3 = (!z4 ? !((arrivalPassthroughStepSides3 = passthroughDetailsStep.getArrivalPassthroughStepSides()) == null || (platform = arrivalPassthroughStepSides3.getPlatform()) == null) : !((departurePassthroughStepSides3 = passthroughDetailsStep.getDeparturePassthroughStepSides()) == null || (platform = departurePassthroughStepSides3.getPlatform()) == null)) ? "" : platform;
|
||||
if (z4) {
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides7 = passthroughDetailsStep.getDeparturePassthroughStepSides();
|
||||
if (departurePassthroughStepSides7 != null) {
|
||||
platformMuted = departurePassthroughStepSides7.getPlatformMuted();
|
||||
z3 = platformMuted;
|
||||
}
|
||||
z3 = false;
|
||||
} else {
|
||||
PassthroughDetailsStepSide arrivalPassthroughStepSides6 = passthroughDetailsStep.getArrivalPassthroughStepSides();
|
||||
if (arrivalPassthroughStepSides6 != null) {
|
||||
platformMuted = arrivalPassthroughStepSides6.getPlatformMuted();
|
||||
z3 = platformMuted;
|
||||
}
|
||||
z3 = false;
|
||||
}
|
||||
boolean z7 = !z4 ? (arrivalPassthroughStepSides4 = passthroughDetailsStep.getArrivalPassthroughStepSides()) == null || !arrivalPassthroughStepSides4.isPlatformWarning() : (departurePassthroughStepSides2 = passthroughDetailsStep.getDeparturePassthroughStepSides()) == null || !departurePassthroughStepSides2.isPlatformWarning();
|
||||
Step.State access$state = StepMapperKt.access$state(passthroughDetailsStep, false);
|
||||
Step.State access$state2 = StepMapperKt.access$state(passthroughDetailsStep, true);
|
||||
Iterator<T> it = compositions.iterator();
|
||||
while (true) {
|
||||
str = null;
|
||||
if (!it.hasNext()) {
|
||||
obj = null;
|
||||
break;
|
||||
}
|
||||
obj = it.next();
|
||||
Composition composition = (Composition) obj;
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides8 = passthroughDetailsStep.getDeparturePassthroughStepSides();
|
||||
if (departurePassthroughStepSides8 != null && composition.getPlannedTime() == departurePassthroughStepSides8.getPlannedTime()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
Composition composition2 = (Composition) obj;
|
||||
if (composition2 == null || (emptyList = composition2.getCoachs()) == null) {
|
||||
emptyList = CollectionsKt.emptyList();
|
||||
}
|
||||
List<Wagon> list = emptyList;
|
||||
String str4 = (departurePassthroughStepSides6 == null || (operatorPlatform = departurePassthroughStepSides6.getOperatorPlatform()) == null) ? "" : operatorPlatform;
|
||||
String str5 = (departurePassthroughStepSides6 == null || (plannedPlatform = departurePassthroughStepSides6.getPlannedPlatform()) == null) ? "-" : plannedPlatform;
|
||||
String str6 = (departurePassthroughStepSides6 == null || (sitraPlatform = departurePassthroughStepSides6.getSitraPlatform()) == null) ? "-" : sitraPlatform;
|
||||
String str7 = (departurePassthroughStepSides6 == null || (ctcPlatform = departurePassthroughStepSides6.getCtcPlatform()) == null) ? "-" : ctcPlatform;
|
||||
String technicalNumber = departurePassthroughStepSides6 != null ? departurePassthroughStepSides6.getTechnicalNumber() : null;
|
||||
String resultantPlatform = departurePassthroughStepSides6 != null ? departurePassthroughStepSides6.getResultantPlatform() : null;
|
||||
if (departurePassthroughStepSides6 != null) {
|
||||
str = departurePassthroughStepSides6.getPreassignedPlatform();
|
||||
}
|
||||
arrayList.add(new Step(plannedDate, access$plannedTime, access$plannedTimeLong, access$delayedTime, access$myPlannedDate, obj3, stationCode, null, str2, str3, z7, z3, access$state, access$state2, z6, z5, list, str4, str5, str6, str7, technicalNumber, resultantPlatform, str, 128, null));
|
||||
i = i4;
|
||||
}
|
||||
return CollectionsKt.toList(CollectionsKt.reversed(arrayList));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
package com.adif.elcanomovil.uiTrain.entities;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.circulation.PassthroughDetailsStep;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.PassthroughDetailsStepSide;
|
||||
import com.adif.elcanomovil.domain.extensions.LongKt;
|
||||
import com.adif.elcanomovil.uiTrain.entities.Step;
|
||||
import com.google.firebase.remoteconfig.RemoteConfigConstants;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a\u0014\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0004H\u0002\u001a\u0014\u0010\u0005\u001a\u00020\u0006*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0004H\u0002\u001a\u001c\u0010\u0007\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00042\u0006\u0010\b\u001a\u00020\u0004H\u0002\u001a\u001c\u0010\t\u001a\u00020\u0006*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00042\u0006\u0010\b\u001a\u00020\u0004H\u0002\u001a\u0014\u0010\n\u001a\u00020\u0006*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0004H\u0002\u001a\u0014\u0010\u000b\u001a\u00020\f*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0004H\u0002\u001a\u0014\u0010\r\u001a\u00020\u000e*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0004H\u0002¨\u0006\u000f"}, d2 = {"delayedDate", "Ljava/util/Date;", "Lcom/adif/elcanomovil/domain/entities/circulation/PassthroughDetailsStep;", "isDeparture", "", "delayedTime", "", "myPlannedDate", "isCercanias", "plannedTime", "plannedTimeCercanias", "plannedTimeLong", "", RemoteConfigConstants.ResponseFieldKey.STATE, "Lcom/adif/elcanomovil/uiTrain/entities/Step$State;", "ui-train_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class StepMapperKt {
|
||||
public static final /* synthetic */ String access$delayedTime(PassthroughDetailsStep passthroughDetailsStep, boolean z3) {
|
||||
return delayedTime(passthroughDetailsStep, z3);
|
||||
}
|
||||
|
||||
public static final /* synthetic */ Date access$myPlannedDate(PassthroughDetailsStep passthroughDetailsStep, boolean z3, boolean z4) {
|
||||
return myPlannedDate(passthroughDetailsStep, z3, z4);
|
||||
}
|
||||
|
||||
public static final /* synthetic */ String access$plannedTime(PassthroughDetailsStep passthroughDetailsStep, boolean z3, boolean z4) {
|
||||
return plannedTime(passthroughDetailsStep, z3, z4);
|
||||
}
|
||||
|
||||
public static final /* synthetic */ long access$plannedTimeLong(PassthroughDetailsStep passthroughDetailsStep, boolean z3) {
|
||||
return plannedTimeLong(passthroughDetailsStep, z3);
|
||||
}
|
||||
|
||||
public static final /* synthetic */ Step.State access$state(PassthroughDetailsStep passthroughDetailsStep, boolean z3) {
|
||||
return state(passthroughDetailsStep, z3);
|
||||
}
|
||||
|
||||
private static final Date delayedDate(PassthroughDetailsStep passthroughDetailsStep, boolean z3) {
|
||||
Date delayedDate;
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides = z3 ? passthroughDetailsStep.getDeparturePassthroughStepSides() : passthroughDetailsStep.getArrivalPassthroughStepSides();
|
||||
int i = 0;
|
||||
if (departurePassthroughStepSides != null && departurePassthroughStepSides.getShowDelay() && departurePassthroughStepSides != null) {
|
||||
i = departurePassthroughStepSides.getForecastedOrAuditedDelay();
|
||||
}
|
||||
return (departurePassthroughStepSides == null || (delayedDate = LongKt.getDelayedDate(departurePassthroughStepSides.getPlannedTime(), i)) == null) ? passthroughDetailsStep.plannedDate(z3) : delayedDate;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final String delayedTime(PassthroughDetailsStep passthroughDetailsStep, boolean z3) {
|
||||
Date date;
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides = z3 ? passthroughDetailsStep.getDeparturePassthroughStepSides() : passthroughDetailsStep.getArrivalPassthroughStepSides();
|
||||
int i = 0;
|
||||
if (departurePassthroughStepSides != null && departurePassthroughStepSides.getShowDelay() && departurePassthroughStepSides != null) {
|
||||
i = departurePassthroughStepSides.getForecastedOrAuditedDelay();
|
||||
}
|
||||
if (departurePassthroughStepSides == null || (date = LongKt.getDelayedDate(departurePassthroughStepSides.getPlannedTime(), i)) == null) {
|
||||
date = new Date();
|
||||
}
|
||||
String format = new SimpleDateFormat("HH:mm", Locale.ENGLISH).format(date);
|
||||
Intrinsics.checkNotNullExpressionValue(format, "format(...)");
|
||||
return format;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Date myPlannedDate(PassthroughDetailsStep passthroughDetailsStep, boolean z3, boolean z4) {
|
||||
if (z4) {
|
||||
return passthroughDetailsStep.plannedDate(z3);
|
||||
}
|
||||
Date date = new Date();
|
||||
Long l4 = null;
|
||||
if (z3) {
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides = passthroughDetailsStep.getDeparturePassthroughStepSides();
|
||||
if (departurePassthroughStepSides != null) {
|
||||
l4 = Long.valueOf(departurePassthroughStepSides.getPlannedTime());
|
||||
}
|
||||
} else {
|
||||
PassthroughDetailsStepSide arrivalPassthroughStepSides = passthroughDetailsStep.getArrivalPassthroughStepSides();
|
||||
if (arrivalPassthroughStepSides != null) {
|
||||
l4 = Long.valueOf(arrivalPassthroughStepSides.getPlannedTime());
|
||||
}
|
||||
}
|
||||
if (l4 != null) {
|
||||
date.setTime(l4.longValue());
|
||||
}
|
||||
return date;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final String plannedTime(PassthroughDetailsStep passthroughDetailsStep, boolean z3, boolean z4) {
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH:mm", Locale.ENGLISH);
|
||||
if (z4) {
|
||||
return plannedTimeCercanias(passthroughDetailsStep, z3);
|
||||
}
|
||||
Long l4 = null;
|
||||
if (z3) {
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides = passthroughDetailsStep.getDeparturePassthroughStepSides();
|
||||
if (departurePassthroughStepSides != null) {
|
||||
l4 = Long.valueOf(departurePassthroughStepSides.getPlannedTime());
|
||||
}
|
||||
} else {
|
||||
PassthroughDetailsStepSide arrivalPassthroughStepSides = passthroughDetailsStep.getArrivalPassthroughStepSides();
|
||||
if (arrivalPassthroughStepSides != null) {
|
||||
l4 = Long.valueOf(arrivalPassthroughStepSides.getPlannedTime());
|
||||
}
|
||||
}
|
||||
String format = simpleDateFormat.format(l4);
|
||||
Intrinsics.checkNotNullExpressionValue(format, "format(...)");
|
||||
return format;
|
||||
}
|
||||
|
||||
private static final String plannedTimeCercanias(PassthroughDetailsStep passthroughDetailsStep, boolean z3) {
|
||||
String format = new SimpleDateFormat("HH:mm", Locale.ENGLISH).format(Long.valueOf(passthroughDetailsStep.plannedDate(z3).getTime()));
|
||||
Intrinsics.checkNotNullExpressionValue(format, "format(...)");
|
||||
return format;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final long plannedTimeLong(PassthroughDetailsStep passthroughDetailsStep, boolean z3) {
|
||||
Long l4 = null;
|
||||
if (z3) {
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides = passthroughDetailsStep.getDeparturePassthroughStepSides();
|
||||
if (departurePassthroughStepSides != null) {
|
||||
l4 = Long.valueOf(departurePassthroughStepSides.getPlannedTime());
|
||||
}
|
||||
} else {
|
||||
PassthroughDetailsStepSide arrivalPassthroughStepSides = passthroughDetailsStep.getArrivalPassthroughStepSides();
|
||||
if (arrivalPassthroughStepSides != null) {
|
||||
l4 = Long.valueOf(arrivalPassthroughStepSides.getPlannedTime());
|
||||
}
|
||||
}
|
||||
if (l4 != null) {
|
||||
return l4.longValue();
|
||||
}
|
||||
return 0L;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Step.State state(PassthroughDetailsStep passthroughDetailsStep, boolean z3) {
|
||||
int forecastedOrAuditedDelay;
|
||||
Boolean bool = null;
|
||||
if (z3) {
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides = passthroughDetailsStep.getDeparturePassthroughStepSides();
|
||||
if (departurePassthroughStepSides != null) {
|
||||
bool = Boolean.valueOf(departurePassthroughStepSides.isSuppressed());
|
||||
}
|
||||
} else {
|
||||
PassthroughDetailsStepSide arrivalPassthroughStepSides = passthroughDetailsStep.getArrivalPassthroughStepSides();
|
||||
if (arrivalPassthroughStepSides != null) {
|
||||
bool = Boolean.valueOf(arrivalPassthroughStepSides.isSuppressed());
|
||||
}
|
||||
}
|
||||
boolean booleanValue = bool != null ? bool.booleanValue() : false;
|
||||
if (z3) {
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides2 = passthroughDetailsStep.getDeparturePassthroughStepSides();
|
||||
if (departurePassthroughStepSides2 != null) {
|
||||
forecastedOrAuditedDelay = departurePassthroughStepSides2.getForecastedOrAuditedDelay();
|
||||
}
|
||||
forecastedOrAuditedDelay = 0;
|
||||
} else {
|
||||
PassthroughDetailsStepSide arrivalPassthroughStepSides2 = passthroughDetailsStep.getArrivalPassthroughStepSides();
|
||||
if (arrivalPassthroughStepSides2 != null) {
|
||||
forecastedOrAuditedDelay = arrivalPassthroughStepSides2.getForecastedOrAuditedDelay();
|
||||
}
|
||||
forecastedOrAuditedDelay = 0;
|
||||
}
|
||||
return booleanValue ? Step.State.SUPPRESSED : forecastedOrAuditedDelay > 0 ? Step.State.DELAYED : Step.State.RUNNING;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
package com.adif.elcanomovil.uiTrain.entities;
|
||||
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.NavArguments;
|
||||
import com.adif.elcanomovil.domain.entities.compositions.Wagon;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0019\u0018\u00002\u00020\u0001Bk\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0003\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\u0007\u0012\u0006\u0010\t\u001a\u00020\n\u0012\u0006\u0010\u000b\u001a\u00020\f\u0012\f\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u000f0\u000e\u0012\b\u0010\u0010\u001a\u0004\u0018\u00010\u0003\u0012\f\u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\u00120\u000e\u0012\u0006\u0010\u0013\u001a\u00020\f¢\u0006\u0002\u0010\u0014R\u0011\u0010\u0005\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\u0016R\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0016R \u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\u00120\u000eX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0018\u0010\u0019\"\u0004\b\u001a\u0010\u001bR\u0011\u0010\t\u001a\u00020\n¢\u0006\b\n\u0000\u001a\u0004\b\u001c\u0010\u001dR\u0011\u0010\b\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u001e\u0010\u001fR\u001a\u0010\u0013\u001a\u00020\fX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b \u0010!\"\u0004\b\"\u0010#R\u0011\u0010\u000b\u001a\u00020\f¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010!R\u001c\u0010\u0010\u001a\u0004\u0018\u00010\u0003X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b$\u0010\u0016\"\u0004\b%\u0010&R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b'\u0010\u0016R\u0011\u0010\u0006\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b(\u0010\u001fR \u0010\r\u001a\b\u0012\u0004\u0012\u00020\u000f0\u000eX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b)\u0010\u0019\"\u0004\b*\u0010\u001b¨\u0006+"}, d2 = {"Lcom/adif/elcanomovil/uiTrain/entities/TrainInfo;", "", NavArguments.ARG_DYNAMIC_LINKS_OPERATOR, "", NavArguments.ARG_DYNAMIC_LINKS_COMMERCIAL_PRODUCT, NavArguments.ARG_DYNAMIC_LINKS_COMMERCIAL_NUMBER, "originStation", "Lcom/adif/elcanomovil/uiTrain/entities/TrainInfoStation;", "destinationStation", "date", "Ljava/util/Date;", "isCercanias", "", "steps", "", "Lcom/adif/elcanomovil/uiTrain/entities/StepItems;", "observations", "composition", "Lcom/adif/elcanomovil/domain/entities/compositions/Wagon;", "extended", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/adif/elcanomovil/uiTrain/entities/TrainInfoStation;Lcom/adif/elcanomovil/uiTrain/entities/TrainInfoStation;Ljava/util/Date;ZLjava/util/List;Ljava/lang/String;Ljava/util/List;Z)V", "getCommercialNumber", "()Ljava/lang/String;", "getCommercialProduct", "getComposition", "()Ljava/util/List;", "setComposition", "(Ljava/util/List;)V", "getDate", "()Ljava/util/Date;", "getDestinationStation", "()Lcom/adif/elcanomovil/uiTrain/entities/TrainInfoStation;", "getExtended", "()Z", "setExtended", "(Z)V", "getObservations", "setObservations", "(Ljava/lang/String;)V", "getOperator", "getOriginStation", "getSteps", "setSteps", "ui-train_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class TrainInfo {
|
||||
private final String commercialNumber;
|
||||
private final String commercialProduct;
|
||||
private List<? extends Wagon> composition;
|
||||
private final Date date;
|
||||
private final TrainInfoStation destinationStation;
|
||||
private boolean extended;
|
||||
private final boolean isCercanias;
|
||||
private String observations;
|
||||
private final String operator;
|
||||
private final TrainInfoStation originStation;
|
||||
private List<? extends StepItems> steps;
|
||||
|
||||
public TrainInfo(String operator, String commercialProduct, String commercialNumber, TrainInfoStation originStation, TrainInfoStation destinationStation, Date date, boolean z3, List<? extends StepItems> steps, String str, List<? extends Wagon> composition, boolean z4) {
|
||||
Intrinsics.checkNotNullParameter(operator, "operator");
|
||||
Intrinsics.checkNotNullParameter(commercialProduct, "commercialProduct");
|
||||
Intrinsics.checkNotNullParameter(commercialNumber, "commercialNumber");
|
||||
Intrinsics.checkNotNullParameter(originStation, "originStation");
|
||||
Intrinsics.checkNotNullParameter(destinationStation, "destinationStation");
|
||||
Intrinsics.checkNotNullParameter(date, "date");
|
||||
Intrinsics.checkNotNullParameter(steps, "steps");
|
||||
Intrinsics.checkNotNullParameter(composition, "composition");
|
||||
this.operator = operator;
|
||||
this.commercialProduct = commercialProduct;
|
||||
this.commercialNumber = commercialNumber;
|
||||
this.originStation = originStation;
|
||||
this.destinationStation = destinationStation;
|
||||
this.date = date;
|
||||
this.isCercanias = z3;
|
||||
this.steps = steps;
|
||||
this.observations = str;
|
||||
this.composition = composition;
|
||||
this.extended = z4;
|
||||
}
|
||||
|
||||
public final String getCommercialNumber() {
|
||||
return this.commercialNumber;
|
||||
}
|
||||
|
||||
public final String getCommercialProduct() {
|
||||
return this.commercialProduct;
|
||||
}
|
||||
|
||||
public final List<Wagon> getComposition() {
|
||||
return this.composition;
|
||||
}
|
||||
|
||||
public final Date getDate() {
|
||||
return this.date;
|
||||
}
|
||||
|
||||
public final TrainInfoStation getDestinationStation() {
|
||||
return this.destinationStation;
|
||||
}
|
||||
|
||||
public final boolean getExtended() {
|
||||
return this.extended;
|
||||
}
|
||||
|
||||
public final String getObservations() {
|
||||
return this.observations;
|
||||
}
|
||||
|
||||
public final String getOperator() {
|
||||
return this.operator;
|
||||
}
|
||||
|
||||
public final TrainInfoStation getOriginStation() {
|
||||
return this.originStation;
|
||||
}
|
||||
|
||||
public final List<StepItems> getSteps() {
|
||||
return this.steps;
|
||||
}
|
||||
|
||||
/* renamed from: isCercanias, reason: from getter */
|
||||
public final boolean getIsCercanias() {
|
||||
return this.isCercanias;
|
||||
}
|
||||
|
||||
public final void setComposition(List<? extends Wagon> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<set-?>");
|
||||
this.composition = list;
|
||||
}
|
||||
|
||||
public final void setExtended(boolean z3) {
|
||||
this.extended = z3;
|
||||
}
|
||||
|
||||
public final void setObservations(String str) {
|
||||
this.observations = str;
|
||||
}
|
||||
|
||||
public final void setSteps(List<? extends StepItems> list) {
|
||||
Intrinsics.checkNotNullParameter(list, "<set-?>");
|
||||
this.steps = list;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.adif.elcanomovil.uiTrain.entities;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialPathRouteSidesInfo;
|
||||
import com.adif.elcanomovil.domain.entities.compositions.Composition;
|
||||
import com.adif.elcanomovil.domain.entities.compositions.Wagon;
|
||||
import com.google.firebase.messaging.Constants;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J.\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u00042\f\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\u00070\u00042\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\t2\u0006\u0010\n\u001a\u00020\u000b¨\u0006\f"}, d2 = {"Lcom/adif/elcanomovil/uiTrain/entities/TrainInfoMapper;", "", "()V", "map", "", "Lcom/adif/elcanomovil/uiTrain/entities/TrainInfo;", Constants.MessagePayloadKeys.FROM, "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathRouteSidesInfo;", "composition", "Lcom/adif/elcanomovil/domain/entities/compositions/Composition;", "extended", "", "ui-train_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nTrainInfoMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 TrainInfoMapper.kt\ncom/adif/elcanomovil/uiTrain/entities/TrainInfoMapper\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,104:1\n1#2:105\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class TrainInfoMapper {
|
||||
public static /* synthetic */ List map$default(TrainInfoMapper trainInfoMapper, List list, Composition composition, boolean z3, int i, Object obj) {
|
||||
if ((i & 2) != 0) {
|
||||
composition = null;
|
||||
}
|
||||
return trainInfoMapper.map(list, composition, z3);
|
||||
}
|
||||
|
||||
public final List<TrainInfo> map(List<CommercialPathRouteSidesInfo> from, Composition composition, boolean extended) {
|
||||
List<Wagon> emptyList;
|
||||
Intrinsics.checkNotNullParameter(from, "from");
|
||||
CommercialPathRouteSidesInfo commercialPathRouteSidesInfo = from.get(0);
|
||||
String operator = commercialPathRouteSidesInfo.getCommercialPathInfo().getOpeProComPro().getOperator();
|
||||
String commercialProduct = commercialPathRouteSidesInfo.getCommercialPathInfo().getOpeProComPro().getCommercialProduct();
|
||||
String commercialNumber = commercialPathRouteSidesInfo.getCommercialPathInfo().getComercialPathKey().getCommercialNumber();
|
||||
TrainInfoStation trainInfoStation = new TrainInfoStation(commercialPathRouteSidesInfo.getCommercialPathInfo().getComercialPathKey().getOriginStationCode(), "", TrainInfoMapperKt.access$plannedTime(commercialPathRouteSidesInfo, true), TrainInfoMapperKt.access$delayedTime(commercialPathRouteSidesInfo, true), commercialPathRouteSidesInfo.platform(0));
|
||||
TrainInfoStation trainInfoStation2 = new TrainInfoStation(commercialPathRouteSidesInfo.getCommercialPathInfo().getComercialPathKey().getDestinationStationCode(), "", TrainInfoMapperKt.access$plannedTime(commercialPathRouteSidesInfo, false), TrainInfoMapperKt.access$delayedTime(commercialPathRouteSidesInfo, false), commercialPathRouteSidesInfo.platform(commercialPathRouteSidesInfo.getPassthroughSteps().size() - 1));
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTimeInMillis(commercialPathRouteSidesInfo.getCommercialPathInfo().getComercialPathKey().getLaunchingDate());
|
||||
Unit unit = Unit.INSTANCE;
|
||||
Date time = calendar.getTime();
|
||||
Intrinsics.checkNotNullExpressionValue(time, "getTime(...)");
|
||||
boolean isCercanias = commercialPathRouteSidesInfo.getCommercialPathInfo().isCercanias();
|
||||
List emptyList2 = CollectionsKt.emptyList();
|
||||
String observation = commercialPathRouteSidesInfo.getCommercialPathInfo().getObservation();
|
||||
if (composition == null || (emptyList = composition.getCoachs()) == null) {
|
||||
emptyList = CollectionsKt.emptyList();
|
||||
}
|
||||
return CollectionsKt.listOf(new TrainInfo(operator, commercialProduct, commercialNumber, trainInfoStation, trainInfoStation2, time, isCercanias, emptyList2, observation, emptyList, extended));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
package com.adif.elcanomovil.uiTrain.entities;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialPathRouteSidesInfo;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.PassthroughDetailsStep;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.PassthroughDetailsStepSide;
|
||||
import com.adif.elcanomovil.domain.extensions.LongKt;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0016\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0003\u001a\u0014\u0010\u0002\u001a\u00020\u0001*\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H\u0002\u001a\u0014\u0010\u0006\u001a\u00020\u0001*\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H\u0002\u001a\u0014\u0010\u0007\u001a\u00020\u0001*\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H\u0002\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000¨\u0006\b"}, d2 = {TrainInfoMapperKt.CERCANIAS, "", "delayedTime", "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathRouteSidesInfo;", "isDeparture", "", "plannedTime", "plannedTimeCercanias", "ui-train_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class TrainInfoMapperKt {
|
||||
public static final String CERCANIAS = "CERCANIAS";
|
||||
|
||||
public static final String delayedTime(CommercialPathRouteSidesInfo commercialPathRouteSidesInfo, boolean z3) {
|
||||
PassthroughDetailsStepSide arrivalPassthroughStepSides;
|
||||
Date date;
|
||||
if (z3) {
|
||||
PassthroughDetailsStep passthroughDetailsStep = (PassthroughDetailsStep) CollectionsKt.firstOrNull((List) commercialPathRouteSidesInfo.getPassthroughSteps());
|
||||
if (passthroughDetailsStep != null) {
|
||||
arrivalPassthroughStepSides = passthroughDetailsStep.getDeparturePassthroughStepSides();
|
||||
}
|
||||
arrivalPassthroughStepSides = null;
|
||||
} else {
|
||||
PassthroughDetailsStep passthroughDetailsStep2 = (PassthroughDetailsStep) CollectionsKt.lastOrNull((List) commercialPathRouteSidesInfo.getPassthroughSteps());
|
||||
if (passthroughDetailsStep2 != null) {
|
||||
arrivalPassthroughStepSides = passthroughDetailsStep2.getArrivalPassthroughStepSides();
|
||||
}
|
||||
arrivalPassthroughStepSides = null;
|
||||
}
|
||||
if (commercialPathRouteSidesInfo.getCommercialPathInfo().isCercanias()) {
|
||||
return "";
|
||||
}
|
||||
Integer valueOf = arrivalPassthroughStepSides != null ? Integer.valueOf(arrivalPassthroughStepSides.getForecastedOrAuditedDelay()) : null;
|
||||
boolean showDelay = arrivalPassthroughStepSides != null ? arrivalPassthroughStepSides.getShowDelay() : true;
|
||||
if (valueOf != null && (arrivalPassthroughStepSides.isAudited() || !showDelay)) {
|
||||
return "";
|
||||
}
|
||||
if (arrivalPassthroughStepSides != null) {
|
||||
long plannedTime = arrivalPassthroughStepSides.getPlannedTime();
|
||||
Intrinsics.checkNotNull(valueOf);
|
||||
date = LongKt.getDelayedDate(plannedTime, valueOf.intValue());
|
||||
} else {
|
||||
date = null;
|
||||
}
|
||||
String format = date != null ? new SimpleDateFormat("HH:mm", Locale.ENGLISH).format(date) : null;
|
||||
return format == null ? "" : format;
|
||||
}
|
||||
|
||||
public static final String plannedTime(CommercialPathRouteSidesInfo commercialPathRouteSidesInfo, boolean z3) {
|
||||
PassthroughDetailsStepSide arrivalPassthroughStepSides;
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides;
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH:mm", Locale.ENGLISH);
|
||||
if (commercialPathRouteSidesInfo.getCommercialPathInfo().isCercanias()) {
|
||||
return plannedTimeCercanias(commercialPathRouteSidesInfo, z3);
|
||||
}
|
||||
Long l4 = null;
|
||||
if (z3) {
|
||||
PassthroughDetailsStep passthroughDetailsStep = (PassthroughDetailsStep) CollectionsKt.firstOrNull((List) commercialPathRouteSidesInfo.getPassthroughSteps());
|
||||
if (passthroughDetailsStep != null && (departurePassthroughStepSides = passthroughDetailsStep.getDeparturePassthroughStepSides()) != null) {
|
||||
l4 = Long.valueOf(departurePassthroughStepSides.getPlannedTime());
|
||||
}
|
||||
} else {
|
||||
PassthroughDetailsStep passthroughDetailsStep2 = (PassthroughDetailsStep) CollectionsKt.lastOrNull((List) commercialPathRouteSidesInfo.getPassthroughSteps());
|
||||
if (passthroughDetailsStep2 != null && (arrivalPassthroughStepSides = passthroughDetailsStep2.getArrivalPassthroughStepSides()) != null) {
|
||||
l4 = Long.valueOf(arrivalPassthroughStepSides.getPlannedTime());
|
||||
}
|
||||
}
|
||||
String format = simpleDateFormat.format(l4);
|
||||
Intrinsics.checkNotNullExpressionValue(format, "format(...)");
|
||||
return format;
|
||||
}
|
||||
|
||||
private static final String plannedTimeCercanias(CommercialPathRouteSidesInfo commercialPathRouteSidesInfo, boolean z3) {
|
||||
Date date;
|
||||
PassthroughDetailsStep passthroughDetailsStep = z3 ? (PassthroughDetailsStep) CollectionsKt.firstOrNull((List) commercialPathRouteSidesInfo.getPassthroughSteps()) : (PassthroughDetailsStep) CollectionsKt.lastOrNull((List) commercialPathRouteSidesInfo.getPassthroughSteps());
|
||||
if (passthroughDetailsStep == null || (date = passthroughDetailsStep.plannedDate(z3)) == null) {
|
||||
date = new Date();
|
||||
}
|
||||
String format = new SimpleDateFormat("HH:mm", Locale.ENGLISH).format(Long.valueOf(date.getTime()));
|
||||
Intrinsics.checkNotNullExpressionValue(format, "format(...)");
|
||||
return format;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.adif.elcanomovil.uiTrain.entities;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u000f\u0018\u00002\u00020\u0001B/\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0003\u0012\u0006\u0010\u0006\u001a\u00020\u0003\u0012\u0006\u0010\u0007\u001a\u00020\u0003¢\u0006\u0002\u0010\bR\u0011\u0010\u0006\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\nR\u0011\u0010\u0007\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\nR\u001a\u0010\u0002\u001a\u00020\u0003X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\f\u0010\n\"\u0004\b\r\u0010\u000eR\u001c\u0010\u0004\u001a\u0004\u0018\u00010\u0003X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000f\u0010\n\"\u0004\b\u0010\u0010\u000eR\u0011\u0010\u0005\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\n¨\u0006\u0012"}, d2 = {"Lcom/adif/elcanomovil/uiTrain/entities/TrainInfoStation;", "", "stationCode", "", "stationName", "time", "delayedTime", "platform", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "getDelayedTime", "()Ljava/lang/String;", "getPlatform", "getStationCode", "setStationCode", "(Ljava/lang/String;)V", "getStationName", "setStationName", "getTime", "ui-train_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class TrainInfoStation {
|
||||
private final String delayedTime;
|
||||
private final String platform;
|
||||
private String stationCode;
|
||||
private String stationName;
|
||||
private final String time;
|
||||
|
||||
public TrainInfoStation(String stationCode, String str, String time, String delayedTime, String platform) {
|
||||
Intrinsics.checkNotNullParameter(stationCode, "stationCode");
|
||||
Intrinsics.checkNotNullParameter(time, "time");
|
||||
Intrinsics.checkNotNullParameter(delayedTime, "delayedTime");
|
||||
Intrinsics.checkNotNullParameter(platform, "platform");
|
||||
this.stationCode = stationCode;
|
||||
this.stationName = str;
|
||||
this.time = time;
|
||||
this.delayedTime = delayedTime;
|
||||
this.platform = platform;
|
||||
}
|
||||
|
||||
public final String getDelayedTime() {
|
||||
return this.delayedTime;
|
||||
}
|
||||
|
||||
public final String getPlatform() {
|
||||
return this.platform;
|
||||
}
|
||||
|
||||
public final String getStationCode() {
|
||||
return this.stationCode;
|
||||
}
|
||||
|
||||
public final String getStationName() {
|
||||
return this.stationName;
|
||||
}
|
||||
|
||||
public final String getTime() {
|
||||
return this.time;
|
||||
}
|
||||
|
||||
public final void setStationCode(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<set-?>");
|
||||
this.stationCode = str;
|
||||
}
|
||||
|
||||
public final void setStationName(String str) {
|
||||
this.stationName = str;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user