com.pengrad.telegrambot.response.BaseResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-telegram-bot-api Show documentation
Show all versions of java-telegram-bot-api Show documentation
Java API for Telegram Bot API
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