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