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