package com.fusi24.entryPermitScanner.config;

import android.Manifest;

public final class Constant {

    /*__________________________________ACCESS_PERMISSION_________________________________________________*/

    public static final String[] PERMISSIONS_RFID = new String[]{
            Manifest.permission.ACCESS_COARSE_LOCATION,
            Manifest.permission.ACCESS_FINE_LOCATION,
            Manifest.permission.READ_PHONE_STATE
    };

    /*===================================================================================================*/

    public static final String JWT_TOKEN = "eyJhbGciOiJIUzI1NiJ9.eyJpZEthcnlhd2FuIjo0Mzg4NCwiaWQiOjIsImVtYWlsIjoiYXJpZi53aWR5YUBiZXJhdWNvYWwuY28uaWQiLCJ1c2VybmFtZSI6IkxTREVWIn0.ZgYBPYZgx5CdJAMm29T6_0Es5C199PULqOfwMwdGFz8";
    public final static Integer BAUTRATE = 9600;

    /*===================================================================================================*/

    // SERIAL PORT ttyS2 BUAT TEST DEVICE di FUSI
    public final static String PATH_SP2 = "/dev/ttyS2";
    public final static String PATHNAME_SP2 = "/proc/gpiocontrol/set_id";

    // SERIAL PORT ttyS3 BUAT TEST DEVICE di BERAU COAL
    public final static String PATH_SP3 = "/dev/ttyS3"; // Untuk versi 3.0
    public final static String PATHNAME_SP3 = "/proc/gpiocontrol/set_sam"; // untuk versi 3.0

    /*===================================================================================================*/

    //Direct API Service
    public final static String BASE_URL_DEV = "https://bcui2.fusi24.com"; // Development
    public final static String BASE_URL_PROD = "http://hseautomation.beraucoal.co.id"; // Production

    public final static String BEATS_ENDPOINT = "/beats";
    public final static String BEATS2_ENDPOINT = "/beats2";
    public final static String SID2_ENDPOINT = "/sid2";
    public final static String RFID_NEW_ENDPOINT = "/new/rfid";

    public static final String URL_PHOTO = BEATS2_ENDPOINT + "/file?path=";

    /*===================================================================================================*/

}
