コード例 #1
0
        internal static NotificationAction GetScheduledNotification()
        {
            var value = CookieProperty.Get(COOKIE_KEY).GetAlreadyCompletedResult();

            if (value.IsEmpty())
            {
                return(null);
            }

            CookieProperty.Remove(COOKIE_KEY);

            return(JsonConvert.DeserializeObject <NotificationAction>(value));
        }
コード例 #2
0
        internal static async Task <NotificationAction> GetScheduledNotification()
        {
            var value = await CookieProperty.Get(COOKIE_KEY);

            if (value.IsEmpty())
            {
                return(null);
            }

            CookieProperty.Remove(COOKIE_KEY);

            return(JsonConvert.DeserializeObject <NotificationAction>(value));
        }