2 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
21 #include "notification-ex/null_item.h"
27 #define LOG_TAG "NOTIFICATION_EX"
30 using namespace tizen_base;
32 namespace notification {
36 NullItem::NullItem(shared_ptr<AbstractAction> action)
37 : AbstractItem(action) {
40 NullItem::NullItem(string id,
41 shared_ptr<AbstractAction> action)
42 : AbstractItem(id, action) {
44 NullItem::~NullItem() = default;
46 int NullItem::GetType() const {
47 return AbstractItem::NullObject;
50 Bundle NullItem::Serialize() const {
52 b = AbstractItem::Serialize();
56 void NullItem::Deserialize(Bundle b) {
57 AbstractItem::Deserialize(b);
60 AbstractItem& NullItem::FindByID(std::string id) {
64 bool NullItem::IsItemTypeExist(int type) {
65 if (GetType() == type)
72 } // namespace notification