libkazv
Loading...
Searching...
No Matches
Kazv::Factory Namespace Reference

Classes

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

Functions

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

◆ withEventTs()

ComposedModifier< Event > Kazv::Factory::withEventTs ( Timestamp  ts)

◆ 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)