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

ru.perveevm.polygon.api.json.JSONResponse Maven / Gradle / Ivy

package ru.perveevm.polygon.api.json;

import com.google.gson.JsonElement;

/**
 * Represents a JSON response.
 *
 * @author Perveev Mike ([email protected])
 */
public class JSONResponse {
    private JSONResponseStatus status;
    private String comment;
    private JsonElement result;

    /**
     * @return Response status — either OK or FAILED.
     */
    public JSONResponseStatus getStatus() {
        return status;
    }

    /**
     * @return Server comment if status is FAILED or null otherwise.
     */
    public String getComment() {
        return comment;
    }

    /**
     * @return A JSON response if status is OK or null otherwise.
     */
    public JsonElement getResult() {
        return result;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy