Changeset View
Changeset View
Standalone View
Standalone View
src/testfixtures/factory.cpp
Show First 20 Lines • Show All 253 Lines • ▼ Show 20 Lines | namespace Kazv::Factory | ||||
ComposedModifier<Event> withMemberAvatarUrl(std::string avatarUrl) | ComposedModifier<Event> withMemberAvatarUrl(std::string avatarUrl) | ||||
{ | { | ||||
return withEventKV("/content/avatar_url"_json_pointer, avatarUrl); | return withEventKV("/content/avatar_url"_json_pointer, avatarUrl); | ||||
} | } | ||||
ComposedModifier<Event> withEventSenderId(std::string sender) | ComposedModifier<Event> withEventSenderId(std::string sender) | ||||
{ | { | ||||
return withEventKV("/sender_key"_json_pointer, sender); | return withEventKV("/sender"_json_pointer, sender); | ||||
} | } | ||||
ComposedModifier<Event> withEventRelationship(std::string relType, std::string eventId) | ComposedModifier<Event> withEventRelationship(std::string relType, std::string eventId) | ||||
{ | { | ||||
return withEventKV("/content/m.relates_to"_json_pointer, { | return withEventKV("/content/m.relates_to"_json_pointer, { | ||||
{"rel_type", relType}, | {"rel_type", relType}, | ||||
{"event_id", eventId}, | {"event_id", eventId}, | ||||
}); | }); | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |