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

com.pengrad.telegrambot.response.BaseResponse Maven / Gradle / Ivy

There is a newer version: 7.11.0
Show newest version
package com.pengrad.telegrambot.response;

import com.pengrad.telegrambot.model.ResponseParameters;

/**
 * stas
 * 1/13/16.
 */
public class BaseResponse {

    private boolean ok;
    private int error_code;
    private String description;
    private ResponseParameters parameters;

    BaseResponse() {
    }

    public boolean isOk() {
        return ok;
    }

    public int errorCode() {
        return error_code;
    }

    public String description() {
        return description;
    }

    public ResponseParameters parameters() {
        return parameters;
    }

    @Override
    public String toString() {
        return "BaseResponse{" +
                "ok=" + ok +
                ", error_code=" + error_code +
                ", description='" + description + '\'' +
                ", parameters=" + parameters +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy