libkazv
Kazv::InboundGroupSession Class Reference

#include <inbound-group-session.hpp>

Public Member Functions

 InboundGroupSession ()
 
 InboundGroupSession (std::string sessionKey, std::string ed25519Key)
 
 InboundGroupSession (const InboundGroupSession &that)
 
 InboundGroupSession (InboundGroupSession &&that)
 
InboundGroupSessionoperator= (const InboundGroupSession &that)
 
InboundGroupSessionoperator= (InboundGroupSession &&that)
 
 ~InboundGroupSession ()
 
MaybeString decrypt (std::string message, std::string eventId, Timestamp originServerTs)
 
bool valid () const
 
std::string ed25519Key () const
 

Friends

void to_json (nlohmann::json &j, const InboundGroupSession &s)
 
void from_json (const nlohmann::json &j, InboundGroupSession &s)
 

Constructor & Destructor Documentation

◆ InboundGroupSession() [1/4]

Kazv::InboundGroupSession::InboundGroupSession ( )
explicit

◆ InboundGroupSession() [2/4]

Kazv::InboundGroupSession::InboundGroupSession ( std::string  sessionKey,
std::string  ed25519Key 
)
explicit

◆ InboundGroupSession() [3/4]

Kazv::InboundGroupSession::InboundGroupSession ( const InboundGroupSession that)

◆ InboundGroupSession() [4/4]

Kazv::InboundGroupSession::InboundGroupSession ( InboundGroupSession &&  that)

◆ ~InboundGroupSession()

Kazv::InboundGroupSession::~InboundGroupSession ( )
default

Member Function Documentation

◆ decrypt()

MaybeString Kazv::InboundGroupSession::decrypt ( std::string  message,
std::string  eventId,
Timestamp  originServerTs 
)

◆ ed25519Key()

std::string Kazv::InboundGroupSession::ed25519Key ( ) const

◆ operator=() [1/2]

InboundGroupSession & Kazv::InboundGroupSession::operator= ( const InboundGroupSession that)

◆ operator=() [2/2]

InboundGroupSession & Kazv::InboundGroupSession::operator= ( InboundGroupSession &&  that)

◆ valid()

bool Kazv::InboundGroupSession::valid ( ) const

Friends And Related Function Documentation

◆ from_json

void from_json ( const nlohmann::json j,
InboundGroupSession s 
)
friend

◆ to_json

void to_json ( nlohmann::json j,
const InboundGroupSession s 
)
friend

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