forked from matth-x/MicroOcpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClearCache.h
More file actions
30 lines (22 loc) · 687 Bytes
/
ClearCache.h
File metadata and controls
30 lines (22 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// matth-x/MicroOcpp
// Copyright Matthias Akstaller 2019 - 2024
// MIT License
#ifndef MO_CLEARCACHE_H
#define MO_CLEARCACHE_H
#include <MicroOcpp/Core/Operation.h>
#include <MicroOcpp/Core/FilesystemAdapter.h>
namespace MicroOcpp {
namespace Ocpp16 {
class ClearCache : public Operation, public MemoryManaged {
private:
std::shared_ptr<FilesystemAdapter> filesystem;
bool success = true;
public:
ClearCache(std::shared_ptr<FilesystemAdapter> filesystem);
const char* getOperationType() override;
void processReq(JsonObject payload) override;
std::unique_ptr<JsonDoc> createConf() override;
};
} //end namespace Ocpp16
} //end namespace MicroOcpp
#endif