The auditlog class represents the audit log entries of a guild. More...
#include "auditlog.h"
Public Member Functions | |
auditlog ()=default | |
Constructor. More... | |
virtual | ~auditlog ()=default |
Destructor. More... | |
std::string | build_json (bool with_id=false) const |
Convert object to json string. More... | |
auditlog & | fill_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... | |
Public Attributes | |
std::vector< audit_entry > | entries |
Audit log entries. More... | |
Protected Member Functions | |
auditlog & | fill_from_json_impl (nlohmann::json *j) |
Read class values from json object. More... | |
Friends | |
struct | json_interface< auditlog > |
The auditlog class represents the audit log entries of a guild.
|
default |
Constructor.
|
virtualdefault |
Destructor.
|
inlineinherited |
Convert object to json string.
with_id | Whether to include the ID or not |
|
inlineinherited |
Convert object from nlohmann::json.
j | nlohmann::json object |
|
protected |
Read class values from json object.
j | A json object to read from |
|
inlineinherited |
Convert object to nlohmann::json.
with_id | Whether to include the ID or not |
|
friend |
std::vector<audit_entry> dpp::auditlog::entries |
Audit log entries.