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 {
35 NullItem::NullItem(shared_ptr<AbstractAction> action)
36 : AbstractItem(action) {
39 NullItem::NullItem(string id,
40 shared_ptr<AbstractAction> action)
41 : AbstractItem(id, action) {
43 NullItem::~NullItem() = default;
45 int NullItem::GetType() const {
46 return AbstractItem::NullObject;
49 Bundle NullItem::Serialize() const {
51 b = AbstractItem::Serialize();
55 void NullItem::Deserialize(Bundle b) {
56 AbstractItem::Deserialize(b);
59 AbstractItem& NullItem::FindByID(std::string id) {
63 bool NullItem::IsItemTypeExist(int type) {
64 if (GetType() == type)
70 } // namespace notification