dpp::gateway
dpp::json_interface< gateway >
restresults.h
struct friend struct json_interface< gateway > json_interface< gateway > dpp::gateway::json_interface< gateway > json_interface< gateway >
uint32_t uint32_t dpp::gateway::session_start_max_concurrency session_start_max_concurrency dpp::gateway::session_start_max_concurrency

How many sessions can be started at the same time.

uint32_t uint32_t dpp::gateway::session_start_remaining session_start_remaining dpp::gateway::session_start_remaining

How many sessions are left.

uint32_t uint32_t dpp::gateway::session_start_reset_after session_start_reset_after dpp::gateway::session_start_reset_after

How many seconds until the session start quota resets.

uint32_t uint32_t dpp::gateway::session_start_total session_start_total dpp::gateway::session_start_total

Total number of sessions that can be started.

uint32_t uint32_t dpp::gateway::shards shards dpp::gateway::shards

Number of suggested shards to start.

std::string std::string dpp::gateway::url url dpp::gateway::url

Gateway websocket url.

gateway & gateway & dpp::gateway::fill_from_json_impl (nlohmann::json *j) fill_from_json_impl dpp::gateway::fill_from_json_impl nlohmann::json * j

Fill this object from json.

j

json to fill from

gateway& reference to self

dpp::gateway::gateway
()
gateway
dpp::gateway::gateway

Construct a new gateway object.

dpp::gateway::gateway
(nlohmann::json *j)
gateway
dpp::gateway::gateway
nlohmann::json * j

Construct a new gateway object.

j

JSON data to construct from

std::string std::string dpp::json_interface< gateway >::build_json (bool with_id=false) const build_json dpp::json_interface< gateway >::build_json bool with_id false

Convert object to json string.

with_id

Whether to include the ID or not

Some fields are conditionally filled, do not rely on all fields being present

std::string Json built from the structure

gateway & gateway & dpp::json_interface< gateway >::fill_from_json (nlohmann::json *j) fill_from_json dpp::json_interface< gateway >::fill_from_json nlohmann::json * j

Convert object from nlohmann::json.

j

nlohmann::json object

T& Reference to self for fluent calling

auto auto dpp::json_interface< gateway >::to_json (bool with_id=false) const to_json dpp::json_interface< gateway >::to_json bool with_id false

Convert object to nlohmann::json.

with_id

Whether to include the ID or not

Some fields are conditionally filled, do not rely on all fields being present

json Json built from the structure

Represents the various information from the 'get gateway bot' api call.

dpp::gateway
dpp::json_interface< T >
dpp::json_interface< gateway >
< gateway >
dpp::gateway
url
session_start_max_concurrency
session_start_remaining
session_start_reset_after
session_start_total
shards
dpp::json_interface< T >
dpp::json_interface< gateway >
< gateway >
std::basic_string< Char >
std::string
uint32_t
- dpp::gateway
  build_json
- dpp::gateway
  fill_from_json
- dpp::gateway
  fill_from_json_impl
- dpp::gateway
  gateway
- dpp::gateway
  gateway
- dpp::gateway
  json_interface< gateway >
- dpp::gateway
  session_start_max_concurrency
- dpp::gateway
  session_start_remaining
- dpp::gateway
  session_start_reset_after
- dpp::gateway
  session_start_total
- dpp::gateway
  shards
- dpp::gateway
  to_json
- dpp::gateway
  url