package com.avg.zaap.crashlibrary.publish.cap.http;

/**
 * This class serves as a static holder for CAP response values.
 *
 * @see <a href="https://confluence.cz.avg.com/display/CAP/Use+case+scenarios#Usecasescenarios-cr_response_codes">CAP response codes</a>
 * <p/>
 * Created by marek.osvald on 8.6.2016.
 */
public class CapResponseCode {

    /**
     * CAP Crash - response body malformed
     */
    public static final int FATAL = -666;

    /**
     * communication breakdown or server error (dump files remain undeleted)
     */
    @SuppressWarnings("SpellCheckingInspection")
    public static final int ERROR = -1;

    /**
     * no more dumps for given crash needed
     */
    @SuppressWarnings("unused")
    public static final int NO_DUMP = 0;

    /**
     * minidump upload requested
     */
    @SuppressWarnings({"unused", "SpellCheckingInspection"})
    public static final int MINI_DUMP = 1;

    /**
     * fulldump upload requested
     */
    @SuppressWarnings({"unused", "SpellCheckingInspection"})
    public static final int FULL_DUMP = 2;

    /**
     * the same as 0 but the dump files remain undeleted
     */
    @SuppressWarnings({"unused", "SpellCheckingInspection"})
    public static final int KEEP_DUMPS = 6;

    /**
     * AvgdiagEx shall restart itself with the configuration received within the server response
     */
    @SuppressWarnings({"unused", "SpellCheckingInspection"})
    public static final int DIRECT_CFG = 8;

    /**
     * Default constructor. Private in order to ensure no instantiation.
     */
    private CapResponseCode() {
    }

}
