package ඓ.ඓ.K.ᕣ;

import com.adjust.sdk.Adjust;
import com.adjust.sdk.AdjustEvent;
import com.facebook.AccessToken;
import com.google.gson.Gson;
import com.mexico.inloancash.MyApplication;
import com.mexico.inloancash.bean.India_User_Login_Bean;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import ඓ.ඓ.K.ඓ.AbstractC0631;
import ඓ.ඓ.K.㑃.C0669;
import ඓ.ඓ.K.㸾.AbstractC0696;
import ඓ.ඓ.K.㿎.C0701;
import ῲ.ᨨ.㳳.C1841;

/* renamed from: ඓ.ඓ.K.ᕣ.K  reason: contains not printable characters */
/* compiled from: IndiaLoginModelImpl */
public class C0632 implements AbstractC0631 {

    /* renamed from: ඓ.ඓ.K.ᕣ.K$K  reason: contains not printable characters */
    /* compiled from: IndiaLoginModelImpl */
    public class C0633 implements Callback<String> {

        /* renamed from: K  reason: contains not printable characters */
        public final /* synthetic */ AbstractC0696 f3626;

        public C0633(C0632 k, AbstractC0696 k2) {
            this.f3626 = k2;
        }

        @Override // retrofit2.Callback
        public void onFailure(Call<String> call, Throwable th) {
            ((C0669) this.f3626).f3664.m2095().m1398("Kesalahan masuk");
        }

        @Override // retrofit2.Callback
        public void onResponse(Call<String> call, Response<String> response) {
            try {
                if (response.isSuccessful()) {
                    India_User_Login_Bean india_User_Login_Bean = (India_User_Login_Bean) new Gson().fromJson(response.body(), India_User_Login_Bean.class);
                    if (india_User_Login_Bean.getCode() == 200) {
                        AdjustEvent adjustEvent = new AdjustEvent("g3invv");
                        adjustEvent.addCallbackParameter("member_token", C1841.m4788(AccessToken.TOKEN_KEY, ""));
                        adjustEvent.addCallbackParameter("gps_adid", C1841.m4748());
                        Adjust.trackEvent(adjustEvent);
                        C1841.m4744(AccessToken.TOKEN_KEY, india_User_Login_Bean.getData().getToken());
                        C1841.m4766(true);
                        ((C0669) this.f3626).f3664.m2095().m1397("Login berhasil");
                        return;
                    }
                    ((C0669) this.f3626).f3664.m2095().m1398("Kesalahan masuk");
                    return;
                }
                ((C0669) this.f3626).f3664.m2095().m1398("Kesalahan masuk");
            } catch (Exception unused) {
                ((C0669) this.f3626).f3664.m2095().m1398("Kesalahan masuk");
            }
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m2089(String str, String str2, AbstractC0696 k) {
        C0701.f3707.m2131().m2130(str, str2, MyApplication.f2291).enqueue(new C0633(this, k));
    }
}
