30 #ifndef GOOGLE_ANDROIDENTERPRISE_API_PAGE_INFO_H_ 31 #define GOOGLE_ANDROIDENTERPRISE_API_PAGE_INFO_H_ 33 #include "googleapis/base/integral_types.h" 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 64 explicit PageInfo(
const Json::Value& storage);
71 explicit PageInfo(Json::Value* storage);
84 return StringPiece(
"google_androidenterprise_api::PageInfo");
93 return Storage().isMember(
"resultPerPage");
100 MutableStorage()->removeMember(
"resultPerPage");
108 const Json::Value& storage = Storage(
"resultPerPage");
109 return client::JsonValueToCppValueHelper<int32 >(storage);
117 client::SetJsonValueFromCppValueHelper<int32 >(
118 value, MutableStorage(
"resultPerPage"));
127 return Storage().isMember(
"startIndex");
134 MutableStorage()->removeMember(
"startIndex");
142 const Json::Value& storage = Storage(
"startIndex");
143 return client::JsonValueToCppValueHelper<int32 >(storage);
151 client::SetJsonValueFromCppValueHelper<int32 >(
152 value, MutableStorage(
"startIndex"));
161 return Storage().isMember(
"totalResults");
168 MutableStorage()->removeMember(
"totalResults");
176 const Json::Value& storage = Storage(
"totalResults");
177 return client::JsonValueToCppValueHelper<int32 >(storage);
185 client::SetJsonValueFromCppValueHelper<int32 >(
186 value, MutableStorage(
"totalResults"));
193 #endif // GOOGLE_ANDROIDENTERPRISE_API_PAGE_INFO_H_ void clear_start_index()
Definition: page_info.h:133
void set_total_results(int32 value)
Definition: page_info.h:184
bool has_result_per_page() const
Definition: page_info.h:92
bool has_total_results() const
Definition: page_info.h:160
int32 get_total_results() const
Definition: page_info.h:175
int32 get_start_index() const
Definition: page_info.h:141
Definition: page_info.h:50
const StringPiece GetTypeName() const
Definition: page_info.h:83
Definition: administrator.h:38
Definition: administrator.cc:40
void clear_total_results()
Definition: page_info.h:167
bool has_start_index() const
Definition: page_info.h:126
int32 get_result_per_page() const
Definition: page_info.h:107
void set_result_per_page(int32 value)
Definition: page_info.h:116
void clear_result_per_page()
Definition: page_info.h:99
void set_start_index(int32 value)
Definition: page_info.h:150