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:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,11 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0005\bf\u0018\u00002\u00020\u0001R\u0018\u0010\u0002\u001a\u00020\u0003X¦\u000e¢\u0006\f\u001a\u0004\b\u0004\u0010\u0005\"\u0004\b\u0006\u0010\u0007¨\u0006\b"}, d2 = {"Lcom/adif/elcanomovil/domain/entities/circulation/Circulation;", "", "showExtended", "", "getShowExtended", "()Z", "setShowExtended", "(Z)V", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public interface Circulation {
|
||||
boolean getShowExtended();
|
||||
|
||||
void setShowExtended(boolean z3);
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation;
|
||||
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.NavArguments;
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
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\u0000\n\u0002\u0010\t\n\u0002\b\u000f\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B%\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0003\u0012\u0006\u0010\u0007\u001a\u00020\u0003¢\u0006\u0002\u0010\bJ\t\u0010\u000f\u001a\u00020\u0003HÆ\u0003J\t\u0010\u0010\u001a\u00020\u0005HÆ\u0003J\t\u0010\u0011\u001a\u00020\u0003HÆ\u0003J\t\u0010\u0012\u001a\u00020\u0003HÆ\u0003J1\u0010\u0013\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u00032\b\b\u0002\u0010\u0007\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\u0014\u001a\u00020\u00152\b\u0010\u0016\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u0017\u001a\u00020\u0018HÖ\u0001J\t\u0010\u0019\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0002\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\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\rR\u0011\u0010\u0006\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\n¨\u0006\u001a"}, d2 = {"Lcom/adif/elcanomovil/domain/entities/circulation/ComercialPathKey;", "", NavArguments.ARG_DYNAMIC_LINKS_COMMERCIAL_NUMBER, "", NavArguments.ARG_DYNAMIC_LINKS_LAUNCHDATE, "", NavArguments.ARG_DYNAMIC_LINKS_STATION_CODE, NavArguments.ARG_DYNAMIC_LINKS_STATION_TO_CODE, "(Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;)V", "getCommercialNumber", "()Ljava/lang/String;", "getDestinationStationCode", "getLaunchingDate", "()J", "getOriginStationCode", "component1", "component2", "component3", "component4", "copy", "equals", "", "other", "hashCode", "", "toString", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* data */ class ComercialPathKey {
|
||||
private final String commercialNumber;
|
||||
private final String destinationStationCode;
|
||||
private final long launchingDate;
|
||||
private final String originStationCode;
|
||||
|
||||
public ComercialPathKey(String commercialNumber, long j4, String originStationCode, String destinationStationCode) {
|
||||
Intrinsics.checkNotNullParameter(commercialNumber, "commercialNumber");
|
||||
Intrinsics.checkNotNullParameter(originStationCode, "originStationCode");
|
||||
Intrinsics.checkNotNullParameter(destinationStationCode, "destinationStationCode");
|
||||
this.commercialNumber = commercialNumber;
|
||||
this.launchingDate = j4;
|
||||
this.originStationCode = originStationCode;
|
||||
this.destinationStationCode = destinationStationCode;
|
||||
}
|
||||
|
||||
public static /* synthetic */ ComercialPathKey copy$default(ComercialPathKey comercialPathKey, String str, long j4, String str2, String str3, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = comercialPathKey.commercialNumber;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
j4 = comercialPathKey.launchingDate;
|
||||
}
|
||||
if ((i & 4) != 0) {
|
||||
str2 = comercialPathKey.originStationCode;
|
||||
}
|
||||
if ((i & 8) != 0) {
|
||||
str3 = comercialPathKey.destinationStationCode;
|
||||
}
|
||||
return comercialPathKey.copy(str, j4, str2, str3);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final String getCommercialNumber() {
|
||||
return this.commercialNumber;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final long getLaunchingDate() {
|
||||
return this.launchingDate;
|
||||
}
|
||||
|
||||
/* renamed from: component3, reason: from getter */
|
||||
public final String getOriginStationCode() {
|
||||
return this.originStationCode;
|
||||
}
|
||||
|
||||
/* renamed from: component4, reason: from getter */
|
||||
public final String getDestinationStationCode() {
|
||||
return this.destinationStationCode;
|
||||
}
|
||||
|
||||
public final ComercialPathKey copy(String commercialNumber, long launchingDate, String originStationCode, String destinationStationCode) {
|
||||
Intrinsics.checkNotNullParameter(commercialNumber, "commercialNumber");
|
||||
Intrinsics.checkNotNullParameter(originStationCode, "originStationCode");
|
||||
Intrinsics.checkNotNullParameter(destinationStationCode, "destinationStationCode");
|
||||
return new ComercialPathKey(commercialNumber, launchingDate, originStationCode, destinationStationCode);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof ComercialPathKey)) {
|
||||
return false;
|
||||
}
|
||||
ComercialPathKey comercialPathKey = (ComercialPathKey) other;
|
||||
return Intrinsics.areEqual(this.commercialNumber, comercialPathKey.commercialNumber) && this.launchingDate == comercialPathKey.launchingDate && Intrinsics.areEqual(this.originStationCode, comercialPathKey.originStationCode) && Intrinsics.areEqual(this.destinationStationCode, comercialPathKey.destinationStationCode);
|
||||
}
|
||||
|
||||
public final String getCommercialNumber() {
|
||||
return this.commercialNumber;
|
||||
}
|
||||
|
||||
public final String getDestinationStationCode() {
|
||||
return this.destinationStationCode;
|
||||
}
|
||||
|
||||
public final long getLaunchingDate() {
|
||||
return this.launchingDate;
|
||||
}
|
||||
|
||||
public final String getOriginStationCode() {
|
||||
return this.originStationCode;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.destinationStationCode.hashCode() + a.d(this.originStationCode, a.b(this.launchingDate, this.commercialNumber.hashCode() * 31, 31), 31);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("ComercialPathKey(commercialNumber=");
|
||||
sb.append(this.commercialNumber);
|
||||
sb.append(", launchingDate=");
|
||||
sb.append(this.launchingDate);
|
||||
sb.append(", originStationCode=");
|
||||
sb.append(this.originStationCode);
|
||||
sb.append(", destinationStationCode=");
|
||||
return a.n(sb, this.destinationStationCode, ')');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation;
|
||||
|
||||
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/domain/entities/circulation/CommercialCirculation;", "", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public interface CommercialCirculation {
|
||||
}
|
||||
@@ -0,0 +1,241 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation;
|
||||
|
||||
import C.w;
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import java.util.Date;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.io.ConstantsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u001f\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001Be\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\b\u0012\u0006\u0010\t\u001a\u00020\u0006\u0012\u0006\u0010\n\u001a\u00020\u0006\u0012\u0006\u0010\u000b\u001a\u00020\u0003\u0012\b\u0010\f\u001a\u0004\u0018\u00010\u0003\u0012\u0006\u0010\r\u001a\u00020\u000e\u0012\u0006\u0010\u000f\u001a\u00020\u0010\u0012\b\u0010\u0011\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u0012J\u000b\u0010!\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\t\u0010\"\u001a\u00020\u0010HÆ\u0003J\u000b\u0010#\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010$\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\t\u0010%\u001a\u00020\u0006HÆ\u0003J\t\u0010&\u001a\u00020\bHÆ\u0003J\t\u0010'\u001a\u00020\u0006HÆ\u0003J\t\u0010(\u001a\u00020\u0006HÆ\u0003J\t\u0010)\u001a\u00020\u0003HÆ\u0003J\u000b\u0010*\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\t\u0010+\u001a\u00020\u000eHÆ\u0003J\u007f\u0010,\u001a\u00020\u00002\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\u0005\u001a\u00020\u00062\b\b\u0002\u0010\u0007\u001a\u00020\b2\b\b\u0002\u0010\t\u001a\u00020\u00062\b\b\u0002\u0010\n\u001a\u00020\u00062\b\b\u0002\u0010\u000b\u001a\u00020\u00032\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\r\u001a\u00020\u000e2\b\b\u0002\u0010\u000f\u001a\u00020\u00102\n\b\u0002\u0010\u0011\u001a\u0004\u0018\u00010\u0003HÆ\u0001J\u0013\u0010-\u001a\u00020\u00062\b\u0010.\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010/\u001a\u000200HÖ\u0001J\t\u00101\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\u0011\u0010\u0007\u001a\u00020\b¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\u0016R\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0018R\u0013\u0010\u0002\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u0018R\u0013\u0010\f\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u001a\u0010\u0018R\u0011\u0010\t\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\u0014R\u0011\u0010\n\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u0014R\u0011\u0010\u000b\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u001b\u0010\u0018R\u0013\u0010\u0011\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u001c\u0010\u0018R\u0011\u0010\r\u001a\u00020\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u001d\u0010\u001eR\u0011\u0010\u000f\u001a\u00020\u0010¢\u0006\b\n\u0000\u001a\u0004\b\u001f\u0010 ¨\u00062"}, d2 = {"Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathInfo;", "", "commercialOriginStationCode", "", "commercialDestinationStationCode", "accessible", "", "comercialPathKey", "Lcom/adif/elcanomovil/domain/entities/circulation/ComercialPathKey;", "isCercanias", "isShortTrain", "line", "core", "opeProComPro", "Lcom/adif/elcanomovil/domain/entities/circulation/OpeProComPro;", "timestamp", "Ljava/util/Date;", "observation", "(Ljava/lang/String;Ljava/lang/String;ZLcom/adif/elcanomovil/domain/entities/circulation/ComercialPathKey;ZZLjava/lang/String;Ljava/lang/String;Lcom/adif/elcanomovil/domain/entities/circulation/OpeProComPro;Ljava/util/Date;Ljava/lang/String;)V", "getAccessible", "()Z", "getComercialPathKey", "()Lcom/adif/elcanomovil/domain/entities/circulation/ComercialPathKey;", "getCommercialDestinationStationCode", "()Ljava/lang/String;", "getCommercialOriginStationCode", "getCore", "getLine", "getObservation", "getOpeProComPro", "()Lcom/adif/elcanomovil/domain/entities/circulation/OpeProComPro;", "getTimestamp", "()Ljava/util/Date;", "component1", "component10", "component11", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "copy", "equals", "other", "hashCode", "", "toString", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* data */ class CommercialPathInfo {
|
||||
private final boolean accessible;
|
||||
private final ComercialPathKey comercialPathKey;
|
||||
private final String commercialDestinationStationCode;
|
||||
private final String commercialOriginStationCode;
|
||||
private final String core;
|
||||
private final boolean isCercanias;
|
||||
private final boolean isShortTrain;
|
||||
private final String line;
|
||||
private final String observation;
|
||||
private final OpeProComPro opeProComPro;
|
||||
private final Date timestamp;
|
||||
|
||||
public CommercialPathInfo(String str, String str2, boolean z3, ComercialPathKey comercialPathKey, boolean z4, boolean z5, String line, String str3, OpeProComPro opeProComPro, Date timestamp, String str4) {
|
||||
Intrinsics.checkNotNullParameter(comercialPathKey, "comercialPathKey");
|
||||
Intrinsics.checkNotNullParameter(line, "line");
|
||||
Intrinsics.checkNotNullParameter(opeProComPro, "opeProComPro");
|
||||
Intrinsics.checkNotNullParameter(timestamp, "timestamp");
|
||||
this.commercialOriginStationCode = str;
|
||||
this.commercialDestinationStationCode = str2;
|
||||
this.accessible = z3;
|
||||
this.comercialPathKey = comercialPathKey;
|
||||
this.isCercanias = z4;
|
||||
this.isShortTrain = z5;
|
||||
this.line = line;
|
||||
this.core = str3;
|
||||
this.opeProComPro = opeProComPro;
|
||||
this.timestamp = timestamp;
|
||||
this.observation = str4;
|
||||
}
|
||||
|
||||
public static /* synthetic */ CommercialPathInfo copy$default(CommercialPathInfo commercialPathInfo, String str, String str2, boolean z3, ComercialPathKey comercialPathKey, boolean z4, boolean z5, String str3, String str4, OpeProComPro opeProComPro, Date date, String str5, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = commercialPathInfo.commercialOriginStationCode;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
str2 = commercialPathInfo.commercialDestinationStationCode;
|
||||
}
|
||||
if ((i & 4) != 0) {
|
||||
z3 = commercialPathInfo.accessible;
|
||||
}
|
||||
if ((i & 8) != 0) {
|
||||
comercialPathKey = commercialPathInfo.comercialPathKey;
|
||||
}
|
||||
if ((i & 16) != 0) {
|
||||
z4 = commercialPathInfo.isCercanias;
|
||||
}
|
||||
if ((i & 32) != 0) {
|
||||
z5 = commercialPathInfo.isShortTrain;
|
||||
}
|
||||
if ((i & 64) != 0) {
|
||||
str3 = commercialPathInfo.line;
|
||||
}
|
||||
if ((i & 128) != 0) {
|
||||
str4 = commercialPathInfo.core;
|
||||
}
|
||||
if ((i & 256) != 0) {
|
||||
opeProComPro = commercialPathInfo.opeProComPro;
|
||||
}
|
||||
if ((i & ConstantsKt.MINIMUM_BLOCK_SIZE) != 0) {
|
||||
date = commercialPathInfo.timestamp;
|
||||
}
|
||||
if ((i & 1024) != 0) {
|
||||
str5 = commercialPathInfo.observation;
|
||||
}
|
||||
Date date2 = date;
|
||||
String str6 = str5;
|
||||
String str7 = str4;
|
||||
OpeProComPro opeProComPro2 = opeProComPro;
|
||||
boolean z6 = z5;
|
||||
String str8 = str3;
|
||||
boolean z7 = z4;
|
||||
boolean z8 = z3;
|
||||
return commercialPathInfo.copy(str, str2, z8, comercialPathKey, z7, z6, str8, str7, opeProComPro2, date2, str6);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final String getCommercialOriginStationCode() {
|
||||
return this.commercialOriginStationCode;
|
||||
}
|
||||
|
||||
/* renamed from: component10, reason: from getter */
|
||||
public final Date getTimestamp() {
|
||||
return this.timestamp;
|
||||
}
|
||||
|
||||
/* renamed from: component11, reason: from getter */
|
||||
public final String getObservation() {
|
||||
return this.observation;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final String getCommercialDestinationStationCode() {
|
||||
return this.commercialDestinationStationCode;
|
||||
}
|
||||
|
||||
/* renamed from: component3, reason: from getter */
|
||||
public final boolean getAccessible() {
|
||||
return this.accessible;
|
||||
}
|
||||
|
||||
/* renamed from: component4, reason: from getter */
|
||||
public final ComercialPathKey getComercialPathKey() {
|
||||
return this.comercialPathKey;
|
||||
}
|
||||
|
||||
/* renamed from: component5, reason: from getter */
|
||||
public final boolean getIsCercanias() {
|
||||
return this.isCercanias;
|
||||
}
|
||||
|
||||
/* renamed from: component6, reason: from getter */
|
||||
public final boolean getIsShortTrain() {
|
||||
return this.isShortTrain;
|
||||
}
|
||||
|
||||
/* renamed from: component7, reason: from getter */
|
||||
public final String getLine() {
|
||||
return this.line;
|
||||
}
|
||||
|
||||
/* renamed from: component8, reason: from getter */
|
||||
public final String getCore() {
|
||||
return this.core;
|
||||
}
|
||||
|
||||
/* renamed from: component9, reason: from getter */
|
||||
public final OpeProComPro getOpeProComPro() {
|
||||
return this.opeProComPro;
|
||||
}
|
||||
|
||||
public final CommercialPathInfo copy(String commercialOriginStationCode, String commercialDestinationStationCode, boolean accessible, ComercialPathKey comercialPathKey, boolean isCercanias, boolean isShortTrain, String line, String core, OpeProComPro opeProComPro, Date timestamp, String observation) {
|
||||
Intrinsics.checkNotNullParameter(comercialPathKey, "comercialPathKey");
|
||||
Intrinsics.checkNotNullParameter(line, "line");
|
||||
Intrinsics.checkNotNullParameter(opeProComPro, "opeProComPro");
|
||||
Intrinsics.checkNotNullParameter(timestamp, "timestamp");
|
||||
return new CommercialPathInfo(commercialOriginStationCode, commercialDestinationStationCode, accessible, comercialPathKey, isCercanias, isShortTrain, line, core, opeProComPro, timestamp, observation);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof CommercialPathInfo)) {
|
||||
return false;
|
||||
}
|
||||
CommercialPathInfo commercialPathInfo = (CommercialPathInfo) other;
|
||||
return Intrinsics.areEqual(this.commercialOriginStationCode, commercialPathInfo.commercialOriginStationCode) && Intrinsics.areEqual(this.commercialDestinationStationCode, commercialPathInfo.commercialDestinationStationCode) && this.accessible == commercialPathInfo.accessible && Intrinsics.areEqual(this.comercialPathKey, commercialPathInfo.comercialPathKey) && this.isCercanias == commercialPathInfo.isCercanias && this.isShortTrain == commercialPathInfo.isShortTrain && Intrinsics.areEqual(this.line, commercialPathInfo.line) && Intrinsics.areEqual(this.core, commercialPathInfo.core) && Intrinsics.areEqual(this.opeProComPro, commercialPathInfo.opeProComPro) && Intrinsics.areEqual(this.timestamp, commercialPathInfo.timestamp) && Intrinsics.areEqual(this.observation, commercialPathInfo.observation);
|
||||
}
|
||||
|
||||
public final boolean getAccessible() {
|
||||
return this.accessible;
|
||||
}
|
||||
|
||||
public final ComercialPathKey getComercialPathKey() {
|
||||
return this.comercialPathKey;
|
||||
}
|
||||
|
||||
public final String getCommercialDestinationStationCode() {
|
||||
return this.commercialDestinationStationCode;
|
||||
}
|
||||
|
||||
public final String getCommercialOriginStationCode() {
|
||||
return this.commercialOriginStationCode;
|
||||
}
|
||||
|
||||
public final String getCore() {
|
||||
return this.core;
|
||||
}
|
||||
|
||||
public final String getLine() {
|
||||
return this.line;
|
||||
}
|
||||
|
||||
public final String getObservation() {
|
||||
return this.observation;
|
||||
}
|
||||
|
||||
public final OpeProComPro getOpeProComPro() {
|
||||
return this.opeProComPro;
|
||||
}
|
||||
|
||||
public final Date getTimestamp() {
|
||||
return this.timestamp;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
String str = this.commercialOriginStationCode;
|
||||
int hashCode = (str == null ? 0 : str.hashCode()) * 31;
|
||||
String str2 = this.commercialDestinationStationCode;
|
||||
int d4 = a.d(this.line, w.c(w.c((this.comercialPathKey.hashCode() + w.c((hashCode + (str2 == null ? 0 : str2.hashCode())) * 31, 31, this.accessible)) * 31, 31, this.isCercanias), 31, this.isShortTrain), 31);
|
||||
String str3 = this.core;
|
||||
int hashCode2 = (this.timestamp.hashCode() + ((this.opeProComPro.hashCode() + ((d4 + (str3 == null ? 0 : str3.hashCode())) * 31)) * 31)) * 31;
|
||||
String str4 = this.observation;
|
||||
return hashCode2 + (str4 != null ? str4.hashCode() : 0);
|
||||
}
|
||||
|
||||
public final boolean isCercanias() {
|
||||
return this.isCercanias;
|
||||
}
|
||||
|
||||
public final boolean isShortTrain() {
|
||||
return this.isShortTrain;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("CommercialPathInfo(commercialOriginStationCode=");
|
||||
sb.append(this.commercialOriginStationCode);
|
||||
sb.append(", commercialDestinationStationCode=");
|
||||
sb.append(this.commercialDestinationStationCode);
|
||||
sb.append(", accessible=");
|
||||
sb.append(this.accessible);
|
||||
sb.append(", comercialPathKey=");
|
||||
sb.append(this.comercialPathKey);
|
||||
sb.append(", isCercanias=");
|
||||
sb.append(this.isCercanias);
|
||||
sb.append(", isShortTrain=");
|
||||
sb.append(this.isShortTrain);
|
||||
sb.append(", line=");
|
||||
sb.append(this.line);
|
||||
sb.append(", core=");
|
||||
sb.append(this.core);
|
||||
sb.append(", opeProComPro=");
|
||||
sb.append(this.opeProComPro);
|
||||
sb.append(", timestamp=");
|
||||
sb.append(this.timestamp);
|
||||
sb.append(", observation=");
|
||||
return a.n(sb, this.observation, ')');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation;
|
||||
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B\u001b\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00060\u0005¢\u0006\u0002\u0010\u0007J\t\u0010\f\u001a\u00020\u0003HÆ\u0003J\u000f\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u00060\u0005HÆ\u0003J#\u0010\u000e\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\u000e\b\u0002\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00060\u0005HÆ\u0001J\u0013\u0010\u000f\u001a\u00020\u00102\b\u0010\u0011\u001a\u0004\u0018\u00010\u0012HÖ\u0003J\u000e\u0010\u0013\u001a\u00020\u00102\u0006\u0010\u0014\u001a\u00020\u0015J\t\u0010\u0016\u001a\u00020\u0015HÖ\u0001J\u000e\u0010\u0017\u001a\u00020\u00182\u0006\u0010\u0014\u001a\u00020\u0015J\t\u0010\u0019\u001a\u00020\u0018HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\tR\u0017\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00060\u0005¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000b¨\u0006\u001a"}, d2 = {"Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathRouteSidesInfo;", "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialCirculation;", "commercialPathInfo", "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathInfo;", "passthroughSteps", "", "Lcom/adif/elcanomovil/domain/entities/circulation/PassthroughDetailsStep;", "(Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathInfo;Ljava/util/List;)V", "getCommercialPathInfo", "()Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathInfo;", "getPassthroughSteps", "()Ljava/util/List;", "component1", "component2", "copy", "equals", "", "other", "", "hasWarningPlatform", "stepNumber", "", "hashCode", "platform", "", "toString", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* data */ class CommercialPathRouteSidesInfo implements CommercialCirculation {
|
||||
private final CommercialPathInfo commercialPathInfo;
|
||||
private final List<PassthroughDetailsStep> passthroughSteps;
|
||||
|
||||
public CommercialPathRouteSidesInfo(CommercialPathInfo commercialPathInfo, List<PassthroughDetailsStep> passthroughSteps) {
|
||||
Intrinsics.checkNotNullParameter(commercialPathInfo, "commercialPathInfo");
|
||||
Intrinsics.checkNotNullParameter(passthroughSteps, "passthroughSteps");
|
||||
this.commercialPathInfo = commercialPathInfo;
|
||||
this.passthroughSteps = passthroughSteps;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public static /* synthetic */ CommercialPathRouteSidesInfo copy$default(CommercialPathRouteSidesInfo commercialPathRouteSidesInfo, CommercialPathInfo commercialPathInfo, List list, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
commercialPathInfo = commercialPathRouteSidesInfo.commercialPathInfo;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
list = commercialPathRouteSidesInfo.passthroughSteps;
|
||||
}
|
||||
return commercialPathRouteSidesInfo.copy(commercialPathInfo, list);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final CommercialPathInfo getCommercialPathInfo() {
|
||||
return this.commercialPathInfo;
|
||||
}
|
||||
|
||||
public final List<PassthroughDetailsStep> component2() {
|
||||
return this.passthroughSteps;
|
||||
}
|
||||
|
||||
public final CommercialPathRouteSidesInfo copy(CommercialPathInfo commercialPathInfo, List<PassthroughDetailsStep> passthroughSteps) {
|
||||
Intrinsics.checkNotNullParameter(commercialPathInfo, "commercialPathInfo");
|
||||
Intrinsics.checkNotNullParameter(passthroughSteps, "passthroughSteps");
|
||||
return new CommercialPathRouteSidesInfo(commercialPathInfo, passthroughSteps);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof CommercialPathRouteSidesInfo)) {
|
||||
return false;
|
||||
}
|
||||
CommercialPathRouteSidesInfo commercialPathRouteSidesInfo = (CommercialPathRouteSidesInfo) other;
|
||||
return Intrinsics.areEqual(this.commercialPathInfo, commercialPathRouteSidesInfo.commercialPathInfo) && Intrinsics.areEqual(this.passthroughSteps, commercialPathRouteSidesInfo.passthroughSteps);
|
||||
}
|
||||
|
||||
public final CommercialPathInfo getCommercialPathInfo() {
|
||||
return this.commercialPathInfo;
|
||||
}
|
||||
|
||||
public final List<PassthroughDetailsStep> getPassthroughSteps() {
|
||||
return this.passthroughSteps;
|
||||
}
|
||||
|
||||
public final boolean hasWarningPlatform(int stepNumber) {
|
||||
if (stepNumber == 0) {
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides = this.passthroughSteps.get(stepNumber).getDeparturePassthroughStepSides();
|
||||
return departurePassthroughStepSides != null && departurePassthroughStepSides.isPlatformWarning();
|
||||
}
|
||||
PassthroughDetailsStepSide arrivalPassthroughStepSides = this.passthroughSteps.get(stepNumber).getArrivalPassthroughStepSides();
|
||||
return arrivalPassthroughStepSides != null && arrivalPassthroughStepSides.isPlatformWarning();
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.passthroughSteps.hashCode() + (this.commercialPathInfo.hashCode() * 31);
|
||||
}
|
||||
|
||||
public final String platform(int stepNumber) {
|
||||
PassthroughDetailsStepSide departurePassthroughStepSides = stepNumber == 0 ? this.passthroughSteps.get(stepNumber).getDeparturePassthroughStepSides() : this.passthroughSteps.get(stepNumber).getArrivalPassthroughStepSides();
|
||||
return (departurePassthroughStepSides == null || !departurePassthroughStepSides.isAnnounceable() || departurePassthroughStepSides.isSuppressed() || departurePassthroughStepSides.getPlatformMuted()) ? "" : departurePassthroughStepSides.getPlatform();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("CommercialPathRouteSidesInfo(commercialPathInfo=");
|
||||
sb.append(this.commercialPathInfo);
|
||||
sb.append(", passthroughSteps=");
|
||||
return a.o(sb, this.passthroughSteps, ')');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\n\b\u0086\b\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\t\u0010\u000b\u001a\u00020\u0003HÆ\u0003J\t\u0010\f\u001a\u00020\u0005HÆ\u0003J\u001d\u0010\r\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u0005HÆ\u0001J\u000e\u0010\u000e\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u0011J\u0013\u0010\u0012\u001a\u00020\u00112\b\u0010\u0013\u001a\u0004\u0018\u00010\u0014HÖ\u0003J\u000e\u0010\u0015\u001a\u00020\u00112\u0006\u0010\u0010\u001a\u00020\u0011J\t\u0010\u0016\u001a\u00020\u0017HÖ\u0001J\u0010\u0010\u0018\u001a\u0004\u0018\u00010\u000f2\u0006\u0010\u0010\u001a\u00020\u0011J\u000e\u0010\u0019\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u0011J\u0010\u0010\u001a\u001a\u0004\u0018\u00010\u001b2\u0006\u0010\u0010\u001a\u00020\u0011J\u000e\u0010\u001c\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u0011J\u000e\u0010\u001d\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u0011J\u000e\u0010\u001e\u001a\u00020\u00112\u0006\u0010\u0010\u001a\u00020\u0011J\u0010\u0010\u001f\u001a\u0004\u0018\u00010\u000f2\u0006\u0010\u0010\u001a\u00020\u0011J\u0010\u0010 \u001a\u0004\u0018\u00010\u000f2\u0006\u0010\u0010\u001a\u00020\u0011J\u000e\u0010!\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u0011J\u000e\u0010\"\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u0011J\u0010\u0010#\u001a\u0004\u0018\u00010\u000f2\u0006\u0010\u0010\u001a\u00020\u0011J\t\u0010$\u001a\u00020\u000fHÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\n¨\u0006%"}, d2 = {"Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathStepSideInfo;", "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialCirculation;", "commercialPathInfo", "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathInfo;", "passthroughStep", "Lcom/adif/elcanomovil/domain/entities/circulation/PassthroughStep;", "(Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathInfo;Lcom/adif/elcanomovil/domain/entities/circulation/PassthroughStep;)V", "getCommercialPathInfo", "()Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathInfo;", "getPassthroughStep", "()Lcom/adif/elcanomovil/domain/entities/circulation/PassthroughStep;", "component1", "component2", "copy", "ctcPlatform", "", "isDeparture", "", "equals", "other", "", "hasWarningPlatform", "hashCode", "", "observation", "operatorPlatform", "passthroughStepSide", "Lcom/adif/elcanomovil/domain/entities/circulation/PassthroughStepSides;", "plannedPlatform", "platform", "platformMuted", "preassignedPlatform", "resultantPlatform", "sitraPlatform", "stationCode", "technicalNumber", "toString", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* data */ class CommercialPathStepSideInfo implements CommercialCirculation {
|
||||
private final CommercialPathInfo commercialPathInfo;
|
||||
private final PassthroughStep passthroughStep;
|
||||
|
||||
public CommercialPathStepSideInfo(CommercialPathInfo commercialPathInfo, PassthroughStep passthroughStep) {
|
||||
Intrinsics.checkNotNullParameter(commercialPathInfo, "commercialPathInfo");
|
||||
Intrinsics.checkNotNullParameter(passthroughStep, "passthroughStep");
|
||||
this.commercialPathInfo = commercialPathInfo;
|
||||
this.passthroughStep = passthroughStep;
|
||||
}
|
||||
|
||||
public static /* synthetic */ CommercialPathStepSideInfo copy$default(CommercialPathStepSideInfo commercialPathStepSideInfo, CommercialPathInfo commercialPathInfo, PassthroughStep passthroughStep, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
commercialPathInfo = commercialPathStepSideInfo.commercialPathInfo;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
passthroughStep = commercialPathStepSideInfo.passthroughStep;
|
||||
}
|
||||
return commercialPathStepSideInfo.copy(commercialPathInfo, passthroughStep);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final CommercialPathInfo getCommercialPathInfo() {
|
||||
return this.commercialPathInfo;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final PassthroughStep getPassthroughStep() {
|
||||
return this.passthroughStep;
|
||||
}
|
||||
|
||||
public final CommercialPathStepSideInfo copy(CommercialPathInfo commercialPathInfo, PassthroughStep passthroughStep) {
|
||||
Intrinsics.checkNotNullParameter(commercialPathInfo, "commercialPathInfo");
|
||||
Intrinsics.checkNotNullParameter(passthroughStep, "passthroughStep");
|
||||
return new CommercialPathStepSideInfo(commercialPathInfo, passthroughStep);
|
||||
}
|
||||
|
||||
public final String ctcPlatform(boolean isDeparture) {
|
||||
String ctcPlatform;
|
||||
PassthroughStepSides passthroughStepSide = passthroughStepSide(isDeparture);
|
||||
return (passthroughStepSide == null || (ctcPlatform = passthroughStepSide.getCtcPlatform()) == null) ? "" : ctcPlatform;
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof CommercialPathStepSideInfo)) {
|
||||
return false;
|
||||
}
|
||||
CommercialPathStepSideInfo commercialPathStepSideInfo = (CommercialPathStepSideInfo) other;
|
||||
return Intrinsics.areEqual(this.commercialPathInfo, commercialPathStepSideInfo.commercialPathInfo) && Intrinsics.areEqual(this.passthroughStep, commercialPathStepSideInfo.passthroughStep);
|
||||
}
|
||||
|
||||
public final CommercialPathInfo getCommercialPathInfo() {
|
||||
return this.commercialPathInfo;
|
||||
}
|
||||
|
||||
public final PassthroughStep getPassthroughStep() {
|
||||
return this.passthroughStep;
|
||||
}
|
||||
|
||||
public final boolean hasWarningPlatform(boolean isDeparture) {
|
||||
PassthroughStepSides passthroughStepSide = passthroughStepSide(isDeparture);
|
||||
return passthroughStepSide != null && passthroughStepSide.isPlatformWarning();
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.passthroughStep.hashCode() + (this.commercialPathInfo.hashCode() * 31);
|
||||
}
|
||||
|
||||
public final String observation(boolean isDeparture) {
|
||||
PassthroughStepSides passthroughStepSide = passthroughStepSide(isDeparture);
|
||||
if (passthroughStepSide != null) {
|
||||
return passthroughStepSide.getObservation();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public final String operatorPlatform(boolean isDeparture) {
|
||||
String operatorPlatform;
|
||||
PassthroughStepSides passthroughStepSide = passthroughStepSide(isDeparture);
|
||||
return (passthroughStepSide == null || (operatorPlatform = passthroughStepSide.getOperatorPlatform()) == null) ? "" : operatorPlatform;
|
||||
}
|
||||
|
||||
public final PassthroughStepSides passthroughStepSide(boolean isDeparture) {
|
||||
return isDeparture ? this.passthroughStep.getDeparturePassthroughStepSides() : this.passthroughStep.getArrivalPassthroughStepSides();
|
||||
}
|
||||
|
||||
public final String plannedPlatform(boolean isDeparture) {
|
||||
String plannedPlatform;
|
||||
PassthroughStepSides passthroughStepSide = passthroughStepSide(isDeparture);
|
||||
return (passthroughStepSide == null || (plannedPlatform = passthroughStepSide.getPlannedPlatform()) == null) ? "" : plannedPlatform;
|
||||
}
|
||||
|
||||
public final String platform(boolean isDeparture) {
|
||||
String platform;
|
||||
PassthroughStepSides passthroughStepSide = passthroughStepSide(isDeparture);
|
||||
return (passthroughStepSide == null || (platform = passthroughStepSide.getPlatform()) == null) ? "" : platform;
|
||||
}
|
||||
|
||||
public final boolean platformMuted(boolean isDeparture) {
|
||||
PassthroughStepSides passthroughStepSide = passthroughStepSide(isDeparture);
|
||||
if (passthroughStepSide != null) {
|
||||
return passthroughStepSide.isMuted();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public final String preassignedPlatform(boolean isDeparture) {
|
||||
if (isDeparture) {
|
||||
PassthroughStepSides departurePassthroughStepSides = this.passthroughStep.getDeparturePassthroughStepSides();
|
||||
if (departurePassthroughStepSides != null) {
|
||||
return departurePassthroughStepSides.getPreassignedPlatform();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
PassthroughStepSides arrivalPassthroughStepSides = this.passthroughStep.getArrivalPassthroughStepSides();
|
||||
if (arrivalPassthroughStepSides != null) {
|
||||
return arrivalPassthroughStepSides.getPreassignedPlatform();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public final String resultantPlatform(boolean isDeparture) {
|
||||
String resultantPlatform;
|
||||
PassthroughStepSides passthroughStepSide = passthroughStepSide(isDeparture);
|
||||
return (passthroughStepSide == null || (resultantPlatform = passthroughStepSide.getResultantPlatform()) == null) ? "" : resultantPlatform;
|
||||
}
|
||||
|
||||
public final String sitraPlatform(boolean isDeparture) {
|
||||
String sitraPlatform;
|
||||
PassthroughStepSides passthroughStepSide = passthroughStepSide(isDeparture);
|
||||
return (passthroughStepSide == null || (sitraPlatform = passthroughStepSide.getSitraPlatform()) == null) ? "" : sitraPlatform;
|
||||
}
|
||||
|
||||
public final String stationCode(boolean isDeparture) {
|
||||
if (isDeparture) {
|
||||
String commercialDestinationStationCode = this.commercialPathInfo.getCommercialDestinationStationCode();
|
||||
return commercialDestinationStationCode == null ? this.commercialPathInfo.getComercialPathKey().getDestinationStationCode() : commercialDestinationStationCode;
|
||||
}
|
||||
String commercialOriginStationCode = this.commercialPathInfo.getCommercialOriginStationCode();
|
||||
return commercialOriginStationCode == null ? this.commercialPathInfo.getComercialPathKey().getOriginStationCode() : commercialOriginStationCode;
|
||||
}
|
||||
|
||||
public final String technicalNumber(boolean isDeparture) {
|
||||
PassthroughStepSides passthroughStepSide = passthroughStepSide(isDeparture);
|
||||
if (passthroughStepSide != null) {
|
||||
return passthroughStepSide.getTechnicalNumber();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "CommercialPathStepSideInfo(commercialPathInfo=" + this.commercialPathInfo + ", passthroughStep=" + this.passthroughStep + ')';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u001f\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\t\u0010)\u001a\u00020\u0003HÆ\u0003J\t\u0010*\u001a\u00020\u0005HÆ\u0003J\u001d\u0010+\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u0005HÆ\u0001J\u0013\u0010,\u001a\u00020\u000e2\b\u0010-\u001a\u0004\u0018\u00010.HÖ\u0003J\t\u0010/\u001a\u000200HÖ\u0001J\t\u00101\u001a\u00020\nHÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0013\u0010\t\u001a\u0004\u0018\u00010\n8F¢\u0006\u0006\u001a\u0004\b\u000b\u0010\fR\u0011\u0010\r\u001a\u00020\u000e8F¢\u0006\u0006\u001a\u0004\b\u000f\u0010\u0010R\u0011\u0010\u0011\u001a\u00020\u000e8F¢\u0006\u0006\u001a\u0004\b\u0012\u0010\u0010R\u0013\u0010\u0013\u001a\u0004\u0018\u00010\n8F¢\u0006\u0006\u001a\u0004\b\u0014\u0010\fR\u0013\u0010\u0015\u001a\u0004\u0018\u00010\n8F¢\u0006\u0006\u001a\u0004\b\u0016\u0010\fR\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0018R\u0013\u0010\u0019\u001a\u0004\u0018\u00010\n8F¢\u0006\u0006\u001a\u0004\b\u001a\u0010\fR\u0011\u0010\u001b\u001a\u00020\n8F¢\u0006\u0006\u001a\u0004\b\u001c\u0010\fR\u0011\u0010\u001d\u001a\u00020\u000e8F¢\u0006\u0006\u001a\u0004\b\u001e\u0010\u0010R\u0013\u0010\u001f\u001a\u0004\u0018\u00010\n8F¢\u0006\u0006\u001a\u0004\b \u0010\fR\u0013\u0010!\u001a\u0004\u0018\u00010\n8F¢\u0006\u0006\u001a\u0004\b\"\u0010\fR\u0013\u0010#\u001a\u0004\u0018\u00010\n8F¢\u0006\u0006\u001a\u0004\b$\u0010\fR\u0011\u0010%\u001a\u00020\n8F¢\u0006\u0006\u001a\u0004\b&\u0010\fR\u0013\u0010'\u001a\u0004\u0018\u00010\n8F¢\u0006\u0006\u001a\u0004\b(\u0010\f¨\u00062"}, d2 = {"Lcom/adif/elcanomovil/domain/entities/circulation/CommercialRouteInfo;", "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialCirculation;", "commercialPathInfo", "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathInfo;", "passthroughStep", "Lcom/adif/elcanomovil/domain/entities/circulation/RouteStep;", "(Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathInfo;Lcom/adif/elcanomovil/domain/entities/circulation/RouteStep;)V", "getCommercialPathInfo", "()Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathInfo;", "ctcPlatform", "", "getCtcPlatform", "()Ljava/lang/String;", "hasWarningPlatform", "", "getHasWarningPlatform", "()Z", "immediateDeparture", "getImmediateDeparture", "observation", "getObservation", "operatorPlatform", "getOperatorPlatform", "getPassthroughStep", "()Lcom/adif/elcanomovil/domain/entities/circulation/RouteStep;", "plannedPlatform", "getPlannedPlatform", "platform", "getPlatform", "platformMuted", "getPlatformMuted", "preassignedPlatform", "getPreassignedPlatform", "resultantPlatform", "getResultantPlatform", "sitraPlatform", "getSitraPlatform", "stationCode", "getStationCode", "technicalNumber", "getTechnicalNumber", "component1", "component2", "copy", "equals", "other", "", "hashCode", "", "toString", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* data */ class CommercialRouteInfo implements CommercialCirculation {
|
||||
private final CommercialPathInfo commercialPathInfo;
|
||||
private final RouteStep passthroughStep;
|
||||
|
||||
public CommercialRouteInfo(CommercialPathInfo commercialPathInfo, RouteStep passthroughStep) {
|
||||
Intrinsics.checkNotNullParameter(commercialPathInfo, "commercialPathInfo");
|
||||
Intrinsics.checkNotNullParameter(passthroughStep, "passthroughStep");
|
||||
this.commercialPathInfo = commercialPathInfo;
|
||||
this.passthroughStep = passthroughStep;
|
||||
}
|
||||
|
||||
public static /* synthetic */ CommercialRouteInfo copy$default(CommercialRouteInfo commercialRouteInfo, CommercialPathInfo commercialPathInfo, RouteStep routeStep, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
commercialPathInfo = commercialRouteInfo.commercialPathInfo;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
routeStep = commercialRouteInfo.passthroughStep;
|
||||
}
|
||||
return commercialRouteInfo.copy(commercialPathInfo, routeStep);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final CommercialPathInfo getCommercialPathInfo() {
|
||||
return this.commercialPathInfo;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final RouteStep getPassthroughStep() {
|
||||
return this.passthroughStep;
|
||||
}
|
||||
|
||||
public final CommercialRouteInfo copy(CommercialPathInfo commercialPathInfo, RouteStep passthroughStep) {
|
||||
Intrinsics.checkNotNullParameter(commercialPathInfo, "commercialPathInfo");
|
||||
Intrinsics.checkNotNullParameter(passthroughStep, "passthroughStep");
|
||||
return new CommercialRouteInfo(commercialPathInfo, passthroughStep);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof CommercialRouteInfo)) {
|
||||
return false;
|
||||
}
|
||||
CommercialRouteInfo commercialRouteInfo = (CommercialRouteInfo) other;
|
||||
return Intrinsics.areEqual(this.commercialPathInfo, commercialRouteInfo.commercialPathInfo) && Intrinsics.areEqual(this.passthroughStep, commercialRouteInfo.passthroughStep);
|
||||
}
|
||||
|
||||
public final CommercialPathInfo getCommercialPathInfo() {
|
||||
return this.commercialPathInfo;
|
||||
}
|
||||
|
||||
public final String getCtcPlatform() {
|
||||
return this.passthroughStep.getDeparturePassthroughStepSides().getCtcPlatform();
|
||||
}
|
||||
|
||||
public final boolean getHasWarningPlatform() {
|
||||
return this.passthroughStep.getDeparturePassthroughStepSides().isPlatformWarning();
|
||||
}
|
||||
|
||||
public final boolean getImmediateDeparture() {
|
||||
return this.passthroughStep.getDeparturePassthroughStepSides().getImmediateDeparture();
|
||||
}
|
||||
|
||||
public final String getObservation() {
|
||||
return this.passthroughStep.getDeparturePassthroughStepSides().getObservation();
|
||||
}
|
||||
|
||||
public final String getOperatorPlatform() {
|
||||
return this.passthroughStep.getDeparturePassthroughStepSides().getOperatorPlatform();
|
||||
}
|
||||
|
||||
public final RouteStep getPassthroughStep() {
|
||||
return this.passthroughStep;
|
||||
}
|
||||
|
||||
public final String getPlannedPlatform() {
|
||||
return this.passthroughStep.getDeparturePassthroughStepSides().getPlannedPlatform();
|
||||
}
|
||||
|
||||
public final String getPlatform() {
|
||||
return this.passthroughStep.getDeparturePassthroughStepSides().getPlatform();
|
||||
}
|
||||
|
||||
public final boolean getPlatformMuted() {
|
||||
return this.passthroughStep.getDeparturePassthroughStepSides().isPlatformMuted();
|
||||
}
|
||||
|
||||
public final String getPreassignedPlatform() {
|
||||
return this.passthroughStep.getDeparturePassthroughStepSides().getPreassignedPlatform();
|
||||
}
|
||||
|
||||
public final String getResultantPlatform() {
|
||||
RouteStepSide departurePassthroughStepSides = this.passthroughStep.getDeparturePassthroughStepSides();
|
||||
if (departurePassthroughStepSides != null) {
|
||||
return departurePassthroughStepSides.getResultantPlatform();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public final String getSitraPlatform() {
|
||||
return this.passthroughStep.getDeparturePassthroughStepSides().getSitraPlatform();
|
||||
}
|
||||
|
||||
public final String getStationCode() {
|
||||
String commercialDestinationStationCode = this.commercialPathInfo.getCommercialDestinationStationCode();
|
||||
return commercialDestinationStationCode == null ? this.commercialPathInfo.getComercialPathKey().getDestinationStationCode() : commercialDestinationStationCode;
|
||||
}
|
||||
|
||||
public final String getTechnicalNumber() {
|
||||
RouteStepSide departurePassthroughStepSides = this.passthroughStep.getDeparturePassthroughStepSides();
|
||||
if (departurePassthroughStepSides != null) {
|
||||
return departurePassthroughStepSides.getTechnicalNumber();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.passthroughStep.hashCode() + (this.commercialPathInfo.hashCode() * 31);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "CommercialRouteInfo(commercialPathInfo=" + this.commercialPathInfo + ", passthroughStep=" + this.passthroughStep + ')';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\b\f\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B\u0017\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\t\u0010\r\u001a\u00020\u0003HÆ\u0003J\t\u0010\u000e\u001a\u00020\u0005HÆ\u0003J\u001d\u0010\u000f\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u0005HÆ\u0001J\u0013\u0010\u0010\u001a\u00020\u00052\b\u0010\u0011\u001a\u0004\u0018\u00010\u0012HÖ\u0003J\t\u0010\u0013\u001a\u00020\u0014HÖ\u0001J\t\u0010\u0015\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u001a\u0010\u0004\u001a\u00020\u0005X\u0096\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\t\u0010\n\"\u0004\b\u000b\u0010\f¨\u0006\u0016"}, d2 = {"Lcom/adif/elcanomovil/domain/entities/circulation/DateHeaderCirculation;", "Lcom/adif/elcanomovil/domain/entities/circulation/Circulation;", "date", "", "showExtended", "", "(Ljava/lang/String;Z)V", "getDate", "()Ljava/lang/String;", "getShowExtended", "()Z", "setShowExtended", "(Z)V", "component1", "component2", "copy", "equals", "other", "", "hashCode", "", "toString", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* data */ class DateHeaderCirculation implements Circulation {
|
||||
private final String date;
|
||||
private boolean showExtended;
|
||||
|
||||
public DateHeaderCirculation(String date, boolean z3) {
|
||||
Intrinsics.checkNotNullParameter(date, "date");
|
||||
this.date = date;
|
||||
this.showExtended = z3;
|
||||
}
|
||||
|
||||
public static /* synthetic */ DateHeaderCirculation copy$default(DateHeaderCirculation dateHeaderCirculation, String str, boolean z3, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = dateHeaderCirculation.date;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
z3 = dateHeaderCirculation.showExtended;
|
||||
}
|
||||
return dateHeaderCirculation.copy(str, z3);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final String getDate() {
|
||||
return this.date;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final boolean getShowExtended() {
|
||||
return this.showExtended;
|
||||
}
|
||||
|
||||
public final DateHeaderCirculation copy(String date, boolean showExtended) {
|
||||
Intrinsics.checkNotNullParameter(date, "date");
|
||||
return new DateHeaderCirculation(date, showExtended);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof DateHeaderCirculation)) {
|
||||
return false;
|
||||
}
|
||||
DateHeaderCirculation dateHeaderCirculation = (DateHeaderCirculation) other;
|
||||
return Intrinsics.areEqual(this.date, dateHeaderCirculation.date) && this.showExtended == dateHeaderCirculation.showExtended;
|
||||
}
|
||||
|
||||
public final String getDate() {
|
||||
return this.date;
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.entities.circulation.Circulation
|
||||
public boolean getShowExtended() {
|
||||
return this.showExtended;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Boolean.hashCode(this.showExtended) + (this.date.hashCode() * 31);
|
||||
}
|
||||
|
||||
@Override // com.adif.elcanomovil.domain.entities.circulation.Circulation
|
||||
public void setShowExtended(boolean z3) {
|
||||
this.showExtended = z3;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "DateHeaderCirculation(date=" + this.date + ", showExtended=" + this.showExtended + ')';
|
||||
}
|
||||
|
||||
public /* synthetic */ DateHeaderCirculation(String str, boolean z3, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(str, (i & 2) != 0 ? false : z3);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation;
|
||||
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.NavArguments;
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
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\t\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003¢\u0006\u0002\u0010\u0005J\t\u0010\t\u001a\u00020\u0003HÆ\u0003J\t\u0010\n\u001a\u00020\u0003HÆ\u0003J\u001d\u0010\u000b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\f\u001a\u00020\r2\b\u0010\u000e\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u000f\u001a\u00020\u0010HÖ\u0001J\t\u0010\u0011\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\u0007¨\u0006\u0012"}, d2 = {"Lcom/adif/elcanomovil/domain/entities/circulation/OpeProComPro;", "", NavArguments.ARG_DYNAMIC_LINKS_OPERATOR, "", NavArguments.ARG_DYNAMIC_LINKS_COMMERCIAL_PRODUCT, "(Ljava/lang/String;Ljava/lang/String;)V", "getCommercialProduct", "()Ljava/lang/String;", "getOperator", "component1", "component2", "copy", "equals", "", "other", "hashCode", "", "toString", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* data */ class OpeProComPro {
|
||||
private final String commercialProduct;
|
||||
private final String operator;
|
||||
|
||||
public OpeProComPro(String operator, String commercialProduct) {
|
||||
Intrinsics.checkNotNullParameter(operator, "operator");
|
||||
Intrinsics.checkNotNullParameter(commercialProduct, "commercialProduct");
|
||||
this.operator = operator;
|
||||
this.commercialProduct = commercialProduct;
|
||||
}
|
||||
|
||||
public static /* synthetic */ OpeProComPro copy$default(OpeProComPro opeProComPro, String str, String str2, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = opeProComPro.operator;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
str2 = opeProComPro.commercialProduct;
|
||||
}
|
||||
return opeProComPro.copy(str, str2);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final String getOperator() {
|
||||
return this.operator;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final String getCommercialProduct() {
|
||||
return this.commercialProduct;
|
||||
}
|
||||
|
||||
public final OpeProComPro copy(String operator, String commercialProduct) {
|
||||
Intrinsics.checkNotNullParameter(operator, "operator");
|
||||
Intrinsics.checkNotNullParameter(commercialProduct, "commercialProduct");
|
||||
return new OpeProComPro(operator, commercialProduct);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof OpeProComPro)) {
|
||||
return false;
|
||||
}
|
||||
OpeProComPro opeProComPro = (OpeProComPro) other;
|
||||
return Intrinsics.areEqual(this.operator, opeProComPro.operator) && Intrinsics.areEqual(this.commercialProduct, opeProComPro.commercialProduct);
|
||||
}
|
||||
|
||||
public final String getCommercialProduct() {
|
||||
return this.commercialProduct;
|
||||
}
|
||||
|
||||
public final String getOperator() {
|
||||
return this.operator;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.commercialProduct.hashCode() + (this.operator.hashCode() * 31);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("OpeProComPro(operator=");
|
||||
sb.append(this.operator);
|
||||
sb.append(", commercialProduct=");
|
||||
return a.n(sb, this.commercialProduct, ')');
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,127 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation;
|
||||
|
||||
import C.w;
|
||||
import com.adif.elcanomovil.domain.extensions.LongKt;
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import java.util.Date;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0012\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\b\u0018\u00002\u00020\u0001B1\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0003\u0012\b\u0010\u0007\u001a\u0004\u0018\u00010\b\u0012\b\u0010\t\u001a\u0004\u0018\u00010\b¢\u0006\u0002\u0010\nJ\t\u0010\u0012\u001a\u00020\u0003HÆ\u0003J\t\u0010\u0013\u001a\u00020\u0005HÆ\u0003J\t\u0010\u0014\u001a\u00020\u0003HÆ\u0003J\u000b\u0010\u0015\u001a\u0004\u0018\u00010\bHÆ\u0003J\u000b\u0010\u0016\u001a\u0004\u0018\u00010\bHÆ\u0003J?\u0010\u0017\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u00032\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\b2\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\bHÆ\u0001J\u0013\u0010\u0018\u001a\u00020\u00032\b\u0010\u0019\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u001a\u001a\u00020\u001bHÖ\u0001J\u000e\u0010\u001c\u001a\u00020\u001d2\u0006\u0010\u001e\u001a\u00020\u0003J\t\u0010\u001f\u001a\u00020\u0005HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0013\u0010\u0007\u001a\u0004\u0018\u00010\b¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000eR\u0013\u0010\t\u001a\u0004\u0018\u00010\b¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u000eR\u0011\u0010\u0006\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\fR\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u0011¨\u0006 "}, d2 = {"Lcom/adif/elcanomovil/domain/entities/circulation/PassthroughDetailsStep;", "", "announceable", "", "stationCode", "", "isCommercial", "arrivalPassthroughStepSides", "Lcom/adif/elcanomovil/domain/entities/circulation/PassthroughDetailsStepSide;", "departurePassthroughStepSides", "(ZLjava/lang/String;ZLcom/adif/elcanomovil/domain/entities/circulation/PassthroughDetailsStepSide;Lcom/adif/elcanomovil/domain/entities/circulation/PassthroughDetailsStepSide;)V", "getAnnounceable", "()Z", "getArrivalPassthroughStepSides", "()Lcom/adif/elcanomovil/domain/entities/circulation/PassthroughDetailsStepSide;", "getDeparturePassthroughStepSides", "getStationCode", "()Ljava/lang/String;", "component1", "component2", "component3", "component4", "component5", "copy", "equals", "other", "hashCode", "", "plannedDate", "Ljava/util/Date;", "isDeparture", "toString", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* data */ class PassthroughDetailsStep {
|
||||
private final boolean announceable;
|
||||
private final PassthroughDetailsStepSide arrivalPassthroughStepSides;
|
||||
private final PassthroughDetailsStepSide departurePassthroughStepSides;
|
||||
private final boolean isCommercial;
|
||||
private final String stationCode;
|
||||
|
||||
public PassthroughDetailsStep(boolean z3, String stationCode, boolean z4, PassthroughDetailsStepSide passthroughDetailsStepSide, PassthroughDetailsStepSide passthroughDetailsStepSide2) {
|
||||
Intrinsics.checkNotNullParameter(stationCode, "stationCode");
|
||||
this.announceable = z3;
|
||||
this.stationCode = stationCode;
|
||||
this.isCommercial = z4;
|
||||
this.arrivalPassthroughStepSides = passthroughDetailsStepSide;
|
||||
this.departurePassthroughStepSides = passthroughDetailsStepSide2;
|
||||
}
|
||||
|
||||
public static /* synthetic */ PassthroughDetailsStep copy$default(PassthroughDetailsStep passthroughDetailsStep, boolean z3, String str, boolean z4, PassthroughDetailsStepSide passthroughDetailsStepSide, PassthroughDetailsStepSide passthroughDetailsStepSide2, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
z3 = passthroughDetailsStep.announceable;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
str = passthroughDetailsStep.stationCode;
|
||||
}
|
||||
if ((i & 4) != 0) {
|
||||
z4 = passthroughDetailsStep.isCommercial;
|
||||
}
|
||||
if ((i & 8) != 0) {
|
||||
passthroughDetailsStepSide = passthroughDetailsStep.arrivalPassthroughStepSides;
|
||||
}
|
||||
if ((i & 16) != 0) {
|
||||
passthroughDetailsStepSide2 = passthroughDetailsStep.departurePassthroughStepSides;
|
||||
}
|
||||
PassthroughDetailsStepSide passthroughDetailsStepSide3 = passthroughDetailsStepSide2;
|
||||
boolean z5 = z4;
|
||||
return passthroughDetailsStep.copy(z3, str, z5, passthroughDetailsStepSide, passthroughDetailsStepSide3);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final boolean getAnnounceable() {
|
||||
return this.announceable;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final String getStationCode() {
|
||||
return this.stationCode;
|
||||
}
|
||||
|
||||
/* renamed from: component3, reason: from getter */
|
||||
public final boolean getIsCommercial() {
|
||||
return this.isCommercial;
|
||||
}
|
||||
|
||||
/* renamed from: component4, reason: from getter */
|
||||
public final PassthroughDetailsStepSide getArrivalPassthroughStepSides() {
|
||||
return this.arrivalPassthroughStepSides;
|
||||
}
|
||||
|
||||
/* renamed from: component5, reason: from getter */
|
||||
public final PassthroughDetailsStepSide getDeparturePassthroughStepSides() {
|
||||
return this.departurePassthroughStepSides;
|
||||
}
|
||||
|
||||
public final PassthroughDetailsStep copy(boolean announceable, String stationCode, boolean isCommercial, PassthroughDetailsStepSide arrivalPassthroughStepSides, PassthroughDetailsStepSide departurePassthroughStepSides) {
|
||||
Intrinsics.checkNotNullParameter(stationCode, "stationCode");
|
||||
return new PassthroughDetailsStep(announceable, stationCode, isCommercial, arrivalPassthroughStepSides, departurePassthroughStepSides);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof PassthroughDetailsStep)) {
|
||||
return false;
|
||||
}
|
||||
PassthroughDetailsStep passthroughDetailsStep = (PassthroughDetailsStep) other;
|
||||
return this.announceable == passthroughDetailsStep.announceable && Intrinsics.areEqual(this.stationCode, passthroughDetailsStep.stationCode) && this.isCommercial == passthroughDetailsStep.isCommercial && Intrinsics.areEqual(this.arrivalPassthroughStepSides, passthroughDetailsStep.arrivalPassthroughStepSides) && Intrinsics.areEqual(this.departurePassthroughStepSides, passthroughDetailsStep.departurePassthroughStepSides);
|
||||
}
|
||||
|
||||
public final boolean getAnnounceable() {
|
||||
return this.announceable;
|
||||
}
|
||||
|
||||
public final PassthroughDetailsStepSide getArrivalPassthroughStepSides() {
|
||||
return this.arrivalPassthroughStepSides;
|
||||
}
|
||||
|
||||
public final PassthroughDetailsStepSide getDeparturePassthroughStepSides() {
|
||||
return this.departurePassthroughStepSides;
|
||||
}
|
||||
|
||||
public final String getStationCode() {
|
||||
return this.stationCode;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int c4 = w.c(a.d(this.stationCode, Boolean.hashCode(this.announceable) * 31, 31), 31, this.isCommercial);
|
||||
PassthroughDetailsStepSide passthroughDetailsStepSide = this.arrivalPassthroughStepSides;
|
||||
int hashCode = (c4 + (passthroughDetailsStepSide == null ? 0 : passthroughDetailsStepSide.hashCode())) * 31;
|
||||
PassthroughDetailsStepSide passthroughDetailsStepSide2 = this.departurePassthroughStepSides;
|
||||
return hashCode + (passthroughDetailsStepSide2 != null ? passthroughDetailsStepSide2.hashCode() : 0);
|
||||
}
|
||||
|
||||
public final boolean isCommercial() {
|
||||
return this.isCommercial;
|
||||
}
|
||||
|
||||
public final Date plannedDate(boolean isDeparture) {
|
||||
Date delayedDate;
|
||||
PassthroughDetailsStepSide passthroughDetailsStepSide = isDeparture ? this.departurePassthroughStepSides : this.arrivalPassthroughStepSides;
|
||||
return (passthroughDetailsStepSide == null || (delayedDate = LongKt.getDelayedDate(passthroughDetailsStepSide.getPlannedTime(), passthroughDetailsStepSide.getForecastedOrAuditedDelay())) == null) ? new Date() : delayedDate;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "PassthroughDetailsStep(announceable=" + this.announceable + ", stationCode=" + this.stationCode + ", isCommercial=" + this.isCommercial + ", arrivalPassthroughStepSides=" + this.arrivalPassthroughStepSides + ", departurePassthroughStepSides=" + this.departurePassthroughStepSides + ')';
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,102 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation;
|
||||
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0010\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B)\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0007\u0012\b\u0010\b\u001a\u0004\u0018\u00010\u0007¢\u0006\u0002\u0010\tJ\t\u0010\u0010\u001a\u00020\u0003HÆ\u0003J\t\u0010\u0011\u001a\u00020\u0005HÆ\u0003J\u000b\u0010\u0012\u001a\u0004\u0018\u00010\u0007HÆ\u0003J\u000b\u0010\u0013\u001a\u0004\u0018\u00010\u0007HÆ\u0003J5\u0010\u0014\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u00072\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u0007HÆ\u0001J\u0013\u0010\u0015\u001a\u00020\u00032\b\u0010\u0016\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u0017\u001a\u00020\u0018HÖ\u0001J\t\u0010\u0019\u001a\u00020\u0005HÖ\u0001R\u0013\u0010\u0006\u001a\u0004\u0018\u00010\u0007¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000bR\u0013\u0010\b\u001a\u0004\u0018\u00010\u0007¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\u000bR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0002\u0010\rR\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u000f¨\u0006\u001a"}, d2 = {"Lcom/adif/elcanomovil/domain/entities/circulation/PassthroughStep;", "", "isCommercial", "", "stationCode", "", "arrivalPassthroughStepSides", "Lcom/adif/elcanomovil/domain/entities/circulation/PassthroughStepSides;", "departurePassthroughStepSides", "(ZLjava/lang/String;Lcom/adif/elcanomovil/domain/entities/circulation/PassthroughStepSides;Lcom/adif/elcanomovil/domain/entities/circulation/PassthroughStepSides;)V", "getArrivalPassthroughStepSides", "()Lcom/adif/elcanomovil/domain/entities/circulation/PassthroughStepSides;", "getDeparturePassthroughStepSides", "()Z", "getStationCode", "()Ljava/lang/String;", "component1", "component2", "component3", "component4", "copy", "equals", "other", "hashCode", "", "toString", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* data */ class PassthroughStep {
|
||||
private final PassthroughStepSides arrivalPassthroughStepSides;
|
||||
private final PassthroughStepSides departurePassthroughStepSides;
|
||||
private final boolean isCommercial;
|
||||
private final String stationCode;
|
||||
|
||||
public PassthroughStep(boolean z3, String stationCode, PassthroughStepSides passthroughStepSides, PassthroughStepSides passthroughStepSides2) {
|
||||
Intrinsics.checkNotNullParameter(stationCode, "stationCode");
|
||||
this.isCommercial = z3;
|
||||
this.stationCode = stationCode;
|
||||
this.arrivalPassthroughStepSides = passthroughStepSides;
|
||||
this.departurePassthroughStepSides = passthroughStepSides2;
|
||||
}
|
||||
|
||||
public static /* synthetic */ PassthroughStep copy$default(PassthroughStep passthroughStep, boolean z3, String str, PassthroughStepSides passthroughStepSides, PassthroughStepSides passthroughStepSides2, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
z3 = passthroughStep.isCommercial;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
str = passthroughStep.stationCode;
|
||||
}
|
||||
if ((i & 4) != 0) {
|
||||
passthroughStepSides = passthroughStep.arrivalPassthroughStepSides;
|
||||
}
|
||||
if ((i & 8) != 0) {
|
||||
passthroughStepSides2 = passthroughStep.departurePassthroughStepSides;
|
||||
}
|
||||
return passthroughStep.copy(z3, str, passthroughStepSides, passthroughStepSides2);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final boolean getIsCommercial() {
|
||||
return this.isCommercial;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final String getStationCode() {
|
||||
return this.stationCode;
|
||||
}
|
||||
|
||||
/* renamed from: component3, reason: from getter */
|
||||
public final PassthroughStepSides getArrivalPassthroughStepSides() {
|
||||
return this.arrivalPassthroughStepSides;
|
||||
}
|
||||
|
||||
/* renamed from: component4, reason: from getter */
|
||||
public final PassthroughStepSides getDeparturePassthroughStepSides() {
|
||||
return this.departurePassthroughStepSides;
|
||||
}
|
||||
|
||||
public final PassthroughStep copy(boolean isCommercial, String stationCode, PassthroughStepSides arrivalPassthroughStepSides, PassthroughStepSides departurePassthroughStepSides) {
|
||||
Intrinsics.checkNotNullParameter(stationCode, "stationCode");
|
||||
return new PassthroughStep(isCommercial, stationCode, arrivalPassthroughStepSides, departurePassthroughStepSides);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof PassthroughStep)) {
|
||||
return false;
|
||||
}
|
||||
PassthroughStep passthroughStep = (PassthroughStep) other;
|
||||
return this.isCommercial == passthroughStep.isCommercial && Intrinsics.areEqual(this.stationCode, passthroughStep.stationCode) && Intrinsics.areEqual(this.arrivalPassthroughStepSides, passthroughStep.arrivalPassthroughStepSides) && Intrinsics.areEqual(this.departurePassthroughStepSides, passthroughStep.departurePassthroughStepSides);
|
||||
}
|
||||
|
||||
public final PassthroughStepSides getArrivalPassthroughStepSides() {
|
||||
return this.arrivalPassthroughStepSides;
|
||||
}
|
||||
|
||||
public final PassthroughStepSides getDeparturePassthroughStepSides() {
|
||||
return this.departurePassthroughStepSides;
|
||||
}
|
||||
|
||||
public final String getStationCode() {
|
||||
return this.stationCode;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int d4 = a.d(this.stationCode, Boolean.hashCode(this.isCommercial) * 31, 31);
|
||||
PassthroughStepSides passthroughStepSides = this.arrivalPassthroughStepSides;
|
||||
int hashCode = (d4 + (passthroughStepSides == null ? 0 : passthroughStepSides.hashCode())) * 31;
|
||||
PassthroughStepSides passthroughStepSides2 = this.departurePassthroughStepSides;
|
||||
return hashCode + (passthroughStepSides2 != null ? passthroughStepSides2.hashCode() : 0);
|
||||
}
|
||||
|
||||
public final boolean isCommercial() {
|
||||
return this.isCommercial;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "PassthroughStep(isCommercial=" + this.isCommercial + ", stationCode=" + this.stationCode + ", arrivalPassthroughStepSides=" + this.arrivalPassthroughStepSides + ", departurePassthroughStepSides=" + this.departurePassthroughStepSides + ')';
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,71 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0086\b\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003¢\u0006\u0002\u0010\u0005J\t\u0010\t\u001a\u00020\u0003HÆ\u0003J\t\u0010\n\u001a\u00020\u0003HÆ\u0003J\u001d\u0010\u000b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\f\u001a\u00020\r2\b\u0010\u000e\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u000f\u001a\u00020\u0010HÖ\u0001J\t\u0010\u0011\u001a\u00020\u0012HÖ\u0001R\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\u0013"}, d2 = {"Lcom/adif/elcanomovil/domain/entities/circulation/RouteStep;", "", "arrivalPassthroughStepSides", "Lcom/adif/elcanomovil/domain/entities/circulation/RouteStepSide;", "departurePassthroughStepSides", "(Lcom/adif/elcanomovil/domain/entities/circulation/RouteStepSide;Lcom/adif/elcanomovil/domain/entities/circulation/RouteStepSide;)V", "getArrivalPassthroughStepSides", "()Lcom/adif/elcanomovil/domain/entities/circulation/RouteStepSide;", "getDeparturePassthroughStepSides", "component1", "component2", "copy", "equals", "", "other", "hashCode", "", "toString", "", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* data */ class RouteStep {
|
||||
private final RouteStepSide arrivalPassthroughStepSides;
|
||||
private final RouteStepSide departurePassthroughStepSides;
|
||||
|
||||
public RouteStep(RouteStepSide arrivalPassthroughStepSides, RouteStepSide departurePassthroughStepSides) {
|
||||
Intrinsics.checkNotNullParameter(arrivalPassthroughStepSides, "arrivalPassthroughStepSides");
|
||||
Intrinsics.checkNotNullParameter(departurePassthroughStepSides, "departurePassthroughStepSides");
|
||||
this.arrivalPassthroughStepSides = arrivalPassthroughStepSides;
|
||||
this.departurePassthroughStepSides = departurePassthroughStepSides;
|
||||
}
|
||||
|
||||
public static /* synthetic */ RouteStep copy$default(RouteStep routeStep, RouteStepSide routeStepSide, RouteStepSide routeStepSide2, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
routeStepSide = routeStep.arrivalPassthroughStepSides;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
routeStepSide2 = routeStep.departurePassthroughStepSides;
|
||||
}
|
||||
return routeStep.copy(routeStepSide, routeStepSide2);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final RouteStepSide getArrivalPassthroughStepSides() {
|
||||
return this.arrivalPassthroughStepSides;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final RouteStepSide getDeparturePassthroughStepSides() {
|
||||
return this.departurePassthroughStepSides;
|
||||
}
|
||||
|
||||
public final RouteStep copy(RouteStepSide arrivalPassthroughStepSides, RouteStepSide departurePassthroughStepSides) {
|
||||
Intrinsics.checkNotNullParameter(arrivalPassthroughStepSides, "arrivalPassthroughStepSides");
|
||||
Intrinsics.checkNotNullParameter(departurePassthroughStepSides, "departurePassthroughStepSides");
|
||||
return new RouteStep(arrivalPassthroughStepSides, departurePassthroughStepSides);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof RouteStep)) {
|
||||
return false;
|
||||
}
|
||||
RouteStep routeStep = (RouteStep) other;
|
||||
return Intrinsics.areEqual(this.arrivalPassthroughStepSides, routeStep.arrivalPassthroughStepSides) && Intrinsics.areEqual(this.departurePassthroughStepSides, routeStep.departurePassthroughStepSides);
|
||||
}
|
||||
|
||||
public final RouteStepSide getArrivalPassthroughStepSides() {
|
||||
return this.arrivalPassthroughStepSides;
|
||||
}
|
||||
|
||||
public final RouteStepSide getDeparturePassthroughStepSides() {
|
||||
return this.departurePassthroughStepSides;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.departurePassthroughStepSides.hashCode() + (this.arrivalPassthroughStepSides.hashCode() * 31);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "RouteStep(arrivalPassthroughStepSides=" + this.arrivalPassthroughStepSides + ", departurePassthroughStepSides=" + this.departurePassthroughStepSides + ')';
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,55 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.PlatformProvider;
|
||||
import java.util.Date;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b'\n\u0002\u0018\u0002\n\u0002\b\u0003\bf\u0018\u00002\u00020\u00012\u00020\u0002R\u0012\u0010\u0003\u001a\u00020\u0004X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006R\u0014\u0010\u0007\u001a\u0004\u0018\u00010\bX¦\u0004¢\u0006\u0006\u001a\u0004\b\t\u0010\nR\u0012\u0010\u000b\u001a\u00020\fX¦\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000eR\u0012\u0010\u000f\u001a\u00020\u0004X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0010\u0010\u0006R\u0012\u0010\u0011\u001a\u00020\u0004X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u0006R\u0014\u0010\u0012\u001a\u0004\u0018\u00010\bX¦\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\nR\u0014\u0010\u0014\u001a\u0004\u0018\u00010\bX¦\u0004¢\u0006\u0006\u001a\u0004\b\u0015\u0010\nR\u0014\u0010\u0016\u001a\u0004\u0018\u00010\bX¦\u0004¢\u0006\u0006\u001a\u0004\b\u0017\u0010\nR\u0012\u0010\u0018\u001a\u00020\bX¦\u0004¢\u0006\u0006\u001a\u0004\b\u0019\u0010\nR\u0012\u0010\u001a\u001a\u00020\u0004X¦\u0004¢\u0006\u0006\u001a\u0004\b\u001b\u0010\u0006R\u0012\u0010\u001c\u001a\u00020\u0004X¦\u0004¢\u0006\u0006\u001a\u0004\b\u001d\u0010\u0006R\u0014\u0010\u001e\u001a\u0004\u0018\u00010\bX¦\u0004¢\u0006\u0006\u001a\u0004\b\u001f\u0010\nR\u0014\u0010 \u001a\u0004\u0018\u00010\bX¦\u0004¢\u0006\u0006\u001a\u0004\b!\u0010\nR\u0014\u0010\"\u001a\u0004\u0018\u00010\bX¦\u0004¢\u0006\u0006\u001a\u0004\b#\u0010\nR\u0012\u0010$\u001a\u00020\bX¦\u0004¢\u0006\u0006\u001a\u0004\b%\u0010\nR\u001a\u0010&\u001a\u0004\u0018\u00010\bX¦\u000e¢\u0006\f\u001a\u0004\b'\u0010\n\"\u0004\b(\u0010)R\u001a\u0010*\u001a\u0004\u0018\u00010\bX¦\u000e¢\u0006\f\u001a\u0004\b+\u0010\n\"\u0004\b,\u0010)R\u0012\u0010-\u001a\u00020\bX¦\u0004¢\u0006\u0006\u001a\u0004\b.\u0010\nR\u0014\u0010/\u001a\u0004\u0018\u00010\bX¦\u0004¢\u0006\u0006\u001a\u0004\b0\u0010\nR\u0012\u00101\u001a\u00020\bX¦\u0004¢\u0006\u0006\u001a\u0004\b2\u0010\nR\u0012\u00103\u001a\u000204X¦\u0004¢\u0006\u0006\u001a\u0004\b5\u00106¨\u00067"}, d2 = {"Lcom/adif/elcanomovil/domain/entities/circulation/TrainCirculation;", "Lcom/adif/elcanomovil/domain/entities/circulation/Circulation;", "Lcom/adif/elcanomovil/domain/entities/PlatformProvider;", "accessibleStation", "", "getAccessibleStation", "()Z", "ctcPlatform", "", "getCtcPlatform", "()Ljava/lang/String;", "date", "Ljava/util/Date;", "getDate", "()Ljava/util/Date;", "immediateDeparture", "getImmediateDeparture", "isShortTrain", "observation", "getObservation", "operatorPlatform", "getOperatorPlatform", "plannedPlatform", "getPlannedPlatform", "platform", "getPlatform", "platformMuted", "getPlatformMuted", "platformWarning", "getPlatformWarning", "preassignedPlatform", "getPreassignedPlatform", "resultantPlatform", "getResultantPlatform", "sitraPlatform", "getSitraPlatform", "stationCode", "getStationCode", "stationLongName", "getStationLongName", "setStationLongName", "(Ljava/lang/String;)V", "stationShortName", "getStationShortName", "setStationShortName", "stationStepCode", "getStationStepCode", "technicalNumber", "getTechnicalNumber", "time", "getTime", "trainCirculation", "Lcom/adif/elcanomovil/domain/entities/circulation/TrainCirculationInfo;", "getTrainCirculation", "()Lcom/adif/elcanomovil/domain/entities/circulation/TrainCirculationInfo;", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public interface TrainCirculation extends Circulation, PlatformProvider {
|
||||
boolean getAccessibleStation();
|
||||
|
||||
String getCtcPlatform();
|
||||
|
||||
Date getDate();
|
||||
|
||||
boolean getImmediateDeparture();
|
||||
|
||||
String getObservation();
|
||||
|
||||
String getOperatorPlatform();
|
||||
|
||||
String getPlannedPlatform();
|
||||
|
||||
String getPlatform();
|
||||
|
||||
boolean getPlatformMuted();
|
||||
|
||||
boolean getPlatformWarning();
|
||||
|
||||
String getPreassignedPlatform();
|
||||
|
||||
String getResultantPlatform();
|
||||
|
||||
String getSitraPlatform();
|
||||
|
||||
String getStationCode();
|
||||
|
||||
String getStationLongName();
|
||||
|
||||
String getStationShortName();
|
||||
|
||||
String getStationStepCode();
|
||||
|
||||
String getTechnicalNumber();
|
||||
|
||||
String getTime();
|
||||
|
||||
TrainCirculationInfo getTrainCirculation();
|
||||
|
||||
boolean isShortTrain();
|
||||
|
||||
void setStationLongName(String str);
|
||||
|
||||
void setStationShortName(String str);
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation;
|
||||
|
||||
import com.adif.elcanomovil.commonNavGraph.arguments.NavArguments;
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
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\u0002\n\u0002\u0010\t\n\u0002\b\u0019\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001BI\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006\u0012\u0006\u0010\u0007\u001a\u00020\u0003\u0012\b\u0010\b\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\t\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\n\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u000bJ\u000b\u0010\u0016\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010\u0017\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u0010\u0010\u0018\u001a\u0004\u0018\u00010\u0006HÆ\u0003¢\u0006\u0002\u0010\u0011J\t\u0010\u0019\u001a\u00020\u0003HÆ\u0003J\u000b\u0010\u001a\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010\u001b\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010\u001c\u001a\u0004\u0018\u00010\u0003HÆ\u0003J`\u0010\u001d\u001a\u00020\u00002\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u00062\b\b\u0002\u0010\u0007\u001a\u00020\u00032\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u0003HÆ\u0001¢\u0006\u0002\u0010\u001eJ\u0013\u0010\u001f\u001a\u00020 2\b\u0010!\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\"\u001a\u00020#HÖ\u0001J\t\u0010$\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0007\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\rR\u0013\u0010\n\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\rR\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\rR\u0015\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\n\n\u0002\u0010\u0012\u001a\u0004\b\u0010\u0010\u0011R\u0013\u0010\t\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\rR\u0013\u0010\b\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0014\u0010\rR\u0013\u0010\u0002\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\r¨\u0006%"}, d2 = {"Lcom/adif/elcanomovil/domain/entities/circulation/TrainCirculationInfo;", "", "origin", "", FirebaseAnalytics.Param.DESTINATION, NavArguments.ARG_DYNAMIC_LINKS_LAUNCHDATE, "", NavArguments.ARG_DYNAMIC_LINKS_COMMERCIAL_NUMBER, NavArguments.ARG_DYNAMIC_LINKS_OPERATOR, "observation", NavArguments.ARG_DYNAMIC_LINKS_COMMERCIAL_PRODUCT, "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "getCommercialNumber", "()Ljava/lang/String;", "getCommercialProduct", "getDestination", "getLaunchingDate", "()Ljava/lang/Long;", "Ljava/lang/Long;", "getObservation", "getOperator", "getOrigin", "component1", "component2", "component3", "component4", "component5", "component6", "component7", "copy", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/adif/elcanomovil/domain/entities/circulation/TrainCirculationInfo;", "equals", "", "other", "hashCode", "", "toString", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* data */ class TrainCirculationInfo {
|
||||
private final String commercialNumber;
|
||||
private final String commercialProduct;
|
||||
private final String destination;
|
||||
private final Long launchingDate;
|
||||
private final String observation;
|
||||
private final String operator;
|
||||
private final String origin;
|
||||
|
||||
public TrainCirculationInfo(String str, String str2, Long l4, String commercialNumber, String str3, String str4, String str5) {
|
||||
Intrinsics.checkNotNullParameter(commercialNumber, "commercialNumber");
|
||||
this.origin = str;
|
||||
this.destination = str2;
|
||||
this.launchingDate = l4;
|
||||
this.commercialNumber = commercialNumber;
|
||||
this.operator = str3;
|
||||
this.observation = str4;
|
||||
this.commercialProduct = str5;
|
||||
}
|
||||
|
||||
public static /* synthetic */ TrainCirculationInfo copy$default(TrainCirculationInfo trainCirculationInfo, String str, String str2, Long l4, String str3, String str4, String str5, String str6, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = trainCirculationInfo.origin;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
str2 = trainCirculationInfo.destination;
|
||||
}
|
||||
if ((i & 4) != 0) {
|
||||
l4 = trainCirculationInfo.launchingDate;
|
||||
}
|
||||
if ((i & 8) != 0) {
|
||||
str3 = trainCirculationInfo.commercialNumber;
|
||||
}
|
||||
if ((i & 16) != 0) {
|
||||
str4 = trainCirculationInfo.operator;
|
||||
}
|
||||
if ((i & 32) != 0) {
|
||||
str5 = trainCirculationInfo.observation;
|
||||
}
|
||||
if ((i & 64) != 0) {
|
||||
str6 = trainCirculationInfo.commercialProduct;
|
||||
}
|
||||
String str7 = str5;
|
||||
String str8 = str6;
|
||||
String str9 = str4;
|
||||
Long l5 = l4;
|
||||
return trainCirculationInfo.copy(str, str2, l5, str3, str9, str7, str8);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final String getOrigin() {
|
||||
return this.origin;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final String getDestination() {
|
||||
return this.destination;
|
||||
}
|
||||
|
||||
/* renamed from: component3, reason: from getter */
|
||||
public final Long getLaunchingDate() {
|
||||
return this.launchingDate;
|
||||
}
|
||||
|
||||
/* renamed from: component4, reason: from getter */
|
||||
public final String getCommercialNumber() {
|
||||
return this.commercialNumber;
|
||||
}
|
||||
|
||||
/* renamed from: component5, reason: from getter */
|
||||
public final String getOperator() {
|
||||
return this.operator;
|
||||
}
|
||||
|
||||
/* renamed from: component6, reason: from getter */
|
||||
public final String getObservation() {
|
||||
return this.observation;
|
||||
}
|
||||
|
||||
/* renamed from: component7, reason: from getter */
|
||||
public final String getCommercialProduct() {
|
||||
return this.commercialProduct;
|
||||
}
|
||||
|
||||
public final TrainCirculationInfo copy(String origin, String destination, Long launchingDate, String commercialNumber, String operator, String observation, String commercialProduct) {
|
||||
Intrinsics.checkNotNullParameter(commercialNumber, "commercialNumber");
|
||||
return new TrainCirculationInfo(origin, destination, launchingDate, commercialNumber, operator, observation, commercialProduct);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof TrainCirculationInfo)) {
|
||||
return false;
|
||||
}
|
||||
TrainCirculationInfo trainCirculationInfo = (TrainCirculationInfo) other;
|
||||
return Intrinsics.areEqual(this.origin, trainCirculationInfo.origin) && Intrinsics.areEqual(this.destination, trainCirculationInfo.destination) && Intrinsics.areEqual(this.launchingDate, trainCirculationInfo.launchingDate) && Intrinsics.areEqual(this.commercialNumber, trainCirculationInfo.commercialNumber) && Intrinsics.areEqual(this.operator, trainCirculationInfo.operator) && Intrinsics.areEqual(this.observation, trainCirculationInfo.observation) && Intrinsics.areEqual(this.commercialProduct, trainCirculationInfo.commercialProduct);
|
||||
}
|
||||
|
||||
public final String getCommercialNumber() {
|
||||
return this.commercialNumber;
|
||||
}
|
||||
|
||||
public final String getCommercialProduct() {
|
||||
return this.commercialProduct;
|
||||
}
|
||||
|
||||
public final String getDestination() {
|
||||
return this.destination;
|
||||
}
|
||||
|
||||
public final Long getLaunchingDate() {
|
||||
return this.launchingDate;
|
||||
}
|
||||
|
||||
public final String getObservation() {
|
||||
return this.observation;
|
||||
}
|
||||
|
||||
public final String getOperator() {
|
||||
return this.operator;
|
||||
}
|
||||
|
||||
public final String getOrigin() {
|
||||
return this.origin;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
String str = this.origin;
|
||||
int hashCode = (str == null ? 0 : str.hashCode()) * 31;
|
||||
String str2 = this.destination;
|
||||
int hashCode2 = (hashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
|
||||
Long l4 = this.launchingDate;
|
||||
int d4 = a.d(this.commercialNumber, (hashCode2 + (l4 == null ? 0 : l4.hashCode())) * 31, 31);
|
||||
String str3 = this.operator;
|
||||
int hashCode3 = (d4 + (str3 == null ? 0 : str3.hashCode())) * 31;
|
||||
String str4 = this.observation;
|
||||
int hashCode4 = (hashCode3 + (str4 == null ? 0 : str4.hashCode())) * 31;
|
||||
String str5 = this.commercialProduct;
|
||||
return hashCode4 + (str5 != null ? str5.hashCode() : 0);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("TrainCirculationInfo(origin=");
|
||||
sb.append(this.origin);
|
||||
sb.append(", destination=");
|
||||
sb.append(this.destination);
|
||||
sb.append(", launchingDate=");
|
||||
sb.append(this.launchingDate);
|
||||
sb.append(", commercialNumber=");
|
||||
sb.append(this.commercialNumber);
|
||||
sb.append(", operator=");
|
||||
sb.append(this.operator);
|
||||
sb.append(", observation=");
|
||||
sb.append(this.observation);
|
||||
sb.append(", commercialProduct=");
|
||||
return a.n(sb, this.commercialProduct, ')');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation;
|
||||
|
||||
import C.w;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u000e\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0086\b\u0018\u00002\u00020\u0001B\u001d\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0003¢\u0006\u0002\u0010\u0006J\t\u0010\u000b\u001a\u00020\u0003HÆ\u0003J\t\u0010\f\u001a\u00020\u0003HÆ\u0003J\t\u0010\r\u001a\u00020\u0003HÆ\u0003J'\u0010\u000e\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\b\b\u0002\u0010\u0005\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\u000f\u001a\u00020\u00032\b\u0010\u0010\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u0011\u001a\u00020\u0012HÖ\u0001J\t\u0010\u0013\u001a\u00020\u0014HÖ\u0001R\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\bR\u0011\u0010\u0005\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\b¨\u0006\u0015"}, d2 = {"Lcom/adif/elcanomovil/domain/entities/circulation/VisualEffects;", "", "inmediateDeparture", "", "countDown", "showDelay", "(ZZZ)V", "getCountDown", "()Z", "getInmediateDeparture", "getShowDelay", "component1", "component2", "component3", "copy", "equals", "other", "hashCode", "", "toString", "", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* data */ class VisualEffects {
|
||||
private final boolean countDown;
|
||||
private final boolean inmediateDeparture;
|
||||
private final boolean showDelay;
|
||||
|
||||
public VisualEffects(boolean z3, boolean z4, boolean z5) {
|
||||
this.inmediateDeparture = z3;
|
||||
this.countDown = z4;
|
||||
this.showDelay = z5;
|
||||
}
|
||||
|
||||
public static /* synthetic */ VisualEffects copy$default(VisualEffects visualEffects, boolean z3, boolean z4, boolean z5, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
z3 = visualEffects.inmediateDeparture;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
z4 = visualEffects.countDown;
|
||||
}
|
||||
if ((i & 4) != 0) {
|
||||
z5 = visualEffects.showDelay;
|
||||
}
|
||||
return visualEffects.copy(z3, z4, z5);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final boolean getInmediateDeparture() {
|
||||
return this.inmediateDeparture;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final boolean getCountDown() {
|
||||
return this.countDown;
|
||||
}
|
||||
|
||||
/* renamed from: component3, reason: from getter */
|
||||
public final boolean getShowDelay() {
|
||||
return this.showDelay;
|
||||
}
|
||||
|
||||
public final VisualEffects copy(boolean inmediateDeparture, boolean countDown, boolean showDelay) {
|
||||
return new VisualEffects(inmediateDeparture, countDown, showDelay);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof VisualEffects)) {
|
||||
return false;
|
||||
}
|
||||
VisualEffects visualEffects = (VisualEffects) other;
|
||||
return this.inmediateDeparture == visualEffects.inmediateDeparture && this.countDown == visualEffects.countDown && this.showDelay == visualEffects.showDelay;
|
||||
}
|
||||
|
||||
public final boolean getCountDown() {
|
||||
return this.countDown;
|
||||
}
|
||||
|
||||
public final boolean getInmediateDeparture() {
|
||||
return this.inmediateDeparture;
|
||||
}
|
||||
|
||||
public final boolean getShowDelay() {
|
||||
return this.showDelay;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Boolean.hashCode(this.showDelay) + w.c(Boolean.hashCode(this.inmediateDeparture) * 31, 31, this.countDown);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisualEffects(inmediateDeparture=" + this.inmediateDeparture + ", countDown=" + this.countDown + ", showDelay=" + this.showDelay + ')';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,178 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation.mappers;
|
||||
|
||||
import C.w;
|
||||
import com.adif.elcanomovil.domain.BuildConfig;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.AvldmdCirculation;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialCirculation;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialPathStepSideInfo;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialRouteInfo;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.PassthroughStepSides;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.TrainCirculationInfo;
|
||||
import com.google.firebase.messaging.Constants;
|
||||
import java.text.DateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Comparator;
|
||||
import java.util.Date;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.comparisons.ComparisonsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.jvm.internal.StringCompanionObject;
|
||||
|
||||
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u001c\u0010\n\u001a\b\u0012\u0004\u0012\u00020\u00060\u000b2\f\u0010\f\u001a\b\u0012\u0004\u0012\u00020\u00070\u000bH\u0002J$\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u00060\u000b2\f\u0010\f\u001a\b\u0012\u0004\u0012\u00020\u000e0\u000b2\u0006\u0010\u000f\u001a\u00020\u0010H\u0002J\"\u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\u00060\u000b2\f\u0010\u0012\u001a\b\u0012\u0004\u0012\u00020\u00130\u000b2\u0006\u0010\u000f\u001a\u00020\u0010J\u0014\u0010\u0005\u001a\u00020\u0006*\u00020\u000e2\u0006\u0010\u000f\u001a\u00020\u0010H\u0002R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u0018\u0010\u0005\u001a\u00020\u0006*\u00020\u00078BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\b\u0010\t¨\u0006\u0014"}, d2 = {"Lcom/adif/elcanomovil/domain/entities/circulation/mappers/AvldmdCirculationMapper;", "", "formatter", "Ljava/text/DateFormat;", "(Ljava/text/DateFormat;)V", "mapToCirculation", "Lcom/adif/elcanomovil/domain/entities/circulation/AvldmdCirculation;", "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialRouteInfo;", "getMapToCirculation", "(Lcom/adif/elcanomovil/domain/entities/circulation/CommercialRouteInfo;)Lcom/adif/elcanomovil/domain/entities/circulation/AvldmdCirculation;", "makeJourneyCirculations", "", "list", "makeOneWayCirculations", "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathStepSideInfo;", "isDeparture", "", "map", Constants.MessagePayloadKeys.FROM, "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialCirculation;", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nAvldmdCirculationMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AvldmdCirculationMapper.kt\ncom/adif/elcanomovil/domain/entities/circulation/mappers/AvldmdCirculationMapper\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,238:1\n800#2,11:239\n800#2,11:250\n766#2:261\n857#2,2:262\n1045#2:264\n1549#2:265\n1620#2,3:266\n766#2:269\n857#2,2:270\n1045#2:272\n1549#2:273\n1620#2,3:274\n*S KotlinDebug\n*F\n+ 1 AvldmdCirculationMapper.kt\ncom/adif/elcanomovil/domain/entities/circulation/mappers/AvldmdCirculationMapper\n*L\n20#1:239,11\n26#1:250,11\n40#1:261\n40#1:262,2\n47#1:264\n48#1:265\n48#1:266,3\n58#1:269\n58#1:270,2\n65#1:272\n66#1:273\n66#1:274,3\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class AvldmdCirculationMapper {
|
||||
private final DateFormat formatter;
|
||||
|
||||
public AvldmdCirculationMapper(DateFormat formatter) {
|
||||
Intrinsics.checkNotNullParameter(formatter, "formatter");
|
||||
this.formatter = formatter;
|
||||
}
|
||||
|
||||
private final AvldmdCirculation getMapToCirculation(CommercialRouteInfo commercialRouteInfo) {
|
||||
String access$plannedTime = AvldmdCirculationMapperKt.access$plannedTime(commercialRouteInfo, this.formatter);
|
||||
Date access$getPlannedDepartureDate = AvldmdCirculationMapperKt.access$getPlannedDepartureDate(commercialRouteInfo);
|
||||
String access$delayedTime = AvldmdCirculationMapperKt.access$delayedTime(commercialRouteInfo, this.formatter);
|
||||
String stationCode = commercialRouteInfo.getStationCode();
|
||||
String stationCode2 = commercialRouteInfo.getStationCode();
|
||||
AvldmdCirculation.Train train = new AvldmdCirculation.Train(commercialRouteInfo.getCommercialPathInfo().getOpeProComPro().getOperator(), commercialRouteInfo.getCommercialPathInfo().getComercialPathKey().getCommercialNumber(), commercialRouteInfo.getCommercialPathInfo().getOpeProComPro().getCommercialProduct());
|
||||
AvldmdCirculation.State access$getState = AvldmdCirculationMapperKt.access$getState(commercialRouteInfo);
|
||||
String platform = commercialRouteInfo.getPlatform();
|
||||
boolean hasWarningPlatform = commercialRouteInfo.getHasWarningPlatform();
|
||||
boolean platformMuted = commercialRouteInfo.getPlatformMuted();
|
||||
String observation = commercialRouteInfo.getObservation();
|
||||
boolean accessible = commercialRouteInfo.getCommercialPathInfo().getAccessible();
|
||||
boolean immediateDeparture = commercialRouteInfo.getImmediateDeparture();
|
||||
boolean isShortTrain = commercialRouteInfo.getCommercialPathInfo().isShortTrain();
|
||||
String commercialNumber = commercialRouteInfo.getCommercialPathInfo().getComercialPathKey().getCommercialNumber();
|
||||
String originStationCode = commercialRouteInfo.getCommercialPathInfo().getComercialPathKey().getOriginStationCode();
|
||||
String destinationStationCode = commercialRouteInfo.getCommercialPathInfo().getComercialPathKey().getDestinationStationCode();
|
||||
long launchingDate = commercialRouteInfo.getCommercialPathInfo().getComercialPathKey().getLaunchingDate();
|
||||
String commercialProduct = commercialRouteInfo.getCommercialPathInfo().getOpeProComPro().getCommercialProduct();
|
||||
TrainCirculationInfo trainCirculationInfo = new TrainCirculationInfo(originStationCode, destinationStationCode, Long.valueOf(launchingDate), commercialNumber, commercialRouteInfo.getCommercialPathInfo().getOpeProComPro().getOperator(), commercialRouteInfo.getCommercialPathInfo().getObservation(), commercialProduct);
|
||||
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
|
||||
return new AvldmdCirculation(access$getPlannedDepartureDate, access$plannedTime, access$delayedTime, stationCode, stationCode2, null, null, train, access$getState, platform, hasWarningPlatform, platformMuted, observation, accessible, immediateDeparture, isShortTrain, trainCirculationInfo, w.s(new Object[]{commercialRouteInfo.getCommercialPathInfo().getOpeProComPro().getOperator(), commercialRouteInfo.getCommercialPathInfo().getOpeProComPro().getCommercialProduct()}, 2, BuildConfig.operatorLogoUrl, "format(...)"), false, commercialRouteInfo.getOperatorPlatform(), commercialRouteInfo.getPlannedPlatform(), commercialRouteInfo.getSitraPlatform(), commercialRouteInfo.getCtcPlatform(), commercialRouteInfo.getTechnicalNumber(), commercialRouteInfo.getResultantPlatform(), commercialRouteInfo.getPreassignedPlatform(), 262144, null);
|
||||
}
|
||||
|
||||
private final List<AvldmdCirculation> makeJourneyCirculations(List<CommercialRouteInfo> list) {
|
||||
int collectionSizeOrDefault;
|
||||
if (list.isEmpty()) {
|
||||
return CollectionsKt.emptyList();
|
||||
}
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : list) {
|
||||
CommercialRouteInfo commercialRouteInfo = (CommercialRouteInfo) obj;
|
||||
boolean isAudited = commercialRouteInfo.getPassthroughStep().getDeparturePassthroughStepSides().isAudited();
|
||||
if (commercialRouteInfo.getPassthroughStep().getDeparturePassthroughStepSides().getAnnounceable() && !isAudited && commercialRouteInfo.getPassthroughStep().getDeparturePassthroughStepSides().isCommercial()) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
List sortedWith = CollectionsKt.sortedWith(arrayList, new Comparator() { // from class: com.adif.elcanomovil.domain.entities.circulation.mappers.AvldmdCirculationMapper$makeJourneyCirculations$$inlined$sortedBy$1
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.Comparator
|
||||
public final int compare(T t2, T t4) {
|
||||
Date plannedDepartureDate;
|
||||
Date plannedDepartureDate2;
|
||||
plannedDepartureDate = AvldmdCirculationMapperKt.getPlannedDepartureDate((CommercialRouteInfo) t2);
|
||||
plannedDepartureDate2 = AvldmdCirculationMapperKt.getPlannedDepartureDate((CommercialRouteInfo) t4);
|
||||
return ComparisonsKt.compareValues(plannedDepartureDate, plannedDepartureDate2);
|
||||
}
|
||||
});
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(sortedWith, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = sortedWith.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList2.add(getMapToCirculation((CommercialRouteInfo) it.next()));
|
||||
}
|
||||
return arrayList2;
|
||||
}
|
||||
|
||||
private final List<AvldmdCirculation> makeOneWayCirculations(List<CommercialPathStepSideInfo> list, final boolean isDeparture) {
|
||||
int collectionSizeOrDefault;
|
||||
if (list.isEmpty()) {
|
||||
return CollectionsKt.emptyList();
|
||||
}
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : list) {
|
||||
CommercialPathStepSideInfo commercialPathStepSideInfo = (CommercialPathStepSideInfo) obj;
|
||||
PassthroughStepSides passthroughStepSide = commercialPathStepSideInfo.passthroughStepSide(isDeparture);
|
||||
boolean z3 = false;
|
||||
if (passthroughStepSide != null && passthroughStepSide.isAudited()) {
|
||||
z3 = true;
|
||||
}
|
||||
PassthroughStepSides passthroughStepSide2 = commercialPathStepSideInfo.passthroughStepSide(isDeparture);
|
||||
if (passthroughStepSide2 != null && passthroughStepSide2.isAnnounceable() && commercialPathStepSideInfo.getPassthroughStep().isCommercial() && (!isDeparture || (isDeparture && !z3))) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
List sortedWith = CollectionsKt.sortedWith(arrayList, new Comparator() { // from class: com.adif.elcanomovil.domain.entities.circulation.mappers.AvldmdCirculationMapper$makeOneWayCirculations$$inlined$sortedBy$1
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.Comparator
|
||||
public final int compare(T t2, T t4) {
|
||||
Date date;
|
||||
Date date2;
|
||||
date = AvldmdCirculationMapperKt.date((CommercialPathStepSideInfo) t2, isDeparture);
|
||||
date2 = AvldmdCirculationMapperKt.date((CommercialPathStepSideInfo) t4, isDeparture);
|
||||
return ComparisonsKt.compareValues(date, date2);
|
||||
}
|
||||
});
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(sortedWith, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = sortedWith.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList2.add(mapToCirculation((CommercialPathStepSideInfo) it.next(), isDeparture));
|
||||
}
|
||||
return arrayList2;
|
||||
}
|
||||
|
||||
private final AvldmdCirculation mapToCirculation(CommercialPathStepSideInfo commercialPathStepSideInfo, boolean z3) {
|
||||
String access$plannedTime = AvldmdCirculationMapperKt.access$plannedTime(commercialPathStepSideInfo, z3, this.formatter);
|
||||
Date access$date = AvldmdCirculationMapperKt.access$date(commercialPathStepSideInfo, z3);
|
||||
String access$delayedTime = AvldmdCirculationMapperKt.access$delayedTime(commercialPathStepSideInfo, z3, this.formatter);
|
||||
String stationCode = commercialPathStepSideInfo.getPassthroughStep().getStationCode();
|
||||
String stationCode2 = commercialPathStepSideInfo.stationCode(z3);
|
||||
AvldmdCirculation.Train train = new AvldmdCirculation.Train(commercialPathStepSideInfo.getCommercialPathInfo().getOpeProComPro().getOperator(), commercialPathStepSideInfo.getCommercialPathInfo().getComercialPathKey().getCommercialNumber(), commercialPathStepSideInfo.getCommercialPathInfo().getOpeProComPro().getCommercialProduct());
|
||||
AvldmdCirculation.State access$state = AvldmdCirculationMapperKt.access$state(commercialPathStepSideInfo, z3);
|
||||
String platform = commercialPathStepSideInfo.platform(z3);
|
||||
boolean hasWarningPlatform = commercialPathStepSideInfo.hasWarningPlatform(z3);
|
||||
boolean platformMuted = commercialPathStepSideInfo.platformMuted(z3);
|
||||
String observation = commercialPathStepSideInfo.observation(z3);
|
||||
boolean accessible = commercialPathStepSideInfo.getCommercialPathInfo().getAccessible();
|
||||
PassthroughStepSides passthroughStepSide = commercialPathStepSideInfo.passthroughStepSide(z3);
|
||||
boolean immediateDeparture = passthroughStepSide != null ? passthroughStepSide.getImmediateDeparture() : false;
|
||||
boolean isShortTrain = commercialPathStepSideInfo.getCommercialPathInfo().isShortTrain();
|
||||
String commercialNumber = commercialPathStepSideInfo.getCommercialPathInfo().getComercialPathKey().getCommercialNumber();
|
||||
String originStationCode = commercialPathStepSideInfo.getCommercialPathInfo().getComercialPathKey().getOriginStationCode();
|
||||
String destinationStationCode = commercialPathStepSideInfo.getCommercialPathInfo().getComercialPathKey().getDestinationStationCode();
|
||||
long launchingDate = commercialPathStepSideInfo.getCommercialPathInfo().getComercialPathKey().getLaunchingDate();
|
||||
TrainCirculationInfo trainCirculationInfo = new TrainCirculationInfo(originStationCode, destinationStationCode, Long.valueOf(launchingDate), commercialNumber, commercialPathStepSideInfo.getCommercialPathInfo().getOpeProComPro().getOperator(), commercialPathStepSideInfo.getCommercialPathInfo().getObservation(), commercialPathStepSideInfo.getCommercialPathInfo().getOpeProComPro().getCommercialProduct());
|
||||
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
|
||||
return new AvldmdCirculation(access$date, access$plannedTime, access$delayedTime, stationCode, stationCode2, null, null, train, access$state, platform, hasWarningPlatform, platformMuted, observation, accessible, immediateDeparture, isShortTrain, trainCirculationInfo, w.s(new Object[]{commercialPathStepSideInfo.getCommercialPathInfo().getOpeProComPro().getOperator(), commercialPathStepSideInfo.getCommercialPathInfo().getOpeProComPro().getCommercialProduct()}, 2, BuildConfig.operatorLogoUrl, "format(...)"), false, commercialPathStepSideInfo.operatorPlatform(z3), commercialPathStepSideInfo.plannedPlatform(z3), commercialPathStepSideInfo.sitraPlatform(z3), commercialPathStepSideInfo.ctcPlatform(z3), commercialPathStepSideInfo.technicalNumber(z3), commercialPathStepSideInfo.resultantPlatform(z3), commercialPathStepSideInfo.preassignedPlatform(z3), 262144, null);
|
||||
}
|
||||
|
||||
public final List<AvldmdCirculation> map(List<? extends CommercialCirculation> from, boolean isDeparture) {
|
||||
Intrinsics.checkNotNullParameter(from, "from");
|
||||
List<? extends CommercialCirculation> list = from;
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : list) {
|
||||
if (obj instanceof CommercialPathStepSideInfo) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
if (!arrayList.isEmpty()) {
|
||||
return makeOneWayCirculations(arrayList, isDeparture);
|
||||
}
|
||||
ArrayList arrayList2 = new ArrayList();
|
||||
for (Object obj2 : list) {
|
||||
if (obj2 instanceof CommercialRouteInfo) {
|
||||
arrayList2.add(obj2);
|
||||
}
|
||||
}
|
||||
return !arrayList2.isEmpty() ? makeJourneyCirculations(arrayList2) : CollectionsKt.emptyList();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation.mappers;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.circulation.AvldmdCirculation;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialPathStepSideInfo;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialRouteInfo;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.PassthroughStepSides;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.RouteStepSide;
|
||||
import com.adif.elcanomovil.domain.extensions.LongKt;
|
||||
import com.google.firebase.remoteconfig.RemoteConfigConstants;
|
||||
import java.text.DateFormat;
|
||||
import java.util.Date;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u00000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\u0014\u0010\u000f\u001a\u00020\u0001*\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u0012H\u0002\u001a\u001c\u0010\u0013\u001a\u00020\u0014*\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0015\u001a\u00020\u0016H\u0002\u001a\u0016\u0010\u0013\u001a\u0004\u0018\u00010\u0014*\u00020\u00022\u0006\u0010\u0015\u001a\u00020\u0016H\u0002\u001a\u001c\u0010\u0017\u001a\u00020\u0014*\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0015\u001a\u00020\u0016H\u0002\u001a\u0014\u0010\u0017\u001a\u00020\u0014*\u00020\u00022\u0006\u0010\u0015\u001a\u00020\u0016H\u0002\u001a\u0016\u0010\u000b\u001a\u0004\u0018\u00010\f*\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u0012H\u0002\"\u0018\u0010\u0000\u001a\u00020\u0001*\u00020\u00028BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004\"\u0018\u0010\u0005\u001a\u00020\u0001*\u00020\u00028BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0004\"\u0018\u0010\u0007\u001a\u00020\u0001*\u00020\u00028BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\b\u0010\u0004\"\u0018\u0010\t\u001a\u00020\u0001*\u00020\u00028BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u0004\"\u001a\u0010\u000b\u001a\u0004\u0018\u00010\f*\u00020\u00028BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000e¨\u0006\u0018"}, d2 = {"measuredArrivalDate", "Ljava/util/Date;", "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialRouteInfo;", "getMeasuredArrivalDate", "(Lcom/adif/elcanomovil/domain/entities/circulation/CommercialRouteInfo;)Ljava/util/Date;", "measuredDepartureDate", "getMeasuredDepartureDate", "plannedArrivalDate", "getPlannedArrivalDate", "plannedDepartureDate", "getPlannedDepartureDate", RemoteConfigConstants.ResponseFieldKey.STATE, "Lcom/adif/elcanomovil/domain/entities/circulation/AvldmdCirculation$State;", "getState", "(Lcom/adif/elcanomovil/domain/entities/circulation/CommercialRouteInfo;)Lcom/adif/elcanomovil/domain/entities/circulation/AvldmdCirculation$State;", "date", "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathStepSideInfo;", "isDeparture", "", "delayedTime", "", "formatter", "Ljava/text/DateFormat;", "plannedTime", "domain_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class AvldmdCirculationMapperKt {
|
||||
public static final Date date(CommercialPathStepSideInfo commercialPathStepSideInfo, boolean z3) {
|
||||
Date delayedDate;
|
||||
PassthroughStepSides passthroughStepSide = commercialPathStepSideInfo.passthroughStepSide(z3);
|
||||
return (passthroughStepSide == null || (delayedDate = LongKt.getDelayedDate(passthroughStepSide.getPlannedTime(), 0)) == null) ? new Date() : delayedDate;
|
||||
}
|
||||
|
||||
public static final String delayedTime(CommercialPathStepSideInfo commercialPathStepSideInfo, boolean z3, DateFormat dateFormat) {
|
||||
PassthroughStepSides passthroughStepSide = commercialPathStepSideInfo.passthroughStepSide(z3);
|
||||
if (passthroughStepSide == null) {
|
||||
return "";
|
||||
}
|
||||
int forecatedOrAuditedDelay = passthroughStepSide.getForecatedOrAuditedDelay();
|
||||
if (!passthroughStepSide.getShowDelay() || forecatedOrAuditedDelay <= 0) {
|
||||
return "";
|
||||
}
|
||||
String format = dateFormat.format(LongKt.getDelayedDate(passthroughStepSide.getPlannedTime(), forecatedOrAuditedDelay));
|
||||
Intrinsics.checkNotNull(format);
|
||||
return format;
|
||||
}
|
||||
|
||||
private static final Date getMeasuredArrivalDate(CommercialRouteInfo commercialRouteInfo) {
|
||||
return LongKt.getDelayedDate(commercialRouteInfo.getPassthroughStep().getArrivalPassthroughStepSides().getPlannedTime(), commercialRouteInfo.getPassthroughStep().getArrivalPassthroughStepSides().getForecatedOrAuditedDelay());
|
||||
}
|
||||
|
||||
private static final Date getMeasuredDepartureDate(CommercialRouteInfo commercialRouteInfo) {
|
||||
return LongKt.getDelayedDate(commercialRouteInfo.getPassthroughStep().getDeparturePassthroughStepSides().getPlannedTime(), commercialRouteInfo.getPassthroughStep().getDeparturePassthroughStepSides().getForecatedOrAuditedDelay());
|
||||
}
|
||||
|
||||
private static final Date getPlannedArrivalDate(CommercialRouteInfo commercialRouteInfo) {
|
||||
return LongKt.getDelayedDate(commercialRouteInfo.getPassthroughStep().getArrivalPassthroughStepSides().getPlannedTime(), 0);
|
||||
}
|
||||
|
||||
public static final Date getPlannedDepartureDate(CommercialRouteInfo commercialRouteInfo) {
|
||||
return LongKt.getDelayedDate(commercialRouteInfo.getPassthroughStep().getDeparturePassthroughStepSides().getPlannedTime(), 0);
|
||||
}
|
||||
|
||||
public static final AvldmdCirculation.State getState(CommercialRouteInfo commercialRouteInfo) {
|
||||
RouteStepSide departurePassthroughStepSides = commercialRouteInfo.getPassthroughStep().getDeparturePassthroughStepSides();
|
||||
if (departurePassthroughStepSides.isSuppressed()) {
|
||||
return AvldmdCirculation.State.SUPPRESSED;
|
||||
}
|
||||
if (departurePassthroughStepSides.getImmediateDeparture()) {
|
||||
return AvldmdCirculation.State.BOARDING;
|
||||
}
|
||||
if (departurePassthroughStepSides.getForecatedOrAuditedDelay() > 0) {
|
||||
return AvldmdCirculation.State.DELAYED;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final String plannedTime(CommercialPathStepSideInfo commercialPathStepSideInfo, boolean z3, DateFormat dateFormat) {
|
||||
String format = dateFormat.format(date(commercialPathStepSideInfo, z3));
|
||||
Intrinsics.checkNotNullExpressionValue(format, "format(...)");
|
||||
return format;
|
||||
}
|
||||
|
||||
public static final AvldmdCirculation.State state(CommercialPathStepSideInfo commercialPathStepSideInfo, boolean z3) {
|
||||
PassthroughStepSides passthroughStepSide = commercialPathStepSideInfo.passthroughStepSide(z3);
|
||||
if (passthroughStepSide == null) {
|
||||
return null;
|
||||
}
|
||||
if (passthroughStepSide.isSuppressed()) {
|
||||
return AvldmdCirculation.State.SUPPRESSED;
|
||||
}
|
||||
if (passthroughStepSide.getImmediateDeparture() && passthroughStepSide.isAudited()) {
|
||||
return AvldmdCirculation.State.BOARDING;
|
||||
}
|
||||
if (passthroughStepSide.getForecatedOrAuditedDelay() > 0) {
|
||||
return AvldmdCirculation.State.DELAYED;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final String plannedTime(CommercialRouteInfo commercialRouteInfo, DateFormat dateFormat) {
|
||||
return dateFormat.format(getPlannedDepartureDate(commercialRouteInfo)) + '-' + dateFormat.format(getPlannedArrivalDate(commercialRouteInfo));
|
||||
}
|
||||
|
||||
public static final String delayedTime(CommercialRouteInfo commercialRouteInfo, DateFormat dateFormat) {
|
||||
if (!commercialRouteInfo.getPassthroughStep().getDeparturePassthroughStepSides().getShowDelay()) {
|
||||
return null;
|
||||
}
|
||||
String plannedTime = plannedTime(commercialRouteInfo, dateFormat);
|
||||
String str = dateFormat.format(getMeasuredDepartureDate(commercialRouteInfo)) + '-' + dateFormat.format(getMeasuredArrivalDate(commercialRouteInfo));
|
||||
if (Intrinsics.areEqual(str, plannedTime)) {
|
||||
return null;
|
||||
}
|
||||
return str;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation.mappers;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CercaniasCirculation;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialCirculation;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialPathStepSideInfo;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialRouteInfo;
|
||||
import com.adif.elcanomovil.domain.repositories.linecolours.LineColoursRepository;
|
||||
import com.google.firebase.messaging.Constants;
|
||||
import java.text.DateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000@\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\"\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\t0\b2\f\u0010\n\u001a\b\u0012\u0004\u0012\u00020\u000b0\bH\u0082@¢\u0006\u0002\u0010\fJ*\u0010\r\u001a\b\u0012\u0004\u0012\u00020\t0\b2\f\u0010\n\u001a\b\u0012\u0004\u0012\u00020\u000e0\b2\u0006\u0010\u000f\u001a\u00020\u0010H\u0082@¢\u0006\u0002\u0010\u0011J*\u0010\u0012\u001a\b\u0012\u0004\u0012\u00020\t0\b2\f\u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\u00140\b2\u0006\u0010\u000f\u001a\u00020\u0010H\u0086@¢\u0006\u0002\u0010\u0011J\u001a\u0010\u0015\u001a\u00020\t*\u00020\u000e2\u0006\u0010\u000f\u001a\u00020\u0010H\u0082@¢\u0006\u0002\u0010\u0016J\u0012\u0010\u0015\u001a\u00020\t*\u00020\u000bH\u0082@¢\u0006\u0002\u0010\u0017R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0018"}, d2 = {"Lcom/adif/elcanomovil/domain/entities/circulation/mappers/CercaniasCirculationMapper;", "", "formatter", "Ljava/text/DateFormat;", "lineColoursRepository", "Lcom/adif/elcanomovil/domain/repositories/linecolours/LineColoursRepository;", "(Ljava/text/DateFormat;Lcom/adif/elcanomovil/domain/repositories/linecolours/LineColoursRepository;)V", "makeJourneyCirculations", "", "Lcom/adif/elcanomovil/domain/entities/circulation/CercaniasCirculation;", "list", "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialRouteInfo;", "(Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "makeOneWayCirculations", "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathStepSideInfo;", "isDeparture", "", "(Ljava/util/List;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;", "map", Constants.MessagePayloadKeys.FROM, "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialCirculation;", "mapToCirculation", "(Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathStepSideInfo;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;", "(Lcom/adif/elcanomovil/domain/entities/circulation/CommercialRouteInfo;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nCercaniasCirculationMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CercaniasCirculationMapper.kt\ncom/adif/elcanomovil/domain/entities/circulation/mappers/CercaniasCirculationMapper\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,234:1\n800#2,11:235\n800#2,11:246\n766#2:257\n857#2,2:258\n1045#2:260\n1549#2:261\n1620#2,3:262\n766#2:265\n857#2,2:266\n1549#2:268\n1620#2,3:269\n*S KotlinDebug\n*F\n+ 1 CercaniasCirculationMapper.kt\ncom/adif/elcanomovil/domain/entities/circulation/mappers/CercaniasCirculationMapper\n*L\n25#1:235,11\n31#1:246,11\n45#1:257\n45#1:258,2\n61#1:260\n62#1:261\n62#1:262,3\n71#1:265\n71#1:266,2\n82#1:268\n82#1:269,3\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class CercaniasCirculationMapper {
|
||||
private final DateFormat formatter;
|
||||
private final LineColoursRepository lineColoursRepository;
|
||||
|
||||
public CercaniasCirculationMapper(DateFormat formatter, LineColoursRepository lineColoursRepository) {
|
||||
Intrinsics.checkNotNullParameter(formatter, "formatter");
|
||||
Intrinsics.checkNotNullParameter(lineColoursRepository, "lineColoursRepository");
|
||||
this.formatter = formatter;
|
||||
this.lineColoursRepository = lineColoursRepository;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
/* JADX WARN: Removed duplicated region for block: B:13:0x00b8 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:18:0x00df */
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:0x0042 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:17:0x00d2 -> B:10:0x00d6). Please report as a decompilation issue!!! */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object makeJourneyCirculations(java.util.List<com.adif.elcanomovil.domain.entities.circulation.CommercialRouteInfo> r10, kotlin.coroutines.Continuation<? super java.util.List<com.adif.elcanomovil.domain.entities.circulation.CercaniasCirculation>> r11) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 231
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.domain.entities.circulation.mappers.CercaniasCirculationMapper.makeJourneyCirculations(java.util.List, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
/* JADX WARN: Removed duplicated region for block: B:13:0x00d5 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:18:0x00fe */
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:0x0044 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:17:0x00f1 -> B:10:0x00f5). Please report as a decompilation issue!!! */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object makeOneWayCirculations(java.util.List<com.adif.elcanomovil.domain.entities.circulation.CommercialPathStepSideInfo> r11, final boolean r12, kotlin.coroutines.Continuation<? super java.util.List<com.adif.elcanomovil.domain.entities.circulation.CercaniasCirculation>> r13) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 262
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.domain.entities.circulation.mappers.CercaniasCirculationMapper.makeOneWayCirculations(java.util.List, boolean, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
/* JADX WARN: Removed duplicated region for block: B:13:0x00ca */
|
||||
/* JADX WARN: Removed duplicated region for block: B:17:0x00e1 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:0x00e8 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:23:0x00d1 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:26:0x004d */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x002b */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object mapToCirculation(com.adif.elcanomovil.domain.entities.circulation.CommercialPathStepSideInfo r38, boolean r39, kotlin.coroutines.Continuation<? super com.adif.elcanomovil.domain.entities.circulation.CercaniasCirculation> r40) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 378
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.domain.entities.circulation.mappers.CercaniasCirculationMapper.mapToCirculation(com.adif.elcanomovil.domain.entities.circulation.CommercialPathStepSideInfo, boolean, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public final Object map(List<? extends CommercialCirculation> list, boolean z3, Continuation<? super List<CercaniasCirculation>> continuation) {
|
||||
List<? extends CommercialCirculation> list2 = list;
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : list2) {
|
||||
if (obj instanceof CommercialPathStepSideInfo) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
if (!arrayList.isEmpty()) {
|
||||
return makeOneWayCirculations(arrayList, z3, continuation);
|
||||
}
|
||||
ArrayList arrayList2 = new ArrayList();
|
||||
for (Object obj2 : list2) {
|
||||
if (obj2 instanceof CommercialRouteInfo) {
|
||||
arrayList2.add(obj2);
|
||||
}
|
||||
}
|
||||
return !arrayList2.isEmpty() ? makeJourneyCirculations(arrayList2, continuation) : CollectionsKt.emptyList();
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x004e */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0029 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object mapToCirculation(com.adif.elcanomovil.domain.entities.circulation.CommercialRouteInfo r30, kotlin.coroutines.Continuation<? super com.adif.elcanomovil.domain.entities.circulation.CercaniasCirculation> r31) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 343
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.adif.elcanomovil.domain.entities.circulation.mappers.CercaniasCirculationMapper.mapToCirculation(com.adif.elcanomovil.domain.entities.circulation.CommercialRouteInfo, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation.mappers;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialPathStepSideInfo;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialRouteInfo;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.PassthroughStepSides;
|
||||
import com.adif.elcanomovil.domain.extensions.LongKt;
|
||||
import java.text.DateFormat;
|
||||
import java.util.Date;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u00000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\u001c\u0010\t\u001a\u0004\u0018\u00010\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\n2\u0006\u0010\f\u001a\u00020\nH\u0002\u001a\u001c\u0010\r\u001a\u00020\n*\u00020\u000e2\u0006\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u0012H\u0002\u001a\u0014\u0010\r\u001a\u00020\n*\u00020\u00042\u0006\u0010\u0011\u001a\u00020\u0012H\u0002\u001a\u0014\u0010\u0013\u001a\u00020\u0003*\u00020\u000e2\u0006\u0010\u000f\u001a\u00020\u0010H\u0002\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0086T¢\u0006\u0002\n\u0000\"\u0018\u0010\u0002\u001a\u00020\u0003*\u00020\u00048BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006\"\u0018\u0010\u0007\u001a\u00020\u0003*\u00020\u00048BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\b\u0010\u0006¨\u0006\u0014"}, d2 = {"MILLISECONDS", "", "estimatedArrivalDate", "Ljava/util/Date;", "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialRouteInfo;", "getEstimatedArrivalDate", "(Lcom/adif/elcanomovil/domain/entities/circulation/CommercialRouteInfo;)Ljava/util/Date;", "estimatedDepartureDate", "getEstimatedDepartureDate", "getLineIconUrlFromCore", "", "core", "line", "displayableTime", "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathStepSideInfo;", "isDeparture", "", "formatter", "Ljava/text/DateFormat;", "plannedDate", "domain_proNon_corporateRelease"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class CercaniasCirculationMapperKt {
|
||||
public static final int MILLISECONDS = 60000;
|
||||
|
||||
public static final /* synthetic */ String access$displayableTime(CommercialPathStepSideInfo commercialPathStepSideInfo, boolean z3, DateFormat dateFormat) {
|
||||
return displayableTime(commercialPathStepSideInfo, z3, dateFormat);
|
||||
}
|
||||
|
||||
public static final /* synthetic */ Date access$getEstimatedDepartureDate(CommercialRouteInfo commercialRouteInfo) {
|
||||
return getEstimatedDepartureDate(commercialRouteInfo);
|
||||
}
|
||||
|
||||
public static final /* synthetic */ String access$getLineIconUrlFromCore(String str, String str2) {
|
||||
return getLineIconUrlFromCore(str, str2);
|
||||
}
|
||||
|
||||
public static final /* synthetic */ Date access$plannedDate(CommercialPathStepSideInfo commercialPathStepSideInfo, boolean z3) {
|
||||
return plannedDate(commercialPathStepSideInfo, z3);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final String displayableTime(CommercialRouteInfo commercialRouteInfo, DateFormat dateFormat) {
|
||||
if (commercialRouteInfo.getPassthroughStep().getDeparturePassthroughStepSides().getImmediateDeparture()) {
|
||||
return "";
|
||||
}
|
||||
return dateFormat.format(getEstimatedDepartureDate(commercialRouteInfo)) + '-' + dateFormat.format(getEstimatedArrivalDate(commercialRouteInfo));
|
||||
}
|
||||
|
||||
private static final Date getEstimatedArrivalDate(CommercialRouteInfo commercialRouteInfo) {
|
||||
return LongKt.getDelayedDate(commercialRouteInfo.getPassthroughStep().getArrivalPassthroughStepSides().getPlannedTime(), commercialRouteInfo.getPassthroughStep().getArrivalPassthroughStepSides().getForecatedOrAuditedDelay());
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Date getEstimatedDepartureDate(CommercialRouteInfo commercialRouteInfo) {
|
||||
return LongKt.getDelayedDate(commercialRouteInfo.getPassthroughStep().getDeparturePassthroughStepSides().getPlannedTime(), commercialRouteInfo.getPassthroughStep().getDeparturePassthroughStepSides().getForecatedOrAuditedDelay());
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final String getLineIconUrlFromCore(String str, String str2) {
|
||||
if (str == null || str.length() == 0) {
|
||||
return null;
|
||||
}
|
||||
return "https://firebasestorage.googleapis.com/v0/b/elcanopro.appspot.com/o/lines%2F" + str + '_' + str2 + ".png?alt=media";
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Date plannedDate(CommercialPathStepSideInfo commercialPathStepSideInfo, boolean z3) {
|
||||
Date delayedDate;
|
||||
PassthroughStepSides passthroughStepSide = commercialPathStepSideInfo.passthroughStepSide(z3);
|
||||
return (passthroughStepSide == null || (delayedDate = LongKt.getDelayedDate(passthroughStepSide.getPlannedTime(), passthroughStepSide.getForecatedOrAuditedDelay())) == null) ? new Date() : delayedDate;
|
||||
}
|
||||
|
||||
public static final /* synthetic */ String access$displayableTime(CommercialRouteInfo commercialRouteInfo, DateFormat dateFormat) {
|
||||
return displayableTime(commercialRouteInfo, dateFormat);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final String displayableTime(CommercialPathStepSideInfo commercialPathStepSideInfo, boolean z3, DateFormat dateFormat) {
|
||||
String format;
|
||||
PassthroughStepSides passthroughStepSide = commercialPathStepSideInfo.passthroughStepSide(z3);
|
||||
Date plannedDate = plannedDate(commercialPathStepSideInfo, z3);
|
||||
long time = plannedDate.getTime() - commercialPathStepSideInfo.getCommercialPathInfo().getTimestamp().getTime();
|
||||
long j4 = time < 0 ? 0L : time / MILLISECONDS;
|
||||
if ((passthroughStepSide != null && passthroughStepSide.getImmediateDeparture()) || j4 == 0) {
|
||||
return "";
|
||||
}
|
||||
if (passthroughStepSide != null && passthroughStepSide.getCountDown()) {
|
||||
format = j4 + " min";
|
||||
} else {
|
||||
format = dateFormat.format(plannedDate);
|
||||
}
|
||||
Intrinsics.checkNotNull(format);
|
||||
return format;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,275 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation.mappers;
|
||||
|
||||
import C.w;
|
||||
import com.adif.elcanomovil.domain.BuildConfig;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialCirculation;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialPathStepSideInfo;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialRouteInfo;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.OtherCirculation;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.PassthroughStepSides;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.RouteStepSide;
|
||||
import com.adif.elcanomovil.domain.entities.circulation.TrainCirculationInfo;
|
||||
import com.adif.elcanomovil.domain.extensions.LongKt;
|
||||
import com.google.firebase.messaging.Constants;
|
||||
import com.google.firebase.remoteconfig.RemoteConfigConstants;
|
||||
import java.text.DateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Comparator;
|
||||
import java.util.Date;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.comparisons.ComparisonsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.jvm.internal.StringCompanionObject;
|
||||
|
||||
@Metadata(d1 = {"\u0000T\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u001c\u0010\u0018\u001a\b\u0012\u0004\u0012\u00020\u00060\u00192\f\u0010\u001a\u001a\b\u0012\u0004\u0012\u00020\u00070\u0019H\u0002J$\u0010\u001b\u001a\b\u0012\u0004\u0012\u00020\u00060\u00192\f\u0010\u001a\u001a\b\u0012\u0004\u0012\u00020\u001c0\u00192\u0006\u0010\u001d\u001a\u00020\u001eH\u0002J\"\u0010\u001f\u001a\b\u0012\u0004\u0012\u00020\u00060\u00192\f\u0010 \u001a\b\u0012\u0004\u0012\u00020!0\u00192\u0006\u0010\u001d\u001a\u00020\u001eJ\u0014\u0010\"\u001a\u00020\u000b*\u00020\u001c2\u0006\u0010\u001d\u001a\u00020\u001eH\u0002J\u001c\u0010#\u001a\u00020$*\u00020\u001c2\u0006\u0010\u001d\u001a\u00020\u001e2\u0006\u0010\u0002\u001a\u00020\u0003H\u0002J\u0016\u0010#\u001a\u0004\u0018\u00010$*\u00020\u00072\u0006\u0010\u0002\u001a\u00020\u0003H\u0002J\u0014\u0010\u0005\u001a\u00020\u0006*\u00020\u001c2\u0006\u0010\u001d\u001a\u00020\u001eH\u0002J\u001c\u0010%\u001a\u00020$*\u00020\u001c2\u0006\u0010\u001d\u001a\u00020\u001e2\u0006\u0010\u0002\u001a\u00020\u0003H\u0002J\u0014\u0010%\u001a\u00020$*\u00020\u00072\u0006\u0010\u0002\u001a\u00020\u0003H\u0002J\u0016\u0010\u0014\u001a\u0004\u0018\u00010\u0015*\u00020\u001c2\u0006\u0010\u001d\u001a\u00020\u001eH\u0002R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u0018\u0010\u0005\u001a\u00020\u0006*\u00020\u00078BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\b\u0010\tR\u0018\u0010\n\u001a\u00020\u000b*\u00020\u00078BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\f\u0010\rR\u0018\u0010\u000e\u001a\u00020\u000b*\u00020\u00078BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u000f\u0010\rR\u0018\u0010\u0010\u001a\u00020\u000b*\u00020\u00078BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0011\u0010\rR\u0018\u0010\u0012\u001a\u00020\u000b*\u00020\u00078BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\rR\u001a\u0010\u0014\u001a\u0004\u0018\u00010\u0015*\u00020\u00078BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u0017¨\u0006&"}, d2 = {"Lcom/adif/elcanomovil/domain/entities/circulation/mappers/OthersCirculationMapper;", "", "formatter", "Ljava/text/DateFormat;", "(Ljava/text/DateFormat;)V", "mapToCirculation", "Lcom/adif/elcanomovil/domain/entities/circulation/OtherCirculation;", "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialRouteInfo;", "getMapToCirculation", "(Lcom/adif/elcanomovil/domain/entities/circulation/CommercialRouteInfo;)Lcom/adif/elcanomovil/domain/entities/circulation/OtherCirculation;", "measuredArrivalDate", "Ljava/util/Date;", "getMeasuredArrivalDate", "(Lcom/adif/elcanomovil/domain/entities/circulation/CommercialRouteInfo;)Ljava/util/Date;", "measuredDepartureDate", "getMeasuredDepartureDate", "plannedArrivalDate", "getPlannedArrivalDate", "plannedDepartureDate", "getPlannedDepartureDate", RemoteConfigConstants.ResponseFieldKey.STATE, "Lcom/adif/elcanomovil/domain/entities/circulation/OtherCirculation$State;", "getState", "(Lcom/adif/elcanomovil/domain/entities/circulation/CommercialRouteInfo;)Lcom/adif/elcanomovil/domain/entities/circulation/OtherCirculation$State;", "makeJourneyCirculations", "", "list", "makeOneWayCirculations", "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialPathStepSideInfo;", "isDeparture", "", "map", Constants.MessagePayloadKeys.FROM, "Lcom/adif/elcanomovil/domain/entities/circulation/CommercialCirculation;", "date", "delayedTime", "", "plannedTime", "domain_proNon_corporateRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nOthersCirculationMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 OthersCirculationMapper.kt\ncom/adif/elcanomovil/domain/entities/circulation/mappers/OthersCirculationMapper\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,236:1\n800#2,11:237\n800#2,11:248\n766#2:259\n857#2,2:260\n1045#2:262\n1549#2:263\n1620#2,3:264\n766#2:267\n857#2,2:268\n1045#2:270\n1549#2:271\n1620#2,3:272\n*S KotlinDebug\n*F\n+ 1 OthersCirculationMapper.kt\ncom/adif/elcanomovil/domain/entities/circulation/mappers/OthersCirculationMapper\n*L\n20#1:237,11\n26#1:248,11\n40#1:259\n40#1:260,2\n46#1:262\n47#1:263\n47#1:264,3\n57#1:267\n57#1:268,2\n61#1:270\n62#1:271\n62#1:272,3\n*E\n"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class OthersCirculationMapper {
|
||||
private final DateFormat formatter;
|
||||
|
||||
public OthersCirculationMapper(DateFormat formatter) {
|
||||
Intrinsics.checkNotNullParameter(formatter, "formatter");
|
||||
this.formatter = formatter;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final Date date(CommercialPathStepSideInfo commercialPathStepSideInfo, boolean z3) {
|
||||
Date delayedDate;
|
||||
PassthroughStepSides passthroughStepSide = commercialPathStepSideInfo.passthroughStepSide(z3);
|
||||
return (passthroughStepSide == null || (delayedDate = LongKt.getDelayedDate(passthroughStepSide.getPlannedTime(), 0)) == null) ? new Date() : delayedDate;
|
||||
}
|
||||
|
||||
private final String delayedTime(CommercialPathStepSideInfo commercialPathStepSideInfo, boolean z3, DateFormat dateFormat) {
|
||||
PassthroughStepSides passthroughStepSide = commercialPathStepSideInfo.passthroughStepSide(z3);
|
||||
if (passthroughStepSide == null) {
|
||||
return "";
|
||||
}
|
||||
int forecatedOrAuditedDelay = passthroughStepSide.getForecatedOrAuditedDelay();
|
||||
if (!passthroughStepSide.getShowDelay() || forecatedOrAuditedDelay <= 0) {
|
||||
return "";
|
||||
}
|
||||
String format = dateFormat.format(LongKt.getDelayedDate(passthroughStepSide.getPlannedTime(), forecatedOrAuditedDelay));
|
||||
Intrinsics.checkNotNull(format);
|
||||
return format;
|
||||
}
|
||||
|
||||
private final OtherCirculation getMapToCirculation(CommercialRouteInfo commercialRouteInfo) {
|
||||
String plannedTime = plannedTime(commercialRouteInfo, this.formatter);
|
||||
Date plannedDepartureDate = getPlannedDepartureDate(commercialRouteInfo);
|
||||
String delayedTime = delayedTime(commercialRouteInfo, this.formatter);
|
||||
String stationCode = commercialRouteInfo.getStationCode();
|
||||
String stationCode2 = commercialRouteInfo.getStationCode();
|
||||
OtherCirculation.Train train = new OtherCirculation.Train(commercialRouteInfo.getCommercialPathInfo().getOpeProComPro().getOperator(), commercialRouteInfo.getCommercialPathInfo().getComercialPathKey().getCommercialNumber(), commercialRouteInfo.getCommercialPathInfo().getOpeProComPro().getCommercialProduct());
|
||||
OtherCirculation.State state = getState(commercialRouteInfo);
|
||||
String platform = commercialRouteInfo.getPlatform();
|
||||
boolean hasWarningPlatform = commercialRouteInfo.getHasWarningPlatform();
|
||||
boolean platformMuted = commercialRouteInfo.getPlatformMuted();
|
||||
String observation = commercialRouteInfo.getObservation();
|
||||
boolean accessible = commercialRouteInfo.getCommercialPathInfo().getAccessible();
|
||||
boolean immediateDeparture = commercialRouteInfo.getImmediateDeparture();
|
||||
boolean isShortTrain = commercialRouteInfo.getCommercialPathInfo().isShortTrain();
|
||||
String commercialNumber = commercialRouteInfo.getCommercialPathInfo().getComercialPathKey().getCommercialNumber();
|
||||
String originStationCode = commercialRouteInfo.getCommercialPathInfo().getComercialPathKey().getOriginStationCode();
|
||||
String destinationStationCode = commercialRouteInfo.getCommercialPathInfo().getComercialPathKey().getDestinationStationCode();
|
||||
long launchingDate = commercialRouteInfo.getCommercialPathInfo().getComercialPathKey().getLaunchingDate();
|
||||
String commercialProduct = commercialRouteInfo.getCommercialPathInfo().getOpeProComPro().getCommercialProduct();
|
||||
TrainCirculationInfo trainCirculationInfo = new TrainCirculationInfo(originStationCode, destinationStationCode, Long.valueOf(launchingDate), commercialNumber, commercialRouteInfo.getCommercialPathInfo().getOpeProComPro().getOperator(), commercialRouteInfo.getCommercialPathInfo().getObservation(), commercialProduct);
|
||||
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
|
||||
return new OtherCirculation(plannedDepartureDate, plannedTime, delayedTime, stationCode, stationCode2, null, null, train, state, platform, hasWarningPlatform, platformMuted, observation, accessible, immediateDeparture, isShortTrain, trainCirculationInfo, w.s(new Object[]{commercialRouteInfo.getCommercialPathInfo().getOpeProComPro().getOperator(), commercialRouteInfo.getCommercialPathInfo().getOpeProComPro().getCommercialProduct()}, 2, BuildConfig.operatorLogoUrl, "format(...)"), false, commercialRouteInfo.getOperatorPlatform(), commercialRouteInfo.getPlannedPlatform(), commercialRouteInfo.getSitraPlatform(), commercialRouteInfo.getCtcPlatform(), commercialRouteInfo.getTechnicalNumber(), commercialRouteInfo.getResultantPlatform(), commercialRouteInfo.getPreassignedPlatform(), 262144, null);
|
||||
}
|
||||
|
||||
private final Date getMeasuredArrivalDate(CommercialRouteInfo commercialRouteInfo) {
|
||||
return LongKt.getDelayedDate(commercialRouteInfo.getPassthroughStep().getArrivalPassthroughStepSides().getPlannedTime(), commercialRouteInfo.getPassthroughStep().getArrivalPassthroughStepSides().getForecatedOrAuditedDelay());
|
||||
}
|
||||
|
||||
private final Date getMeasuredDepartureDate(CommercialRouteInfo commercialRouteInfo) {
|
||||
return LongKt.getDelayedDate(commercialRouteInfo.getPassthroughStep().getDeparturePassthroughStepSides().getPlannedTime(), commercialRouteInfo.getPassthroughStep().getDeparturePassthroughStepSides().getForecatedOrAuditedDelay());
|
||||
}
|
||||
|
||||
private final Date getPlannedArrivalDate(CommercialRouteInfo commercialRouteInfo) {
|
||||
return LongKt.getDelayedDate(commercialRouteInfo.getPassthroughStep().getArrivalPassthroughStepSides().getPlannedTime(), 0);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final Date getPlannedDepartureDate(CommercialRouteInfo commercialRouteInfo) {
|
||||
return LongKt.getDelayedDate(commercialRouteInfo.getPassthroughStep().getDeparturePassthroughStepSides().getPlannedTime(), 0);
|
||||
}
|
||||
|
||||
private final OtherCirculation.State getState(CommercialRouteInfo commercialRouteInfo) {
|
||||
RouteStepSide departurePassthroughStepSides = commercialRouteInfo.getPassthroughStep().getDeparturePassthroughStepSides();
|
||||
if (departurePassthroughStepSides.isSuppressed()) {
|
||||
return OtherCirculation.State.SUPPRESSED;
|
||||
}
|
||||
if (departurePassthroughStepSides.getImmediateDeparture()) {
|
||||
return OtherCirculation.State.BOARDING;
|
||||
}
|
||||
if (departurePassthroughStepSides.getForecatedOrAuditedDelay() > 0) {
|
||||
return OtherCirculation.State.DELAYED;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private final List<OtherCirculation> makeJourneyCirculations(List<CommercialRouteInfo> list) {
|
||||
int collectionSizeOrDefault;
|
||||
if (list.isEmpty()) {
|
||||
return CollectionsKt.emptyList();
|
||||
}
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : list) {
|
||||
CommercialRouteInfo commercialRouteInfo = (CommercialRouteInfo) obj;
|
||||
if (!commercialRouteInfo.getPassthroughStep().getDeparturePassthroughStepSides().isAudited() && commercialRouteInfo.getPassthroughStep().getDeparturePassthroughStepSides().isCommercial()) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
List sortedWith = CollectionsKt.sortedWith(arrayList, new Comparator() { // from class: com.adif.elcanomovil.domain.entities.circulation.mappers.OthersCirculationMapper$makeJourneyCirculations$$inlined$sortedBy$1
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.Comparator
|
||||
public final int compare(T t2, T t4) {
|
||||
Date plannedDepartureDate;
|
||||
Date plannedDepartureDate2;
|
||||
plannedDepartureDate = OthersCirculationMapper.this.getPlannedDepartureDate((CommercialRouteInfo) t2);
|
||||
plannedDepartureDate2 = OthersCirculationMapper.this.getPlannedDepartureDate((CommercialRouteInfo) t4);
|
||||
return ComparisonsKt.compareValues(plannedDepartureDate, plannedDepartureDate2);
|
||||
}
|
||||
});
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(sortedWith, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = sortedWith.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList2.add(getMapToCirculation((CommercialRouteInfo) it.next()));
|
||||
}
|
||||
return arrayList2;
|
||||
}
|
||||
|
||||
private final List<OtherCirculation> makeOneWayCirculations(List<CommercialPathStepSideInfo> list, final boolean isDeparture) {
|
||||
int collectionSizeOrDefault;
|
||||
if (list.isEmpty()) {
|
||||
return CollectionsKt.emptyList();
|
||||
}
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : list) {
|
||||
CommercialPathStepSideInfo commercialPathStepSideInfo = (CommercialPathStepSideInfo) obj;
|
||||
PassthroughStepSides passthroughStepSide = commercialPathStepSideInfo.passthroughStepSide(isDeparture);
|
||||
boolean z3 = false;
|
||||
if (passthroughStepSide != null && passthroughStepSide.isAudited()) {
|
||||
z3 = true;
|
||||
}
|
||||
if (commercialPathStepSideInfo.getPassthroughStep().isCommercial() && (!isDeparture || (isDeparture && !z3))) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
List sortedWith = CollectionsKt.sortedWith(arrayList, new Comparator() { // from class: com.adif.elcanomovil.domain.entities.circulation.mappers.OthersCirculationMapper$makeOneWayCirculations$$inlined$sortedBy$1
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.Comparator
|
||||
public final int compare(T t2, T t4) {
|
||||
Date date;
|
||||
Date date2;
|
||||
date = OthersCirculationMapper.this.date((CommercialPathStepSideInfo) t2, isDeparture);
|
||||
date2 = OthersCirculationMapper.this.date((CommercialPathStepSideInfo) t4, isDeparture);
|
||||
return ComparisonsKt.compareValues(date, date2);
|
||||
}
|
||||
});
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(sortedWith, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = sortedWith.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList2.add(mapToCirculation((CommercialPathStepSideInfo) it.next(), isDeparture));
|
||||
}
|
||||
return arrayList2;
|
||||
}
|
||||
|
||||
private final OtherCirculation mapToCirculation(CommercialPathStepSideInfo commercialPathStepSideInfo, boolean z3) {
|
||||
String plannedTime = plannedTime(commercialPathStepSideInfo, z3, this.formatter);
|
||||
Date date = date(commercialPathStepSideInfo, z3);
|
||||
String delayedTime = delayedTime(commercialPathStepSideInfo, z3, this.formatter);
|
||||
String stationCode = commercialPathStepSideInfo.getPassthroughStep().getStationCode();
|
||||
String stationCode2 = commercialPathStepSideInfo.stationCode(z3);
|
||||
OtherCirculation.Train train = new OtherCirculation.Train(commercialPathStepSideInfo.getCommercialPathInfo().getOpeProComPro().getOperator(), commercialPathStepSideInfo.getCommercialPathInfo().getComercialPathKey().getCommercialNumber(), commercialPathStepSideInfo.getCommercialPathInfo().getOpeProComPro().getCommercialProduct());
|
||||
OtherCirculation.State state = state(commercialPathStepSideInfo, z3);
|
||||
String platform = commercialPathStepSideInfo.platform(z3);
|
||||
boolean hasWarningPlatform = commercialPathStepSideInfo.hasWarningPlatform(z3);
|
||||
boolean platformMuted = commercialPathStepSideInfo.platformMuted(z3);
|
||||
String observation = commercialPathStepSideInfo.observation(z3);
|
||||
boolean accessible = commercialPathStepSideInfo.getCommercialPathInfo().getAccessible();
|
||||
PassthroughStepSides passthroughStepSide = commercialPathStepSideInfo.passthroughStepSide(z3);
|
||||
boolean immediateDeparture = passthroughStepSide != null ? passthroughStepSide.getImmediateDeparture() : false;
|
||||
boolean isShortTrain = commercialPathStepSideInfo.getCommercialPathInfo().isShortTrain();
|
||||
String commercialNumber = commercialPathStepSideInfo.getCommercialPathInfo().getComercialPathKey().getCommercialNumber();
|
||||
String originStationCode = commercialPathStepSideInfo.getCommercialPathInfo().getComercialPathKey().getOriginStationCode();
|
||||
String destinationStationCode = commercialPathStepSideInfo.getCommercialPathInfo().getComercialPathKey().getDestinationStationCode();
|
||||
long launchingDate = commercialPathStepSideInfo.getCommercialPathInfo().getComercialPathKey().getLaunchingDate();
|
||||
TrainCirculationInfo trainCirculationInfo = new TrainCirculationInfo(originStationCode, destinationStationCode, Long.valueOf(launchingDate), commercialNumber, commercialPathStepSideInfo.getCommercialPathInfo().getOpeProComPro().getOperator(), commercialPathStepSideInfo.getCommercialPathInfo().getObservation(), commercialPathStepSideInfo.getCommercialPathInfo().getOpeProComPro().getCommercialProduct());
|
||||
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
|
||||
String s4 = w.s(new Object[]{commercialPathStepSideInfo.getCommercialPathInfo().getOpeProComPro().getOperator(), commercialPathStepSideInfo.getCommercialPathInfo().getOpeProComPro().getCommercialProduct()}, 2, BuildConfig.operatorLogoUrl, "format(...)");
|
||||
String operatorPlatform = commercialPathStepSideInfo.operatorPlatform(z3);
|
||||
String plannedPlatform = commercialPathStepSideInfo.plannedPlatform(z3);
|
||||
String sitraPlatform = commercialPathStepSideInfo.sitraPlatform(z3);
|
||||
String ctcPlatform = commercialPathStepSideInfo.ctcPlatform(z3);
|
||||
String technicalNumber = commercialPathStepSideInfo.technicalNumber(z3);
|
||||
String resultantPlatform = commercialPathStepSideInfo.resultantPlatform(z3);
|
||||
PassthroughStepSides passthroughStepSide2 = commercialPathStepSideInfo.passthroughStepSide(z3);
|
||||
return new OtherCirculation(date, plannedTime, delayedTime, stationCode, stationCode2, null, null, train, state, platform, hasWarningPlatform, platformMuted, observation, accessible, immediateDeparture, isShortTrain, trainCirculationInfo, s4, false, operatorPlatform, plannedPlatform, sitraPlatform, ctcPlatform, technicalNumber, resultantPlatform, passthroughStepSide2 != null ? passthroughStepSide2.getPreassignedPlatform() : null, 262144, null);
|
||||
}
|
||||
|
||||
private final String plannedTime(CommercialPathStepSideInfo commercialPathStepSideInfo, boolean z3, DateFormat dateFormat) {
|
||||
String format = dateFormat.format(date(commercialPathStepSideInfo, z3));
|
||||
Intrinsics.checkNotNullExpressionValue(format, "format(...)");
|
||||
return format;
|
||||
}
|
||||
|
||||
private final OtherCirculation.State state(CommercialPathStepSideInfo commercialPathStepSideInfo, boolean z3) {
|
||||
PassthroughStepSides passthroughStepSide = commercialPathStepSideInfo.passthroughStepSide(z3);
|
||||
if (passthroughStepSide == null) {
|
||||
return null;
|
||||
}
|
||||
if (passthroughStepSide.isSuppressed()) {
|
||||
return OtherCirculation.State.SUPPRESSED;
|
||||
}
|
||||
if (passthroughStepSide.getImmediateDeparture() && passthroughStepSide.isAudited()) {
|
||||
return OtherCirculation.State.BOARDING;
|
||||
}
|
||||
if (passthroughStepSide.getForecatedOrAuditedDelay() > 0) {
|
||||
return OtherCirculation.State.DELAYED;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public final List<OtherCirculation> map(List<? extends CommercialCirculation> from, boolean isDeparture) {
|
||||
Intrinsics.checkNotNullParameter(from, "from");
|
||||
List<? extends CommercialCirculation> list = from;
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : list) {
|
||||
if (obj instanceof CommercialPathStepSideInfo) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
if (!arrayList.isEmpty()) {
|
||||
return makeOneWayCirculations(arrayList, isDeparture);
|
||||
}
|
||||
ArrayList arrayList2 = new ArrayList();
|
||||
for (Object obj2 : list) {
|
||||
if (obj2 instanceof CommercialRouteInfo) {
|
||||
arrayList2.add(obj2);
|
||||
}
|
||||
}
|
||||
return !arrayList2.isEmpty() ? makeJourneyCirculations(arrayList2) : CollectionsKt.emptyList();
|
||||
}
|
||||
|
||||
private final String plannedTime(CommercialRouteInfo commercialRouteInfo, DateFormat dateFormat) {
|
||||
return dateFormat.format(getPlannedDepartureDate(commercialRouteInfo)) + '-' + dateFormat.format(getPlannedArrivalDate(commercialRouteInfo));
|
||||
}
|
||||
|
||||
private final String delayedTime(CommercialRouteInfo commercialRouteInfo, DateFormat dateFormat) {
|
||||
String plannedTime = plannedTime(commercialRouteInfo, dateFormat);
|
||||
String str = dateFormat.format(getMeasuredDepartureDate(commercialRouteInfo)) + '-' + dateFormat.format(getMeasuredArrivalDate(commercialRouteInfo));
|
||||
if (Intrinsics.areEqual(str, plannedTime)) {
|
||||
return null;
|
||||
}
|
||||
return str;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation.mappers;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class a extends ContinuationImpl {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public CercaniasCirculationMapper f4459a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public Collection f4460b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public Iterator f4461c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public Collection f4462d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4463e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ CercaniasCirculationMapper f4464f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public int f4465g;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public a(CercaniasCirculationMapper cercaniasCirculationMapper, Continuation continuation) {
|
||||
super(continuation);
|
||||
this.f4464f = cercaniasCirculationMapper;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object makeJourneyCirculations;
|
||||
this.f4463e = obj;
|
||||
this.f4465g |= IntCompanionObject.MIN_VALUE;
|
||||
makeJourneyCirculations = this.f4464f.makeJourneyCirculations(null, this);
|
||||
return makeJourneyCirculations;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation.mappers;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class b extends ContinuationImpl {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public CercaniasCirculationMapper f4466a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public Collection f4467b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public Iterator f4468c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public Collection f4469d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public boolean f4470e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4471f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final /* synthetic */ CercaniasCirculationMapper f4472g;
|
||||
public int h;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public b(CercaniasCirculationMapper cercaniasCirculationMapper, Continuation continuation) {
|
||||
super(continuation);
|
||||
this.f4472g = cercaniasCirculationMapper;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object makeOneWayCirculations;
|
||||
this.f4471f = obj;
|
||||
this.h |= IntCompanionObject.MIN_VALUE;
|
||||
makeOneWayCirculations = this.f4472g.makeOneWayCirculations(null, false, this);
|
||||
return makeOneWayCirculations;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation.mappers;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialPathStepSideInfo;
|
||||
import java.util.Date;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class c extends ContinuationImpl {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public CommercialPathStepSideInfo f4473a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public Date f4474b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public String f4475c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public String f4476d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public String f4477e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public String f4478f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public boolean f4479g;
|
||||
public /* synthetic */ Object h;
|
||||
public final /* synthetic */ CercaniasCirculationMapper i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public int f4480j;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public c(CercaniasCirculationMapper cercaniasCirculationMapper, Continuation continuation) {
|
||||
super(continuation);
|
||||
this.i = cercaniasCirculationMapper;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object mapToCirculation;
|
||||
this.h = obj;
|
||||
this.f4480j |= IntCompanionObject.MIN_VALUE;
|
||||
mapToCirculation = this.i.mapToCirculation(null, false, this);
|
||||
return mapToCirculation;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.adif.elcanomovil.domain.entities.circulation.mappers;
|
||||
|
||||
import com.adif.elcanomovil.domain.entities.circulation.CommercialRouteInfo;
|
||||
import java.util.Date;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class d extends ContinuationImpl {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public CommercialRouteInfo f4481a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public Date f4482b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public String f4483c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public String f4484d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public String f4485e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public String f4486f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public /* synthetic */ Object f4487g;
|
||||
public final /* synthetic */ CercaniasCirculationMapper h;
|
||||
public int i;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public d(CercaniasCirculationMapper cercaniasCirculationMapper, Continuation continuation) {
|
||||
super(continuation);
|
||||
this.h = cercaniasCirculationMapper;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object mapToCirculation;
|
||||
this.f4487g = obj;
|
||||
this.i |= IntCompanionObject.MIN_VALUE;
|
||||
mapToCirculation = this.h.mapToCirculation(null, this);
|
||||
return mapToCirculation;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user