1#ifndef _DITTO_PRESENCE_GRAPH_
2#define _DITTO_PRESENCE_GRAPH_
10typedef uint64_t SiteId;
11typedef std::vector<uint8_t> Pubkey;
22 void update_from_json(json
j);
39 float approximate_distance_in_meters;
40 std::string connection_type;
50 std::vector<uint8_t> peer_key;
51 std::string device_name;
54 bool is_connected_to_ditto_cloud;
56 std::string ditto_sdk_version;
57 std::vector<Connection> connections;
70 std::vector<Peer> remote_peers;
Connection between two peers.
Definition PresenceGraph.hpp:33
Information used to identify a peer.
Definition PresenceGraph.hpp:18
Represent a known peer in the Ditto network.
Definition PresenceGraph.hpp:46
Represents local peer and local peers.
Definition PresenceGraph.hpp:63
PresenceGraph(nlohmann::json)
Construct a new Presence Graph object.
Definition PresenceGraph.cpp:57
basic_json<> json
default JSON class
Definition json.hpp:2933