aegis.cpp
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Public Attributes | Friends | List of all members
aegis::gateway::objects::messages Class Reference

#include <messages.hpp>

Public Member Functions

 messages (aegis::core *_core) noexcept
 Constructor for the messages array. More...
 
 messages (const std::string &_json, aegis::core *_core) noexcept
 Constructor for the message object. More...
 
 messages (const nlohmann::json &_json, aegis::core *_core) noexcept
 Constructor for the messages object. More...
 
void set_guild (aegis::guild *_guild)
 
messagesoperator= (const messages &)=default
 
 messages (const messages &)=default
 
 messages (messages &&msg)=default
 
std::vector
< aegis::gateway::objects::message >
::iterator 
begin ()
 
std::vector
< aegis::gateway::objects::message >
::iterator 
end ()
 
std::vector
< aegis::gateway::objects::message >
::reverse_iterator 
rbegin ()
 
std::vector
< aegis::gateway::objects::message >
::reverse_iterator 
rend ()
 

Public Attributes

std::vector
< aegis::gateway::objects::message
_messages
 

Friends

class aegis::core
 
void from_json (const nlohmann::json &j, objects::messages &m)
 
void to_json (nlohmann::json &j, const objects::messages &m)
 

Detailed Description

Todo:
Needs documentation

Constructor & Destructor Documentation

aegis::gateway::objects::messages::messages ( aegis::core _core)
noexcept

Constructor for the messages array.

Parameters
_corePointer of core object
aegis::gateway::objects::messages::messages ( const std::string &  _json,
aegis::core _core 
)
noexcept

Constructor for the message object.

Parameters
_jsonJSON string of the message object
botPointer of core object
aegis::gateway::objects::messages::messages ( const nlohmann::json &  _json,
aegis::core _core 
)
noexcept

Constructor for the messages object.

Parameters
_jsonJSON object of the messages array
_corePointer of core object

Member Function Documentation

void aegis::gateway::objects::messages::set_guild ( aegis::guild _guild)

Set the guild of the message object. This is mostly an internal function though is left public for lower level use

Parameters
_guildPointer of the guild to assign the message to

Member Data Documentation

std::vector<aegis::gateway::objects::message> aegis::gateway::objects::messages::_messages

array of messages


The documentation for this class was generated from the following file: