1#ifndef DITTO_SMALL_PEER_INFO
2#define DITTO_SMALL_PEER_INFO
12class DittoHandleWrapper;
13enum SyncScope { BigPeerOnly, LocalPeerOnly };
21 SmallPeerInfo(std::shared_ptr<DittoHandleWrapper> ditto_handle_wrapper);
22 std::shared_ptr<DittoHandleWrapper> ditto_handle_wrapper;
43 std::string metadata_json_string()
const;
60 bool is_enabled()
const;
65 void set_enabled(
bool enabled)
const;
71 SyncScope sync_scope()
const;
76 void set_sync_scope(SyncScope sync_scope)
const;
The entrypoint to the Ditto SDK.
Definition Ditto.hpp:32
The entrypoint for small peer user info collection.
Definition SmallPeerInfo.hpp:18
json metadata() const
Gets the metadata as JSON.
Definition SmallPeerInfo.cpp:34
void set_metadata_json_string(std::string metadata) const
Sets the metadata as user-provided json string and is inserted into the small peer info system doc at...
Definition SmallPeerInfo.cpp:46
void set_metadata(json metadata) const
Sets the metadata as user-provided json and is inserted into the small peer info system doc at each c...
Definition SmallPeerInfo.cpp:51
basic_json<> json
default JSON class
Definition json.hpp:2933