# Binance Public Spot API
#
# OpenAPI Specifications for the Binance Public Spot API API documents: - [https://github.com/binance/binance-spot-api-docs](https://github.com/binance/binance-spot-api-docs) - [https://binance-docs.github.io/apidocs/spot/en](https://binance-docs.github.io/apidocs/spot/en)
#
# The version of the OpenAPI document: 1.0
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title BnbBurnStatus
#'
#' @description BnbBurnStatus Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field spotBNBBurn character
#'
#' @field interestBNBBurn character
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
BnbBurnStatus <- R6::R6Class(
'BnbBurnStatus',
public = list(
`spotBNBBurn` = NULL,
`interestBNBBurn` = NULL,
initialize = function(
`spotBNBBurn`, `interestBNBBurn`, ...
) {
local.optional.var <- list(...)
if (!missing(`spotBNBBurn`)) {
stopifnot(is.logical(`spotBNBBurn`), length(`spotBNBBurn`) == 1)
self$`spotBNBBurn` <- `spotBNBBurn`
}
if (!missing(`interestBNBBurn`)) {
stopifnot(is.logical(`interestBNBBurn`), length(`interestBNBBurn`) == 1)
self$`interestBNBBurn` <- `interestBNBBurn`
}
},
toJSON = function() {
BnbBurnStatusObject <- list()
if (!is.null(self$`spotBNBBurn`)) {
BnbBurnStatusObject[['spotBNBBurn']] <-
self$`spotBNBBurn`
}
if (!is.null(self$`interestBNBBurn`)) {
BnbBurnStatusObject[['interestBNBBurn']] <-
self$`interestBNBBurn`
}
BnbBurnStatusObject
},
fromJSON = function(BnbBurnStatusJson) {
BnbBurnStatusObject <- jsonlite::fromJSON(BnbBurnStatusJson)
if (!is.null(BnbBurnStatusObject$`spotBNBBurn`)) {
self$`spotBNBBurn` <- BnbBurnStatusObject$`spotBNBBurn`
}
if (!is.null(BnbBurnStatusObject$`interestBNBBurn`)) {
self$`interestBNBBurn` <- BnbBurnStatusObject$`interestBNBBurn`
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`spotBNBBurn`)) {
sprintf(
'"spotBNBBurn":
%s
',
tolower(self$`spotBNBBurn`)
)},
if (!is.null(self$`interestBNBBurn`)) {
sprintf(
'"interestBNBBurn":
%s
',
tolower(self$`interestBNBBurn`)
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(BnbBurnStatusJson) {
BnbBurnStatusObject <- jsonlite::fromJSON(BnbBurnStatusJson)
self$`spotBNBBurn` <- BnbBurnStatusObject$`spotBNBBurn`
self$`interestBNBBurn` <- BnbBurnStatusObject$`interestBNBBurn`
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.