# FireCloud
#
# FireCloud API
#
# The version of the OpenAPI document: 0.1
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title EntityQueryResultMetadata
#'
#' @description EntityQueryResultMetadata Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field unfilteredCount integer
#'
#' @field filteredCount integer
#'
#' @field filteredPageCount integer
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
EntityQueryResultMetadata <- R6::R6Class(
'EntityQueryResultMetadata',
public = list(
`unfilteredCount` = NULL,
`filteredCount` = NULL,
`filteredPageCount` = NULL,
initialize = function(
`unfilteredCount`, `filteredCount`, `filteredPageCount`, ...
) {
local.optional.var <- list(...)
if (!missing(`unfilteredCount`)) {
stopifnot(is.numeric(`unfilteredCount`), length(`unfilteredCount`) == 1)
self$`unfilteredCount` <- `unfilteredCount`
}
if (!missing(`filteredCount`)) {
stopifnot(is.numeric(`filteredCount`), length(`filteredCount`) == 1)
self$`filteredCount` <- `filteredCount`
}
if (!missing(`filteredPageCount`)) {
stopifnot(is.numeric(`filteredPageCount`), length(`filteredPageCount`) == 1)
self$`filteredPageCount` <- `filteredPageCount`
}
},
toJSON = function() {
EntityQueryResultMetadataObject <- list()
if (!is.null(self$`unfilteredCount`)) {
EntityQueryResultMetadataObject[['unfilteredCount']] <-
self$`unfilteredCount`
}
if (!is.null(self$`filteredCount`)) {
EntityQueryResultMetadataObject[['filteredCount']] <-
self$`filteredCount`
}
if (!is.null(self$`filteredPageCount`)) {
EntityQueryResultMetadataObject[['filteredPageCount']] <-
self$`filteredPageCount`
}
EntityQueryResultMetadataObject
},
fromJSON = function(EntityQueryResultMetadataJson) {
EntityQueryResultMetadataObject <- jsonlite::fromJSON(EntityQueryResultMetadataJson)
if (!is.null(EntityQueryResultMetadataObject$`unfilteredCount`)) {
self$`unfilteredCount` <- EntityQueryResultMetadataObject$`unfilteredCount`
}
if (!is.null(EntityQueryResultMetadataObject$`filteredCount`)) {
self$`filteredCount` <- EntityQueryResultMetadataObject$`filteredCount`
}
if (!is.null(EntityQueryResultMetadataObject$`filteredPageCount`)) {
self$`filteredPageCount` <- EntityQueryResultMetadataObject$`filteredPageCount`
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`unfilteredCount`)) {
sprintf(
'"unfilteredCount":
%d
',
self$`unfilteredCount`
)},
if (!is.null(self$`filteredCount`)) {
sprintf(
'"filteredCount":
%d
',
self$`filteredCount`
)},
if (!is.null(self$`filteredPageCount`)) {
sprintf(
'"filteredPageCount":
%d
',
self$`filteredPageCount`
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(EntityQueryResultMetadataJson) {
EntityQueryResultMetadataObject <- jsonlite::fromJSON(EntityQueryResultMetadataJson)
self$`unfilteredCount` <- EntityQueryResultMetadataObject$`unfilteredCount`
self$`filteredCount` <- EntityQueryResultMetadataObject$`filteredCount`
self$`filteredPageCount` <- EntityQueryResultMetadataObject$`filteredPageCount`
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.