X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fnotification%2Fandroid%2Fnotification-service%2Fsrc%2Fmain%2Fjava%2Forg%2Fiotivity%2Fservice%2Fns%2Fcommon%2FSyncInfo.java;h=aa94b65ab304921d1a80ac52e055e89c04612897;hb=3c093548382bb2542c87a67e6e5fa32552c29cb3;hp=f0b55bba6c5b57feb104c946a1a55b1ee6a0bb23;hpb=edcfc3d2329da7b914771c0dcff5f42c9b74fd93;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/notification/android/notification-service/src/main/java/org/iotivity/service/ns/common/SyncInfo.java b/service/notification/android/notification-service/src/main/java/org/iotivity/service/ns/common/SyncInfo.java index f0b55bb..aa94b65 100755 --- a/service/notification/android/notification-service/src/main/java/org/iotivity/service/ns/common/SyncInfo.java +++ b/service/notification/android/notification-service/src/main/java/org/iotivity/service/ns/common/SyncInfo.java @@ -23,55 +23,54 @@ package org.iotivity.service.ns.common; import android.util.Log; /** - * @class SyncInfo - * @brief This class provides implementation of Notification SyncInfo object. - */ -public class SyncInfo -{ + * + * This class provides implementation of Notification SyncInfo object. + * + */ +public class SyncInfo { + private static final String LOG_TAG = "NotificationService_SyncInfo"; - public enum SyncType - { + /** + * This enum is used to inform about read status of notification message + */ + public enum SyncType { UNREAD(0), READ(1), DELETED(2); + private int type; - private SyncType(int type) - { - this.type = type; - } + private SyncType(int type) { + this.type = type; + } - public int getSyncType() - { - return this.type; - } + public int getSyncType() { + return this.type; + } }; - public long mMessageId = 0; - public String mProviderId = null; - public SyncType mState = SyncType.UNREAD; - public SyncInfo(long messageId, String providerId, SyncType state) - { - Log.i (LOG_TAG, "SyncInfo()"); + private long mMessageId = 0; + private String mProviderId = null; + private SyncType mState = SyncType.UNREAD; + + public SyncInfo(long messageId, String providerId, SyncType state) { + Log.i(LOG_TAG, "SyncInfo()"); mMessageId = messageId; mProviderId = providerId; mState = state; } - public long getMessageId() - { + public long getMessageId() { return mMessageId; } - public String getProviderId() - { + public String getProviderId() { return mProviderId; } - public SyncType getState() - { + public SyncType getState() { return mState; } }