@pokt-network/pocket-js
Version:
Pocket-js core package with the main functionalities to interact with the Pocket Network.
46 lines (45 loc) • 1.27 kB
TypeScript
import { Application } from "../application";
/**
*
*
* @class QueryAppsResponse
*/
export declare class QueryAppsResponse {
/**
*
* Creates a QueryAppsResponse object using a JSON string
* @param {string} json - JSON string.
* @returns {QueryAppsResponse} - QueryAppsResponse object.
* @memberof QueryAppsResponse
*/
static fromJSON(json: string): QueryAppsResponse;
readonly applications: Application[];
readonly page: number;
readonly totalPages: number;
/**
* QueryAppsResponse.
* @constructor
* @param {Application[]} applications - Amount staked by the node.
* @param {number} page - Current page.
* @param {number} totalPages - Total amount of pages.
*/
constructor(applications: Application[], page: number, totalPages: number);
/**
*
* Creates a JSON object with the QueryAppsResponse properties
* @returns {JSON} - JSON Object.
* @memberof QueryAppsResponse
*/
toJSON(): {
result: object[];
page: number;
total_pages: number;
};
/**
*
* Check if the QueryAppsResponse object is valid
* @returns {boolean} - True or false.
* @memberof QueryAppsResponse
*/
isValid(): boolean;
}