private void Init() { UAirship.Shared().Channel.AddChannelListener(this); //Adding Inbox updated listener MessageCenterClass.Shared().Inbox.AddListener(this); }
public void DeleteMessage(string messageId) { var toDelete = new List <String> { messageId }; MessageCenterClass.Shared().Inbox.DeleteMessages(toDelete); }
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); } }
public void DisplayMessage(string messageId) { MessageCenterClass.Shared().ShowMessageCenter(messageId); }
public void DisplayMessageCenter() { MessageCenterClass.Shared().ShowMessageCenter(); }