UNPKG

swapable

Version:
40 lines (39 loc) 1.01 kB
"use strict"; /** * This file is part of Swapable shared under AGPL-3.0 * Copyright (C) 2021 Using Blockchain Ltd, Reg No.: 12658136, United Kingdom * * @package Swapable * @author Grégory Saive for Using Blockchain Ltd <greg@ubc.digital> * @license AGPL-3.0 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.AllowanceResult = void 0; /** * @class AllowanceResult * @package Swapable * @subpackage Models * @since v1.0.0 * @description Model that describes the result of an allowance request. */ class AllowanceResult { /** * Constructor for AllowanceResult objects * * @param {boolean} status * @param {string|undefined} message (Optional) */ constructor( /** * @description The result status */ status, /** * @description The result message (Optional) */ message = undefined) { this.status = status; this.message = message; } } exports.AllowanceResult = AllowanceResult;