Files
trail-mate/modules/ui_presentation/src/mesh/mesh_status_model.cpp
vicliu bf7068b02b 0.1.26-alpha release
* refactor: render chat rows from presentation state

* Fix Meshtastic channel sync and add MeshCore CN preset

* Add granular chat notification settings

* Add SD settings backup and restore

* Prepare 0.1.26-alpha release

---------

Co-authored-by: vicliu624 <vicliu@outlook.com>
2026-05-19 16:04:42 +08:00

22 lines
383 B
C++

#include "ui_presentation/mesh/mesh_status_model.h"
namespace ui::mesh
{
MeshStatusModel::MeshStatusModel(IMeshStatusSource& source)
: source_(source)
{
}
MeshStatusSnapshot MeshStatusModel::snapshot() const
{
MeshStatusSnapshot out{};
if (!source_.buildMeshStatusSnapshot(out))
{
out.header.valid = false;
}
return out;
}
} // namespace ui::mesh