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