Exemple #1
0
        internal override void MarkAsRead(string messageId)
        {
            if (messageId != null)
            {
            }

            InboxChanged?.Invoke();
        }
        internal override void MarkAsRead(string messageId)
        {
            if (messageId != null)
            {
                nativeSdk.CallStatic("inboxMarkAsRead", messageId);
            }

            InboxChanged?.Invoke();
        }
Exemple #3
0
 internal void UpdateMessages(List <Message> messages)
 {
     lock (_messages)
     {
         _messages = messages;
         Save();
         InboxChanged?.Invoke();
     }
 }
Exemple #4
0
        public override void MarkAsRead(string messageId)
        {
            if (messageId != null)
            {
                lp_inbox_markAsRead(messageId);
            }

            InboxChanged?.Invoke();
        }
Exemple #5
0
 public override void MarkAsRead(Message message)
 {
     if (message != null)
     {
         message.IsRead = true;
         Request request = RequestBuilder.withMarkInboxMessageAsReadAction()
                           .AndParam(Constants.Params.INBOX_MESSAGE_ID, message.Id)
                           .Create();
         Leanplum.RequestSender.Send(request);
     }
     InboxChanged?.Invoke();
 }
 internal override void NativeCallback(string message)
 {
     if (message.StartsWith("InboxOnChanged"))
     {
         InboxChanged?.Invoke();
     }
     else if (message.StartsWith("InboxForceContentUpdate:"))
     {
         bool success = message.EndsWith("1");
         ForceContentUpdate?.Invoke(success);
     }
     else if (message.StartsWith("InboxDownloadMessages:"))
     {
         bool success = message.EndsWith("1");
         OneTimeUpdate?.Invoke(success);
         OneTimeUpdate = null;
     }
 }