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