Esempio n. 1
0
        private void Init()
        {
            UAirship.Shared().Channel.AddChannelListener(this);

            //Adding Inbox updated listener
            MessageCenterClass.Shared().Inbox.AddListener(this);
        }
Esempio n. 2
0
        public void DeleteMessage(string messageId)
        {
            var toDelete = new List <String>
            {
                messageId
            };

            MessageCenterClass.Shared().Inbox.DeleteMessages(toDelete);
        }
Esempio n. 3
0
        public void MarkMessageRead(string messageId)
        {
            var toRead = new List <String>
            {
                messageId
            };

            MessageCenterClass.Shared().Inbox.MarkMessagesRead(toRead);
        }
        void Inbox.IFetchMessagesCallback.OnFinished(bool success)
        {
            message = MessageCenterClass.Shared().Inbox.GetMessage(messageId);
            if (!success)
            {
                messagePage.OnRendererLoadFailed(messageId, true, MessageFailureStatus.FetchFailed);
                return;
            }
            else if (message == null || message.IsExpired)
            {
                messagePage.OnRendererLoadFailed(messageId, false, MessageFailureStatus.Unavailable);
                return;
            }

            webView.LoadMessage(message);
            messagePage.OnRendererLoadStarted(messageId);
        }
        private void StartLoading(string messageId)
        {
            this.message = MessageCenterClass.Shared().Inbox.GetMessage(messageId);
            if (message == null)
            {
                fetchMessageRequest = MessageCenterClass.Shared().Inbox.FetchMessages(this);
            }
            else
            {
                if (message.IsExpired)
                {
                    messagePage.OnRendererLoadFailed(messageId, false, MessageFailureStatus.Unavailable);
                    return;
                }

                webView.LoadMessage(message);
                messagePage.OnRendererLoadStarted(messageId);
            }
        }
Esempio n. 6
0
 public void DisplayMessage(string messageId)
 {
     MessageCenterClass.Shared().ShowMessageCenter(messageId);
 }
Esempio n. 7
0
 public void DisplayMessageCenter()
 {
     MessageCenterClass.Shared().ShowMessageCenter();
 }