예제 #1
0
        internal static object DeviceNotificationTypeGetter(IPropertyBag propertyBag)
        {
            PushNotificationServerSubscription pushNotificationServerSubscription = PushNotificationSubscription.DeserializedSubscriptionGetter(propertyBag);

            if (pushNotificationServerSubscription != null)
            {
                return(pushNotificationServerSubscription.DeviceNotificationType);
            }
            return(null);
        }
예제 #2
0
        internal static object InboxUnreadCountGetter(IPropertyBag propertyBag)
        {
            PushNotificationServerSubscription pushNotificationServerSubscription = PushNotificationSubscription.DeserializedSubscriptionGetter(propertyBag);

            return((pushNotificationServerSubscription == null) ? null : pushNotificationServerSubscription.InboxUnreadCount);
        }
예제 #3
0
        internal static object LastSubscriptionUpdateGetter(IPropertyBag propertyBag)
        {
            PushNotificationServerSubscription pushNotificationServerSubscription = PushNotificationSubscription.DeserializedSubscriptionGetter(propertyBag);

            return((pushNotificationServerSubscription == null) ? null : new DateTime?(pushNotificationServerSubscription.LastSubscriptionUpdate));
        }