Files
MuditaOS/module-services/service-desktop/parser/EndpointHandler.hpp
Radoslaw Wicik a8573a404c Apply new style
2020-03-17 10:03:16 +01:00

18 lines
562 B
C++

#pragma once
#include <string>
#include "Service/Common.hpp"
#include "json/json11.hpp"
#include "Service/Service.hpp"
class EndpointHandler
{
public:
sys::ReturnCodes update(
uint8_t httpMethod, uint32_t uuid, json11::Json &body, std::string &responseStr, sys::Service *ownerService);
sys::ReturnCodes deviceInfo(
uint8_t httpMethod, uint32_t uuid, json11::Json &body, std::string &responseStr, sys::Service *ownerService);
private:
std::string buildResponseStr(std::size_t responseSize, std::string responsePayloadString);
};