Add new func for extentsion data
[platform/core/api/notification.git] / notification-ex / entry_item.cc
index 9b0bdc6..062bc56 100644 (file)
@@ -30,6 +30,8 @@
 #define ENTRY_TEXT_KEY "__ENTRY_TEXT_KEY__"
 #define ENTRY_LIMIT_KEY "__ENTRY_LIMIT_KEY__"
 
+using namespace tizen_base;
+
 namespace notification {
 namespace item {
 
@@ -71,10 +73,10 @@ void EntryItem::Deserialize(Bundle b) {
   impl_->limit_ = std::stoi(b.GetString(ENTRY_LIMIT_KEY));
 }
 
-AbstractItem& EntryItem::FindByID(std::string id) {
-  if (GetId() == id)
-    return *this;
-  return FactoryManager::GetInst().GetNullItem();
+bool EntryItem::IsItemTypeExist(int type) {
+  if (GetType() == type)
+    return true;
+  return false;
 }
 
 std::string EntryItem::GetText() const {