| 113 | } // namespace |
| 114 | |
| 115 | void QueryParameters::addToQuery(CesiumUtility::UriQuery& query) const { |
| 116 | if (this->search) { |
| 117 | query.setValue("$search", *this->search); |
| 118 | } |
| 119 | if (this->orderBy) { |
| 120 | query.setValue("$orderBy", *this->orderBy); |
| 121 | } |
| 122 | if (this->top) { |
| 123 | query.setValue("$top", std::to_string(*this->top)); |
| 124 | } |
| 125 | if (this->skip) { |
| 126 | query.setValue("$skip", std::to_string(*this->skip)); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | void QueryParameters::addToUri(CesiumUtility::Uri& uri) const { |
| 131 | CesiumUtility::UriQuery query(uri.getQuery()); |