Warkop v5.73.0版本的 MD5 值为:a4330ec2d6f5e146f59fc7622f3cdb45

以下内容为反编译后的 CityData.java 源代码,内容仅作参考


package sinet.startup.inDriver.core.data.data;

import androidx.annotation.NonNull;
import ie.c;
import java.math.BigDecimal;
import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONObject;

public class CityData extends PlaceData {
    private static final String CHAT_ENABLED = "chat_enabled";
    private static final String COUNTRY_CODE = "country_code";
    private static final String DEFAULT_SUPPORT_EMAIL = "support@indrive.com";
    private static final String DISABLE_SECOND_ORDER = "disable_second_order";
    private static final String PAID_ORDER_CANCELLATION_ENABLED = "paid_order_cancellation";
    private static final String PEER_2_PEER_PROVIDER = "peer2peer_provider";
    private static final String SHOW_MARKETING_NOTIFICATIONS_SCREEN = "show_marketing_notifications_screen";
    private static final String SUPPORT_EMAIL = "support_email";
    private static final String SWRVE_ENABLED = "swrveEnabled";
    private static final long serialVersionUID = -1519939031560386112L;

    @c("approve")
    private boolean approve;

    @c("country")
    private PlaceData country;

    @c(COUNTRY_CODE)
    private String countryCode;

    @c("country_id")
    private int countryId;

    @c("currency_code")
    private String currencyCode;

    @c("currencystep")
    private BigDecimal currencystep;

    @c("defaultnotification")
    private int default_notification;

    @c(CHAT_ENABLED)
    private boolean isChatEnabled;

    @c("is_float_price")
    private boolean isFloatPrice;

    @c(DISABLE_SECOND_ORDER)
    private boolean isSecondOrderDisabled;

    @c(SHOW_MARKETING_NOTIFICATIONS_SCREEN)
    private boolean isShowMarketingNotificationsScreen;

    @c(SWRVE_ENABLED)
    private boolean isSwrveEnabled;

    @c("latitude")
    private double latitude;

    @c("longitude")
    private double longitude;

    @c("near_order")
    private boolean nearOrder;

    @c(PEER_2_PEER_PROVIDER)
    private String p2pProvider;

    @c(PAID_ORDER_CANCELLATION_ENABLED)
    private boolean paidOrderCancellationEnabled;

    @c("radius")
    private long radius;

    @c("region")
    private PlaceData region;

    @c(SUPPORT_EMAIL)
    private String supportEmail;

    @c("timezone")
    private String timeZone;

    public CityData() {
        this.currencystep = BigDecimal.ZERO;
        this.currencyCode = "";
    }

    public static ArrayList<CityData> getCityDataArrayList(JSONArray jSONArray) {
        if (jSONArray != null) {
            ArrayList<CityData> arrayList = new ArrayList<>();
            for (int i15 = 0; i15 < jSONArray.length(); i15++) {
                arrayList.add(new CityData(jSONArray.optJSONObject(i15)));
            }
            return arrayList;
        }
        return null;
    }

    public boolean getApprove() {
        return this.approve;
    }

    public PlaceData getCountry() {
        return this.country;
    }

    public String getCountryCode() {
        return this.countryCode;
    }

    public int getCountryId() {
        return this.countryId;
    }

    @NonNull
    public String getCurrencyCode() {
        String str = this.currencyCode;
        return str != null ? str : "";
    }

    public BigDecimal getCurrencyStep() {
        return this.currencystep;
    }

    public int getDefaultNotification() {
        return this.default_notification;
    }

    public double getLatitude() {
        return this.latitude;
    }

    public double getLongitude() {
        return this.longitude;
    }

    public String getP2pProvider() {
        return this.p2pProvider;
    }

    public long getRadius() {
        return this.radius;
    }

    public PlaceData getRegion() {
        return this.region;
    }

    @NonNull
    public String getSupportEmail() {
        String str = this.supportEmail;
        return str != null ? str : DEFAULT_SUPPORT_EMAIL;
    }

    public String getTimeZone() {
        return this.timeZone;
    }

    public boolean isChatEnabled() {
        return this.isChatEnabled;
    }

    public boolean isFloatPrice() {
        return this.isFloatPrice;
    }

    public boolean isNearOrder() {
        return this.nearOrder;
    }

    public boolean isPaidOrderCancellationEnabled() {
        return this.paidOrderCancellationEnabled;
    }

    public boolean isSecondOrderDisabled() {
        return this.isSecondOrderDisabled;
    }

    public boolean isShowMarketingNotificationsScreen() {
        return this.isShowMarketingNotificationsScreen;
    }

    public boolean isSwrveEnabled() {
        return this.isSwrveEnabled;
    }

    public void setCountry(PlaceData placeData) {
        this.country = placeData;
    }

    public void setCountryCode(String str) {
        this.countryCode = str;
    }

    public void setCountryId(int i15) {
        this.countryId = i15;
    }

    public void setCurrencyCode(String str) {
        this.currencyCode = str;
    }

    public void setFloatPrice(boolean z15) {
        this.isFloatPrice = z15;
    }

    public void setLatitude(double d15) {
        this.latitude = d15;
    }

    public void setLongitude(double d15) {
        this.longitude = d15;
    }

    public void setRadius(long j15) {
        this.radius = j15;
    }

    public void setRegion(PlaceData placeData) {
        this.region = placeData;
    }

    public void setShowMarketingNotificationsScreen(boolean z15) {
        this.isShowMarketingNotificationsScreen = z15;
    }

    public void setSwrveEnabled(boolean z15) {
        this.isSwrveEnabled = z15;
    }

    public void setTimeZone(String str) {
        this.timeZone = str;
    }

    public CityData(String str, Integer num) {
        super(str, num);
        this.currencystep = BigDecimal.ZERO;
        this.currencyCode = "";
    }

    public CityData(JSONObject jSONObject) {
        super(jSONObject);
        this.currencystep = BigDecimal.ZERO;
        this.currencyCode = "";
        if (jSONObject != null) {
            if (jSONObject.has("longitude")) {
                this.longitude = hd1.c.l(jSONObject.optString("longitude")).doubleValue();
            }
            if (jSONObject.has("latitude")) {
                this.latitude = hd1.c.l(jSONObject.optString("latitude")).doubleValue();
            }
            if (jSONObject.has("radius")) {
                this.radius = hd1.c.p(jSONObject.optString("radius"));
            }
            if (jSONObject.has("defaultnotification")) {
                this.default_notification = hd1.c.n(jSONObject.optString("defaultnotification"));
            }
            if (jSONObject.has("approve")) {
                this.approve = hd1.c.g(jSONObject.optString("approve"));
            }
            if (jSONObject.has("currencystep")) {
                this.currencystep = hd1.c.f(jSONObject.optString("currencystep"));
            }
            if (jSONObject.has("currency_code")) {
                this.currencyCode = hd1.c.q(jSONObject.optString("currency_code"));
            }
            if (jSONObject.has("is_float_price")) {
                this.isFloatPrice = hd1.c.g(jSONObject.optString("is_float_price"));
            }
            if (jSONObject.has("region")) {
                this.region = new PlaceData(jSONObject.optJSONObject("region"));
            }
            if (jSONObject.has("country")) {
                this.country = new PlaceData(jSONObject.optJSONObject("country"));
            }
            if (jSONObject.has("country_id")) {
                this.countryId = hd1.c.n(jSONObject.optString("country_id"));
            }
            if (jSONObject.has("near_order")) {
                this.nearOrder = hd1.c.g(jSONObject.optString("near_order"));
            }
            if (jSONObject.has("timezone")) {
                this.timeZone = hd1.c.q(jSONObject.optString("timezone"));
            }
            if (jSONObject.has(PEER_2_PEER_PROVIDER)) {
                this.p2pProvider = hd1.c.q(jSONObject.optString(PEER_2_PEER_PROVIDER));
            }
            if (jSONObject.has(SWRVE_ENABLED)) {
                this.isSwrveEnabled = hd1.c.g(jSONObject.optString(SWRVE_ENABLED));
            }
            if (jSONObject.has(CHAT_ENABLED)) {
                this.isChatEnabled = hd1.c.g(jSONObject.optString(CHAT_ENABLED));
            }
            if (jSONObject.has(COUNTRY_CODE)) {
                this.countryCode = hd1.c.q(jSONObject.optString(COUNTRY_CODE));
            }
            if (jSONObject.has(DISABLE_SECOND_ORDER)) {
                this.isSecondOrderDisabled = hd1.c.g(jSONObject.optString(DISABLE_SECOND_ORDER));
            }
            if (jSONObject.has(PAID_ORDER_CANCELLATION_ENABLED)) {
                this.paidOrderCancellationEnabled = hd1.c.g(jSONObject.optString(PAID_ORDER_CANCELLATION_ENABLED));
            }
            if (jSONObject.has(SUPPORT_EMAIL)) {
                this.supportEmail = hd1.c.q(jSONObject.optString(SUPPORT_EMAIL));
            }
        }
    }
}