1
#ifndef WXCNETWORKCOMMAND_H
2
#define WXCNETWORKCOMMAND_H
4
#include "wxcLib/wxcEnums.h"
5
#include "wxcLib/json_node.h"
7
class wxcNetworkCommand
9
wxCrafter::eCommandType m_commandType;
14
wxcNetworkCommand(const wxString& json);
15
virtual ~wxcNetworkCommand();
17
void SetCommandType(const wxCrafter::eCommandType& commandType) {
18
this->m_commandType = commandType;
20
void SetFilename(const wxString& filename) {
21
this->m_filename = filename;
23
const wxCrafter::eCommandType& GetCommandType() const {
26
const wxString& GetFilename() const {
31
void FromJSON(const JSONElement& json);
32
JSONElement ToJSON() const;
35
#endif // WXCNETWORKCOMMAND_H