Ring Daemon 16.0.0
|
A ConversationRequest is a request which corresponds to a trust request, but for conversations It's signed by the sender and contains the members list, the conversationId, and the metadatas such as the conversation's vcard, etc. More...
#include <conversation.h>
Public Member Functions | |
ConversationRequest ()=default | |
ConversationRequest (const Json::Value &json) | |
bool | isOneToOne () const |
bool | operator== (const ConversationRequest &o) const |
Json::Value | toJson () const |
std::map< std::string, std::string > | toMap () const |
Public Attributes | |
std::string | conversationId |
time_t | declined {0} |
std::string | from |
std::map< std::string, std::string > | metadatas |
time_t | received {0} |
A ConversationRequest is a request which corresponds to a trust request, but for conversations It's signed by the sender and contains the members list, the conversationId, and the metadatas such as the conversation's vcard, etc.
(TODO determine) Transmitted via the UDP DHT
Definition at line 71 of file conversation.h.
|
default |
jami::ConversationRequest::ConversationRequest | ( | const Json::Value & | json | ) |
Definition at line 79 of file conversation.cpp.
References jami::ConversationMapKeys::CONVERSATIONID, conversationId, jami::ConversationMapKeys::DECLINED, declined, jami::emitSignal(), jami::ConversationMapKeys::FROM, from, jami::ConversationMapKeys::METADATAS, metadatas, jami::ConversationMapKeys::RECEIVED, and received.
|
inline |
Definition at line 93 of file conversation.h.
References metadatas.
Referenced by jami::ConversationModule::Impl::addConversationRequest(), and jami::ConversationModule::onConversationRequest().
|
inline |
Definition at line 86 of file conversation.h.
References jami::emitSignal(), and toMap().
Json::Value jami::ConversationRequest::toJson | ( | ) | const |
Definition at line 92 of file conversation.cpp.
References jami::ConversationMapKeys::CONVERSATIONID, conversationId, jami::ConversationMapKeys::DECLINED, declined, jami::emitSignal(), jami::ConversationMapKeys::FROM, from, jami::ConversationMapKeys::METADATAS, metadatas, jami::ConversationMapKeys::RECEIVED, and received.
std::map< std::string, std::string > jami::ConversationRequest::toMap | ( | ) | const |
Definition at line 107 of file conversation.cpp.
References conversationId, jami::ConversationMapKeys::DECLINED, declined, jami::ConversationMapKeys::FROM, from, jami::ConversationMapKeys::ID, metadatas, jami::ConversationMapKeys::RECEIVED, and received.
Referenced by jami::ConversationModule::onConversationRequest(), jami::ConversationModule::onTrustRequest(), and operator==().
std::string jami::ConversationRequest::conversationId |
Definition at line 73 of file conversation.h.
Referenced by ConversationRequest(), jami::ConversationModule::onConversationRequest(), jami::ConversationModule::onTrustRequest(), toJson(), and toMap().
time_t jami::ConversationRequest::declined {0} |
Definition at line 78 of file conversation.h.
Referenced by jami::ConversationModule::Impl::addConversationRequest(), ConversationRequest(), toJson(), and toMap().
std::string jami::ConversationRequest::from |
Definition at line 74 of file conversation.h.
Referenced by jami::ConversationModule::Impl::addConversationRequest(), ConversationRequest(), jami::ConversationModule::onConversationRequest(), jami::ConversationModule::onTrustRequest(), toJson(), and toMap().
std::map<std::string, std::string> jami::ConversationRequest::metadatas |
Definition at line 75 of file conversation.h.
Referenced by ConversationRequest(), isOneToOne(), jami::ConversationModule::onTrustRequest(), toJson(), and toMap().
time_t jami::ConversationRequest::received {0} |
Definition at line 77 of file conversation.h.
Referenced by ConversationRequest(), jami::ConversationModule::onConversationRequest(), jami::ConversationModule::onTrustRequest(), toJson(), and toMap().