Ring Daemon
Loading...
Searching...
No Matches
jami::ConversationRequest Struct Reference

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>

Collaboration diagram for jami::ConversationRequest:
Collaboration graph

Public Member Functions

 ConversationRequest ()=default
 
 ConversationRequest (const Json::Value &json)
 
bool isOneToOne () const
 
ConversationMode mode () 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}
 

Detailed Description

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 84 of file conversation.h.

Constructor & Destructor Documentation

◆ ConversationRequest() [1/2]

jami::ConversationRequest::ConversationRequest ( )
default

◆ ConversationRequest() [2/2]

jami::ConversationRequest::ConversationRequest ( const Json::Value &  json)

Member Function Documentation

◆ isOneToOne()

bool jami::ConversationRequest::isOneToOne ( ) const
inline

◆ mode()

ConversationMode jami::ConversationRequest::mode ( ) const
inline

Definition at line 115 of file conversation.h.

References jami::emitSignal(), metadatas, and jami::ONE_TO_ONE.

Referenced by jami::ConversationModule::Impl::cloneConversationFrom().

Here is the call graph for this function:

◆ operator==()

bool jami::ConversationRequest::operator== ( const ConversationRequest o) const
inline

Definition at line 99 of file conversation.h.

References jami::emitSignal(), and toMap().

Here is the call graph for this function:

◆ toJson()

◆ toMap()

Member Data Documentation

◆ conversationId

◆ declined

time_t jami::ConversationRequest::declined {0}

◆ from

◆ metadatas

std::map<std::string, std::string> jami::ConversationRequest::metadatas

◆ received


The documentation for this struct was generated from the following files: