1 //******************************************************************
\r
3 // Copyright 2016 Samsung Electronics All Rights Reserved.
\r
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\r
7 // Licensed under the Apache License, Version 2.0 (the "License");
\r
8 // you may not use this file except in compliance with the License.
\r
9 // You may obtain a copy of the License at
\r
11 // http://www.apache.org/licenses/LICENSE-2.0
\r
13 // Unless required by applicable law or agreed to in writing, software
\r
14 // distributed under the License is distributed on an "AS IS" BASIS,
\r
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 // See the License for the specific language governing permissions and
\r
17 // limitations under the License.
\r
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\r
21 #include "NSSyncInfo.h"
\r
23 #include "NSUtils.h"
\r
29 NSSyncInfo::NSSyncInfo(::NSSyncInfo *syncInfo)
\r
32 m_state = NSSyncInfo::NSSyncType::NS_SYNC_UNREAD;
\r
33 if (syncInfo != nullptr)
\r
35 m_messageId = syncInfo->messageId;
\r
36 m_providerId.assign(syncInfo->providerId, NS_UTILS_UUID_STRING_SIZE - 1);
\r
37 m_state = (NSSyncType) syncInfo->state;
\r
41 uint64_t NSSyncInfo::getMessageId() const
\r
46 std::string NSSyncInfo::getProviderId() const
\r
48 return m_providerId;
\r
51 NSSyncInfo::NSSyncType NSSyncInfo::getState() const
\r