package com.mexico.inloancash.activity;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import butterknife.ButterKnife;
import com.google.gson.Gson;
import com.indiaholacash.holacash.R;
import com.mexico.inloancash.bean.India_User_PhoneList_Bean;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import ඓ.ඓ.K.㿎.C0701;
import ඓ.K.K.K.C1293;

public class IndiaCustomerServiceActivity extends BaseActivity {
    public TextView mTvEmail;
    public TextView mtvPhone;
    public TextView title;

    /* renamed from: com.mexico.inloancash.activity.IndiaCustomerServiceActivity$K  reason: contains not printable characters */
    public class C0395 implements Callback<String> {
        public C0395() {
        }

        @Override // retrofit2.Callback
        public void onFailure(Call<String> call, Throwable th) {
        }

        @Override // retrofit2.Callback
        public void onResponse(Call<String> call, Response<String> response) {
            StringBuilder r2 = C1293.m3416("getService onResponse:");
            r2.append(response.body());
            Log.d("loan", r2.toString());
            if (response.isSuccessful()) {
                India_User_PhoneList_Bean india_User_PhoneList_Bean = (India_User_PhoneList_Bean) new Gson().fromJson(response.body(), India_User_PhoneList_Bean.class);
                if (india_User_PhoneList_Bean.getCode() == 200) {
                    IndiaCustomerServiceActivity.this.mtvPhone.setText(india_User_PhoneList_Bean.getData().getTelephone());
                    IndiaCustomerServiceActivity.this.mTvEmail.setText(india_User_PhoneList_Bean.getData().getE_mail());
                }
            }
        }
    }

    public void clickEmail() {
        String charSequence = this.mTvEmail.getText().toString();
        startActivity(new Intent("android.intent.action.SENDTO", Uri.parse("mailto:" + charSequence)));
    }

    public void clickPhone() {
        String charSequence = this.mtvPhone.getText().toString();
        startActivity(new Intent("android.intent.action.DIAL", Uri.parse("tel:" + charSequence)));
    }

    @Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, com.mexico.inloancash.activity.BaseActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.india_activity_service_view_layout);
        ButterKnife.m1066(this);
        this.title.setText("Customer Service");
        m1415();
    }

    public void onViewClicked(View view) {
        if (view.getId() == R.id.logon_back) {
            finish();
        }
    }

    /* renamed from: ؿ  reason: contains not printable characters */
    public void m1415() {
        Log.d("loan", "getService");
        C0701.f3707.m2131().m2116().enqueue(new C0395());
    }
}
