Initial version -- added millennium read funcionality
This commit is contained in:
+175
@@ -0,0 +1,175 @@
|
||||
package com.sistemasolton.itranvias.home.presentation.linedetail;
|
||||
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.detallelineadto.DetalleLineaDto;
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.horariodto.HorarioDto;
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.infodto.InfoDto;
|
||||
import com.sistemasolton.itranvias.home.data.remote.dto.mapasdto.MapasDto;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.datetime.LocalDate;
|
||||
|
||||
/* JADX INFO: compiled from: LineDetailState.kt */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(d1 = {"\u0000D\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u001e\n\u0002\u0010\b\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u0001By\u0012\b\b\u0002\u0010\u0002\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0004\u001a\u00020\u0003\u0012\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u0006\u0012\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\b\u0012\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\n\u0012\b\b\u0002\u0010\u000b\u001a\u00020\u0003\u0012\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\r\u0012\n\b\u0002\u0010\u000e\u001a\u0004\u0018\u00010\u000f\u0012\n\b\u0002\u0010\u0010\u001a\u0004\u0018\u00010\b\u0012\n\b\u0002\u0010\u0011\u001a\u0004\u0018\u00010\u0012¢\u0006\u0004\b\u0013\u0010\u0014J\t\u0010#\u001a\u00020\u0003HÆ\u0003J\t\u0010$\u001a\u00020\u0003HÆ\u0003J\u000b\u0010%\u001a\u0004\u0018\u00010\u0006HÆ\u0003J\u000b\u0010&\u001a\u0004\u0018\u00010\bHÆ\u0003J\u000b\u0010'\u001a\u0004\u0018\u00010\nHÆ\u0003J\t\u0010(\u001a\u00020\u0003HÆ\u0003J\u000b\u0010)\u001a\u0004\u0018\u00010\rHÆ\u0003J\u000b\u0010*\u001a\u0004\u0018\u00010\u000fHÆ\u0003J\u000b\u0010+\u001a\u0004\u0018\u00010\bHÆ\u0003J\u000b\u0010,\u001a\u0004\u0018\u00010\u0012HÆ\u0003J{\u0010-\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u00062\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\b2\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\n2\b\b\u0002\u0010\u000b\u001a\u00020\u00032\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\r2\n\b\u0002\u0010\u000e\u001a\u0004\u0018\u00010\u000f2\n\b\u0002\u0010\u0010\u001a\u0004\u0018\u00010\b2\n\b\u0002\u0010\u0011\u001a\u0004\u0018\u00010\u0012HÆ\u0001J\u0013\u0010.\u001a\u00020\u00032\b\u0010/\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u00100\u001a\u000201HÖ\u0001J\t\u00102\u001a\u00020\bHÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0002\u0010\u0015R\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0004\u0010\u0015R\u0013\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u0016\u0010\u0017R\u0013\u0010\u0007\u001a\u0004\u0018\u00010\b¢\u0006\b\n\u0000\u001a\u0004\b\u0018\u0010\u0019R\u0013\u0010\t\u001a\u0004\u0018\u00010\n¢\u0006\b\n\u0000\u001a\u0004\b\u001a\u0010\u001bR\u0011\u0010\u000b\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\u0015R\u0013\u0010\f\u001a\u0004\u0018\u00010\r¢\u0006\b\n\u0000\u001a\u0004\b\u001c\u0010\u001dR\u0013\u0010\u000e\u001a\u0004\u0018\u00010\u000f¢\u0006\b\n\u0000\u001a\u0004\b\u001e\u0010\u001fR\u0013\u0010\u0010\u001a\u0004\u0018\u00010\b¢\u0006\b\n\u0000\u001a\u0004\b \u0010\u0019R\u0013\u0010\u0011\u001a\u0004\u0018\u00010\u0012¢\u0006\b\n\u0000\u001a\u0004\b!\u0010\"¨\u00063"}, d2 = {"Lcom/sistemasolton/itranvias/home/presentation/linedetail/LineDetailState;", "", "isLoading", "", "isError", "infoDto", "Lcom/sistemasolton/itranvias/home/data/remote/dto/infodto/InfoDto;", "errorMessage", "", "detalleLineaDto", "Lcom/sistemasolton/itranvias/home/data/remote/dto/detallelineadto/DetalleLineaDto;", "isFavorite", "schedule", "Lcom/sistemasolton/itranvias/home/data/remote/dto/horariodto/HorarioDto;", "lineMap", "Lcom/sistemasolton/itranvias/home/data/remote/dto/mapasdto/MapasDto;", "lastUpdateTime", "selectedScheduleDate", "Lkotlinx/datetime/LocalDate;", "<init>", "(ZZLcom/sistemasolton/itranvias/home/data/remote/dto/infodto/InfoDto;Ljava/lang/String;Lcom/sistemasolton/itranvias/home/data/remote/dto/detallelineadto/DetalleLineaDto;ZLcom/sistemasolton/itranvias/home/data/remote/dto/horariodto/HorarioDto;Lcom/sistemasolton/itranvias/home/data/remote/dto/mapasdto/MapasDto;Ljava/lang/String;Lkotlinx/datetime/LocalDate;)V", "()Z", "getInfoDto", "()Lcom/sistemasolton/itranvias/home/data/remote/dto/infodto/InfoDto;", "getErrorMessage", "()Ljava/lang/String;", "getDetalleLineaDto", "()Lcom/sistemasolton/itranvias/home/data/remote/dto/detallelineadto/DetalleLineaDto;", "getSchedule", "()Lcom/sistemasolton/itranvias/home/data/remote/dto/horariodto/HorarioDto;", "getLineMap", "()Lcom/sistemasolton/itranvias/home/data/remote/dto/mapasdto/MapasDto;", "getLastUpdateTime", "getSelectedScheduleDate", "()Lkotlinx/datetime/LocalDate;", "component1", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "component10", "copy", "equals", "other", "hashCode", "", "toString", "composeApp_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
|
||||
public final /* data */ class LineDetailState {
|
||||
public static final int $stable = 8;
|
||||
private final DetalleLineaDto detalleLineaDto;
|
||||
private final String errorMessage;
|
||||
private final InfoDto infoDto;
|
||||
private final boolean isError;
|
||||
private final boolean isFavorite;
|
||||
private final boolean isLoading;
|
||||
private final String lastUpdateTime;
|
||||
private final MapasDto lineMap;
|
||||
private final HorarioDto schedule;
|
||||
private final LocalDate selectedScheduleDate;
|
||||
|
||||
public LineDetailState() {
|
||||
this(false, false, null, null, null, false, null, null, null, null, 1023, null);
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component1, reason: from getter */
|
||||
public final boolean getIsLoading() {
|
||||
return this.isLoading;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component10, reason: from getter */
|
||||
public final LocalDate getSelectedScheduleDate() {
|
||||
return this.selectedScheduleDate;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component2, reason: from getter */
|
||||
public final boolean getIsError() {
|
||||
return this.isError;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component3, reason: from getter */
|
||||
public final InfoDto getInfoDto() {
|
||||
return this.infoDto;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component4, reason: from getter */
|
||||
public final String getErrorMessage() {
|
||||
return this.errorMessage;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component5, reason: from getter */
|
||||
public final DetalleLineaDto getDetalleLineaDto() {
|
||||
return this.detalleLineaDto;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component6, reason: from getter */
|
||||
public final boolean getIsFavorite() {
|
||||
return this.isFavorite;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component7, reason: from getter */
|
||||
public final HorarioDto getSchedule() {
|
||||
return this.schedule;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component8, reason: from getter */
|
||||
public final MapasDto getLineMap() {
|
||||
return this.lineMap;
|
||||
}
|
||||
|
||||
/* JADX INFO: renamed from: component9, reason: from getter */
|
||||
public final String getLastUpdateTime() {
|
||||
return this.lastUpdateTime;
|
||||
}
|
||||
|
||||
public final LineDetailState copy(boolean isLoading, boolean isError, InfoDto infoDto, String errorMessage, DetalleLineaDto detalleLineaDto, boolean isFavorite, HorarioDto schedule, MapasDto lineMap, String lastUpdateTime, LocalDate selectedScheduleDate) {
|
||||
return new LineDetailState(isLoading, isError, infoDto, errorMessage, detalleLineaDto, isFavorite, schedule, lineMap, lastUpdateTime, selectedScheduleDate);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof LineDetailState)) {
|
||||
return false;
|
||||
}
|
||||
LineDetailState lineDetailState = (LineDetailState) other;
|
||||
return this.isLoading == lineDetailState.isLoading && this.isError == lineDetailState.isError && Intrinsics.areEqual(this.infoDto, lineDetailState.infoDto) && Intrinsics.areEqual(this.errorMessage, lineDetailState.errorMessage) && Intrinsics.areEqual(this.detalleLineaDto, lineDetailState.detalleLineaDto) && this.isFavorite == lineDetailState.isFavorite && Intrinsics.areEqual(this.schedule, lineDetailState.schedule) && Intrinsics.areEqual(this.lineMap, lineDetailState.lineMap) && Intrinsics.areEqual(this.lastUpdateTime, lineDetailState.lastUpdateTime) && Intrinsics.areEqual(this.selectedScheduleDate, lineDetailState.selectedScheduleDate);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int iHashCode = ((Boolean.hashCode(this.isLoading) * 31) + Boolean.hashCode(this.isError)) * 31;
|
||||
InfoDto infoDto = this.infoDto;
|
||||
int iHashCode2 = (iHashCode + (infoDto == null ? 0 : infoDto.hashCode())) * 31;
|
||||
String str = this.errorMessage;
|
||||
int iHashCode3 = (iHashCode2 + (str == null ? 0 : str.hashCode())) * 31;
|
||||
DetalleLineaDto detalleLineaDto = this.detalleLineaDto;
|
||||
int iHashCode4 = (((iHashCode3 + (detalleLineaDto == null ? 0 : detalleLineaDto.hashCode())) * 31) + Boolean.hashCode(this.isFavorite)) * 31;
|
||||
HorarioDto horarioDto = this.schedule;
|
||||
int iHashCode5 = (iHashCode4 + (horarioDto == null ? 0 : horarioDto.hashCode())) * 31;
|
||||
MapasDto mapasDto = this.lineMap;
|
||||
int iHashCode6 = (iHashCode5 + (mapasDto == null ? 0 : mapasDto.hashCode())) * 31;
|
||||
String str2 = this.lastUpdateTime;
|
||||
int iHashCode7 = (iHashCode6 + (str2 == null ? 0 : str2.hashCode())) * 31;
|
||||
LocalDate localDate = this.selectedScheduleDate;
|
||||
return iHashCode7 + (localDate != null ? localDate.hashCode() : 0);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "LineDetailState(isLoading=" + this.isLoading + ", isError=" + this.isError + ", infoDto=" + this.infoDto + ", errorMessage=" + this.errorMessage + ", detalleLineaDto=" + this.detalleLineaDto + ", isFavorite=" + this.isFavorite + ", schedule=" + this.schedule + ", lineMap=" + this.lineMap + ", lastUpdateTime=" + this.lastUpdateTime + ", selectedScheduleDate=" + this.selectedScheduleDate + ")";
|
||||
}
|
||||
|
||||
public LineDetailState(boolean z, boolean z2, InfoDto infoDto, String str, DetalleLineaDto detalleLineaDto, boolean z3, HorarioDto horarioDto, MapasDto mapasDto, String str2, LocalDate localDate) {
|
||||
this.isLoading = z;
|
||||
this.isError = z2;
|
||||
this.infoDto = infoDto;
|
||||
this.errorMessage = str;
|
||||
this.detalleLineaDto = detalleLineaDto;
|
||||
this.isFavorite = z3;
|
||||
this.schedule = horarioDto;
|
||||
this.lineMap = mapasDto;
|
||||
this.lastUpdateTime = str2;
|
||||
this.selectedScheduleDate = localDate;
|
||||
}
|
||||
|
||||
public /* synthetic */ LineDetailState(boolean z, boolean z2, InfoDto infoDto, String str, DetalleLineaDto detalleLineaDto, boolean z3, HorarioDto horarioDto, MapasDto mapasDto, String str2, LocalDate localDate, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this((i & 1) != 0 ? false : z, (i & 2) != 0 ? false : z2, (i & 4) != 0 ? null : infoDto, (i & 8) != 0 ? null : str, (i & 16) != 0 ? null : detalleLineaDto, (i & 32) == 0 ? z3 : false, (i & 64) != 0 ? null : horarioDto, (i & 128) != 0 ? null : mapasDto, (i & 256) != 0 ? null : str2, (i & 512) == 0 ? localDate : null);
|
||||
}
|
||||
|
||||
public final boolean isLoading() {
|
||||
return this.isLoading;
|
||||
}
|
||||
|
||||
public final boolean isError() {
|
||||
return this.isError;
|
||||
}
|
||||
|
||||
public final InfoDto getInfoDto() {
|
||||
return this.infoDto;
|
||||
}
|
||||
|
||||
public final String getErrorMessage() {
|
||||
return this.errorMessage;
|
||||
}
|
||||
|
||||
public final DetalleLineaDto getDetalleLineaDto() {
|
||||
return this.detalleLineaDto;
|
||||
}
|
||||
|
||||
public final boolean isFavorite() {
|
||||
return this.isFavorite;
|
||||
}
|
||||
|
||||
public final HorarioDto getSchedule() {
|
||||
return this.schedule;
|
||||
}
|
||||
|
||||
public final MapasDto getLineMap() {
|
||||
return this.lineMap;
|
||||
}
|
||||
|
||||
public final String getLastUpdateTime() {
|
||||
return this.lastUpdateTime;
|
||||
}
|
||||
|
||||
public final LocalDate getSelectedScheduleDate() {
|
||||
return this.selectedScheduleDate;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user