DECENT
Functions
Messaging

Functions

signed_transaction send_message (const std::string &from, const std::vector< string > &to, const string &text, bool broadcast=false)
 Sends an encrypted text message to one or many users. More...
 
signed_transaction send_unencrypted_message (const std::string &from, const std::vector< string > &to, const string &text, bool broadcast=false)
 Sends an unencrypted text message to one or many users. More...
 
vector< message_object > get_message_objects (const std::string &sender, const std::string &receiver, uint32_t max_count) const
 Receives message objects by sender and/or receiver. More...
 
vector< text_message > get_messages (const std::string &receiver, uint32_t max_count) const
 Receives messages by receiver. More...
 
vector< text_message > get_sent_messages (const std::string &sender, uint32_t max_count) const
 Receives sent messages by sender. More...
 
signed_transaction graphene::wallet::wallet_api::send_message (const std::string &from, const std::vector< string > &to, const string &text, bool broadcast=false)
 Sends an encrypted text message to one or many users. More...
 
signed_transaction graphene::wallet::wallet_api::send_unencrypted_message (const std::string &from, const std::vector< string > &to, const string &text, bool broadcast=false)
 Sends an unencrypted text message to one or many users. More...
 
vector< message_objectgraphene::wallet::wallet_api::get_message_objects (const std::string &sender, const std::string &receiver, uint32_t max_count) const
 Receives message objects by sender and/or receiver. More...
 
vector< text_messagegraphene::wallet::wallet_api::get_messages (const std::string &receiver, uint32_t max_count) const
 Receives messages by receiver. More...
 
vector< text_messagegraphene::wallet::wallet_api::get_sent_messages (const std::string &sender, uint32_t max_count) const
 Receives sent messages by sender. More...
 

Detailed Description

Function Documentation

◆ get_message_objects() [1/2]

vector<message_object> get_message_objects ( const std::string &  sender,
const std::string &  receiver,
uint32_t  max_count 
) const

Receives message objects by sender and/or receiver.

Parameters
sendername of message sender. If you dont want to filter by sender then let it empty
receivername of message receiver. If you dont want to filter by receiver then let it empty
max_countmaximal number of last messages to be displayed
Returns
a vector of message objects

◆ get_message_objects() [2/2]

vector< message_object > wallet_api::get_message_objects ( const std::string &  sender,
const std::string &  receiver,
uint32_t  max_count 
) const

Receives message objects by sender and/or receiver.

Parameters
sendername of message sender. If you dont want to filter by sender then let it empty
receivername of message receiver. If you dont want to filter by receiver then let it empty
max_countmaximal number of last messages to be displayed
Returns
a vector of message objects

Definition at line 19 of file wallet.cpp.

◆ get_messages() [1/2]

vector<text_message> get_messages ( const std::string &  receiver,
uint32_t  max_count 
) const

Receives messages by receiver.

Parameters
receivername of message receiver which must be imported to caller's wallet
max_countmaximal number of last messages to be displayed
Returns
a vector of message objects

◆ get_messages() [2/2]

vector< text_message > wallet_api::get_messages ( const std::string &  receiver,
uint32_t  max_count 
) const

Receives messages by receiver.

Parameters
receivername of message receiver which must be imported to caller's wallet
max_countmaximal number of last messages to be displayed
Returns
a vector of message objects

Definition at line 30 of file wallet.cpp.

◆ get_sent_messages() [1/2]

vector<text_message> get_sent_messages ( const std::string &  sender,
uint32_t  max_count 
) const

Receives sent messages by sender.

Parameters
sendername of message sender which must be imported to caller's wallet
max_countmaximal number of last messages to be displayed
Returns
a vector of message objects

◆ get_sent_messages() [2/2]

vector< text_message > wallet_api::get_sent_messages ( const std::string &  sender,
uint32_t  max_count 
) const

Receives sent messages by sender.

Parameters
sendername of message sender which must be imported to caller's wallet
max_countmaximal number of last messages to be displayed
Returns
a vector of message objects

Definition at line 35 of file wallet.cpp.

◆ send_message() [1/2]

signed_transaction send_message ( const std::string &  from,
const std::vector< string > &  to,
const string &  text,
bool  broadcast = false 
)

Sends an encrypted text message to one or many users.

Parameters
fromaccount sending the message
toaccount or multiple accounts receiving the message
textthe body of the message

◆ send_message() [2/2]

signed_transaction wallet_api::send_message ( const std::string &  from,
const std::vector< string > &  to,
const string &  text,
bool  broadcast = false 
)

Sends an encrypted text message to one or many users.

Parameters
fromaccount sending the message
toaccount or multiple accounts receiving the message
textthe body of the message

Definition at line 3 of file wallet.cpp.

◆ send_unencrypted_message() [1/2]

signed_transaction send_unencrypted_message ( const std::string &  from,
const std::vector< string > &  to,
const string &  text,
bool  broadcast = false 
)

Sends an unencrypted text message to one or many users.

Parameters
fromaccount sending the message
toaccount or multiple accounts receiving the message
textthe body of the message

◆ send_unencrypted_message() [2/2]

signed_transaction wallet_api::send_unencrypted_message ( const std::string &  from,
const std::vector< string > &  to,
const string &  text,
bool  broadcast = false 
)

Sends an unencrypted text message to one or many users.

Parameters
fromaccount sending the message
toaccount or multiple accounts receiving the message
textthe body of the message

Definition at line 11 of file wallet.cpp.