status.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00027 #ifndef ASTXX_MANAGER_ACTION_STATUS_H
00028 #define ASTXX_MANAGER_ACTION_STATUS_H
00029
00030 #include <astxx/manager/basic_action.h>
00031 #include <astxx/manager/message.h>
00032
00033 namespace astxx {
00034 namespace manager {
00035 namespace action {
00042 class status : public basic_action {
00043 public:
00050 status(const std::string& channel = "", const std::string& action_id = "") : channel(channel), action_id(action_id) {
00051 }
00052
00053 message::action action() const {
00054 message::action action("Status");
00055 if (not action_id.empty()) {
00056 action["ActionID"] = action_id;
00057 }
00058 if (not channel.empty()) {
00059 action["Channel"] = channel;
00060 }
00061 return action;
00062 }
00063
00064 private:
00065 std::string channel;
00066 std::string action_id;
00067 };
00068 }
00069 }
00070 }
00071
00072 #endif