MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / AsJson

Method AsJson

src/render_panel/database/file_transfer_record.cpp:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 }
23
24 std::string FileTransferRecord::AsJson() {
25 nlohmann::json obj;
26 obj["the_file_id"] = the_file_id_;
27 obj["begin"] = TimeUtil::FormatTimestamp(begin_);
28 obj["end"] = TimeUtil::FormatTimestamp(end_);
29 obj["visitor_device"] = visitor_device_;
30 obj["target_device"] = target_device_;
31 obj["direction"] = direction_;
32 obj["file_detail"] = file_detail_;
33 return obj.dump(2);
34 }
35
36 std::string FileTransferRecord::AsJson2() {
37 nlohmann::json obj;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected