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