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