libkazv
Kazv::Factory Namespace Reference

Classes

struct  ComposedModifier
 
struct  AttrModifier
 
struct  AttrModifier< DataType ModelType::* >
 

Functions

ClientModel makeClient (const ComposedModifier< ClientModel > &mod)
 
ComposedModifier< ClientModelwithRoom (RoomModel room)
 
ComposedModifier< ClientModelwithAccountData (immer::flex_vector< Event > accountDataEvent)
 
ComposedModifier< ClientModelwithCrypto (const Crypto &crypto)
 
ComposedModifier< ClientModelwithDevice (std::string userId, DeviceKeyInfo info)
 
DeviceKeyInfo makeDeviceKeyInfo (const ComposedModifier< DeviceKeyInfo > &mod)
 
ComposedModifier< DeviceKeyInfowithDeviceId (std::string deviceId)
 
ComposedModifier< DeviceKeyInfowithDeviceDisplayName (std::string displayName)
 
ComposedModifier< DeviceKeyInfowithDeviceTrustLevel (DeviceTrustLevel trustLevel)
 
Crypto makeCrypto (const ComposedModifier< Crypto > &mod)
 
RoomModel makeRoom (const ComposedModifier< RoomModel > &mod)
 
ComposedModifier< RoomModelwithRoomId (std::string id)
 
ComposedModifier< RoomModelwithRoomAccountData (immer::flex_vector< Event > accountDataEvent)
 
ComposedModifier< RoomModelwithRoomState (immer::flex_vector< Event > stateEvent)
 
ComposedModifier< RoomModelwithRoomTimeline (immer::flex_vector< Event > timelineEvents)
 
ComposedModifier< RoomModelwithRoomTimelineGaps (immer::map< std::string, std::string > timelineGaps)
 
ComposedModifier< RoomModelwithRoomMembership (RoomMembership membership)
 
ComposedModifier< RoomModelwithRoomEncrypted (bool encrypted)
 
Event makeEvent (const ComposedModifier< Event > &mod)
 
Event makeMemberEvent (const ComposedModifier< Event > &mod)
 
ComposedModifier< EventwithEventJson (const json &j)
 
ComposedModifier< EventwithEventKV (const json::json_pointer &k, const json &v)
 
ComposedModifier< EventwithEventId (std::string id)
 
ComposedModifier< EventwithEventType (std::string type)
 
ComposedModifier< EventwithEventContent (const json &content)
 
ComposedModifier< EventwithStateKey (std::string id)
 
ComposedModifier< EventwithMembership (std::string membership)
 
ComposedModifier< EventwithMemberDisplayName (std::string displayName)
 
ComposedModifier< EventwithMemberAvatarUrl (std::string avatarUrl)
 
ComposedModifier< EventwithEventSenderId (std::string sender)
 
ComposedModifier< EventwithEventRelationship (std::string relType, std::string eventId)
 
ComposedModifier< EventwithEventReplyTo (std::string eventId)
 
Response makeResponse (std::string jobId, const ComposedModifier< Response > &mod)
 
ComposedModifier< ResponsewithResponseStatusCode (int code)
 
ComposedModifier< ResponsewithResponseJsonBody (const json &body)
 
ComposedModifier< ResponsewithResponseBytesBody (const Bytes &body)
 
ComposedModifier< ResponsewithResponseFileBody (const FileDesc &body)
 
ComposedModifier< ResponsewithResponseDataKV (std::string k, const json &v)
 
template<class PointerToMember >
AttrModifier< PointerToMember > withAttr (PointerToMember p, const typename AttrModifier< PointerToMember >::DataT &data)
 
ComposedModifier< RoomModelwithRoomInviteState (immer::flex_vector< Event > stateEvent)
 

Function Documentation

◆ makeClient()

ClientModel Kazv::Factory::makeClient ( const ComposedModifier< ClientModel > &  mod)

◆ makeCrypto()

Crypto Kazv::Factory::makeCrypto ( const ComposedModifier< Crypto > &  mod)

◆ makeDeviceKeyInfo()

DeviceKeyInfo Kazv::Factory::makeDeviceKeyInfo ( const ComposedModifier< DeviceKeyInfo > &  mod)

◆ makeEvent()

Event Kazv::Factory::makeEvent ( const ComposedModifier< Event > &  mod)

◆ makeMemberEvent()

Event Kazv::Factory::makeMemberEvent ( const ComposedModifier< Event > &  mod)

◆ makeResponse()

Response Kazv::Factory::makeResponse ( std::string  jobId,
const ComposedModifier< Response > &  mod 
)

◆ makeRoom()

RoomModel Kazv::Factory::makeRoom ( const ComposedModifier< RoomModel > &  mod)

◆ withAccountData()

ComposedModifier< ClientModel > Kazv::Factory::withAccountData ( immer::flex_vector< Event accountDataEvent)

◆ withAttr()

template<class PointerToMember >
AttrModifier<PointerToMember> Kazv::Factory::withAttr ( PointerToMember  p,
const typename AttrModifier< PointerToMember >::DataT &  data 
)

◆ withCrypto()

ComposedModifier< ClientModel > Kazv::Factory::withCrypto ( const Crypto crypto)

◆ withDevice()

ComposedModifier< ClientModel > Kazv::Factory::withDevice ( std::string  userId,
DeviceKeyInfo  info 
)

◆ withDeviceDisplayName()

ComposedModifier< DeviceKeyInfo > Kazv::Factory::withDeviceDisplayName ( std::string  displayName)

◆ withDeviceId()

ComposedModifier< DeviceKeyInfo > Kazv::Factory::withDeviceId ( std::string  deviceId)

◆ withDeviceTrustLevel()

ComposedModifier< DeviceKeyInfo > Kazv::Factory::withDeviceTrustLevel ( DeviceTrustLevel  trustLevel)

◆ withEventContent()

ComposedModifier< Event > Kazv::Factory::withEventContent ( const json content)

◆ withEventId()

ComposedModifier< Event > Kazv::Factory::withEventId ( std::string  id)

◆ withEventJson()

ComposedModifier< Event > Kazv::Factory::withEventJson ( const json j)

◆ withEventKV()

ComposedModifier< Event > Kazv::Factory::withEventKV ( const json::json_pointer &  k,
const json v 
)

◆ withEventRelationship()

ComposedModifier< Event > Kazv::Factory::withEventRelationship ( std::string  relType,
std::string  eventId 
)

◆ withEventReplyTo()

ComposedModifier< Event > Kazv::Factory::withEventReplyTo ( std::string  eventId)

◆ withEventSenderId()

ComposedModifier< Event > Kazv::Factory::withEventSenderId ( std::string  sender)

◆ withEventType()

ComposedModifier< Event > Kazv::Factory::withEventType ( std::string  type)

◆ withMemberAvatarUrl()

ComposedModifier< Event > Kazv::Factory::withMemberAvatarUrl ( std::string  avatarUrl)

◆ withMemberDisplayName()

ComposedModifier< Event > Kazv::Factory::withMemberDisplayName ( std::string  displayName)

◆ withMembership()

ComposedModifier< Event > Kazv::Factory::withMembership ( std::string  membership)

◆ withResponseBytesBody()

ComposedModifier< Response > Kazv::Factory::withResponseBytesBody ( const Bytes body)

◆ withResponseDataKV()

ComposedModifier< Response > Kazv::Factory::withResponseDataKV ( std::string  k,
const json v 
)

◆ withResponseFileBody()

ComposedModifier< Response > Kazv::Factory::withResponseFileBody ( const FileDesc body)

◆ withResponseJsonBody()

ComposedModifier< Response > Kazv::Factory::withResponseJsonBody ( const json body)

◆ withResponseStatusCode()

ComposedModifier< Response > Kazv::Factory::withResponseStatusCode ( int  code)

◆ withRoom()

ComposedModifier< ClientModel > Kazv::Factory::withRoom ( RoomModel  room)

◆ withRoomAccountData()

ComposedModifier< RoomModel > Kazv::Factory::withRoomAccountData ( immer::flex_vector< Event accountDataEvent)

◆ withRoomEncrypted()

ComposedModifier< RoomModel > Kazv::Factory::withRoomEncrypted ( bool  encrypted)

◆ withRoomId()

ComposedModifier< RoomModel > Kazv::Factory::withRoomId ( std::string  id)

◆ withRoomInviteState()

ComposedModifier<RoomModel> Kazv::Factory::withRoomInviteState ( immer::flex_vector< Event stateEvent)

◆ withRoomMembership()

ComposedModifier< RoomModel > Kazv::Factory::withRoomMembership ( RoomMembership  membership)

◆ withRoomState()

ComposedModifier< RoomModel > Kazv::Factory::withRoomState ( immer::flex_vector< Event stateEvent)

◆ withRoomTimeline()

ComposedModifier< RoomModel > Kazv::Factory::withRoomTimeline ( immer::flex_vector< Event timelineEvents)

◆ withRoomTimelineGaps()

ComposedModifier< RoomModel > Kazv::Factory::withRoomTimelineGaps ( immer::map< std::string, std::string >  timelineGaps)

◆ withStateKey()

ComposedModifier< Event > Kazv::Factory::withStateKey ( std::string  id)