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

Explore the source code of the class ApiResult.java

package com.antonioaltieri.telegram.botapi.requests;

import com.google.gson.annotations.SerializedName;

public class ApiResult {

    @SerializedName("ok")
    private boolean ok;

    @SerializedName("description")
    private String description;

    @SerializedName("error_code")
    private int errorCode;

    @SerializedName("result")
    private T result;

    public ApiResult() {
    }

    public boolean isOk() {
        return ok;
    }

    public String getDescription() {
        return description;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public T getResult() {
        return result;
    }
}