8 #include "libaktualizr/campaign.h"
18 explicit CampaignCheck(std::vector<campaign::Campaign> campaigns_in) : campaigns(std::move(campaigns_in)) {}
19 std::vector<campaign::Campaign> campaigns;
27 kUpdatesAvailable = 0,
41 Json::Value targets_meta_in, std::string message_in)
42 : updates(std::move(updates_in)),
43 ecus_count(ecus_count_in),
45 targets_meta(std::move(targets_meta_in)),
46 message(std::move(message_in)) {}
47 std::vector<Uptane::Target> updates;
48 unsigned int ecus_count{0};
50 Json::Value targets_meta;
90 inline std::ostream& operator<<(std::ostream& os,
const DownloadStatus stat) {
93 case DownloadStatus::kSuccess:
96 case DownloadStatus::kPartialSuccess:
97 stat_str =
"Partial success";
99 case DownloadStatus::kNothingToDownload:
100 stat_str =
"Nothing to download";
102 case DownloadStatus::kError:
106 stat_str =
"unknown";
109 os <<
'"' << stat_str <<
'"';
120 : updates(std::move(updates_in)), status(status_in), message(std::move(message_in)) {}
121 std::vector<Uptane::Target> updates;
134 : dev_report(std::move(dev_report_in)),
135 ecu_reports(std::move(ecu_reports_in)),
136 raw_report(std::move(raw_report_in)) {}
139 std::vector<EcuReport> ecu_reports;
140 std::string raw_report;
145 : update(std::move(update_in)), serial(std::move(serial_in)), install_res(std::move(install_res_in)) {}