# Agave Platform Science API
#
# Power your digital lab and reduce the time from theory to discovery using the Agave Science-as-a-Service API Platform. Agave provides hosted services that allow researchers to manage data, conduct experiments, and publish and share results from anywhere at any time.
#
# Agave Platform version: 2.2.14
#
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#' EmptyClientResponse Class
#'
#'
#'
#' @field message success or failure
#' @field result
#' @field status success or failure
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
EmptyClientResponse <- R6::R6Class(
'EmptyClientResponse',
public = list(
`message` = NULL,
`result` = NULL,
`status` = NULL,
initialize = function(`message`, `result`, `status`){
if (!missing(`message`)) {
stopifnot(is.character(`message`), length(`message`) == 1)
self$`message` <- `message`
}
if (!missing(`result`)) {
stopifnot(is.character(`result`), length(`result`) == 1)
self$`result` <- `result`
}
if (!missing(`status`)) {
stopifnot(is.character(`status`), length(`status`) == 1)
self$`status` <- `status`
}
},
asJSON = function() {
self$toJSON()
},
toJSON = function() {
EmptyClientResponseObject <- list()
if (!is.null(self$`message`)) {
EmptyClientResponseObject[['message']] <- self$`message`
}
else {
EmptyClientResponseObject[['message']] <- NULL
}
if (!is.null(self$`result`)) {
EmptyClientResponseObject[['result']] <- self$`result`
}
else {
EmptyClientResponseObject[['result']] <- NULL
}
if (!is.null(self$`status`)) {
EmptyClientResponseObject[['status']] <- self$`status`
}
else {
EmptyClientResponseObject[['status']] <- NULL
}
EmptyClientResponseObject
},
fromJSON = function(EmptyClientResponseObject) {
if (is.character(EmptyClientResponseObject)) {
EmptyClientResponseObject <- jsonlite::fromJSON(EmptyClientResponseJson)
}
if ("result" %in% names(EmptyClientResponseObject)) {
EmptyClientResponseObject <- EmptyClientResponseObject$result
}
if (!is.null(EmptyClientResponseObject$`message`)) {
self$`message` <- EmptyClientResponseObject$`message`
}
if (!is.null(EmptyClientResponseObject$`result`)) {
self$`result` <- EmptyClientResponseObject$`result`
}
if (!is.null(EmptyClientResponseObject$`status`)) {
self$`status` <- EmptyClientResponseObject$`status`
}
},
toJSONString = function() {
sprintf(
'{
"message": %s,
"result": %s,
"status": %s
}',
ifelse( is.null(self$`message`),"null",paste0(c('"', self$`message`, '"'))),
ifelse( is.null(self$`result`),"null",paste0(c('"', self$`result`, '"'))),
ifelse( is.null(self$`status`),"null",paste0(c('"', self$`status`, '"')))
)
},
fromJSONString = function(EmptyClientResponseJson) {
EmptyClientResponseObject <- jsonlite::fromJSON(EmptyClientResponseJson)
self::fromJSON(EmptyClientResponseObject)
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.