All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.nukkit.form.response.FormResponseCustom Maven / Gradle / Ivy

There is a newer version: 1.20.40-r1
Show newest version
package cn.nukkit.form.response;

import java.util.HashMap;

public class FormResponseCustom extends FormResponse {

    private final HashMap responses;
    private final HashMap dropdownResponses;
    private final HashMap inputResponses;
    private final HashMap sliderResponses;
    private final HashMap stepSliderResponses;
    private final HashMap toggleResponses;
    private final HashMap labelResponses;

    public FormResponseCustom(HashMap responses, HashMap dropdownResponses,
                              HashMap inputResponses, HashMap sliderResponses,
                              HashMap stepSliderResponses,
                              HashMap toggleResponses,
                              HashMap labelResponses) {
        this.responses = responses;
        this.dropdownResponses = dropdownResponses;
        this.inputResponses = inputResponses;
        this.sliderResponses = sliderResponses;
        this.stepSliderResponses = stepSliderResponses;
        this.toggleResponses = toggleResponses;
        this.labelResponses = labelResponses;
    }

    public HashMap getResponses() {
        return responses;
    }

    public Object getResponse(int id) {
        return responses.get(id);
    }

    public FormResponseData getDropdownResponse(int id) {
        return dropdownResponses.get(id);
    }

    public String getInputResponse(int id) {
        return inputResponses.get(id);
    }

    public float getSliderResponse(int id) {
        return sliderResponses.get(id);
    }

    public FormResponseData getStepSliderResponse(int id) {
        return stepSliderResponses.get(id);
    }

    public boolean getToggleResponse(int id) {
        return toggleResponses.get(id);
    }

    public String getLabelResponse(int id) {
        return labelResponses.get(id);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy