package com.gingersoft.gsa.cloud.common.config;

import android.os.Environment;

import com.gingersoft.gsa.cloud.app.GsaCloudApplication;

import java.io.File;

/**
 * @author : bin
 * @create date: 2020-11-21
 * @update date: 2020-11-21
 * @description:
 */
public class OkHttpConfig {

    /**
     * okhttp cache目录
     */
    public static final String CACHE_DIRECTORY = GsaCloudApplication.getAppContext().getExternalFilesDir(null).getAbsolutePath() + File.separator + "okhttpCache";

    /**
     * okhttp cache大小
     */
    public static final long CACHE_MAXSIZE = 1024 * 1024 * 5;
    /**
     * okhttp连接超时20秒
     */
    public static final byte CONNECT_TIMEOUT = 20;
    /**
     * okhttp读写超时20秒
     */
    public static final byte REQUEST_TIMEOUT = 20;


}
