D++ (DPP)
C++ Discord API Bot Library
dpp::application_role_connection_metadata Class Reference

Application Role Connection Metadata. Represents a role connection metadata for an dpp::application. More...

#include <role.h>

+ Inheritance diagram for dpp::application_role_connection_metadata:
+ Collaboration diagram for dpp::application_role_connection_metadata:

Public Member Functions

 application_role_connection_metadata ()
 
virtual ~application_role_connection_metadata ()=default
 
application_role_connection_metadatafill_from_json (nlohmann::json *j)
 Convert object from nlohmann::json. More...
 
auto to_json (bool with_id=false) const
 Convert object to nlohmann::json. More...
 
std::string build_json (bool with_id=false) const
 Convert object to json string. More...
 

Public Attributes

application_role_connection_metadata_type type
 Type of metadata value. More...
 
std::string key
 Dictionary key for the metadata field (must be a-z, 0-9, or _ characters; 1-50 characters) More...
 
std::string name
 Name of the metadata field (1-100 characters) More...
 
std::map< std::string, std::string > name_localizations
 Translations of the name. More...
 
std::string description
 Description of the metadata field (1-200 characters) More...
 
std::map< std::string, std::string > description_localizations
 Translations of the description. More...
 

Protected Member Functions

application_role_connection_metadatafill_from_json_impl (nlohmann::json *j)
 
virtual json to_json_impl (bool with_id=false) const
 Convert to JSON. More...
 

Friends

struct json_interface< application_role_connection_metadata >
 

Detailed Description

Application Role Connection Metadata. Represents a role connection metadata for an dpp::application.

Constructor & Destructor Documentation

◆ application_role_connection_metadata()

dpp::application_role_connection_metadata::application_role_connection_metadata ( )

Constructor

◆ ~application_role_connection_metadata()

virtual dpp::application_role_connection_metadata::~application_role_connection_metadata ( )
virtualdefault

Member Function Documentation

◆ build_json()

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

Convert object to json string.

Parameters
with_idWhether to include the ID or not
Note
Some fields are conditionally filled, do not rely on all fields being present
Returns
std::string Json built from the structure

◆ fill_from_json()

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

Convert object from nlohmann::json.

Parameters
jnlohmann::json object
Returns
T& Reference to self for fluent calling

◆ fill_from_json_impl()

application_role_connection_metadata & dpp::application_role_connection_metadata::fill_from_json_impl ( nlohmann::json *  j)
protected

Fill this record from json.

Parameters
jThe json to fill this record from
Returns
Reference to self

◆ to_json()

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

Convert object to nlohmann::json.

Parameters
with_idWhether to include the ID or not
Note
Some fields are conditionally filled, do not rely on all fields being present
Returns
json Json built from the structure

◆ to_json_impl()

virtual json dpp::application_role_connection_metadata::to_json_impl ( bool  with_id = false) const
protectedvirtual

Convert to JSON.

Parameters
with_idinclude ID in output
Returns
json JSON output

Friends And Related Function Documentation

◆ json_interface< application_role_connection_metadata >

Member Data Documentation

◆ description

std::string dpp::application_role_connection_metadata::description

Description of the metadata field (1-200 characters)

◆ description_localizations

std::map<std::string, std::string> dpp::application_role_connection_metadata::description_localizations

Translations of the description.

◆ key

std::string dpp::application_role_connection_metadata::key

Dictionary key for the metadata field (must be a-z, 0-9, or _ characters; 1-50 characters)

◆ name

std::string dpp::application_role_connection_metadata::name

Name of the metadata field (1-100 characters)

◆ name_localizations

std::map<std::string, std::string> dpp::application_role_connection_metadata::name_localizations

Translations of the name.

◆ type

application_role_connection_metadata_type dpp::application_role_connection_metadata::type

Type of metadata value.

D++ Library version 10.0.35D++ Library version 10.0.34D++ Library version 10.0.33D++ Library version 10.0.32D++ Library version 10.0.31D++ Library version 10.0.30D++ Library version 10.0.29D++ Library version 10.0.28D++ Library version 10.0.27D++ Library version 10.0.26D++ Library version 10.0.25D++ Library version 10.0.24D++ Library version 10.0.23D++ Library version 10.0.22D++ Library version 10.0.21D++ Library version 10.0.20D++ Library version 10.0.19D++ Library version 10.0.18D++ Library version 10.0.17D++ Library version 10.0.16D++ Library version 10.0.15D++ Library version 10.0.14D++ Library version 10.0.13D++ Library version 10.0.12D++ Library version 10.0.11D++ Library version 10.0.10D++ Library version 10.0.9D++ Library version 10.0.8D++ Library version 10.0.7D++ Library version 10.0.6D++ Library version 10.0.5D++ Library version 10.0.4D++ Library version 10.0.3D++ Library version 10.0.2D++ Library version 10.0.1D++ Library version 10.0.0D++ Library version 9.0.19D++ Library version 9.0.18D++ Library version 9.0.17D++ Library version 9.0.16D++ Library version 9.0.15D++ Library version 9.0.14D++ Library version 9.0.13D++ Library version 9.0.12D++ Library version 9.0.11D++ Library version 9.0.10D++ Library version 9.0.9D++ Library version 9.0.8D++ Library version 9.0.7D++ Library version 9.0.6D++ Library version 9.0.5D++ Library version 9.0.4D++ Library version 9.0.3D++ Library version 9.0.2D++ Library version 9.0.1D++ Library version 9.0.0D++ Library version 1.0.2D++ Library version 1.0.1D++ Library version 1.0.0