MakerLabs ACM
acm_helpers.cpp File Reference

Implementation of acm_helpers.h. More...

#include "acm_helpers.h"
#include "display_generated.h"
#include <chrono>
#include <experimental/string_view>

Detailed Description

Implementation of acm_helpers.h.

Typedefs

using string_view = std::experimental::string_view
 

Functions

auto generate_activity (const string_view machine_id_str, const ActivityType activity_type, const string_view tag_id_str, const int usage_seconds) -> ActivityFlatbuffer
 
auto generate_log (const string_view machine_id_str, const LogSeverity severity, const string_view message_str) -> LogFlatbuffer
 
auto generate_show_user_details_from_user (const ACM::User *user) -> DisplayIntentFlatbuffer
 
auto generate_progress_bar (const std::experimental::string_view message, const uint32_t progress, const TimeDuration duration, const Icon icon) -> DisplayIntentFlatbuffer
 
auto generate_show_user_details (const std::experimental::string_view message, const std::experimental::string_view email, const std::experimental::string_view makerlabs_id, const std::experimental::string_view tag_id) -> DisplayIntentFlatbuffer