Add new func for extentsion data
[platform/core/api/notification.git] / notification-ex / entry_item.cc
index dff60b7..062bc56 100644 (file)
@@ -73,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 {