public void OnLoadLastNotificationCompleted(object sender, XMLRPCCompletedEventArgs <IntResponseObject> args)
        {
            XmlRemoteProcedureCall <IntResponseObject> rpc = sender as XmlRemoteProcedureCall <IntResponseObject>;

            rpc.Completed -= OnLoadLastNotificationCompleted;
            if (null == args.Error && args.Items.Count > 0)
            {
                IntResponseObject blogIDRespObj = args.Items.First();
                IntResponseObject commentIDObj  = args.Items.Last();

                if (blogIDRespObj.Value == 0)
                {
                    return;
                }

                if (commentIDObj == null || commentIDObj.Value == 0)
                {
                    return;
                }

                string blogID    = string.Format("{0}", blogIDRespObj.Value);
                string commentID = string.Format("{0}", commentIDObj.Value);
                showToastForNewComment(blogID, commentID);
                return;
            }
            else
            {
                Exception e = args.Error;
#if DEBUG
                MessageBoxResult result = MessageBox.Show(String.Format("Error occurred. {0}", e.Message), "Error reading the last notification", MessageBoxButton.OK);
#endif
                Utils.Tools.LogException(String.Format("Error occurred. {0}", e.Message), e);
            }
        }
        public void OnLoadLastNotificationCompleted(object sender, XMLRPCCompletedEventArgs <IntResponseObject> args)
        {
            UIThread.Invoke(() =>
            {
                loadingContentProgressBar.Opacity = 0.0;
            });

            XmlRemoteProcedureCall <IntResponseObject> rpc = sender as XmlRemoteProcedureCall <IntResponseObject>;

            rpc.Completed -= OnLoadLastNotificationCompleted;

            PushNotificationsHelper.Instance.OnLoadLastNotificationCompleted(sender, args);
        }