I would like to build a new module for DNN 6.2+ that periodically check to see if a user has any new Messages or Notifications. If the user does have something new, a window will pop up to inform them.
The user will have 2 options on the popup: Go to Message Center, and Cancel
If they click Cancel, the popup window will not be shown again until they have an additional new message/notification.
My question is this: Using the DNN API, is there a way to get the timestamps for the last unread private message and notification for the current user?
Worst case scenario, I think I could just look at the appropriate tables in the database, but I'd rather us the API if possible.