# 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 InlineResponse20033
#'
#' @description InlineResponse20033 Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field status integer
#'
#' @field msg character
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
InlineResponse20033 <- R6::R6Class(
'InlineResponse20033',
public = list(
`status` = NULL,
`msg` = NULL,
initialize = function(
`status`, `msg`, ...
) {
local.optional.var <- list(...)
if (!missing(`status`)) {
stopifnot(is.numeric(`status`), length(`status`) == 1)
self$`status` <- `status`
}
if (!missing(`msg`)) {
stopifnot(is.character(`msg`), length(`msg`) == 1)
self$`msg` <- `msg`
}
},
toJSON = function() {
InlineResponse20033Object <- list()
if (!is.null(self$`status`)) {
InlineResponse20033Object[['status']] <-
self$`status`
}
if (!is.null(self$`msg`)) {
InlineResponse20033Object[['msg']] <-
self$`msg`
}
InlineResponse20033Object
},
fromJSON = function(InlineResponse20033Json) {
InlineResponse20033Object <- jsonlite::fromJSON(InlineResponse20033Json)
if (!is.null(InlineResponse20033Object$`status`)) {
self$`status` <- InlineResponse20033Object$`status`
}
if (!is.null(InlineResponse20033Object$`msg`)) {
self$`msg` <- InlineResponse20033Object$`msg`
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`status`)) {
sprintf(
'"status":
%d
',
self$`status`
)},
if (!is.null(self$`msg`)) {
sprintf(
'"msg":
"%s"
',
self$`msg`
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(InlineResponse20033Json) {
InlineResponse20033Object <- jsonlite::fromJSON(InlineResponse20033Json)
self$`status` <- InlineResponse20033Object$`status`
self$`msg` <- InlineResponse20033Object$`msg`
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.