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