正在查看: Housing v14.7.8 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Housing v14.7.8 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.locon.profile.data.network;
import com.locon.core.data.notifications.GuestTokenPushRequest;
import com.locon.core.data.remote.popularLocality.dtos.PopularLocalityDtoV2;
import com.locon.core.data.remote.profileContacted.dtos.ProfileContactedDto;
import com.locon.core.data.remote.similarProperties.dtos.SimilarPropertiesResultsDto;
import com.locon.core.data.sharedDtos.FooterDto;
import com.locon.core.data.v0;
import com.locon.core.domain.model.ShortlistPropertiesV2Dto;
import com.locon.network.REST;
import com.locon.presentation.analytics.m2;
import com.locon.profile.data.dto.LogOutDto;
import com.locon.profile.data.dto.PreferencesDto;
import com.locon.profile.data.dto.RecommendedCollectionDto;
import com.locon.profile.data.dto.SavePreferencesResponseDto;
import com.locon.profile.demand.exceptions.CreateCollectionError;
import com.locon.profile.demand.exceptions.ProfileGenericError;
import com.locon.profile.demand.model.PreferencesRequestModel;
import com.locon.profile.demand.model.UpdateFavoriteRequestModel;
import com.locon.profile.demand.model.ValidateAuthTokenErrorModel;
import com.moengage.core.internal.CoreConstants;
import com.moengage.enum_models.reachability.Channel;
import com.moengage.inapp.internal.repository.PayloadMapperKt;
import com.newrelic.agent.android.hybrid.data.HexAttribute;
import com.newrelic.agent.android.instrumentation.Instrumented;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import javax.inject.Inject;
import kotlin.Metadata;
import kotlin.collections.t0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.SourceDebugExtension;
import org.jetbrains.annotations.NotNull;
@Metadata(d1 = {"\u0000@\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u000f\u0018\u0000 \u001f2\u00020\u0001:\u0001 BQ\b\u0007\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0004\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u0012\u0006\u0010\t\u001a\u00020\b\u0012\u0006\u0010\u000b\u001a\u00020\n\u0012\u0006\u0010\r\u001a\u00020\f\u0012\u0006\u0010\u000f\u001a\u00020\u000e\u0012\u0006\u0010\u0011\u001a\u00020\u0010\u0012\u0006\u0010\u0013\u001a\u00020\u0012¢\u0006\u0004\b\u0014\u0010\u0015R\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u0016R\u0014\u0010\u0005\u001a\u00020\u00048\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010\u0017R\u0014\u0010\u0007\u001a\u00020\u00068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0007\u0010\u0018R\u0014\u0010\t\u001a\u00020\b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\t\u0010\u0019R\u0014\u0010\u000b\u001a\u00020\n8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010\u001aR\u0014\u0010\r\u001a\u00020\f8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\r\u0010\u001bR\u0014\u0010\u000f\u001a\u00020\u000e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000f\u0010\u001cR\u0014\u0010\u0011\u001a\u00020\u00108\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0011\u0010\u001dR\u0014\u0010\u0013\u001a\u00020\u00128\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0013\u0010\u001e¨\u0006!"}, d2 = {"Lcom/locon/profile/data/network/a;", "", "Lcom/locon/network/d;", "remoteSource", "Lcom/locon/core/data/z;", "fingerprintManager", "Llh/u;", "pahalServiceEndPoints", "Llh/g;", "dataServiceEndPoints", "Llh/o;", "loginServiceEndPoints", "Llh/m;", "khojServiceEndPoints", "Llh/s;", "odinServiceEndpoints", "Llh/w;", "regionServiceEndpoints", "Llh/a0;", "seoServiceEndPoints", "<init>", "(Lcom/locon/network/d;Lcom/locon/core/data/z;Llh/u;Llh/g;Llh/o;Llh/m;Llh/s;Llh/w;Llh/a0;)V", "Lcom/locon/network/d;", "Lcom/locon/core/data/z;", "Llh/u;", "Llh/g;", "Llh/o;", "Llh/m;", "Llh/s;", "Llh/w;", "Llh/a0;", "Companion", "a", "data_gammaRelease"}, k = 1, mv = {2, 0, 0}, xi = 48)
@Instrumented
@SourceDebugExtension({"SMAP\nProfileRemoteSource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ProfileRemoteSource.kt\ncom/locon/profile/data/network/ProfileRemoteSource\n+ 2 RemoteSource.kt\ncom/locon/network/RemoteSource\n+ 3 NetworkSdk.kt\ncom/locon/network/NetworkSdk\n+ 4 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 5 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,569:1\n55#2,7:570\n135#2:586\n55#2,7:587\n135#2:603\n55#2,7:604\n135#2:620\n55#2,7:621\n135#2:637\n55#2,7:638\n135#2:654\n55#2,7:655\n135#2:671\n55#2,7:672\n135#2:688\n55#2,7:689\n135#2:705\n55#2,7:720\n135#2:736\n55#2,7:737\n135#2:753\n55#2,7:754\n135#2:770\n55#2,7:771\n135#2:787\n55#2,7:788\n135#2:804\n55#2,7:805\n135#2:821\n55#2,7:822\n135#2:838\n174#2,5:839\n188#2,6:847\n248#2:853\n196#2,41:854\n237#2:899\n239#2,6:901\n180#2,5:937\n174#2,5:970\n188#2,6:978\n248#2:984\n196#2,41:985\n237#2:1030\n239#2,6:1032\n180#2,5:1068\n55#2,7:1101\n135#2:1117\n55#2,7:1118\n135#2:1134\n44#3,9:577\n44#3,9:594\n44#3,9:611\n44#3,9:628\n44#3,9:645\n44#3,9:662\n44#3,9:679\n44#3,9:696\n44#3,9:727\n44#3,9:744\n44#3,9:761\n44#3,9:778\n44#3,9:795\n44#3,9:812\n44#3,9:829\n190#3,3:844\n193#3,4:907\n223#3,7:911\n173#3,2:918\n230#3,8:920\n179#3,3:928\n238#3:931\n239#3:936\n243#3,7:942\n198#3,15:949\n214#3,5:965\n190#3,3:975\n193#3,4:1038\n223#3,7:1042\n173#3,2:1049\n230#3,8:1051\n179#3,3:1059\n238#3:1062\n239#3:1067\n243#3,7:1073\n198#3,15:1080\n214#3,5:1096\n44#3,9:1108\n44#3,9:1125\n774#4:706\n865#4,2:707\n1563#4:709\n1634#4,3:710\n774#4:713\n865#4,2:714\n1563#4:716\n1634#4,3:717\n1193#4,2:895\n1267#4,2:897\n1270#4:900\n1563#4:932\n1634#4,3:933\n1193#4,2:1026\n1267#4,2:1028\n1270#4:1031\n1563#4:1063\n1634#4,3:1064\n1#5:964\n1#5:1095\n*S KotlinDebug\n*F\n+ 1 ProfileRemoteSource.kt\ncom/locon/profile/data/network/ProfileRemoteSource\n*L\n67#1:570,7\n67#1:586\n80#1:587,7\n80#1:603\n94#1:604,7\n94#1:620\n109#1:621,7\n109#1:637\n129#1:638,7\n129#1:654\n149#1:655,7\n149#1:671\n182#1:672,7\n182#1:688\n219#1:689,7\n219#1:705\n237#1:720,7\n237#1:736\n292#1:737,7\n292#1:753\n308#1:754,7\n308#1:770\n334#1:771,7\n334#1:787\n343#1:788,7\n343#1:804\n381#1:805,7\n381#1:821\n392#1:822,7\n392#1:838\n425#1:839,5\n425#1:847,6\n425#1:853\n425#1:854,41\n425#1:899\n425#1:901,6\n425#1:937,5\n433#1:970,5\n433#1:978,6\n433#1:984\n433#1:985,41\n433#1:1030\n433#1:1032,6\n433#1:1068,5\n442#1:1101,7\n442#1:1117\n458#1:1118,7\n458#1:1134\n67#1:577,9\n80#1:594,9\n94#1:611,9\n109#1:628,9\n129#1:645,9\n149#1:662,9\n182#1:679,9\n219#1:696,9\n237#1:727,9\n292#1:744,9\n308#1:761,9\n334#1:778,9\n343#1:795,9\n381#1:812,9\n392#1:829,9\n425#1:844,3\n425#1:907,4\n425#1:911,7\n425#1:918,2\n425#1:920,8\n425#1:928,3\n425#1:931\n425#1:936\n425#1:942,7\n425#1:949,15\n425#1:965,5\n433#1:975,3\n433#1:1038,4\n433#1:1042,7\n433#1:1049,2\n433#1:1051,8\n433#1:1059,3\n433#1:1062\n433#1:1067\n433#1:1073,7\n433#1:1080,15\n433#1:1096,5\n442#1:1108,9\n458#1:1125,9\n233#1:706\n233#1:707,2\n234#1:709\n234#1:710,3\n235#1:713\n235#1:714,2\n236#1:716\n236#1:717,3\n425#1:895,2\n425#1:897,2\n425#1:900\n425#1:932\n425#1:933,3\n433#1:1026,2\n433#1:1028,2\n433#1:1031\n433#1:1063\n433#1:1064,3\n425#1:964\n433#1:1095\n*E\n"})
public final class a {
@NotNull
private static final String ANDROID = "android";
@NotNull
private static final String APP_VERSION = "app_version";
@NotNull
public static final Companion INSTANCE = new Companion(null);
@NotNull
private static final String EDUCATION_FEES_DISCOUNT_APPLICABLE = "education-fees-discount-applicable";
@NotNull
private static final String FINGERPRINT_ID = "fingerprint_id";
@NotNull
private static final String GA_ID = "ga_id";
@NotNull
private static final String GSF_ID = "gsf_id";
@NotNull
private static final String HOUSING_AUTH_TOKEN = "housing-auth-token";
@NotNull
private static final String HW_FINGERPRINT_ID = "hw_fingerprint_id";
@NotNull
private static final String HW_METADATA = "hw_metadata";
@NotNull
private static final String LOGIN_AUTH_TOKEN = "login_auth_token";
@NotNull
private static final String MEDIA_DRM_CRYPTO_UUID = "media_drm_crypto_uuid";
@NotNull
private static final String MEDIA_DRM_ID = "media_drm_id";
@NotNull
private static final String PAGE = "p";
@NotNull
private static final String POLY = "poly";
@NotNull
private static final String PROFILE_UUID = "profile_uuid";
@NotNull
private static final String PROJECT_IDS = "project_ids";
@NotNull
private static final String RESALE_IDS = "resale_ids";
@NotNull
private static final String SERVICE = "service";
@NotNull
private static final String SOURCE = "source";
@NotNull
private static final String USER_TYPE = "userType";
@NotNull
private static final String UUID_ = "uuid";
@NotNull
private static final String VISITOR_ID = "visitorId";
@NotNull
private final lh.g dataServiceEndPoints;
@NotNull
private final com.locon.core.data.z fingerprintManager;
@NotNull
private final lh.m khojServiceEndPoints;
@NotNull
private final lh.o loginServiceEndPoints;
@NotNull
private final lh.s odinServiceEndpoints;
@NotNull
private final lh.u pahalServiceEndPoints;
@NotNull
private final lh.w regionServiceEndpoints;
@NotNull
private final com.locon.network.d remoteSource;
@NotNull
private final lh.a0 seoServiceEndPoints;
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0018\b\u0086\u0003\u0018\u00002\u00020\u0001R\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004R\u0014\u0010\u0005\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0005\u0010\u0004R\u0014\u0010\u0006\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0006\u0010\u0004R\u0014\u0010\u0007\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0007\u0010\u0004R\u0014\u0010\b\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\b\u0010\u0004R\u0014\u0010\t\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\t\u0010\u0004R\u0014\u0010\n\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\n\u0010\u0004R\u0014\u0010\u000b\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u000b\u0010\u0004R\u0014\u0010\f\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\f\u0010\u0004R\u0014\u0010\r\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\r\u0010\u0004R\u0014\u0010\u000e\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u000e\u0010\u0004R\u0014\u0010\u000f\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u000f\u0010\u0004R\u0014\u0010\u0010\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0010\u0010\u0004R\u0014\u0010\u0011\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0011\u0010\u0004R\u0014\u0010\u0012\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0012\u0010\u0004R\u0014\u0010\u0013\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0013\u0010\u0004R\u0014\u0010\u0014\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0014\u0010\u0004R\u0014\u0010\u0015\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0015\u0010\u0004R\u0014\u0010\u0016\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0016\u0010\u0004R\u0014\u0010\u0017\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0017\u0010\u0004R\u0014\u0010\u0018\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0018\u0010\u0004R\u0014\u0010\u0019\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0019\u0010\u0004¨\u0006\u001a"}, d2 = {"Lcom/locon/profile/data/network/a$a;", "", "", "SOURCE", "Ljava/lang/String;", "LOGIN_AUTH_TOKEN", "HOUSING_AUTH_TOKEN", "EDUCATION_FEES_DISCOUNT_APPLICABLE", CoreConstants.PLATFORM_VALUE_ANDROID, "FINGERPRINT_ID", "VISITOR_ID", "GA_ID", "GSF_ID", "MEDIA_DRM_ID", "APP_VERSION", "PROFILE_UUID", "MEDIA_DRM_CRYPTO_UUID", "HW_FINGERPRINT_ID", "HW_METADATA", "USER_TYPE", "RESALE_IDS", "PROJECT_IDS", "UUID_", "SERVICE", "POLY", "PAGE", "data_gammaRelease"}, k = 1, mv = {2, 0, 0}, xi = 48)
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
}
}
@Inject
public a(@NotNull com.locon.network.d dVar, @NotNull com.locon.core.data.z zVar, @NotNull lh.u uVar, @NotNull lh.g gVar, @NotNull lh.o oVar, @NotNull lh.m mVar, @NotNull lh.s sVar, @NotNull lh.w wVar, @NotNull lh.a0 a0Var) {
kotlin.jvm.internal.r.k(dVar, "remoteSource");
kotlin.jvm.internal.r.k(zVar, "fingerprintManager");
kotlin.jvm.internal.r.k(uVar, "pahalServiceEndPoints");
kotlin.jvm.internal.r.k(gVar, "dataServiceEndPoints");
kotlin.jvm.internal.r.k(oVar, "loginServiceEndPoints");
kotlin.jvm.internal.r.k(mVar, "khojServiceEndPoints");
kotlin.jvm.internal.r.k(sVar, "odinServiceEndpoints");
kotlin.jvm.internal.r.k(wVar, "regionServiceEndpoints");
kotlin.jvm.internal.r.k(a0Var, "seoServiceEndPoints");
this.remoteSource = dVar;
this.fingerprintManager = zVar;
this.pahalServiceEndPoints = uVar;
this.dataServiceEndPoints = gVar;
this.loginServiceEndPoints = oVar;
this.khojServiceEndPoints = mVar;
this.odinServiceEndpoints = sVar;
this.regionServiceEndpoints = wVar;
this.seoServiceEndPoints = a0Var;
}
public static String k(String str) {
MessageDigest messageDigest = MessageDigest.getInstance(com.facebook.react.bridge.a.MD5);
byte[] bytes = str.getBytes(kotlin.text.d.UTF_8);
kotlin.jvm.internal.r.j(bytes, "getBytes(...)");
String bigInteger = new BigInteger(1, messageDigest.digest(bytes)).toString(16);
kotlin.jvm.internal.r.j(bigInteger, "toString(...)");
return kotlin.text.q.J(32, bigInteger);
}
public static Map l() {
String valueOf = String.valueOf(System.currentTimeMillis());
return t0.j(new zp.s[]{new zp.s("ts", valueOf), new zp.s("sp", k(k(UUID.randomUUID() + valueOf)))});
}
public static kotlinx.coroutines.flow.k o(a aVar, String str, String str2) {
aVar.getClass();
kotlin.jvm.internal.r.k(str, "localityUuid");
kotlin.jvm.internal.r.k(str2, "service");
return com.locon.network.d.b(aVar.remoteSource, PopularLocalityDtoV2.class, new REST.GET(aVar.regionServiceEndpoints.e(), t0.j(new zp.s[]{new zp.s(m2.LOCALITY_UUID, str), new zp.s("service", str2), new zp.s(PayloadMapperKt.MAX_COUNT, 5)}), (Map) null, 4, (DefaultConstructorMarker) null), (Class) null, false, 12);
}
public final kotlinx.coroutines.flow.k A(String str, String str2, String str3, boolean z) {
kotlin.jvm.internal.r.k(str, "propertyId");
kotlin.jvm.internal.r.k(str2, "serviceType");
kotlin.jvm.internal.r.k(str3, "loginAuthToken");
com.locon.network.d dVar = this.remoteSource;
return kotlinx.coroutines.flow.m.x(new u(dVar.e(), v0.class, null, false, new REST.PUT(this.odinServiceEndpoints.l(), (Map) null, t0.j(new zp.s[]{new zp.s("propertyId", str), new zp.s("removed", Boolean.valueOf(z)), new zp.s("serviceType", str2)}), coil.disk.c.o("login_auth_token", str3), 2, (DefaultConstructorMarker) null), dVar));
}
public final kotlinx.coroutines.flow.k B(String str) {
kotlin.jvm.internal.r.k(str, "loginAuthToken");
com.locon.network.d dVar = this.remoteSource;
return kotlinx.coroutines.flow.m.x(new v(dVar.e(), ValidateAuthTokenErrorModel.class, null, false, new REST.GET(com.locon.profile.data.remote.a.VALIDATE_AUTH_TOKEN, (Map) null, t0.j(new zp.s[]{new zp.s("login_auth_token", str), new zp.s("source", "android")}), 2, (DefaultConstructorMarker) null), dVar));
}
public final kotlinx.coroutines.flow.k C(String str, String str2, String str3) {
kotlin.jvm.internal.r.k(str, "phone");
kotlin.jvm.internal.r.k(str2, "otp");
kotlin.jvm.internal.r.k(str3, "loginAuthToken");
com.locon.network.d dVar = this.remoteSource;
return kotlinx.coroutines.flow.m.x(new w(dVar.e(), ProfileGenericError.class, null, false, new REST.POST("https://login.housing.com/api/v1/phone-verify", (Map) null, t0.j(new zp.s[]{new zp.s("otp", str2), new zp.s("phone", str), new zp.s(HexAttribute.HEX_ATTR_JSERROR_METHOD, "phone"), new zp.s("source", "android"), new zp.s("login_auth_token", str3)}), l(), 2, (DefaultConstructorMarker) null), dVar));
}
public final kotlinx.coroutines.flow.k a(String str, String str2, String str3, String str4) {
kotlin.jvm.internal.r.k(str, "loginAuthToken");
kotlin.jvm.internal.r.k(str2, "comment");
kotlin.jvm.internal.r.k(str3, "propertyId");
kotlin.jvm.internal.r.k(str4, "serviceType");
com.locon.network.d dVar = this.remoteSource;
return kotlinx.coroutines.flow.m.x(new b(dVar.e(), CreateCollectionError.class, null, false, new REST.POST(com.locon.profile.data.remote.a.COMMENTS_API, (Map) null, t0.j(new zp.s[]{new zp.s("comment", str2), new zp.s("propertyId", str3), new zp.s("serviceType", str4)}), coil.disk.c.o("login_auth_token", str), 2, (DefaultConstructorMarker) null), dVar));
}
public final kotlinx.coroutines.flow.k b(String str, String str2, String str3) {
kotlin.jvm.internal.r.k(str, "oldPassword");
kotlin.jvm.internal.r.k(str2, "newPassword");
kotlin.jvm.internal.r.k(str3, "loginAuthToken");
com.locon.network.d dVar = this.remoteSource;
return kotlinx.coroutines.flow.m.x(new c(dVar.e(), ProfileGenericError.class, null, false, new REST.POST("https://login.housing.com/api/v1/reset-password", (Map) null, t0.j(new zp.s[]{new zp.s("user", t0.j(new zp.s[]{new zp.s("old_password", str), new zp.s("new_password", str2), new zp.s("confirm_new_password", str2)})), new zp.s("source", "android"), new zp.s("login_auth_token", str3)}), l(), 2, (DefaultConstructorMarker) null), dVar));
}
public final kotlinx.coroutines.flow.k c(String str, String str2) {
kotlin.jvm.internal.r.k(str, "password");
kotlin.jvm.internal.r.k(str2, "loginAuthToken");
com.locon.network.d dVar = this.remoteSource;
return kotlinx.coroutines.flow.m.x(new d(dVar.e(), ProfileGenericError.class, null, false, new REST.POST("https://login.housing.com/api/v1/set-first-password", (Map) null, t0.j(new zp.s[]{new zp.s("user", t0.j(new zp.s[]{new zp.s("password", str), new zp.s("password_confirmation", str)})), new zp.s("source", "android"), new zp.s("isRandom", Boolean.TRUE), new zp.s("login_auth_token", str2)}), l(), 2, (DefaultConstructorMarker) null), dVar));
}
public final kotlinx.coroutines.flow.k d(String str, boolean z) {
String t = z ? this.khojServiceEndPoints.t() : this.khojServiceEndPoints.l();
if (z) {
com.locon.network.d dVar = this.remoteSource;
zp.s sVar = new zp.s(PAGE, 1);
zp.s sVar2 = new zp.s("results_per_page", 10);
zp.s sVar3 = new zp.s("source", "android");
Boolean bool = Boolean.TRUE;
return kotlinx.coroutines.flow.m.x(new e(dVar.e(), v0.class, null, false, new REST.GET(t, t0.j(new zp.s[]{sVar, sVar2, sVar3, new zp.s("paid", bool), new zp.s("sort_key", "distance"), new zp.s("sort_order", "asc"), new zp.s("show_recent_projects", bool), new zp.s(POLY, str)}), (Map) null, 4, (DefaultConstructorMarker) null), dVar));
}
com.locon.network.d dVar2 = this.remoteSource;
zp.s sVar4 = new zp.s(PAGE, 1);
zp.s sVar5 = new zp.s("results_per_page", 10);
zp.s sVar6 = new zp.s("source", "android");
Boolean bool2 = Boolean.TRUE;
return kotlinx.coroutines.flow.m.x(new f(dVar2.e(), v0.class, null, false, new REST.GET(t, t0.j(new zp.s[]{sVar4, sVar5, sVar6, new zp.s("paid", bool2), new zp.s("sort_key", "distance"), new zp.s("sort_order", "asc"), new zp.s("show_recent_projects", bool2), new zp.s("type", "resale"), new zp.s(POLY, str)}), (Map) null, 4, (DefaultConstructorMarker) null), dVar2));
}
public final kotlinx.coroutines.flow.k e(int i, List list, List list2) {
kotlin.jvm.internal.r.k(list, "projectIds");
kotlin.jvm.internal.r.k(list2, "resaleIds");
List list3 = list;
ArrayList arrayList = new ArrayList();
for (Object obj : list3) {
if (!kotlin.text.q.s((String) obj, "resale", false)) {
arrayList.add(obj);
}
}
ArrayList arrayList2 = new ArrayList(kotlin.collections.t.u(arrayList, 10));
Iterator it = arrayList.iterator();
while (it.hasNext()) {
String str = (String) it.next();
if (!kotlin.text.q.s(str, "project", false)) {
str = str.concat("_project");
}
arrayList2.add(str);
}
ArrayList arrayList3 = new ArrayList();
for (Object obj2 : list3) {
if (kotlin.text.q.s((String) obj2, "resale", false)) {
arrayList3.add(obj2);
}
}
ArrayList b0 = kotlin.collections.t.b0(list2, arrayList3);
ArrayList arrayList4 = new ArrayList(kotlin.collections.t.u(b0, 10));
Iterator it2 = b0.iterator();
while (it2.hasNext()) {
String str2 = (String) it2.next();
if (!kotlin.text.q.s(str2, "resale", false)) {
str2 = str2.concat("_resale");
}
arrayList4.add(str2);
}
com.locon.network.d dVar = this.remoteSource;
return kotlinx.coroutines.flow.m.x(new g(dVar.e(), v0.class, null, false, new REST.GET(this.khojServiceEndPoints.e(), t0.j(new zp.s[]{new zp.s(PROJECT_IDS, kotlin.collections.t.N(arrayList2, ",", (String) null, (String) null, (kq.l) null, 62)), new zp.s("flat_ids", kotlin.collections.t.N(arrayList4, ",", (String) null, (String) null, (kq.l) null, 62)), new zp.s("status", "active,inactive"), new zp.s("source", "android"), new zp.s("property_category_ids", Integer.valueOf(i))}), (Map) null, 4, (DefaultConstructorMarker) null), dVar));
}
public final kotlinx.coroutines.flow.k f(int i, List list) {
kotlin.jvm.internal.r.k(list, "rentIds");
com.locon.network.d dVar = this.remoteSource;
return kotlinx.coroutines.flow.m.x(new h(dVar.e(), v0.class, null, true, new REST.GET(this.khojServiceEndPoints.f(), t0.j(new zp.s[]{new zp.s("rent_ids", kotlin.collections.t.N(list, ",", (String) null, (String) null, (kq.l) null, 62)), new zp.s("source", "android"), new zp.s("status", "active,inactive"), new zp.s("property_category_ids", Integer.valueOf(i))}), (Map) null, 4, (DefaultConstructorMarker) null), dVar));
}
public final kotlinx.coroutines.flow.k g(String str) {
kotlin.jvm.internal.r.k(str, "loginAuthToken");
com.locon.network.d dVar = this.remoteSource;
return kotlinx.coroutines.flow.m.x(new i(dVar.e(), v0.class, null, false, new REST.GET(com.locon.profile.data.remote.a.COMMENTS_COUNT, (Map) null, coil.disk.c.o("login_auth_token", str), 2, (DefaultConstructorMarker) null), dVar));
}
public final kotlinx.coroutines.flow.k h(int i, String str, String str2, String str3) {
kotlin.jvm.internal.r.k(str, "loginAuthToken");
kotlin.jvm.internal.r.k(str2, "propertyId");
kotlin.jvm.internal.r.k(str3, "serviceType");
com.locon.network.d dVar = this.remoteSource;
return kotlinx.coroutines.flow.m.x(new j(dVar.e(), CreateCollectionError.class, null, false, new REST.GET(com.locon.profile.data.remote.a.COMMENTS_API, t0.j(new zp.s[]{new zp.s("propertyId", str2), new zp.s("serviceType", str3), new zp.s("page", Integer.valueOf(i)), new zp.s("size", 50)}), coil.disk.c.o("login_auth_token", str)), dVar));
}
public final kotlinx.coroutines.flow.k i(String str, String str2) {
kotlin.jvm.internal.r.k(str, "loginAuthToken");
kotlin.jvm.internal.r.k(str2, "service");
sc.d0 d0Var = sc.d0.CommercialBuy;
String type = d0Var.getType();
sc.d0 d0Var2 = sc.d0.CommercialLease;
int i = kotlin.collections.t.T(new String[]{type, d0Var2.getType()}).contains(str2) ? 2 : 1;
if (i == 2) {
str2 = str2.equals(d0Var.getType()) ? d0Var.getKey() : d0Var2.getKey();
}
return com.locon.network.d.b(this.remoteSource, ProfileContactedDto.class, new REST.GET(this.pahalServiceEndPoints.a(), t0.j(new zp.s[]{new zp.s("api_name", "GET_PROPERTIES_CONTACTED"), new zp.s("login_auth_token", str), new zp.s("source", "mobile"), new zp.s("service", str2), new zp.s("size", 20), new zp.s("property_category_id", Integer.valueOf(i))}), (Map) null, 4, (DefaultConstructorMarker) null), (Class) null, false, 12);
}
public final kotlinx.coroutines.flow.k j(String str) {
return com.locon.network.d.b(this.remoteSource, ShortlistPropertiesV2Dto.class, new REST.GET(this.dataServiceEndPoints.h(), t0.j(new zp.s[]{com.google.android.gms.measurement.internal.a.s(str, "uuid", "api_name", "GET_USER_FAVORITES"), new zp.s("source", "android"), new zp.s("uuid", str), new zp.s("sort_required", Boolean.TRUE)}), (Map) null, 4, (DefaultConstructorMarker) null), (Class) null, false, 12);
}
public final kotlinx.coroutines.flow.k m(String str, String str2) {
kotlin.jvm.internal.r.k(str, "profileUuid");
kotlin.jvm.internal.r.k(str2, "loginAuthToken");
return com.locon.network.d.b(this.remoteSource, PreferencesDto.class, new REST.GET(this.loginServiceEndPoints.g(), coil.disk.c.o(PROFILE_UUID, str), t0.j(new zp.s[]{new zp.s("login_auth_token", str2), new zp.s("source", "android")})), ProfileGenericError.class, false, 8);
}
public final kotlinx.coroutines.flow.k n(String str) {
kotlin.jvm.internal.r.k(str, POLY);
return com.locon.network.d.b(this.remoteSource, FooterDto.class, new REST.GET(this.seoServiceEndPoints.b(), t0.j(new zp.s[]{new zp.s(POLY, str), new zp.s(PAGE, 1), new zp.s("source", "android")}), (Map) null, 4, (DefaultConstructorMarker) null), (Class) null, false, 12);
}
public final kotlinx.coroutines.flow.k p(String str, String str2, String str3, String str4, String str5) {
kotlin.jvm.internal.r.k(str, "serviceType");
kotlin.jvm.internal.r.k(str2, "gaId");
kotlin.jvm.internal.r.k(str3, "propertyId");
kotlin.jvm.internal.r.k(str4, "propertyType");
kotlin.jvm.internal.r.k(str5, "loginAuthToken");
String str6 = str4.equals("project") ? "project_id" : "flat_id";
zp.s sVar = new zp.s("limit", 20);
zp.s sVar2 = new zp.s(str6, str3);
Boolean bool = Boolean.TRUE;
LinkedHashMap l = t0.l(new zp.s[]{sVar, sVar2, new zp.s("exclude_free_flag", bool)});
LinkedHashMap l2 = t0.l(new zp.s[]{new zp.s("client_id", str2)});
l.put("ml_recommended", bool);
if (str5.length() > 0) {
l2.put("login-auth-token", str5);
}
com.locon.network.d dVar = this.remoteSource;
com.locon.profile.data.remote.a.INSTANCE.getClass();
return com.locon.network.d.b(dVar, SimilarPropertiesResultsDto.class, new REST.GET("https://khoj.housing.com/api/v2/" + str + "/similar-properties", l, l2), (Class) null, false, 12);
}
public final kotlinx.coroutines.flow.k q(String str, String str2) {
kotlin.jvm.internal.r.k(str2, "serviceType");
return com.locon.network.d.b(this.remoteSource, RecommendedCollectionDto.class, new REST.GET(com.locon.profile.data.remote.a.USER_FAV_COLLECTION, t0.j(new zp.s[]{new zp.s("uuid", str), new zp.s("service", str2)}), (Map) null, 4, (DefaultConstructorMarker) null), (Class) null, false, 12);
}
public final kotlinx.coroutines.flow.k r(List list, List list2) {
kotlin.jvm.internal.r.k(list, "projectIds");
kotlin.jvm.internal.r.k(list2, "resaleIds");
return com.locon.network.d.b(this.remoteSource, RecommendedCollectionDto.class, new REST.POST(com.locon.profile.data.remote.a.USER_SEEN, (Map) null, t0.j(new zp.s[]{new zp.s(RESALE_IDS, list2), new zp.s(PROJECT_IDS, list)}), (Map) null, 10, (DefaultConstructorMarker) null), (Class) null, false, 12);
}
public final kotlinx.coroutines.flow.k s(String str) {
return com.locon.network.d.b(this.remoteSource, LogOutDto.class, new REST.POST(this.loginServiceEndPoints.e(), (Map) null, t0.j(new zp.s[]{new zp.s("source", "android"), new zp.s("login_auth_token", str)}), l(), 2, (DefaultConstructorMarker) null), ProfileGenericError.class, false, 8);
}
public final kotlinx.coroutines.flow.k t(GuestTokenPushRequest guestTokenPushRequest) {
com.locon.network.d dVar = this.remoteSource;
return kotlinx.coroutines.flow.m.x(new k(dVar.e(), ProfileGenericError.class, null, false, new REST.POST(com.locon.profile.data.remote.a.LOG_OUT_DEVICE, (Map) null, guestTokenPushRequest, (Map) null, 10, (DefaultConstructorMarker) null), dVar));
}
public final kotlinx.coroutines.flow.k u(String str, String str2, PreferencesRequestModel preferencesRequestModel) {
kotlin.jvm.internal.r.k(str, "profileUuid");
kotlin.jvm.internal.r.k(str2, "loginAuthToken");
return com.locon.network.d.b(this.remoteSource, SavePreferencesResponseDto.class, new REST.POST(this.loginServiceEndPoints.g(), coil.disk.c.o(PROFILE_UUID, str), preferencesRequestModel, t0.j(new zp.s[]{new zp.s("login_auth_token", str2), new zp.s("source", "android")})), ProfileGenericError.class, false, 8);
}
public final kotlinx.coroutines.flow.k v(String str, String str2) {
kotlin.jvm.internal.r.k(str, "phone");
kotlin.jvm.internal.r.k(str2, "loginAuthToken");
com.locon.network.d dVar = this.remoteSource;
return kotlinx.coroutines.flow.m.x(new l(dVar.e(), ProfileGenericError.class, null, false, new REST.POST("https://login.housing.com/api/v1/register-phone", (Map) null, t0.j(new zp.s[]{new zp.s("phone", str), new zp.s("source", "android"), new zp.s("login_auth_token", str2)}), l(), 2, (DefaultConstructorMarker) null), dVar));
}
public final java.lang.Object w(java.lang.String r38, java.lang.String r39, java.lang.String r40, eq.d r41) {
throw new UnsupportedOperationException("Method not decompiled: com.locon.profile.data.network.a.w(java.lang.String, java.lang.String, java.lang.String, eq.d):java.lang.Object");
}
public final kotlinx.coroutines.flow.k x(String str, String str2) {
kotlin.jvm.internal.r.k(str, "phone");
kotlin.jvm.internal.r.k(str2, "countryCode");
com.locon.network.d dVar = this.remoteSource;
return kotlinx.coroutines.flow.m.x(new r(dVar.e(), ProfileGenericError.class, null, false, new REST.POST("https://login.housing.com/api/v1/send-verification-otp", (Map) null, t0.j(new zp.s[]{new zp.s("phone", str), new zp.s(HexAttribute.HEX_ATTR_JSERROR_METHOD, "phone"), new zp.s("source", "android"), new zp.s("countryCode", str2)}), l(), 2, (DefaultConstructorMarker) null), dVar));
}
public final kotlinx.coroutines.flow.k y(UpdateFavoriteRequestModel updateFavoriteRequestModel) {
kotlin.jvm.internal.r.k(updateFavoriteRequestModel, "updateFavoriteRequestModel");
String serviceType = updateFavoriteRequestModel.getServiceType();
if (kotlin.jvm.internal.r.f(serviceType, sc.d0.CommercialBuy.getType())) {
updateFavoriteRequestModel = UpdateFavoriteRequestModel.a(updateFavoriteRequestModel, "commercial_resale");
} else if (kotlin.jvm.internal.r.f(serviceType, sc.d0.CommercialLease.getType())) {
updateFavoriteRequestModel = UpdateFavoriteRequestModel.a(updateFavoriteRequestModel, "commercial_rent");
}
UpdateFavoriteRequestModel updateFavoriteRequestModel2 = updateFavoriteRequestModel;
com.locon.network.d dVar = this.remoteSource;
return kotlinx.coroutines.flow.m.x(new s(dVar.e(), v0.class, null, false, new REST.POST(this.dataServiceEndPoints.g(), (Map) null, updateFavoriteRequestModel2, (Map) null, 10, (DefaultConstructorMarker) null), dVar));
}
public final kotlinx.coroutines.flow.k z(String str, String str2, String str3, String str4) {
kotlin.jvm.internal.r.k(str3, "loginAuthToken");
kotlin.jvm.internal.r.k(str4, "message");
com.locon.network.d dVar = this.remoteSource;
return kotlinx.coroutines.flow.m.x(new t(dVar.e(), ProfileGenericError.class, null, false, new REST.POST(this.loginServiceEndPoints.a(), (Map) null, t0.j(new zp.s[]{new zp.s("user", t0.f(new zp.s[]{new zp.s(Channel.EMAIl, str), new zp.s("name", str2)})), new zp.s("message", str4), new zp.s("source", "android"), new zp.s("login_auth_token", str3)}), l(), 2, (DefaultConstructorMarker) null), dVar));
}
}