Home
last modified time | relevance | path

Searched refs:contentObj (Results 1 – 2 of 2) sorted by relevance

/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_content.cpp124 nlohmann::json contentObj; in ToJson() local
125 if (!NotificationJsonConverter::ConvertToJson(content_.get(), contentObj)) { in ToJson()
129 jsonObject["content"] = contentObj; in ToJson()
257 auto contentObj = jsonObject.at("content"); in ConvertJsonToContent() local
258 if (contentObj.is_null()) { in ConvertJsonToContent()
266 … pBasicContent = NotificationJsonConverter::ConvertFromJson<NotificationNormalContent>(contentObj); in ConvertJsonToContent()
269 …ontent = NotificationJsonConverter::ConvertFromJson<NotificationConversationalContent>(contentObj); in ConvertJsonToContent()
272 …BasicContent = NotificationJsonConverter::ConvertFromJson<NotificationLongTextContent>(contentObj); in ConvertJsonToContent()
275 …asicContent = NotificationJsonConverter::ConvertFromJson<NotificationMultiLineContent>(contentObj); in ConvertJsonToContent()
278 …pBasicContent = NotificationJsonConverter::ConvertFromJson<NotificationPictureContent>(contentObj); in ConvertJsonToContent()
Dnotification_request.cpp1552 nlohmann::json contentObj; in ConvertObjectsToJson() local
1554 if (!NotificationJsonConverter::ConvertToJson(notificationContent_.get(), contentObj)) { in ConvertObjectsToJson()
1559 jsonObject["content"] = contentObj; in ConvertObjectsToJson()
1783 auto contentObj = jsonObject.at("content"); in ConvertJsonToNotificationContent() local
1784 if (!contentObj.is_null()) { in ConvertJsonToNotificationContent()
1785 … auto pContent = NotificationJsonConverter::ConvertFromJson<NotificationContent>(contentObj); in ConvertJsonToNotificationContent()