package com.kakao.common;

import com.bytedance.covode.number.Covode;
import com.kakao.util.exception.KakaoException;
import org.json.JSONObject;

public class RequestConfiguration implements IConfiguration {
    public String appVer;
    public JSONObject extras;
    public String kaHeader;
    public String keyHash;
    public String packageName;

    static {
        Covode.recordClassIndex(45860);
    }

    public String getAppVer() {
        return this.appVer;
    }

    public JSONObject getExtrasJson() {
        return this.extras;
    }

    public String getKAHeader() {
        return this.kaHeader;
    }

    public String getKeyHash() {
        return this.keyHash;
    }

    public String getPackageName() {
        return this.packageName;
    }

    public RequestConfiguration(String str, String str2, String str3, String str4, JSONObject jSONObject) {
        if (str == null || str.length() == 0) {
            throw new KakaoException(KakaoException.ErrorType.MISS_CONFIGURATION, "Android key hash is null.");
        }
        this.keyHash = str;
        this.kaHeader = str2;
        this.appVer = str3;
        this.packageName = str4;
        this.extras = jSONObject;
    }
}
