namespace extension {
namespace notification {
+typedef std::map<notification_block_state_e, std::string> BlockStateEnumMap;
+
class NotificationManager {
public:
+ static const BlockStateEnumMap block_state_map_;
+
static NotificationManager* GetInstance();
- common::PlatformResult Post(const picojson::object& args,
- picojson::object& out);
+ common::PlatformResult Post(const picojson::object& args, picojson::object& out);
+ common::PlatformResult PostUserNoti(const picojson::object& args, picojson::object& out);
common::PlatformResult Update(const picojson::object& args);
+ common::PlatformResult UpdateUserNoti(const picojson::object& args);
common::PlatformResult Remove(const picojson::object& args);
common::PlatformResult RemoveAll();
- common::PlatformResult Get(const picojson::object& args,
- picojson::object& out);
- common::PlatformResult GetAll(picojson::array& out);
+ common::PlatformResult Get(const picojson::object& args, picojson::object& out,
+ bool is_new_impl = false);
+ common::PlatformResult GetAll(picojson::array& out, bool is_new_impl = false);
+ common::PlatformResult GetBlockState(picojson::value& out);
common::PlatformResult PlayLEDCustomEffect(const picojson::object& args);
common::PlatformResult StopLEDCustomEffect();
+ // TODO needed also below functions for new design?
common::PlatformResult SaveTemplate(const picojson::object& args);
- common::PlatformResult CreateFromTemplate(const picojson::object& args,
- picojson::object& out);
+ common::PlatformResult CreateFromTemplate(const picojson::object& args, picojson::object& out);
private:
NotificationManager();