extend the RecipientData to add a Double Ratchet session shared with the recipient
More...
extend the RecipientData to add a Double Ratchet session shared with the recipient
| lime::RecipientInfos::RecipientInfos |
( |
const std::string & |
deviceId, |
|
|
std::shared_ptr< DR > |
session |
|
) |
| |
|
inline |
The deviceId is a constant and must be provided to the constructor to instanciate the base RecipientData class.
- Note
- at construction, the peerStatus is always set to unknown as this status is then overriden with actual one fetched from DB, the ones not fetched are unknown
- Parameters
-
| [in] | deviceId | The device Id (GRUU) of this recipient, used to build the RecipientData |
| [in] | session | The double ratchet session linking current device with this recipient. |
| lime::RecipientInfos::RecipientInfos |
( |
const std::string & |
deviceId | ) |
|
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
forward the deviceId to the RecipientData constructor and set the DRSession pointer to nullptr
| std::shared_ptr<DR> lime::RecipientInfos::DRSession |
DR Session to reach recipient
The documentation for this struct was generated from the following file: