public void DeleteMessage(string messageId)
        {
            var toDelete = new UAInboxMessage[1];

            toDelete[0] = UAMessageCenter.Shared.MessageList.Message(messageId);
            UAMessageCenter.Shared.MessageList.MarkMessagesDeleted(toDelete, null);
        }
        public void MarkMessageRead(string messageId)
        {
            var toRead = new UAInboxMessage[1];

            toRead[0] = UAMessageCenter.Shared.MessageList.Message(messageId);
            UAMessageCenter.Shared.MessageList.MarkMessagesRead(toRead, null);
        }
        private void LoadMessageBody(UAInboxMessage message)
        {
            var request = new NSMutableUrlRequest(message.MessageBodyURL);

            UAMessageCenter.Shared.User.GetUserData((UAUserData userData) =>
            {
                if (userData == null)
                {
                    return;
                }

                var auth = UAUtils.AuthHeaderString(userData.Username, userData.Password);

                NSMutableDictionary dict = new NSMutableDictionary();
                dict.Add(new NSString("Authorization"), new NSString(auth));
                request.Headers = dict;

                webView.LoadRequest(request);

                messagePage.OnRendererLoadStarted(messageId);
            });
        }
Example #4
0
        public override void ShowInboxMessage(UAInboxMessage message)
        {
            ShowInbox();

            MessageCenterViewController().DisplayMessage(message);
        }
 public void DisplayMessage(UAInboxMessage message)
 {
     ListViewController.DisplayMessage(message);
 }