#include "google_apis/calendar/calendar_api_url_generator.h"
#include <map>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
#include "base/containers/fixed_flat_map.h"
#include "base/strings/escape.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "google_apis/calendar/calendar_api_requests.h"
#include "google_apis/common/time_util.h"
#include "net/base/url_util.h"
namespace google_apis {
namespace calendar {
namespace {
constexpr char kCalendarV3CalendarListUrl[] = …;
constexpr char kCalendarV3ColorUrl[] = …;
constexpr char kCalendarV3EventsUrlFormat[] = …;
constexpr char kEventTypesParameterName[] = …;
constexpr char kExperimentParameterName[] = …;
constexpr char kMaxAttendeesParameterName[] = …;
constexpr char kMaxResultsParameterName[] = …;
constexpr char kOrderByParameterName[] = …;
constexpr char kSingleEventsParameterName[] = …;
constexpr char kTimeMaxParameterName[] = …;
constexpr char kTimeMinParameterName[] = …;
constexpr auto kEventTypeToStringMap = …;
}
CalendarApiUrlGenerator::CalendarApiUrlGenerator() = default;
CalendarApiUrlGenerator::CalendarApiUrlGenerator(
const CalendarApiUrlGenerator& src) = default;
CalendarApiUrlGenerator& CalendarApiUrlGenerator::operator=(
const CalendarApiUrlGenerator& src) = default;
CalendarApiUrlGenerator::~CalendarApiUrlGenerator() = default;
GURL CalendarApiUrlGenerator::GetCalendarEventListUrl(
const std::string& calendar_id,
const base::Time& start_time,
const base::Time& end_time,
bool single_events,
std::optional<int> max_attendees,
std::optional<int> max_results,
const std::vector<EventType>& event_types,
const std::string& experiment,
const std::string& order_by) const { … }
GURL CalendarApiUrlGenerator::GetCalendarColorListUrl() const { … }
GURL CalendarApiUrlGenerator::GetCalendarListUrl(
std::optional<int> max_results) const { … }
}
}