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