Ejemplo n.º 1
0
        internal static object DeviceNotificationTypeGetter(IPropertyBag propertyBag)
        {
            PushNotificationServerSubscription pushNotificationServerSubscription = PushNotificationSubscription.DeserializedSubscriptionGetter(propertyBag);

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

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

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