package net.northking.cctp.element.desktop.constants;

import java.util.concurrent.TimeUnit;

/**
 * <p>Title: DesktopConstant</p>
 * <p>Description: PC组件常量</p>
 *
 * @Author chenjianfeng
 * @Version V1.0
 * @Date 2022/10/18
 * <p>Copyright: NorthKing@RPA（C）2020 版权</p>
 */

public class DesktopConstant {

    public static final long DEFAULT_TIMEOUT = 30;

    /**
     * 超时偏移，秒
     */
    public static final long DEFAULT_TIMEOUT_OFFSET = 5;

    public static final TimeUnit DEFAULT_TIMEUNIT = TimeUnit.SECONDS;

    public static final int SUCCESS_CODE = 0;
    public static final int FAIL_CODE = 9;

    public static final String TARGETS_USING_SELECTOR = "selector";
    public static final String TARGETS_USING_IMAGE = "image";
    public static final String TARGETS_USING_OCR = "ocr";
    public static final String TARGETS_USING_HZOCR = "hzocr";
    public static final String TARGETS_USING_POINT = "point";

    public static final String TARGETS_VALUE_SELECTOR = "selector";
    public static final String TARGETS_VALUE_IMG_URI = "imgUri";
    public static final String TARGETS_VALUE_MATCHING_THRESHOLD = "matchingThreshold";
    public static final String TARGETS_VALUE_OCR_TEXT = "ocrText";
    public static final String TARGETS_VALUE_CASE_SENSITIVE = "caseSensitive";
    public static final String TARGETS_VALUE_TOP_BOUND = "topBound";
    public static final String TARGETS_VALUE_BOTTOM_BOUND = "bottomBound";
    public static final String TARGETS_VALUE_RIGHT_BOUND = "rightBound";
    public static final String TARGETS_VALUE_LEFT_BOUND = "leftBound";
    public static final String TARGETS_VALUE_INDEX = "index";
    public static final String TARGETS_VALUE_POINT_X = "pointX";
    public static final String TARGETS_VALUE_POINT_Y = "pointY";

    public static final String PC_STEP_SNAPSHOT = "pcStepSnapshot";


}
