导航菜单

页面标题

页面副标题

Hopscotch v9.7.2 - UserAddressesService.java 源代码

正在查看: Hopscotch v9.7.2 应用的 UserAddressesService.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package in.hopscotch.android.service.applaunch;

import android.content.Intent;
import androidx.annotation.NonNull;
import androidx.core.app.j;
import in.hopscotch.android.api.factory.CustomerInfoApiFactory;
import in.hopscotch.android.api.response.ActionResponse;
import in.hopscotch.android.api.response.AddressResponse;
import in.hopscotch.android.domain.response.base.b;
import in.hopscotch.android.util.a1;
import in.hopscotch.android.util.g;
import java.io.IOException;
import retrofit2.Response;

public class UserAddressesService extends j {
    public final void d(@NonNull Intent intent) {
        AddressResponse addressResponse;
        if (CustomerInfoApiFactory.getInstance().getCustomerInfoApi() != null) {
            try {
                Response execute = CustomerInfoApiFactory.getInstance().getCustomerInfoApi().getGCDeliveryAddresses().execute();
                if (execute == null || !execute.isSuccessful() || (addressResponse = (AddressResponse) execute.body()) == null) {
                    return;
                }
                String str = ((ActionResponse) addressResponse).action;
                String str2 = a1.a;
                if (b.SUCCESS.equalsIgnoreCase(str)) {
                    in.hopscotch.android.db.a.V(addressResponse);
                }
            } catch (IOException e) {
                g.b(e);
            }
        }
    }
}