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