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(); }
internal void UpdateMessages(List <Message> messages) { lock (_messages) { _messages = messages; Save(); InboxChanged?.Invoke(); } }
public override void MarkAsRead(string messageId) { if (messageId != null) { lp_inbox_markAsRead(messageId); } InboxChanged?.Invoke(); }
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; } }