libkazv
factory.hpp File Reference
#include <libkazv-config.hpp>
#include <client-model.hpp>
Include dependency graph for factory.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Kazv::Factory::ComposedModifier< ModelType >
 
struct  Kazv::Factory::AttrModifier< PointerToMember >
 
struct  Kazv::Factory::AttrModifier< DataType ModelType::* >
 

Namespaces

 Kazv
 
 Kazv::Factory
 

Functions

template<class PointerToMember >
AttrModifier< PointerToMember > Kazv::Factory::withAttr (PointerToMember p, const typename AttrModifier< PointerToMember >::DataT &data)
 
ClientModel Kazv::Factory::makeClient (const ComposedModifier< ClientModel > &mod)
 
ComposedModifier< ClientModel > Kazv::Factory::withRoom (RoomModel room)
 
ComposedModifier< ClientModel > Kazv::Factory::withAccountData (immer::flex_vector< Event > accountDataEvent)
 
ComposedModifier< ClientModel > Kazv::Factory::withCrypto (const Crypto &crypto)
 
ComposedModifier< ClientModel > Kazv::Factory::withDevice (std::string userId, DeviceKeyInfo info)
 
DeviceKeyInfo Kazv::Factory::makeDeviceKeyInfo (const ComposedModifier< DeviceKeyInfo > &mod)
 
ComposedModifier< DeviceKeyInfo > Kazv::Factory::withDeviceId (std::string deviceId)
 
ComposedModifier< DeviceKeyInfo > Kazv::Factory::withDeviceDisplayName (std::string displayName)
 
ComposedModifier< DeviceKeyInfo > Kazv::Factory::withDeviceTrustLevel (DeviceTrustLevel trustLevel)
 
Crypto Kazv::Factory::makeCrypto (const ComposedModifier< Crypto > &mod)
 
RoomModel Kazv::Factory::makeRoom (const ComposedModifier< RoomModel > &mod)
 
ComposedModifier< RoomModel > Kazv::Factory::withRoomId (std::string id)
 
ComposedModifier< RoomModel > Kazv::Factory::withRoomAccountData (immer::flex_vector< Event > accountDataEvent)
 
ComposedModifier< RoomModel > Kazv::Factory::withRoomState (immer::flex_vector< Event > stateEvent)
 
ComposedModifier< RoomModel > Kazv::Factory::withRoomInviteState (immer::flex_vector< Event > stateEvent)
 
ComposedModifier< RoomModel > Kazv::Factory::withRoomTimeline (immer::flex_vector< Event > timelineEvents)
 
ComposedModifier< RoomModel > Kazv::Factory::withRoomTimelineGaps (immer::map< std::string, std::string > timelineGaps)
 
ComposedModifier< RoomModel > Kazv::Factory::withRoomMembership (RoomMembership membership)
 
ComposedModifier< RoomModel > Kazv::Factory::withRoomEncrypted (bool encrypted)
 
Event Kazv::Factory::makeEvent (const ComposedModifier< Event > &mod)
 
Event Kazv::Factory::makeMemberEvent (const ComposedModifier< Event > &mod)
 
ComposedModifier< Event > Kazv::Factory::withEventJson (const json &j)
 
ComposedModifier< Event > Kazv::Factory::withEventKV (const json::json_pointer &k, const json &v)
 
ComposedModifier< Event > Kazv::Factory::withEventId (std::string id)
 
ComposedModifier< Event > Kazv::Factory::withEventType (std::string type)
 
ComposedModifier< Event > Kazv::Factory::withEventContent (const json &content)
 
ComposedModifier< Event > Kazv::Factory::withStateKey (std::string id)
 
ComposedModifier< Event > Kazv::Factory::withMembership (std::string membership)
 
ComposedModifier< Event > Kazv::Factory::withMemberDisplayName (std::string displayName)
 
ComposedModifier< Event > Kazv::Factory::withMemberAvatarUrl (std::string avatarUrl)
 
ComposedModifier< Event > Kazv::Factory::withEventSenderId (std::string sender)
 
ComposedModifier< Event > Kazv::Factory::withEventRelationship (std::string relType, std::string eventId)
 
ComposedModifier< Event > Kazv::Factory::withEventReplyTo (std::string eventId)
 
Response Kazv::Factory::makeResponse (std::string jobId, const ComposedModifier< Response > &mod)
 
ComposedModifier< Response > Kazv::Factory::withResponseStatusCode (int code)
 
ComposedModifier< Response > Kazv::Factory::withResponseJsonBody (const json &body)
 
ComposedModifier< Response > Kazv::Factory::withResponseBytesBody (const Bytes &body)
 
ComposedModifier< Response > Kazv::Factory::withResponseFileBody (const FileDesc &body)
 
ComposedModifier< Response > Kazv::Factory::withResponseDataKV (std::string k, const json &v)