ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
RespPage Class Reference

#include <CrestModel.h>

Collaboration diagram for RespPage:

Public Member Functions

json to_json () const
 

Static Public Member Functions

static RespPage from_json (const json &j)
 

Public Attributes

int size
 
int64_t totalElements
 
int totalPages
 
int number
 

Detailed Description

Definition at line 18 of file CrestModel.h.

Member Function Documentation

◆ from_json()

RespPage RespPage::from_json ( const json j)
static

Definition at line 20 of file CrestModel.cxx.

21 {
22  RespPage respPage;
23  respPage.size = j.value("size", 0);
24  respPage.totalElements = j.value("totalElements", 0);
25  respPage.totalPages = j.value("totalPages", 0);
26  respPage.number = j.value("number", 0);
27  return respPage;
28 }

◆ to_json()

json RespPage::to_json ( ) const

Definition at line 12 of file CrestModel.cxx.

13 {
14  return {
15  {"size", size},
16  {"totalElements", totalElements},
17  {"totalPages", totalPages},
18  {"number", number}};
19 }

Member Data Documentation

◆ number

int RespPage::number

Definition at line 24 of file CrestModel.h.

◆ size

int RespPage::size

Definition at line 21 of file CrestModel.h.

◆ totalElements

int64_t RespPage::totalElements

Definition at line 22 of file CrestModel.h.

◆ totalPages

int RespPage::totalPages

Definition at line 23 of file CrestModel.h.


The documentation for this class was generated from the following files:
RespPage::size
int size
Definition: CrestModel.h:21
RespPage
Definition: CrestModel.h:19
RespPage::totalElements
int64_t totalElements
Definition: CrestModel.h:22
RespPage::number
int number
Definition: CrestModel.h:24
RespPage::totalPages
int totalPages
Definition: CrestModel.h:23